]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scripts: checkpatch.pl: Extend some checks to "env" files
authorTom Rini <trini@konsulko.com>
Tue, 16 Sep 2025 16:14:45 +0000 (10:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 22:47:06 +0000 (16:47 -0600)
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 <trini@konsulko.com>
scripts/checkpatch.pl

index 414019c5b896454b8b5d71b36bcddf26bfbf2c4c..763287e02b185e4121530088e4f1199580f04221 100755 (executable)
@@ -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 &&