Skip to contentSkip to conversation

scripts: checkpatch.pl: Extend some checks to "env" files

PATCH In review Tom Rini 1 participant 2 messages Sep 16, 2025 – Sep 27, 2025 Checkpatch

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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.

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 414019c5b896..763287e02b18 100755
@@ -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 &&
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

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.

Applied to u-boot/next, thanks!

[1/1] scripts: checkpatch.pl: Extend some checks to "env" files

      commit: 40888b1e4cc81404493a2df263af1ca20ccd08d6
Signature · 1 line
Tom