Skip to content

fix bug by using the collision data keeper

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Aug 26, 2024 in 37s

CodeScene PR Check

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.00 (6.95 -> 6.95)

View detailed results in CodeScene

Details

Annotations

Check notice on line 494 in control/autoware_autonomous_emergency_braking/src/node.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

ℹ Getting worse: Complex Method

AEB::checkCollision already has high cyclomatic complexity, and now it increases in Lines of Code from 92 to 93. 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 1 in control/autoware_autonomous_emergency_braking/src/node.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

ℹ Getting worse: Overall Code Complexity

The mean cyclomatic complexity increases from 5.68 to 5.74, 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.