File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -511,3 +511,6 @@ language_extensions:
511511# We run stylish from the root of the repo which is a project so this flag
512512# doesn't apply
513513cabal : false
514+
515+ # Return an exit failure on format.
516+ exit_code : error_on_format
Original file line number Diff line number Diff line change 1818# Check Haskell files with stylish-haskell
1919echo " Formatting Haskell source files with stylish-haskell version ${stylish_haskell_required_version} "
2020# shellcheck disable=SC2016
21- if ! git ls-files --exclude-standard --no-deleted --deduplicate ' *.hs' | xargs -L 1 sh -c ' echo "$0" && stylish-haskell -i -c .stylish-haskell.yaml "$0" ' ; then
21+ if ! git ls-files --exclude-standard --no-deleted --deduplicate ' *.hs' | xargs -L 50 stylish-haskell -i -c .stylish-haskell.yaml; then
2222 exit 1
2323fi
You can’t perform that action at this time.
0 commit comments