-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8950 from Kleidukos/8936-formatting-codebase
- Loading branch information
Showing
455 changed files
with
85,517 additions
and
69,157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
if [[ $(uname -s) != "Linux" ]] | ||
then | ||
PROCS=$(sysctl -n hw.logicalcpu) | ||
else | ||
PROCS=$(nproc) | ||
fi | ||
|
||
if which fourmolu > /dev/null ; then | ||
find Cabal Cabal-syntax cabal-install -name '*.hs' -print0 \ | ||
! -path Cabal-syntax/src/Distribution/Fields/Lexer.hs \ | ||
! -path Cabal-syntax/src/Distribution/SPDX/LicenseExceptionId.hs \ | ||
! -path Cabal-syntax/src/Distribution/SPDX/LicenseId.hs \ | ||
! -path Cabal/src/Distribution/Simple/Build/Macros/Z.hs \ | ||
! -path Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs \ | ||
| xargs -P "${PROCS}" -I {} fourmolu -q --mode check {} | ||
else | ||
echo "Fourmolu not found, aborting." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Linting | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: ["master"] | ||
|
||
jobs: | ||
fourmolu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: haskell-actions/run-fourmolu@v8 | ||
with: | ||
pattern: | | ||
Cabal/**/*.hs | ||
Cabal-syntax/**/*.hs | ||
Cabal-install/**/*.hs | ||
!Cabal-syntax/src/Distribution/Fields/Lexer.hs | ||
!Cabal-syntax/src/Distribution/SPDX/LicenseExceptionId.hs | ||
!Cabal-syntax/src/Distribution/SPDX/LicenseId.hs | ||
!Cabal/src/Distribution/Simple/Build/Macros/Z.hs | ||
!Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import Distribution.Simple | ||
|
||
main :: IO () | ||
main = defaultMain |
Oops, something went wrong.