on master help sign in
Add a CI that fails on trailing spaces in code
567c3bbRanjeet Kumar Ranjan
.circleci/config.yml+4−2
@@ -388,7 +388,9 @@ jobs:
388 HLINT_OPTIONS: lint --cpp-include=src --cpp-include=test
388 HLINT_OPTIONS: lint --cpp-include=src --cpp-include=test
389 HLINT_TARGETS: src test benchmark
389 HLINT_TARGETS: src test benchmark
390 command: |
390 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
392 - *save
394 - *save
393
395
394workflows:
396workflows:
@@ -414,4 +416,4 @@ workflows:
414 #- coveralls-ghc-8_10_2:
416 #- coveralls-ghc-8_10_2:
415 # name: GHC 8.10.2 + inspection + coverage + Werror
417 # name: GHC 8.10.2 + inspection + coverage + Werror
416 - hlint-src:
418 - hlint-src:
417− name: Hlint src
419+ name: Hlint src + Trailing Spaces