Skip to content

chore(motion_velocity_smoother): remove string stream creation

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) failed May 27, 2024 in 37s

CodeScene PR Check

Code Health Quality Gates: FAILED

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

Details

🚩 Declining Code Health (highest to lowest):

  • Complex Method velocity_planning_utils.cpp: calcStopVelocityWithConstantJerkAccLimit

Annotations

Check warning on line 209 in planning/motion_velocity_smoother/src/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

❌ Getting worse: Complex Method

calcStopVelocityWithConstantJerkAccLimit already has high cyclomatic complexity, and now it increases in Lines of Code from 93 to 94. 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.