diff options
author | w0rp <devw0rp@gmail.com> | 2018-05-28 19:52:27 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-05-28 19:52:27 +0100 |
commit | 191967cfeec78f3ba83d999462fe6e45e4f4c8de (patch) | |
tree | 4eec1a5e8c76da26108886f4711632e8d944bb5b /ale_linters/html/tidy.vim | |
parent | c0a279f967ea9272b47063b52374730ad596f159 (diff) | |
download | ale-191967cfeec78f3ba83d999462fe6e45e4f4c8de.zip |
#1587 - Add deprecation warnings for old linter options
Diffstat (limited to 'ale_linters/html/tidy.vim')
-rw-r--r-- | ale_linters/html/tidy.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ale_linters/html/tidy.vim b/ale_linters/html/tidy.vim index 34152c6b..3af64d74 100644 --- a/ale_linters/html/tidy.vim +++ b/ale_linters/html/tidy.vim @@ -3,11 +3,19 @@ " CLI options let g:ale_html_tidy_executable = get(g:, 'ale_html_tidy_executable', 'tidy') +" remove in 2.0 " Look for the old _args variable first. +let s:deprecation_warning_echoed = 0 let s:default_options = get(g:, 'ale_html_tidy_args', '-q -e -language en') let g:ale_html_tidy_options = get(g:, 'ale_html_tidy_options', s:default_options) function! ale_linters#html#tidy#GetCommand(buffer) abort + " remove in 2.0 + if exists('g:ale_html_tidy_args') && !s:deprecation_warning_echoed + execute 'echom ''Rename your g:ale_html_tidy_args setting to g:ale_html_tidy_options instead. Support for this will removed in ALE 2.0.''' + let s:deprecation_warning_echoed = 1 + endif + " Specify file encoding in options " (Idea taken from https://github.com/scrooloose/syntastic/blob/master/syntax_checkers/html/tidy.vim) let l:file_encoding = get({ |