Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(mission_planner): remove redundant is_reroute check #6980

Merged
merged 1 commit into from
May 11, 2024

remove redundant is_reroute check

04c927c
Select commit
Loading
Failed to load commit list.
Merged

refactor(mission_planner): remove redundant is_reroute check #6980

remove redundant is_reroute check
04c927c
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded May 11, 2024 in 34s

CodeScene PR Check

Code Health Quality Gates: OK

  • Improving Code Health: 3 findings(s) ✅

View detailed results in CodeScene

Details

✅ Improving Code Health:

  • Overall Code Complexity mission_planner.cpp
  • Complex Method mission_planner.cpp: MissionPlanner::on_set_waypoint_route
  • Complex Method mission_planner.cpp: MissionPlanner::on_set_lanelet_route

Annotations

Check notice on line 301 in planning/mission_planner/src/mission_planner/mission_planner.cpp

See this annotation in the file changed.

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

✅ Getting better: Complex Method

MissionPlanner::on_set_waypoint_route decreases in cyclomatic complexity from 19 to 18, 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 253 in planning/mission_planner/src/mission_planner/mission_planner.cpp

See this annotation in the file changed.

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

✅ Getting better: Complex Method

MissionPlanner::on_set_lanelet_route decreases in cyclomatic complexity from 19 to 18, 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/mission_planner/src/mission_planner/mission_planner.cpp

See this annotation in the file changed.

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

✅ Getting better: Overall Code Complexity

The mean cyclomatic complexity decreases from 4.76 to 4.67, 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.