CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
failed
Sep 9, 2024 in 41s
CodeScene PR Check
β Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.02 (7.68 -> 7.66)
- Declining Code Health: 2 findings(s) π©
- Improving Code Health: 1 findings(s) β
Details
π© Declining Code Health (highest to lowest):
- Large Method manager.cpp: GoalPlannerModuleManager::initGoalPlannerParameters
- Complex Method goal_searcher.cpp: GoalSearcher::search
β Improving Code Health:
- Primitive Obsession util.cpp
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Complex Method
GoalSearcher::search increases in cyclomatic complexity from 12 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
βΉ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.87 to 5.27, 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting worse: Large Method
GoalPlannerModuleManager::initGoalPlannerParameters increases from 334 to 340 lines of code, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting better: Primitive Obsession
The ratio of primitive types in function arguments decreases from 41.98% to 40.00%, threshold = 30.0%. The functions in this file have too many primitive types (e.g. int, double, float) in their function argument lists. Using many primitive types lead to the code smell Primitive Obsession. Avoid adding more primitive arguments.
Loading