curl/scripts
Daniel Stenberg 6870803187
badwords: only check comments and strings in source code
- when scanning source code, this now only checks source code comments
  and double-quote strings. No more finding bad words as part of code
- this allows the full scan to be done in a single invocation
- detects source code or markdown by file name extension
- moved the whitelist words config into the single `badwords.txt` file,
  no more having them separately (see top of file for syntax)
- all whitelisted words are checked case insensitively now
- removed support for whitelisting words on a specific line number. We
  did not use it and it is too fragile

Removing the actual code from getting scanned made the script take an
additional 0.5 seconds on my machine.

Scanning 1525 files now takes a little under 1.7 seconds for me.

Closes #20909
2026-03-13 08:54:35 +01:00
..
.checksrc REUSE: move copyright headers to .checksrc 2025-10-13 11:54:22 +02:00
badwords badwords: only check comments and strings in source code 2026-03-13 08:54:35 +01:00
badwords-all badwords: only check comments and strings in source code 2026-03-13 08:54:35 +01:00
badwords.txt badwords: only check comments and strings in source code 2026-03-13 08:54:35 +01:00
cd2cd tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cd2nroff tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cdall badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
checksrc-all.pl checksrc-all.pl: skip non-repository files 2026-01-26 16:07:58 +01:00
checksrc.pl badwords: avoid 'simply' 2026-03-10 19:34:06 +01:00
ciconfig.pl tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cijobs.pl tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cmakelint.sh cmake: improve clang-tidy test command-line reproduction 2026-03-06 04:56:33 +01:00
CMakeLists.txt cmake: replace deprecated PERL_FOUND with Perl_FOUND 2025-12-17 17:56:32 +01:00
completion.pl badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
contributors.sh tidy-up: miscellaneous 2026-01-15 13:06:13 +01:00
contrithanks.sh contrithanks.sh: adopt the stricter by: check from contributors.sh 2025-12-20 17:45:15 +01:00
coverage.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
delta delta: fix grep patterns after white space edits 2025-12-30 14:04:10 +01:00
dmaketgz dmaketgz: use --no-cache when building docker image 2024-12-05 15:41:53 +01:00
extract-unit-protos scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
firefox-db2pem.sh tidy-up: miscellaneous 2025-12-12 04:18:48 +01:00
installcheck.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Makefile.am badwords: only check comments and strings in source code 2026-03-13 08:54:35 +01:00
maketgz scripts: use end-of-options marker in find -exec commands 2025-11-10 18:52:29 +01:00
managen tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
mdlinkcheck BUG-BOUNTY.md: minor rephrase to say there is no bug bounty 2026-03-10 17:34:08 +01:00
mk-ca-bundle.pl tidy-up: miscellaneous 2026-03-09 11:35:19 +01:00
mk-unity.pl cmake: add native clang-tidy support for tests, with concatenated sources 2026-02-25 17:28:35 +01:00
nroff2cd scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
perlcheck.sh cmake: match filename suffixes with file content 2025-12-20 11:34:27 +01:00
pythonlint.sh scripts: move the ruff linter command into a script 2025-05-13 16:41:32 -07:00
randdisable spelling: file system 2025-08-22 15:53:41 +02:00
release-notes.pl badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
release-tools.sh badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
schemetable.c lib: separate scheme info from protocol implementation 2026-01-19 23:15:13 +01:00
singleuse.pl tidy-up: merge root packages directory into projects 2026-01-12 23:49:35 +01:00
spacecheck.pl spacecheck: find double newlines in tests/data/test* 2026-03-10 17:44:15 +01:00
top-complexity tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
verify-release verify-release: update to avoid shellcheck warning SC2034 2025-11-10 16:06:48 +01:00
wcurl wcurl: import v2026.01.05 2026-01-06 10:12:31 +01:00