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 -cl "./scripts/sanity .sh"
27
+ command : /bin/bash -cl "./scripts/soundness .sh"
28
28
29
29
test :
30
30
<< : *common
Original file line number Diff line number Diff line change @@ -22,6 +22,22 @@ function replace_acceptable_years() {
22
22
sed -e ' s/2017-2018/YEARS/' -e ' s/2017-2020/YEARS/' -e ' s/2019/YEARS/' -e ' s/2020/YEARS/'
23
23
}
24
24
25
+ printf " => Checking for unacceptable language... "
26
+ # This greps for unacceptable terminology. The square bracket[s] are so that
27
+ # "git grep" doesn't find the lines that greps :).
28
+ unacceptable_terms=(
29
+ -e blacklis[t]
30
+ -e whitelis[t]
31
+ -e slav[e]
32
+ -e sanit[y]
33
+ )
34
+ if git grep --color=never -i " ${unacceptable_terms[@]} " > /dev/null; then
35
+ printf " \033[0;31mUnacceptable language found.\033[0m\n"
36
+ git grep -i " ${unacceptable_terms[@]} "
37
+ exit 1
38
+ fi
39
+ printf " \033[0;32mokay.\033[0m\n"
40
+
25
41
printf " => Checking format... "
26
42
FIRST_OUT=" $( git status --porcelain) "
27
43
swiftformat . > /dev/null 2>&1
35
51
fi
36
52
37
53
printf " => Checking license headers\n"
38
- tmp=$( mktemp /tmp/.swift-aws-lambda-sanity_XXXXXX )
54
+ tmp=$( mktemp /tmp/.swift-aws-lambda-soundness_XXXXXX )
39
55
40
56
for language in swift-or-c bash dtrace; do
41
57
printf " * $language ... "
You can’t perform that action at this time.
0 commit comments