summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-09-16 10:14:45 -0600
committerTom Rini <[email protected]>2025-09-26 16:47:06 -0600
commit40888b1e4cc81404493a2df263af1ca20ccd08d6 (patch)
tree1f7c93eace4bbbf848f374f95d1c404592169b61
parentc8a74db0cd2ae90720e81b55795cf2809762a995 (diff)
scripts: checkpatch.pl: Extend some checks to "env" files
In order for the U-Boot specific tests we've added (along with the long line test) to be run on ".env" files as well, we need to update the line in the process function that starts to limit the file extensions that we test on. Signed-off-by: Tom Rini <[email protected]>
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 414019c5b89..763287e02b1 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3791,7 +3791,7 @@ sub process {
}
# check we are in a valid source file if not then ignore this hunk
- next if ($realfile !~ /\.(h|c|s|S|sh|dtsi|dts)$/);
+ next if ($realfile !~ /\.(h|c|s|S|sh|dtsi|dts|env)$/);
# check for using SPDX-License-Identifier on the wrong line number
if ($realline != $checklicenseline &&