ale/ale_linters/html/htmlhint.vim

13 lines
443 B
VimL
Raw Normal View History

2016-10-27 11:31:49 -04:00
" Author: KabbAmine <amine.kabb@gmail.com>, deathmaz <00maz1987@gmail.com>
2016-10-08 11:01:03 -04:00
" Description: HTMLHint for checking html files
2016-10-27 11:31:49 -04:00
" CLI options
2016-10-28 02:46:17 -04:00
let g:ale_html_htmlhint_options = get(g:, 'ale_html_htmlhint_options', '--format=unix')
2016-10-27 11:31:49 -04:00
call ale#linter#Define('html', {
2016-10-08 11:01:03 -04:00
\ 'name': 'htmlhint',
\ 'executable': 'htmlhint',
2016-10-28 02:46:17 -04:00
\ 'command': 'htmlhint ' . g:ale_html_htmlhint_options . ' stdin',
2016-10-11 10:22:47 -04:00
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
2016-10-08 11:01:03 -04:00
\})