Use welcoming language (#8)

This commit is contained in:
Fabian Fett authored and GitHub committed 2021-01-25 09:46:02 +00:00
1 parent dd9aca3533
commit d4233da1ed
2 files changed
+18 -3

No files matched your search

+2 -2
View File
@@ -22,9 +22,9 @@ services:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
sanity:
soundness:
<<: *common
command: /bin/bash -xcl "./scripts/sanity.sh"
command: /bin/bash -xcl "./scripts/soundness.sh"
unit-tests:
<<: *common
+16 -1
View File
@@ -33,9 +33,24 @@ else
printf "\033[0;32mokay.\033[0m\n"
fi
printf "=> Checking for unacceptable language... "
# This greps for unacceptable terminology. The square bracket[s] are so that
# "git grep" doesn't find the lines that greps :).
unacceptable_terms=(
-e blacklis[t]
-e whitelis[t]
-e slav[e]
-e sanit[y]
)
if git grep --color=never -i "${unacceptable_terms[@]}" > /dev/null; then
printf "\033[0;31mUnacceptable language found.\033[0m\n"
git grep -i "${unacceptable_terms[@]}"
exit 1
fi
printf "\033[0;32mokay.\033[0m\n"
printf "=> Checking license headers\n"
tmp=$(mktemp /tmp/.swift-http-structured-headers-sanity_XXXXXX)
tmp=$(mktemp /tmp/.swift-http-structured-headers-soundness_XXXXXX)
for language in swift-or-c bash dtrace; do
printf " * $language... "