5 if [[ $
(uname
-s) != "Linux" ]]
7 PROCS
=$
(sysctl
-n hw.logicalcpu
)
12 if which fourmolu
> /dev
/null
; then
13 find Cabal Cabal-syntax cabal-install
-name '*.hs' -print0 \
14 ! -path Cabal-syntax
/src
/Distribution
/Fields
/Lexer.hs \
15 ! -path Cabal-syntax
/src
/Distribution
/SPDX
/LicenseExceptionId.hs \
16 ! -path Cabal-syntax
/src
/Distribution
/SPDX
/LicenseId.hs \
17 ! -path Cabal
/src
/Distribution
/Simple
/Build
/Macros
/Z.hs \
18 ! -path Cabal
/src
/Distribution
/Simple
/Build
/PathsModule
/Z.hs \
19 |
xargs -P "${PROCS}" -I {} fourmolu
-q --mode check
{}
21 echo "Fourmolu not found, aborting."