ci: add clang-format and MISRA static-analysis checks #38
Labels
No labels
Category
App
Category
Documentation
Category
Firmware
Category
Hardware
Category
Qms
PR_Size
L
PR_Size
M
PR_Size
S
PR_Size
XL
PR_Size
XS
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Priority
Very Low Priority
Size
Epic
Size
Feature
Size
Task
Status
Blocked
Status
Draft
Status
Needs-review
Team
Board
Team
Dev
Team
Management
Type
Bug
Type
Capa
Type
Improvement
Type
New-feature
Type
Regulatory
Type
Usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
opendutchsolutions.public/hal_awr6843#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
.forgejo/workflows/tests.ymlcurrently only runs the host-native Catch2 test suite. Two more static-quality gates should run on every push/PR: a.clang-formatconformance check (the config already exists, added underfeat(c-lint), but nothing enforces it yet), and a MISRA C static-analysis pass usingtools/misra/run_misra.sh's existing cppcheck-based tooling (currently only exists in a local backup, not committed).Scope
tools/misra/run_misra.sh,tools/misra/suppressions.txt, andtools/misra/generate_rule_texts.py(the generatedrule_texts.txt/misra.json/report.txtstay gitignored, never committed -- MISRA's guideline text is copyrighted)run_misra.shonly targets directories that actually exist on disk (hal/mss/hal/dssaren't landed yet, onlyhal/utilandhal/registersare) so it doesn't hard-fail before the driver tree landsclang-format --dry-run --Werrorover files changed in the current push/PR (not the whole tree -- the existing register headers predate.clang-formatand aren't conformant yet; reformatting them is out of scope here)MISRA_RULESrepo secret (already added) instead of a locally-purchased PDF, applyingtools/misra/suppressions.txt, and failing on any unsuppressed findingFunctional Impact
None -- CI/build-tooling only, no product/driver code changes.
Regulatory Impact
None
QMS Impact
Potential -- adds a new automated static-analysis gate; may be relevant to QMS tooling records.
Risk Impact
No -- existing risk coverage sufficient.
Related Issues / PRs
Relates to #16