codespell: extend checks to more subdirs

- fix issues found.
- fix a few more found locally.

Closes #15072
This commit is contained in:
Viktor Szakats 2024-09-27 01:16:38 +02:00
parent 6b2824dae1
commit cfae354a9a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
10 changed files with 20 additions and 15 deletions

View file

@ -630,7 +630,7 @@ sub scanfile {
if($nostr =~ /^(.*[^']\?[^'].*)(\w|\)|\]|')\:/i) {
my $m = $1;
my $e = $nostr;
$e =~ s/'(.)':'(.)'/$1:$2/g; # eliminate chars quotes that suround colon
$e =~ s/'(.)':'(.)'/$1:$2/g; # eliminate chars quotes that surround colon
$e =~ s/':'//g; # ignore these
if($e =~ /^(.*[^']\?[^'].*)(\w|\)|\]|')\:/i) {
checkwarn("NOSPACEC",
@ -642,7 +642,7 @@ sub scanfile {
if($nostr =~ /^(.*[^'"]\?[^'"].*)\:(\w|\)|\]|')/i) {
my $m = $1;
my $e = $nostr;
$e =~ s/'(.)':'(.)'/$1:$2/g; # eliminate chars quotes that suround colon
$e =~ s/'(.)':'(.)'/$1:$2/g; # eliminate chars quotes that surround colon
$e =~ s/':'//g; # ignore these
if($e =~ /^(.*[^'"]\?[^'"].*)\:(\w|\)|\]|')/i) {
checkwarn("NOSPACEC",

View file

@ -1256,7 +1256,7 @@ elsif($cmd eq "-c") {
my @files = @ARGV; # the rest are the files
# can be overriden for releases
# can be overridden for releases
if($ENV{'CURL_MAKETGZ_VERSION'}) {
$version = $ENV{'CURL_MAKETGZ_VERSION'};
}