branch: elpa/flycheck commit 0f4cce922f187d44ba384928e7d0d55ae872560b Author: Danny Navarro <j...@dannynavarro.net> Commit: GitHub <nore...@github.com>
Update `haskell-hlint` checker to HLint-3.0 (#1809) HLint v3.0 has been recently released. - Now .hlint.yaml is the default configuration file. (I think this was already supported in the latest releases of 2.0). - When there is a suggestion or warning it returns a 1 exit code by default. We have to pass --no-exit-code to avoid it. --- flycheck.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flycheck.el b/flycheck.el index d8cf0b2269..cb1b2173f7 100644 --- a/flycheck.el +++ b/flycheck.el @@ -9736,7 +9736,7 @@ See URL `https://www.haskell.org/ghc/'." :next-checkers ((warning . haskell-hlint)) :working-directory flycheck-haskell--ghc-find-default-directory) -(flycheck-def-config-file-var flycheck-hlintrc haskell-hlint "HLint.hs") +(flycheck-def-config-file-var flycheck-hlintrc haskell-hlint ".hlint.yaml") (flycheck-def-args-var flycheck-hlint-args haskell-hlint :package-version '(flycheck . "0.25")) @@ -9778,6 +9778,7 @@ string is a default hint package (e.g. (\"Generalise\" See URL `https://github.com/ndmitchell/hlint'." :command ("hlint" + "--no-exit-code" (option-list "-X" flycheck-hlint-language-extensions concat) (option-list "-i=" flycheck-hlint-ignore-rules concat) (option-list "-h" flycheck-hlint-hint-packages concat)