badwords: dedupe invocation into a runnable script

Also:
- GHA/checksrc: merge two badwords CI jobs into a single one.
- re-add the more common bitness entries.

Closes #20874
This commit is contained in:
Viktor Szakats 2026-03-10 01:42:40 +01:00
parent d4a06862cb
commit 3b43b9080d
No known key found for this signature in database
6 changed files with 26 additions and 21 deletions

View file

@ -27,7 +27,7 @@ EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl \
cdall cd2cd managen dmaketgz maketgz release-tools.sh verify-release \
cmakelint.sh mdlinkcheck CMakeLists.txt perlcheck.sh pythonlint.sh \
spacecheck.pl randdisable wcurl top-complexity extract-unit-protos \
.checksrc badwords badwords.ok badwords.txt
.checksrc badwords badwords-all badwords.ok badwords.txt
dist_bin_SCRIPTS = wcurl

12
scripts/badwords-all Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
set -eu
cd "$(dirname "${0}")"/..
# we allow some extra in source code
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

View file

@ -75,11 +75,18 @@ user name:username
user names:usernames
pass phrase:passphrase
will:rewrite to present tense
32 bit:32-bit
7 bit:7-bit
8 bit:8-bit
16 bit:16-bit
24 bit:24-bit
32 bit:32-bit
56 bit:56-bit
63 bit:63-bit
64 bit:64-bit
32-bits:32 bits
128 bit:128-bit
8-bits:8 bits
16-bits:16 bits
32-bits:32 bits
64-bits:64 bits
very:rephrase using an alternative word
just:rephrase using an alternative word