All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] checkpatch: ignore perl files.
@ 2017-10-11  8:24 Jiang Biao
  0 siblings, 0 replies; only message in thread
From: Jiang Biao @ 2017-10-11  8:24 UTC (permalink / raw)
  To: qemu-devel, peter.maydell; +Cc: jiang.biao2, zhong.weidong

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.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3c0a28e..c4ec031 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -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 =~ /^\+/ &&
-- 
2.9.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-11  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11  8:24 [Qemu-devel] [PATCH] checkpatch: ignore perl files Jiang Biao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.