fix(euclidean_cluster): fix euclidean cluster params #7662
Merged
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
Jun 24, 2024 in 37s
CodeScene PR Check
✅ Code Health Quality Gates: OK
- Declining Code Health: 1 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Complex Method voxel_grid_based_euclidean_cluster.cpp: VoxelGridBasedEuclideanCluster::cluster
Annotations
Check warning on line 130 in perception/euclidean_cluster/lib/voxel_grid_based_euclidean_cluster.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
VoxelGridBasedEuclideanCluster::cluster increases in cyclomatic complexity from 12 to 13, 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.
Loading