CodeScene PR Check
β Code Health Quality Gates: FAILED
- Declining Code Health: 3 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):
- Complex Method motion_velocity_smoother_node.cpp: MotionVelocitySmootherNode::smoothVelocity
- Complex Method motion_velocity_smoother_node.cpp: MotionVelocitySmootherNode::calcInitialMotion
- Complex Method motion_velocity_smoother_node.cpp: MotionVelocitySmootherNode::onCurrentTrajectory
Annotations
Check warning on line 694 in planning/motion_velocity_smoother/src/motion_velocity_smoother_node.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Complex Method
MotionVelocitySmootherNode::smoothVelocity increases in cyclomatic complexity from 14 to 17, 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.
Check warning on line 797 in planning/motion_velocity_smoother/src/motion_velocity_smoother_node.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Complex Method
MotionVelocitySmootherNode::calcInitialMotion increases in cyclomatic complexity from 11 to 13, 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.
Check warning on line 524 in planning/motion_velocity_smoother/src/motion_velocity_smoother_node.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Complex Method
MotionVelocitySmootherNode::onCurrentTrajectory has a cyclomatic complexity of 11, 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.
Check notice on line 1 in planning/motion_velocity_smoother/src/motion_velocity_smoother_node.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
βΉ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.03 to 4.30, 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.