feat(freespace_planning_algorithms): Debug tools for Python wrapper of freespace planning algorithms #7068
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
May 20, 2024 in 38s
CodeScene PR Check
✅ Code Health Quality Gates: OK
- Declining Code Health: 5 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Excess Number of Function Arguments common_classes.py: Result.init
- Excess Number of Function Arguments visualize_trajectories.py: DrawClickedTrajectory.init
- Bumpy Road Ahead search_gridgoal.py: float_range
- Global Conditionals search_gridgoal.py
- Global Conditionals visualize_trajectories.py
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Bumpy Road Ahead
float_range has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Global Conditionals
There's global code outside of functions with a cyclomatic complexity of 12, threshold = 10. The code has become too complex as it contains many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Excess Number of Function Arguments
Result.__init__ has 5 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Global Conditionals
There's global code outside of functions with a cyclomatic complexity of 11, threshold = 10. The code has become too complex as it contains many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Excess Number of Function Arguments
DrawClickedTrajectory.__init__ has 5 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
Loading