We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1139a18 commit aa5549eCopy full SHA for aa5549e
util/travis/script.sh
@@ -13,11 +13,18 @@ function perform_lint() {
13
files_to_lint="$(find src/ -name '*.cpp' -or -name '*.h' | egrep -v '^src/(gmp|lua|jsoncpp)/')"
14
fi
15
16
+ local errorcount=0
17
local fail=0
18
for f in ${files_to_lint}; do
19
d=$(diff -u "$f" <(${CLANG_FORMAT} "$f") || true)
20
if ! [ -z "$d" ]; then
21
+ ((errorcount++))
22
printf "The file %s is not compliant with the coding style:\n%s\n" "$f" "$d"
23
+ if [ ${errorcount} -gt 50 ]; then
24
+ printf "Too many errors encountered previously, this diff is hidden.\n"
25
+ else
26
+ printf "%s\n" "$d"
27
+ fi
28
# Disable build failure at this moment as we need to have a complete MT source whitelist to check
29
fail=0
30
0 commit comments