Skip to content

Commit 2d7d74b

Browse files
committed
Update pre-commit hook to include changing line endings
1 parent ccce756 commit 2d7d74b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/contributing/contributing.md

Lines changed: 12 additions & 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$|^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$)",
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$)",
191191
"files": "\\.l?hs$",
192192
"id": "stylish-haskell",
193193
"language": "system",
@@ -199,6 +199,17 @@ If you don't want to use [nix](https://nixos.org/guides/install-nix.html), you c
199199
}
200200
],
201201
"repo": "local"
202+
},
203+
{
204+
"repo": "https://github.com/pre-commit/pre-commit-hooks",
205+
"rev": "v4.1.0",
206+
"hooks": [
207+
{
208+
"id": "mixed-line-ending",
209+
"args": ["--fix", "lf"]
210+
}
211+
212+
]
202213
}
203214
]
204215
}

0 commit comments

Comments
 (0)