fix(route_handler): planning route with goal lanelet in candidate_lanelets #6802
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
Apr 17, 2024 in 37s
CodeScene PR Check
✅ Code Health Quality Gates: OK
- Improving Code Health: 2 findings(s) ✅
Details
✅ Improving Code Health:
- Overall Code Complexity route_handler.cpp
- Complex Method route_handler.cpp: RouteHandler::getLaneletSequenceUpTo
Annotations
Check notice on line 596 in planning/route_handler/src/route_handler.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
✅ Getting better: Complex Method
RouteHandler::getLaneletSequenceUpTo decreases in cyclomatic complexity from 15 to 14, 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/route_handler/src/route_handler.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
✅ Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 4.50 to 4.49, 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.
Loading