File tree 2 files changed +19
-3
lines changed
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ services:
22
22
- CAP_NET_RAW
23
23
- CAP_NET_BIND_SERVICE
24
24
25
- sanity :
25
+ soundness :
26
26
<< : *common
27
- command : /bin/bash -xcl "./scripts/sanity .sh"
27
+ command : /bin/bash -xcl "./scripts/soundness .sh"
28
28
29
29
test :
30
30
<< : *common
Original file line number Diff line number Diff line change 33
33
printf " \033[0;32mokay.\033[0m\n"
34
34
fi
35
35
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"
51
+
36
52
printf " => Checking format... "
37
53
FIRST_OUT=" $( git status --porcelain) "
38
54
swiftformat . > /dev/null 2>&1
46
62
fi
47
63
48
64
printf " => Checking license headers\n"
49
- tmp=$( mktemp /tmp/.async-http-client-sanity_XXXXXX )
65
+ tmp=$( mktemp /tmp/.async-http-client-soundness_XXXXXX )
50
66
51
67
for language in swift-or-c bash dtrace; do
52
68
printf " * $language ... "
You can’t perform that action at this time.
0 commit comments