Skip to content

feat: operation mode panel

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Sep 21, 2024 in 49s

CodeScene PR Check

Code Health Quality Gates: OK

Code Health of new files: 9.69

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

Details

🚩 Declining Code Health (highest to lowest):

  • Complex Method operation_mode_panel.cpp: OperationModePanel::onOperationMode

Annotations

Check warning on line 216 in common/tier4_adapi_rviz_plugin/src/operation_mode_panel.cpp

See this annotation in the file changed.

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

❌ New issue: Complex Method

OperationModePanel::onOperationMode has a cyclomatic complexity of 9, 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.