From 5b56103c693f96aa1240936434a022bd12ae7743 Mon Sep 17 00:00:00 2001 From: deathmaz <00maz1987@gmail.com> Date: Thu, 27 Oct 2016 18:31:49 +0300 Subject: [PATCH 1/3] Added optoins variable for htmlhint --- ale_linters/html/htmlhint.vim | 7 +++++-- doc/ale.txt | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim index 649c523a..0892a5ae 100644 --- a/ale_linters/html/htmlhint.vim +++ b/ale_linters/html/htmlhint.vim @@ -1,9 +1,12 @@ -" Author: KabbAmine +" Author: KabbAmine , 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 stdin') + call ale#linter#Define('html', { \ 'name': 'htmlhint', \ 'executable': 'htmlhint', -\ 'command': 'htmlhint --format=unix stdin', +\ 'command': 'htmlhint ' . g:ale_html_htmlhint_options, \ 'callback': 'ale#handlers#HandleUnixFormatAsError', \}) diff --git a/doc/ale.txt b/doc/ale.txt index d05b570a..49cfc8db 100644 --- a/doc/ale.txt +++ b/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. +------------------------------------------------------------------------------- +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* From 9a4645fc7ffa3c3cabccd7c2a432e44276214455 Mon Sep 17 00:00:00 2001 From: deathmaz <00maz1987@gmail.com> Date: Fri, 28 Oct 2016 09:46:17 +0300 Subject: [PATCH 2/3] Default stdin in htmlhint options --- ale_linters/html/htmlhint.vim | 4 ++-- doc/ale.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim index 0892a5ae..59c2ed20 100644 --- a/ale_linters/html/htmlhint.vim +++ b/ale_linters/html/htmlhint.vim @@ -2,11 +2,11 @@ " Description: HTMLHint for checking html files " CLI options -let g:ale_html_htmlhint_options = get(g:, 'ale_html_htmlhint_options', '--format=unix stdin') +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 ' . g:ale_html_htmlhint_options, +\ 'command': 'htmlhint ' . g:ale_html_htmlhint_options . ' stdin', \ 'callback': 'ale#handlers#HandleUnixFormatAsError', \}) diff --git a/doc/ale.txt b/doc/ale.txt index 49cfc8db..16da1794 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -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| From 8bee64d1b7c59b8f9d49b77222fe43fc0ad01484 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 30 Oct 2016 09:21:34 +0000 Subject: [PATCH 3/3] Update the documentation to match the code --- doc/ale.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ale.txt b/doc/ale.txt index 16da1794..40cc2af0 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -556,7 +556,7 @@ g:ale_cpp_cppcheck_options *g:ale_cpp_cppcheck_options g:ale_html_htmlhint_options *g:ale_html_htmlhint_options* Type: |String| - Default: `'--format=unix stdin'` + Default: `'--format=unix'` This variable can be changed to modify flags given to HTMLHint.