Skip to content

Commit d4233da

Browse files
authored
Use welcoming language (#8)
1 parent dd9aca3 commit d4233da

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

docker/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ services:
2222
- CAP_NET_RAW
2323
- CAP_NET_BIND_SERVICE
2424

25-
sanity:
25+
soundness:
2626
<<: *common
27-
command: /bin/bash -xcl "./scripts/sanity.sh"
27+
command: /bin/bash -xcl "./scripts/soundness.sh"
2828

2929
unit-tests:
3030
<<: *common

scripts/sanity.sh renamed to scripts/soundness.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,24 @@ else
3333
printf "\033[0;32mokay.\033[0m\n"
3434
fi
3535

36+
printf "=> Checking for unacceptable language... "
37+
# This greps for unacceptable terminology. The square bracket[s] are so that
38+
# "git grep" doesn't find the lines that greps :).
39+
unacceptable_terms=(
40+
-e blacklis[t]
41+
-e whitelis[t]
42+
-e slav[e]
43+
-e sanit[y]
44+
)
45+
if git grep --color=never -i "${unacceptable_terms[@]}" > /dev/null; then
46+
printf "\033[0;31mUnacceptable language found.\033[0m\n"
47+
git grep -i "${unacceptable_terms[@]}"
48+
exit 1
49+
fi
50+
printf "\033[0;32mokay.\033[0m\n"
3651

3752
printf "=> Checking license headers\n"
38-
tmp=$(mktemp /tmp/.swift-http-structured-headers-sanity_XXXXXX)
53+
tmp=$(mktemp /tmp/.swift-http-structured-headers-soundness_XXXXXX)
3954

4055
for language in swift-or-c bash dtrace; do
4156
printf " * $language... "

0 commit comments

Comments
 (0)