scripts: check_compliance: un-ignore diff and patch for CheckPatch

Un-ignore diff and patch files for CheckPatch.

This was originally added to avoid throwing false-positives when diff
and patch files were actually in the repo, since it would incorrectly
try to perform code-formatting checks on those files instead of on
the content of the commit.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
Chris Friedt 2025-04-22 12:08:33 -04:00 committed by Anas Nashif
commit 5fb47cd97f

View file

@ -261,7 +261,7 @@ class CheckPatch(ComplianceTest):
cmd = [checkpatch] cmd = [checkpatch]
cmd.extend(['--mailback', '--no-tree', '-']) cmd.extend(['--mailback', '--no-tree', '-'])
diff = subprocess.Popen(('git', 'diff', '--no-ext-diff', '--', ':!*.diff', ':!*.patch', COMMIT_RANGE), diff = subprocess.Popen(('git', 'diff', '--no-ext-diff', COMMIT_RANGE),
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
cwd=GIT_TOP) cwd=GIT_TOP)
try: try: