scripts: Exclude spelling.txt from spelling check

Do not run spelling check on changes to scripts/spelling.txt.

Signed-off-by: Dmitry Lukyantsev <dmitrylu@google.com>
This commit is contained in:
Dmitry Lukyantsev 2023-08-03 13:54:08 -07:00 committed by Fabio Baltieri
parent 34a966f219
commit b2af5e87de

View file

@ -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;