tidy-up: miscellaneous (cont.)

- examples: replace magic numbers with `sizeof()`.
- typos: drop rules no longer needed after excluding tests/data.
- typos: move an exception inline.
- alpha-sort lists.
- fix indentation, whitespace.

Closes #18898
This commit is contained in:
Viktor Szakats 2025-09-29 12:36:14 +02:00
parent b12da22db1
commit 6f0e212f6e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
17 changed files with 29 additions and 30 deletions

View file

@ -9,13 +9,10 @@ extend-ignore-identifiers-re = [
"^(ECT0|ECT1|HELO|htpt|PASE)$",
"^[A-Za-z0-9_-]*(EDE|GOST)[A-Z0-9_-]*$", # ciphers
"^0x[0-9a-fA-F]+FUL$", # unsigned long hex literals ending with 'F'
"^[0-9a-zA-Z+]{64,}$", # possibly base64
"^(Januar|eyeballers|HELO_smtp|kno22|MkTypLibCompatible|optin|passin|perfec|__SecURE|SMTP_HELO|v_alue)$",
"^(clen|req_clen|smtp_perform_helo|smtp_state_helo_resp|_stati64)$",
"^Tru64$",
"^(eyeballers|HELO_smtp|optin|passin|perfec|SMTP_HELO)$",
"^(clen|req_clen|smtp_perform_helo|smtp_state_helo_resp|Tru64|_stati64)$",
"secur32",
# this should be limited to tests/http/*. Short for secure proxy.
"proxys",
"proxys", # this should be limited to tests/http/*. Short for secure proxy.
]
extend-ignore-re = [
@ -28,8 +25,8 @@ extend-exclude = [
".github/scripts/spellcheck.words",
"docs/THANKS",
"packages/*",
"scripts/wcurl",
"projects/Windows/tmpl/curl.vcxproj",
"projects/Windows/tmpl/libcurl.vcxproj",
"scripts/wcurl",
"tests/data/test*",
]