summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-04 08:36:34 +0100
committerw0rp <devw0rp@gmail.com>2018-07-04 08:36:34 +0100
commitdb85b931ec83de3382b75b7e9a18f1cf8ae8ce43 (patch)
tree83ef9e529fe2cb57c5ee4392cebb31af24b4c69d /ale_linters
parent602e7fa00f50de2af3a35e1cc0a536be07947d5a (diff)
downloadale-db85b931ec83de3382b75b7e9a18f1cf8ae8ce43.zip
Remove deprecated code for the 2.0 releasev2.0.0
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/html/tidy.vim13
-rw-r--r--ale_linters/python/flake8.vim13
2 files changed, 2 insertions, 24 deletions
diff --git a/ale_linters/html/tidy.vim b/ale_linters/html/tidy.vim
index 3af64d74..913cdade 100644
--- a/ale_linters/html/tidy.vim
+++ b/ale_linters/html/tidy.vim
@@ -1,21 +1,10 @@
" Author: KabbAmine <amine.kabb@gmail.com>
" Description: This file adds support for checking HTML code with tidy.
-" 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)
+let g:ale_html_tidy_options = get(g:, 'ale_html_tidy_options', '-q -e -language en')
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({
diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim
index fdc4ac94..358f51a4 100644
--- a/ale_linters/python/flake8.vim
+++ b/ale_linters/python/flake8.vim
@@ -1,13 +1,8 @@
" Author: w0rp <devw0rp@gmail.com>
" Description: flake8 for python files
-" remove in 2.0
-" Support an old setting as a fallback.
-let s:deprecation_warning_echoed = 0
-let s:default_options = get(g:, 'ale_python_flake8_args', '')
-
call ale#Set('python_flake8_executable', 'flake8')
-call ale#Set('python_flake8_options', s:default_options)
+call ale#Set('python_flake8_options', '')
call ale#Set('python_flake8_use_global', get(g:, 'ale_use_global_executables', 0))
call ale#Set('python_flake8_change_directory', 1)
@@ -40,12 +35,6 @@ function! ale_linters#python#flake8#VersionCheck(buffer) abort
endfunction
function! ale_linters#python#flake8#GetCommand(buffer, version_output) abort
- " remove in 2.0
- if exists('g:ale_python_flake8_args') && !s:deprecation_warning_echoed
- execute 'echom ''Rename your g:ale_python_flake8_args setting to g:ale_python_flake8_options instead. Support for this will removed in ALE 2.0.'''
- let s:deprecation_warning_echoed = 1
- endif
-
let l:cd_string = ale#Var(a:buffer, 'python_flake8_change_directory')
\ ? ale#path#BufferCdString(a:buffer)
\ : ''