badwords: move into ./scripts, speed up

- 'badwords' is now a target in Makefile.am

- change badwords.txt to specify plain "words" instead of regexes so the
  script can build single regexes when scanning, which makes the script
  perform much faster (~6 times faster)

Closes #20869
This commit is contained in:
Daniel Stenberg 2026-03-09 13:32:14 +01:00
parent 248dd9e55f
commit 713287188e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 123 additions and 78 deletions

View file

@ -181,3 +181,7 @@ tidy:
clean-local:
(cd tests && $(MAKE) clean)
badwords:
grep -Ev '^(will:|But=|So=|And=| url=)' ./scripts/badwords.txt | ./scripts/badwords -a src lib include docs/examples
./scripts/badwords -w ./scripts/badwords.ok '**.md' projects/OS400/README.OS400 < ./scripts/badwords.txt