ci: exclude asf4 headers from clang-tidy
What changed, and why it matters
This change only adjusts a code-quality tool configuration. It tells clang-tidy to skip linting header files located in an external driver directory (asf4-drivers). It does not modify firmware behavior, fix a bug, or change any executable code.
No security action needed. Treat as a normal CI/maintenance change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds an ExcludeHeaderFilterRegex entry to .clang-tidy so headers under external/asf4-drivers/ are not analyzed by clang-tidy. The asf4 source files were already excluded; this closes a gap where those headers could still be linted when included by other translation units. No functional code is changed.
Changed components
.clang-tidy configurationInspect captured patch +1 / −0
diff --git a/.clang-tidy b/.clang-tidy
index a98cb9a..a1a822d 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -23,6 +23,7 @@ Checks: >-
-clang-analyzer-core.FixedAddressDereference,
-clang-diagnostic-cast-qual
HeaderFilterRegex: '.*'
+ExcludeHeaderFilterRegex: '.*/external/asf4-drivers/.*'
ExtraArgs:
- -Wno-unknown-warning-option
- -Qunused-arguments
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.