Skip to content

Commit

Permalink
check-stylish: added ignore file
Browse files Browse the repository at this point in the history
`Ouroboros.Network.PeerSelection.Governor.Type` excluded from
`check-stylish`, to preserve large export of record names in pattern
synonyms.
  • Loading branch information
coot committed Apr 16, 2024
1 parent ef28001 commit f66bdcb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions scripts/ci/check-stylish-ignore
@@ -0,0 +1,6 @@
*/Setup.hs
ouroboros-network/src/Ouroboros/Network/PeerSelection/Governor/Types.hs
network-mux/src/Network/Mux/TCPInfo.hs
network-mux/src/Network/Mux/Bearer.hs
network-mux/src/Network/Mux/Bearer/Pipe.hs
network-mux/src/Network/Mux/Channel.hs
14 changes: 7 additions & 7 deletions scripts/ci/check-stylish.sh
Expand Up @@ -4,10 +4,10 @@ set -euo pipefail

export LC_ALL=C.UTF-8
# TODO CPP pragmas in export lists are not supported by stylish-haskell
fd . './network-mux' -e hs -E Setup.hs -E TCPInfo.hs -E Pipe.hs -E Channel.hs -E Bearer.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-api' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-framework' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-mock' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-protocols' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './cardano-client' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './network-mux' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-api' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-framework' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-mock' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network-protocols' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './ouroboros-network' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i
fd . './cardano-client' -e hs --ignore-file ./scripts/ci/check-stylish-ignore -X stylish-haskell -c .stylish-haskell-network.yaml -i

0 comments on commit f66bdcb

Please sign in to comment.