Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored and VRichardJP committed Jan 29, 2024
1 parent 510317e commit 17f5674
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ void FreespacePlannerNode::onTimer()
reset_in_progress_ = false;
} else {
// Will keep current stop trajectory
RCLCPP_WARN_THROTTLE(get_logger(), *get_clock(), 1000, "Waiting for the vehicle to stop before generating a new trajectory.");
RCLCPP_WARN_THROTTLE(
get_logger(), *get_clock(), 1000,
"Waiting for the vehicle to stop before generating a new trajectory.");
}

Check notice on line 471 in planning/freespace_planner/src/freespace_planner/freespace_planner_node.cpp

View check run for this annotation

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)

ℹ Getting worse: Complex Method

FreespacePlannerNode::onTimer increases in cyclomatic complexity from 11 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.
}

Expand Down

0 comments on commit 17f5674

Please sign in to comment.