refactor(universe_utils/motion_utils)!: add autoware namespace #7594
CodeScene PR Check
❌ Code Health Quality Gates: FAILED
- Declining Code Health: 4 findings(s) 🚩
View detailed results in CodeScene
Absence of Expected Change Pattern
- autoware.universe/planning/autoware_velocity_smoother/src/smoother/jerk_filtered_smoother.cpp is usually changed with: autoware.universe/planning/autoware_velocity_smoother/src/smoother/linf_pseudo_jerk_smoother.cpp
Details
🚩 Declining Code Health (highest to lowest):
- Complex Method decisions.cpp: object_time_to_range
- Complex Method scene_crosswalk.cpp: CrosswalkModule::checkStopForCrosswalkUsers
- Complex Method shift_pull_out.cpp: ShiftPullOut::plan
- Complex Method decisions.cpp: object_time_to_range
Annotations
Check notice on line 1 in common/autoware_motion_utils/src/resample/resample.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
ℹ Getting worse: Overall Function Size
The median function size increase from 51.5 to 52.5 LOC, threshold = 50.0. This file contains overly long functions, measured by their lines of code.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
ℹ Getting worse: Lines of Code in a Single File
The lines of code increases from 1448 to 1449, improve code health by reducing it to 1000. The number of Lines of Code in a single file. More Lines of Code lowers the code health.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
ℹ Getting worse: Complex Method
postProcess already has high cyclomatic complexity, and now it increases in Lines of Code from 117 to 118. 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
ℹ Getting worse: Lines of Code in a Single File
The lines of code increases from 1292 to 1293, improve code health by reducing it to 1000. The number of Lines of Code in a single file. More Lines of Code lowers the code health.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
ShiftPullOut::plan already has high cyclomatic complexity, and now it increases in Lines of Code from 79 to 80. 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
CrosswalkModule::checkStopForCrosswalkUsers already has high cyclomatic complexity, and now it increases in Lines of Code from 86 to 87. 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
ℹ Getting worse: Complex Method
IntersectionModule::detectOcclusion already has high cyclomatic complexity, and now it increases in Lines of Code from 310 to 311. 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
object_time_to_range already has high cyclomatic complexity, and now it increases in Lines of Code from 85 to 86. 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
object_time_to_range already has high cyclomatic complexity, and now it increases in Lines of Code from 85 to 86. 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.