We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c0046 commit 4276432Copy full SHA for 4276432
1 file changed
bin/check_formatting.sh
@@ -31,7 +31,10 @@ done
31
echo "Checking for trailing whitespace"
32
# git grep returns a 0 status if there is a match
33
# so we negate the result for consistency
34
-! git grep --line-number ' $'
+# 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'
38
GREP_EXIT_CODE="$?"
39
40
if [ "$FORMAT_EXIT_CODE" -ne 0 -o "$GREP_EXIT_CODE" -ne 0 ]
0 commit comments