CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
failed
Aug 19, 2024 in 54s
CodeScene PR Check
β Code Health Quality Gates: FAILED
Change in average Code Health of affected files: +0.16 (5.72 -> 5.88)
- Declining Code Health: 1 findings(s) π©
- Improving Code Health: 6 findings(s) β
- Affected Hotspots: 1 files(s) π₯
Details
π© Declining Code Health (highest to lowest):
- Complex Method scene_intersection_prepare_data.cpp: getPrecedingLaneletsUptoIntersectionRecursive
β Improving Code Health:
- Complex Method scene_intersection_prepare_data.cpp: IntersectionModule::generateObjectiveLanelets
- Bumpy Road Ahead scene_intersection_prepare_data.cpp: IntersectionModule::generateObjectiveLanelets
- Overall Code Complexity scene_intersection_prepare_data.cpp
- Overall Code Complexity util.cpp π₯
- Complex Method util.cpp: mergeLaneletsByTopologicalSort π₯
- Bumpy Road Ahead util.cpp: mergeLaneletsByTopologicalSort π₯
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β Getting better: Complex Method
IntersectionModule::generateObjectiveLanelets decreases in cyclomatic complexity from 52 to 48, 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)
β New issue: Complex Method
getPrecedingLaneletsUptoIntersectionRecursive has a cyclomatic complexity of 11, 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 better: Bumpy Road Ahead
IntersectionModule::generateObjectiveLanelets decreases from 13 to 12 logical blocks with deeply nested code, threshold is one single 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)
β Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 12.91 to 12.08, 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 better: Complex Method
mergeLaneletsByTopologicalSort decreases in cyclomatic complexity from 20 to 16, 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 better: Bumpy Road Ahead
mergeLaneletsByTopologicalSort decreases from 6 to 5 logical blocks with deeply nested code, threshold is one single 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)
β Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 4.80 to 4.69, 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.
Loading