Skip to content

feat(goal_planner): resample path interval for lane departure check a…

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Feb 3, 2025 in 35s

CodeScene PR Check

βœ… Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.00 (9.38 -> 9.38)

  • Declining Code Health: 1 findings(s) 🚩

  • Affected Hotspots: 1 files(s) πŸ”₯

View detailed results in CodeScene

Details

🚩 Declining Code Health (highest to lowest):

  • Complex Method shift_pull_over.cpp: ShiftPullOver::generatePullOverPath πŸ”₯

Annotations

Check warning on line 307 in planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/pull_over_planner/shift_pull_over.cpp

See this annotation in the file changed.

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

❌ Getting worse: Complex Method

ShiftPullOver::generatePullOverPath already has high cyclomatic complexity, and now it increases in Lines of Code from 137 to 139. 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.