CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
failed
Aug 21, 2024 in 37s
CodeScene PR Check
β Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.04 (9.40 -> 9.36)
- Declining Code Health: 2 findings(s) π©
- Improving Code Health: 1 findings(s) β
Details
π© Declining Code Health (highest to lowest):
- Complex Method obstacle_velocity_limiter_module.cpp: ObstacleVelocityLimiterModule::plan
- Bumpy Road Ahead obstacle_velocity_limiter.cpp: calculate_slowdown_intervals
β Improving Code Health:
- Large Method obstacle_velocity_limiter_module.cpp: ObstacleVelocityLimiterModule::plan
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Bumpy Road Ahead
calculate_slowdown_intervals has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Complex Method
ObstacleVelocityLimiterModule::plan has a cyclomatic complexity of 10, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β No longer an issue: Large Method
ObstacleVelocityLimiterModule::plan is no longer above the threshold for lines of code
Loading