CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
failed
Dec 27, 2024 in 33s
CodeScene PR Check
β Code Health Quality Gates: FAILED
Change in average Code Health of affected files: +0.09 (8.53 -> 8.62)
- Declining Code Health: 1 findings(s) π©
- Improving Code Health: 1 findings(s) β
Details
π© Declining Code Health (highest to lowest):
- Overall Code Complexity node.cpp
β Improving Code Health:
- Deep, Nested Complexity fusion_node.cpp: subCallback
Annotations
Check notice on line 364 in perception/autoware_image_projection_based_fusion/src/fusion_node.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
βΉ Getting worse: Complex Method
subCallback increases in cyclomatic complexity from 20 to 21, 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.
Check notice on line 364 in perception/autoware_image_projection_based_fusion/src/fusion_node.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β No longer an issue: Deep, Nested Complexity
subCallback is no longer above the threshold for nested complexity depth. This function contains deeply nested logic such as if statements and/or loops. The deeper the nesting, the lower the code health.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Overall Code Complexity
This module has a mean cyclomatic complexity of 8.71 across 7 functions. The mean complexity threshold is 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