CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
failed
May 27, 2024 in 48s
CodeScene PR Check
β Code Health Quality Gates: FAILED
- Declining Code Health: 4 findings(s) π©
Details
π© Declining Code Health (highest to lowest):
- Complex Conditional shape_draw.cpp: drawShape
- Complex Method shape_draw.cpp: drawShape
- Excess Number of Function Arguments shape_draw.cpp: drawShape
- Excess Number of Function Arguments shape_draw.cpp: drawTrafficLightShape
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Complex Method
drawShape 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)
β New issue: Complex Conditional
drawShape has 1 complex conditionals with 3 branches, threshold = 2. A complex conditional is an expression inside a branch (e.g. if, for, while) which consists of multiple, logical operators such as AND/OR. The more logical operators in an expression, the more severe the code smell.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
β New issue: Excess Number of Function Arguments
drawShape has 6 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: Excess Number of Function Arguments
drawTrafficLightShape has 6 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
Loading