Skip to content

Commit 86de39c

Browse files
committed
Exclude failing files from pre-commit hook
'stylish-haskell' seems to always fail with a parse error on several files under ghcide/. Excluding these files from the pre-commit hook ensures that this hook can always succeed.
1 parent 26c5821 commit 86de39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/contributing/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ If you don't want to use [nix](https://nixos.org/guides/install-nix.html), you c
187187
"hooks": [
188188
{
189189
"entry": "stylish-haskell --inplace",
190-
"exclude": "(^Setup.hs$|test/testdata/.*$|test/data/.*$|test/manual/lhs/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$|^ghcide/src/Development/IDE/GHC/Compat.hs$|^plugins/hls-splice-plugin/src/Ide/Plugin/Splice.hs$|^ghcide/test/exe/Main.hs$|ghcide/src/Development/IDE/Core/Rules.hs|^hls-test-utils/src/Test/Hls/Util.hs$)",
190+
"exclude": "(^Setup.hs$|test/testdata/.*$|test/data/.*$|test/manual/lhs/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$|^ghcide/src/Development/IDE/GHC/Compat.hs$|^ghcide/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs$|^ghcide/src/Development/IDE/GHC/Compat/Core.hs$|^ghcide/src/Development/IDE/Spans/Pragmas.hs$|^ghcide/src/Development/IDE/LSP/Outline.hs$|^plugins/hls-splice-plugin/src/Ide/Plugin/Splice.hs$|^ghcide/test/exe/Main.hs$|ghcide/src/Development/IDE/Core/Rules.hs|^hls-test-utils/src/Test/Hls/Util.hs$)",
191191
"files": "\\.l?hs$",
192192
"id": "stylish-haskell",
193193
"language": "system",

0 commit comments

Comments
 (0)