]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scripts/documentation-file-ref-check: don't check perl/python scripts
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Feb 2025 10:17:58 +0000 (11:17 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 10 Feb 2025 18:19:56 +0000 (11:19 -0700)
Such scripts may have regular expressions, which would make the
parser confusing. Also, they shouldn't hardcode filenames there,
so skipping them is OK.

While here, also don't check references on extensions used for file
backup and patch rej/orig.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/712bfc8412ee5ad8ab43dd21a8c30fc858eff5a6.1739182025.git.mchehab+huawei@kernel.org
scripts/documentation-file-ref-check

index 68083f2f112205b902e48e5cabb9ec9027276a41..408b1dbe78841e2a076eacd09e42ac4bc0a0a04e 100755 (executable)
@@ -92,7 +92,7 @@ while (<IN>) {
        next if ($f =~ m,^Next/,);
 
        # Makefiles and scripts contain nasty expressions to parse docs
-       next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/);
+       next if ($f =~ m/Makefile/ || $f =~ m/\.(sh|py|pl|~|rej|org|orig)$/);
 
        # It doesn't make sense to parse hidden files
        next if ($f =~ m#/\.#);