Skip to content

Commit dde46a9

Browse files
pdgendtnashif
authored andcommitted
scripts: ci: compliance: ClangFormat only check .c/.h files
The clang format compliance check should only be applied to .c and .h files. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent e767ac0 commit dde46a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/ci/check_compliance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ class ClangFormatCheck(ComplianceTest):
274274

275275
def run(self):
276276
for file in get_files():
277+
if Path(file).suffix not in ['.c', '.h']:
278+
continue
279+
277280
diff = subprocess.Popen(('git', 'diff', '-U0', '--no-color', COMMIT_RANGE, '--', file),
278281
stdout=subprocess.PIPE,
279282
cwd=GIT_TOP)

0 commit comments

Comments
 (0)