mirror of
https://github.com/curl/curl.git
synced 2026-05-16 23:26:21 +03:00
tidy-up: miscellaneous
- avoid "will" in builds scripts, scripts folder, curl_easy_ssls_export.md,
and few other files.
- badwords: add "initialise", "nul terminated", "thread safety" and
variations.
- prefer "null-terminat", where missing (two places).
- fix "null-terminat*" missing dash.
- hostip: merge two `#if` blocks.
- tool_doswin: fix comment
Spotted by GitHub Code Quality
Follow-up to 9a2663322c #17572
- fix stray spaces and newlines.
Closes #21638
This commit is contained in:
parent
47f411c6d8
commit
614b94eecc
64 changed files with 203 additions and 213 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
# bad[:=]correct
|
||||
#
|
||||
# If separator is '=', the string will be compared case sensitively.
|
||||
# If separator is '=', the string is compared case sensitively.
|
||||
# If separator is ':', the check is done case insensitively.
|
||||
#
|
||||
# To add white listed uses of bad words that are removed before checking for
|
||||
|
|
|
|||
|
|
@ -17,10 +17,18 @@ tool-chain:toolchain
|
|||
wild-card:wildcard
|
||||
wild card:wildcard
|
||||
thread safe:thread-safe
|
||||
thread safety:thread-safety
|
||||
thread unsafe:thread-unsafe
|
||||
multi thread:multi-thread
|
||||
nul terminate:null-terminate
|
||||
null terminate:null-terminate
|
||||
zero terminate:null-terminate
|
||||
nul terminated:null-terminated
|
||||
null terminated:null-terminated
|
||||
zero terminated:null-terminated
|
||||
nul terminator:null-terminator
|
||||
null terminator:null-terminator
|
||||
zero terminator:null-terminator
|
||||
it's:it is
|
||||
aren't:are not
|
||||
can't:cannot
|
||||
|
|
@ -96,6 +104,7 @@ will:rewrite to present tense
|
|||
16-bits:16 bits
|
||||
32-bits:32 bits
|
||||
64-bits:64 bits
|
||||
initialise:initialize
|
||||
very:rephrase using an alternative word
|
||||
just:rephrase using an alternative word
|
||||
simply:rephrase using an alternative word
|
||||
|
|
|
|||
|
|
@ -1199,7 +1199,7 @@ sub scanfile {
|
|||
# A rather more interesting, and correct, check would be to not test
|
||||
# only locally committed files but inspect all files wrt the year of
|
||||
# their last commit. Removing the `git rev-list origin/master..HEAD`
|
||||
# condition below will enforce copyright year checks against the year
|
||||
# condition below enforces copyright year checks against the year
|
||||
# the file was last committed (and thus edited to some degree).
|
||||
my $commityear = undef;
|
||||
@copyright = sort {$$b{year} cmp $$a{year}} @copyright;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
# https://cmake-format.readthedocs.io/en/latest/lint-usage.html
|
||||
# https://github.com/cheshirekow/cmake_format/blob/master/cmakelang/configuration.py
|
||||
|
||||
# Run cmakelint on the curl source code. It will check all files given on the
|
||||
# Run cmakelint on the curl source code. It checks all files given on the
|
||||
# command-line, or else all relevant files in git, or if not in a git
|
||||
# repository, all files starting in the tree rooted in the current directory.
|
||||
#
|
||||
|
|
@ -36,8 +36,8 @@
|
|||
#
|
||||
# The xargs invocation is portable, but does not preserve spaces in filenames.
|
||||
# If such a file is ever added, then this can be portably fixed by switching to
|
||||
# "xargs -I{}" and appending {} to the end of the xargs arguments (which will
|
||||
# call cmakelint once per file) or by using the GNU extension "xargs -d'\n'".
|
||||
# "xargs -I{}" and appending {} to the end of the xargs arguments (which calls
|
||||
# cmakelint once per file) or by using the GNU extension "xargs -d'\n'".
|
||||
|
||||
set -eu
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ sub warning_message() {
|
|||
print " 3. certdata.txt file format may change, lag time to update this script\n";
|
||||
print " 4. Generally unwise to blindly trust CAs without manual review & verification\n";
|
||||
print " 5. Mozilla apps use additional security checks are not represented in certdata\n";
|
||||
print " 6. Use of this script will make a security engineer grind his teeth and\n";
|
||||
print " 6. Use of this script makes a security engineer grind his teeth and\n";
|
||||
print " swear at you. ;)\n";
|
||||
exit;
|
||||
} else { # Short Form Warning
|
||||
|
|
@ -228,7 +228,7 @@ sub parse_csv_param($$@) {
|
|||
|
||||
if(scalar(@invalid) > 0) {
|
||||
# Tell the user which parameters were invalid and print the standard help
|
||||
# message which will exit
|
||||
# message which also exits
|
||||
print "Error: Invalid ", $description, scalar(@invalid) == 1 ? ": " : "s: ", join(", ", map { "\"$_\"" } @invalid), "\n";
|
||||
HELP_MESSAGE();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
# The xargs invocation is portable, but does not preserve spaces in filenames.
|
||||
# If such a file is ever added, then this can be portably fixed by switching to
|
||||
# "xargs -I{}" and appending {} to the end of the xargs arguments (which will
|
||||
# call cmakelint once per file) or by using the GNU extension "xargs -d'\n'".
|
||||
# "xargs -I{}" and appending {} to the end of the xargs arguments (which calls
|
||||
# cmakelint once per file) or by using the GNU extension "xargs -d'\n'".
|
||||
|
||||
set -eu
|
||||
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@
|
|||
# $ ./scripts/release-notes.pl
|
||||
#
|
||||
# 2. Edit RELEASE-NOTES and remove all entries that do not belong. Unused
|
||||
# references below will be cleaned up in the next step. Make sure to move
|
||||
# "changes" up to the changes section. All entries will by default be listed
|
||||
# references below are cleaned up in the next step. Make sure to move
|
||||
# "changes" up to the changes section. All entries are by default listed
|
||||
# under bug-fixes as this script cannot know where to put them.
|
||||
#
|
||||
# 3. Run the cleanup script and let it sort the entries and remove unused
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue