We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba093a commit 23534c8Copy full SHA for 23534c8
1 file changed
.circleci/config.yml
@@ -390,8 +390,15 @@ jobs:
390
command: |
391
bash -c "$PACKCHECK $BUILD" || exit 1
392
count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l)
393
- count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; print FILENAME; } }' *.hs | tee /dev/tty | wc -l)
394
- exit $((count+count2))
+ if $count > 0
+ then exit 1
395
+ fi
396
+ git diff > tmp_len
397
+ count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; } }' tmp_len | tee /dev/tty | wc -l)
398
+ rm tmp_len
399
+ if $count2 > 0
400
+ then exit 2
401
402
- *save
403
404
workflows:
0 commit comments