File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -78,4 +78,3 @@ public struct APIResponse: Encodable {
78
78
}
79
79
}
80
80
}
81
-
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 @@ -32,8 +32,24 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
32
32
33
33
function replace_acceptable_years() {
34
34
# this needs to replace all acceptable forms with 'YEARS'
35
- sed -e ' s/2020/YEARS/'
35
+ sed -e ' s/2020-2021/YEARS/'
36
+ -e ' s/2020/YEARS/' -e ' s/2021/YEARS/'
36
37
}
38
+ printf " => Checking for unacceptable language... "
39
+ # This greps for unacceptable terminology. The square bracket[s] are so that
40
+ # "git grep" doesn't find the lines that greps :).
41
+ unacceptable_terms=(
42
+ -e blacklis[t]
43
+ -e whitelis[t]
44
+ -e slav[e]
45
+ -e sanit[y]
46
+ )
47
+ if git grep --color=never -i " ${unacceptable_terms[@]} " > /dev/null; then
48
+ printf " \033[0;31mUnacceptable language found.\033[0m\n"
49
+ git grep -i " ${unacceptable_terms[@]} "
50
+ exit 1
51
+ fi
52
+ printf " \033[0;32mokay.\033[0m\n"
37
53
38
54
printf " => Checking format... "
39
55
FIRST_OUT=" $( git status --porcelain) "
48
64
fi
49
65
50
66
printf " => Checking license headers for SwiftTencentSCFRuntime\n"
51
- tmp=$( mktemp /tmp/.swift-aws-lambda-sanity_XXXXXX )
67
+ tmp=$( mktemp /tmp/.swift-tencent-scf-soundness_XXXXXX )
52
68
53
69
for language in swift-or-c bash dtrace; do
54
70
printf " * $language ... "
You can’t perform that action at this time.
0 commit comments