Added optoins variable for htmlhint
This commit is contained in:
parent
c8821fc049
commit
5b56103c69
@ -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
|
" Description: HTMLHint for checking html files
|
||||||
|
|
||||||
|
" CLI options
|
||||||
|
let g:ale_html_htmlhint_options = get(g:, 'ale_html_htmlhint_options', '--format=unix stdin')
|
||||||
|
|
||||||
call ale#linter#Define('html', {
|
call ale#linter#Define('html', {
|
||||||
\ 'name': 'htmlhint',
|
\ 'name': 'htmlhint',
|
||||||
\ 'executable': 'htmlhint',
|
\ 'executable': 'htmlhint',
|
||||||
\ 'command': 'htmlhint --format=unix stdin',
|
\ 'command': 'htmlhint ' . g:ale_html_htmlhint_options,
|
||||||
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
|
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
|
||||||
\})
|
\})
|
||||||
|
11
doc/ale.txt
11
doc/ale.txt
@ -549,6 +549,17 @@ g:ale_cpp_cppcheck_options *g:ale_cpp_cppcheck_options
|
|||||||
This variable can be changed to modify flags given to cppcheck.
|
This variable can be changed to modify flags given to cppcheck.
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
4.14. htmlhint *ale-linter-options-htmlhint*
|
||||||
|
|
||||||
|
g:ale_html_htmlhint_options *g:ale_html_htmlhint_options*
|
||||||
|
|
||||||
|
Type: |String|
|
||||||
|
Default: `'--format=unix stdin'`
|
||||||
|
|
||||||
|
This variable can be changed to modify flags given to HTMLHint.
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
5. Commands/Keybinds *ale-commands*
|
5. Commands/Keybinds *ale-commands*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user