Permalink
Browse files

Make style scanner to ignore blackslashes at line ends

  • Loading branch information...
dahlia committed Oct 29, 2017
1 parent fc45316 commit 7aba04663070ea83f1f665ec6906c15f73e95a24
Showing with 2 additions and 1 deletion.
  1. +2 −1 lint.sh
View
@@ -28,7 +28,8 @@ scan=(stack exec scan --)
scanout="$(mktemp)"
find src test -name '*.hs' -and -not -exec grep -q TemplateHaskell {} \; \
-print0 | \
xargs -0 "${scan[@]}" -t -j false -c false > "$scanout"
xargs -0 "${scan[@]}" -t -j false -c false | \
grep -v 'back slash at line end .may disturb cpp.' || true > "$scanout"
cat "$scanout"
if [[ "$(cat "$scanout")" != "" ]]; then
exit 1

0 comments on commit 7aba046

Please sign in to comment.