CodeScene PR Check
β Code Health Quality Gates: FAILED
- Declining Code Health: 7 findings(s) π©
- Improving Code Health: 0 findings(s) β
- Affected Hotspots: 0 files(s) π₯
Recommended Review Level: Detailed -- Inspect the code that degrades in code health.
View detailed results in CodeScene
Details
π© Declining Code Health (highest to lowest):
- Overall Function Size bicycle_tracker.cpp
- Large Method big_vehicle_tracker.cpp: BigVehicleTracker::getTrackedObject
- Large Method normal_vehicle_tracker.cpp: NormalVehicleTracker::getTrackedObject
- Large Method bicycle_tracker.cpp: BicycleTracker::getTrackedObject
- Large Method bicycle_tracker.cpp: BicycleTracker::predict
- Large Method big_vehicle_tracker.cpp: BigVehicleTracker::predict
- Large Method normal_vehicle_tracker.cpp: NormalVehicleTracker::predict
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Large Method
BigVehicleTracker::getTrackedObject increases from 76 to 87 lines of code, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Large Method
BigVehicleTracker::predict has 71 lines, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
Check notice on line 1 in perception/multi_object_tracker/src/tracker/model/big_vehicle_tracker.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
βΉ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.11 to 4.67, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.
Check warning on line 1 in perception/multi_object_tracker/src/tracker/model/bicycle_tracker.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Overall Function Size
The median function size in this module is 71.0 LOC, threshold = 50.0. This file contains overly long functions, measured by their lines of code.
Check warning on line 536 in perception/multi_object_tracker/src/tracker/model/bicycle_tracker.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Large Method
BicycleTracker::getTrackedObject increases from 70 to 81 lines of code, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
Check warning on line 282 in perception/multi_object_tracker/src/tracker/model/bicycle_tracker.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Large Method
BicycleTracker::predict has 71 lines, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
Check notice on line 1 in perception/multi_object_tracker/src/tracker/model/bicycle_tracker.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
βΉ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.57 to 5.29, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Large Method
NormalVehicleTracker::getTrackedObject increases from 76 to 87 lines of code, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Large Method
NormalVehicleTracker::predict has 71 lines, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
βΉ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.50 to 5.13, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.