Fix typo in "semicolon" spelling and remove stray tab character.

Closes https://github.com/curl/curl/pull/2498
This commit is contained in:
Daniel Gustafsson 2018-04-15 00:47:36 +02:00 коммит произвёл Jay Satiro
Родитель 94400f32e9
Коммит 9b96e0bb44
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -69,7 +69,7 @@ warnings are:
- `SPACEBEFOREPAREN`: there was a space before an open parenthesis, `if (`, - `SPACEBEFOREPAREN`: there was a space before an open parenthesis, `if (`,
where one was not expected where one was not expected
- `SPACESEMILCOLON`: there was a space before semicolon, ` ;`. - `SPACESEMICOLON`: there was a space before semicolon, ` ;`.
- `TABS`: TAB characters are not allowed! - `TABS`: TAB characters are not allowed!

Просмотреть файл

@ -47,7 +47,7 @@ my %warnings = (
'COMMANOSPACE' => 'comma without following space', 'COMMANOSPACE' => 'comma without following space',
'BRACEELSE' => '} else on the same line', 'BRACEELSE' => '} else on the same line',
'PARENBRACE' => '){ without sufficient space', 'PARENBRACE' => '){ without sufficient space',
'SPACESEMILCOLON' => 'space before semicolon', 'SPACESEMICOLON' => 'space before semicolon',
'BANNEDFUNC' => 'a banned function was used', 'BANNEDFUNC' => 'a banned function was used',
'FOPENMODE' => 'fopen needs a macro for the mode string', 'FOPENMODE' => 'fopen needs a macro for the mode string',
'BRACEPOS' => 'wrong position for an open brace', 'BRACEPOS' => 'wrong position for an open brace',
@ -462,7 +462,7 @@ sub scanfile {
# check for space before the semicolon last in a line # check for space before the semicolon last in a line
if($l =~ /^(.*[^ ].*) ;$/) { if($l =~ /^(.*[^ ].*) ;$/) {
checkwarn("SPACESEMILCOLON", checkwarn("SPACESEMICOLON",
$line, length($1), $file, $ol, "space before last semicolon"); $line, length($1), $file, $ol, "space before last semicolon");
} }
@ -573,7 +573,7 @@ sub scanfile {
if($nostr =~ /(.*)\;[a-z0-9]/i) { if($nostr =~ /(.*)\;[a-z0-9]/i) {
checkwarn("SEMINOSPACE", checkwarn("SEMINOSPACE",
$line, length($1)+1, $file, $ol, $line, length($1)+1, $file, $ol,
"no space after semilcolon"); "no space after semicolon");
} }
# check for more than one consecutive space before open brace or # check for more than one consecutive space before open brace or