Commit Graph

4 Commits

Author SHA1 Message Date
Andy
bd1d0a1675
Stylish Haskell: CPP parse issues (#3199)
* Stylish Haskell: Parse issues

* CPP language extension
* Manually fix some files with duplication

* Pre-commit: Fix ignored files

It looks like `ExactPrint` was ignored before, but since absolute paths
are used and weren't adapted it wasn't ignored afterwards.
2022-09-19 20:31:37 +00:00
Nick Suchecki
411db02883
Add pre-commit hook for cleaning up mixed-line endings (#2679)
* Update pre-commit hook to include changing line endings

* Fix non-lf lines

* Check pre-commit excludes files

* Revert "Check pre-commit excludes files"

This reverts commit 7b9670f863.

* Actually add the exclude to contributing docs

* Fix merge failure with previous patch

* Inadvertently overwrote merge

* Add LF option for stylish-haskell and pre-commit file

Co-authored-by: Anton Latukha <anton.latukha@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-04 14:50:18 +00:00
Junyoung/Clare Jang
9d21805dc0
Patch pre-commit-hook to work with GHCIDE/hls-plugin-api codes (#1418)
* Fix pre-commit-hook to work with GHCIDE codes

pre-commit does not load stylish-haskell configuration in
subdirectories. As an imperfect workaround, this commit unifies
all stylish-haskell into a single top-level config.

* Update CONTRIBUTING.md

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-02-22 00:14:14 +00:00
Junyoung/Clare Jang
c95b0766fe
Add a pre commit hook for code formatting (#1384)
* Add pre-commit-hook

* Update CONTRIBUTING.md

* Reduce stylish-haskell configs
2021-02-18 06:26:08 +00:00