summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2016-10-30 09:21:55 +0000
committerGitHub <noreply@github.com>2016-10-30 09:21:55 +0000
commitc4ab4855b798a45e36518bde0e132e10313084b2 (patch)
tree3a3b15c64a94011b691e498545760cabfc49ecf7 /ale_linters
parente9bbbbdf3ee08b6f0bc681f0e16caf08106a6a0e (diff)
parent8bee64d1b7c59b8f9d49b77222fe43fc0ad01484 (diff)
downloadale-c4ab4855b798a45e36518bde0e132e10313084b2.zip
Merge pull request #155 from deathmaz/feature/htmlhint-args
Added options variable for htmlhint
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/html/htmlhint.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim
index 649c523a..59c2ed20 100644
--- a/ale_linters/html/htmlhint.vim
+++ b/ale_linters/html/htmlhint.vim
@@ -1,9 +1,12 @@
-" Author: KabbAmine <amine.kabb@gmail.com>
+" Author: KabbAmine <amine.kabb@gmail.com>, deathmaz <00maz1987@gmail.com>
" Description: HTMLHint for checking html files
+" CLI options
+let g:ale_html_htmlhint_options = get(g:, 'ale_html_htmlhint_options', '--format=unix')
+
call ale#linter#Define('html', {
\ 'name': 'htmlhint',
\ 'executable': 'htmlhint',
-\ 'command': 'htmlhint --format=unix stdin',
+\ 'command': 'htmlhint ' . g:ale_html_htmlhint_options . ' stdin',
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
\})