Skip to content

Fix nitpicks in cube template

c56e5e8
Select commit
Loading
Failed to load commit list.
Open

VS Code extension: fix/update templates based on ps1-bare-metal #1970

Fix nitpicks in cube template
c56e5e8
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) failed Apr 25, 2026 in 33s

CodeScene PR Check

Quality Gate Failed

Gates Failed
Enforce advisory code health rules (1 file with Complex Method)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
main.c 1 advisory rule 9.52 → 9.46 Suppress

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Complex Method main.c: main

Annotations

Check warning on line 323 in tools/vscode-extension/templates/bare-metal/cmake-cube/src/main.c

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ Getting worse: Complex Method

main already has high cyclomatic complexity, and now it increases in Lines of Code from 87 to 97. 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.