From b2af5e87de12c69f9daa8be353a3bcecad9ae364 Mon Sep 17 00:00:00 2001 From: Dmitry Lukyantsev Date: Thu, 3 Aug 2023 13:54:08 -0700 Subject: [PATCH] scripts: Exclude spelling.txt from spelling check Do not run spelling check on changes to scripts/spelling.txt. Signed-off-by: Dmitry Lukyantsev --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c72f54e9c14..544fc4ea0e4 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2954,6 +2954,7 @@ sub process { # Check for various typo / spelling mistakes if (defined($misspellings) && + ($spelling_file !~ /$realfile/) && ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) { while ($rawline =~ /(?:^|[^a-z@])($misspellings)(?:\b|$|[^a-z@])/gi) { my $typo = $1;