Skip to contentSkip to conversation

checkpatch: ignore perl files.

PATCH New Jiang Biao 1 participant 1 message Oct 11, 2017 Checkpatch

lore
Share & tools
lore

Jiang Biao

author
#0 lore raw

PATCH 1/1 checkpatch: ignore perl files.

Most coding styles are not suit for perl files. If we check scripts/checkpatch.pl with itself, there would be tons of complaints. And if we make patches for checkpatch.pl, patchew.org and checkpatch.pl would complain errors for the patches.

Ignore perl files taking Linux kernel version as reference.

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 3c0a28e..c4ec031 100755
@@ -1442,7 +1442,7 @@ sub process {
 		}
 
 # check we are in a valid source file if not then ignore this hunk
-		next if ($realfile !~ /\.(h|c|cpp|s|S|pl|py|sh)$/);
+		next if ($realfile !~ /\.(h|c|cpp|s|S|py|sh)$/);
 
 #90 column limit
 		if ($line =~ /^\+/ &&
Signature · 1 line
2.9.5