Skip to content

Commit 4ac065c

Browse files
committed
ignore problem specs files
1 parent 72c0046 commit 4ac065c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/check_formatting.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ done
3131
echo "Checking for trailing whitespace"
3232
# git grep returns a 0 status if there is a match
3333
# so we negate the result for consistency
34-
! git grep --line-number ' $'
34+
# binaries and files directly copied from exercism/problem-specifications are ignored
35+
! git grep -I --line-number ' $' -- . \
36+
':(exclude,glob)exercises/practice/**/.docs/instructions.md' \
37+
':(exclude,glob)exercises/practice/**/.docs/introduction.md'
3538
GREP_EXIT_CODE="$?"
3639

3740
if [ "$FORMAT_EXIT_CODE" -ne 0 -o "$GREP_EXIT_CODE" -ne 0 ]

0 commit comments

Comments
 (0)