on master help sign in
Add a CI that fails on trailing spaces in code
commit567c3bb87d239340e6ee89e9646c516ec6900d8d authorRanjeet Kumar Ranjan <ranjeetr@composewell.com> dateThu 26 Aug 2021, 14:15 (5 years ago) parent87f12c7
1 file changed+4−2
.circleci/config.yml+4−2
.circleci/config.yml+4−2
@@ -388,7 +388,9 @@ jobs:
388388 HLINT_OPTIONS: lint --cpp-include=src --cpp-include=test
389389 HLINT_TARGETS: src test benchmark
390390 command: |
391− bash -c "$PACKCHECK $BUILD"
391+ bash -c "$PACKCHECK $BUILD" || exit 1
392+ count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l)
393+ exit $count
392394 - *save
393395
394396workflows:
@@ -414,4 +416,4 @@ workflows:
414416 #- coveralls-ghc-8_10_2:
415417 # name: GHC 8.10.2 + inspection + coverage + Werror
416418 - hlint-src:
417− name: Hlint src
419+ name: Hlint src + Trailing Spaces