Skip to content

Commit

Permalink
Add option flycheck-hlint-args
Browse files Browse the repository at this point in the history
Closes GH-713, closes GH-762.
  • Loading branch information
mrkkrp authored and swsnr committed Oct 19, 2015
1 parent 7bde3b2 commit bffb7ec
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mailmap
Expand Up @@ -4,6 +4,7 @@ Biao Xie <423300@gmail.com>
Bozhidar Batsov <bozhidar@batsov.com> <bozhidar@tradeo.com>
Cristian Capdevila <capdevc@defvar.org>
Mark Hellewell <mark.hellewell@icloud.com>
Mark Karpov <markkarpov@opmbx.org>
Peter Vasil <mail@petervasil.net>
Sebastian Wiesner <swiesner@lunaryorn.com> <lunaryorn@gmail.com>
Senda Akiha <senda.akiha@gmail.com>
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -16,6 +16,8 @@ master (in development)
before execution [GH-629] [GH-752]
- Add `flycheck-executable-find` to customise how Flycheck searches
executables [GH-752]
- Add `flycheck-hlint-args` to pass additional arguments to hlint [GH-713]
[GH-762]

- Improvements:

Expand Down
1 change: 1 addition & 0 deletions CREDITS.md
Expand Up @@ -34,6 +34,7 @@ substantial code to Flycheck:
- [Marcus Majewski](https://github.com/hekto)
- [Marian Schubert](https://github.com/maio)
- [Mario Rodas](https://github.com/marsam)
- [Mark Karpov](https://github.com/mrkkrp)
- [Mark Hellewell](https://github.com/markhellewell)
- [Matthias Dahl](https://github.com/BinaryKhaos)
- [Miro Bezjak](https://github.com/mbezjak)
Expand Down
3 changes: 3 additions & 0 deletions doc/languages.texi
Expand Up @@ -362,6 +362,9 @@ and @flyc{haskell-hlint} (style checker with
following options:

@table @asis
@flycoption flycheck-hlint-args
A list of additional arguments for Hlint.

@flycoption flycheck-hlint-language-extensions
Extensions list.

Expand Down
4 changes: 4 additions & 0 deletions flycheck.el
Expand Up @@ -6666,6 +6666,9 @@ See URL `http://www.haskell.org/ghc/'."
(flycheck-def-config-file-var flycheck-hlintrc haskell-hlint "HLint.hs"
:safe #'stringp)

(flycheck-def-args-var flycheck-hlint-args haskell-hlint
:package-version '(flycheck . "0.25"))

(flycheck-def-option-var flycheck-hlint-language-extensions
nil haskell-hlint
"Extensions list to enable for hlint.
Expand Down Expand Up @@ -6714,6 +6717,7 @@ See URL `https://github.com/ndmitchell/hlint'."
(option-list "-i=" flycheck-hlint-ignore-rules concat)
(option-list "-h" flycheck-hlint-hint-packages concat)
(config-file "-h" flycheck-hlintrc)
(eval flycheck-hlint-args)
source-inplace)
:error-patterns
((warning line-start
Expand Down

0 comments on commit bffb7ec

Please sign in to comment.