File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494# asv files
9595benchmarks /html /
9696benchmarks /results /
97- .asv
97+ .asv
Original file line number Diff line number Diff line change @@ -14,3 +14,7 @@ authors check:
1414 - MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"')
1515 - if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi
1616 allow_failure : true
17+
18+ check whitespace style :
19+ script : ./check_whitespace
20+ allow_failure : true
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ ! for f in $( git ls-files | grep -v \\ .diff$) ; do
4+ file $f | grep -q ' text' || continue
5+ grep -q ' [[:blank:]]$' $f && echo $f : trailing whitespace
6+ tail -n1 $f | read -r _ || echo $f : no newline at end of file
7+ tail -n1 $f | grep -q ' ^$' && echo $f : empty line at end of file
8+ done | grep . >&2
9+
You can’t perform that action at this time.
0 commit comments