Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rnjtranjan committed Nov 8, 2021
1 parent 8ba093a commit 23534c8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,15 @@ jobs:
command: |
bash -c "$PACKCHECK $BUILD" || exit 1
count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l)
count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; print FILENAME; } }' *.hs | tee /dev/tty | wc -l)
exit $((count+count2))
if $count > 0
then exit 1
fi
git diff > tmp_len
count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; } }' tmp_len | tee /dev/tty | wc -l)
rm tmp_len
if $count2 > 0
then exit 2
fi
- *save

workflows:
Expand Down

0 comments on commit 23534c8

Please sign in to comment.