Merge pull request #155 from deathmaz/feature/htmlhint-args

Added options variable for htmlhint
This commit is contained in:
w0rp
2016-10-30 09:21:55 +00:00
committed by GitHub
2 changed files with 17 additions and 2 deletions
+5 -2
View File
@@ -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',
\})