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
commit c4ab4855b7
2 changed files with 17 additions and 2 deletions

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',
\})

View File

@ -23,6 +23,7 @@ CONTENTS *ale-contents*
4.11. luacheck..............................|ale-linter-options-luacheck|
4.12. c-cppcheck............................|ale-linter-options-c-cppcheck|
4.13. cpp-cppcheck..........................|ale-linter-options-cpp-cppcheck|
4.14. htmlhint..............................|ale-linter-options-htmlhint|
5. Commands/Keybinds..........................|ale-commands|
6. API........................................|ale-api|
7. Special Thanks.............................|ale-special-thanks|
@ -549,6 +550,17 @@ g:ale_cpp_cppcheck_options *g:ale_cpp_cppcheck_options
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'`
This variable can be changed to modify flags given to HTMLHint.
===============================================================================
5. Commands/Keybinds *ale-commands*