From 5fb47cd97ff780e906243b285ed9461538718899 Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Tue, 22 Apr 2025 12:08:33 -0400 Subject: [PATCH] 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 --- scripts/ci/check_compliance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/check_compliance.py b/scripts/ci/check_compliance.py index 7fa60fd2053..09f347a2cca 100755 --- a/scripts/ci/check_compliance.py +++ b/scripts/ci/check_compliance.py @@ -261,7 +261,7 @@ class CheckPatch(ComplianceTest): cmd = [checkpatch] 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, cwd=GIT_TOP) try: