Skip to content

refactor: move update camera field of view calculation to preprocess

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Dec 12, 2024 in 56s

CodeScene PR Check

Code Health Quality Gates: OK

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

View detailed results in CodeScene

Details

Annotations

Check notice on line 262 in perception/autoware_image_projection_based_fusion/src/pointpainting_fusion/node.cpp

See this annotation in the file changed.

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

ℹ Getting worse: Complex Method

PointPaintingFusionNode::preprocess increases in cyclomatic complexity from 9 to 10, 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.