Rename pylint _args variables to _options variables
This commit is contained in:
parent
548ff299f4
commit
f1ac7c9f73
@ -4,8 +4,8 @@
|
|||||||
let g:ale_python_pylint_executable =
|
let g:ale_python_pylint_executable =
|
||||||
\ get(g:, 'ale_python_pylint_executable', 'pylint')
|
\ get(g:, 'ale_python_pylint_executable', 'pylint')
|
||||||
|
|
||||||
let g:ale_python_pylint_args =
|
let g:ale_python_pylint_options =
|
||||||
\ get(g:, 'ale_python_pylint_args', '')
|
\ get(g:, 'ale_python_pylint_options', '')
|
||||||
|
|
||||||
function! ale_linters#python#pylint#GetExecutable(buffer) abort
|
function! ale_linters#python#pylint#GetExecutable(buffer) abort
|
||||||
return g:ale_python_pylint_executable
|
return g:ale_python_pylint_executable
|
||||||
@ -14,7 +14,7 @@ endfunction
|
|||||||
function! ale_linters#python#pylint#GetCommand(buffer) abort
|
function! ale_linters#python#pylint#GetCommand(buffer) abort
|
||||||
return g:ale#util#stdin_wrapper . ' .py '
|
return g:ale#util#stdin_wrapper . ' .py '
|
||||||
\ . ale_linters#python#pylint#GetExecutable(a:buffer)
|
\ . ale_linters#python#pylint#GetExecutable(a:buffer)
|
||||||
\ . ' ' . g:ale_python_pylint_args
|
\ . ' ' . g:ale_python_pylint_options
|
||||||
\ . ' --output-format text --msg-template="{path}:{line}:{column}: {msg_id} {msg}" --reports n'
|
\ . ' --output-format text --msg-template="{path}:{line}:{column}: {msg_id} {msg}" --reports n'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -803,7 +803,7 @@ g:ale_python_pylint_executable *g:ale_python_pylint_executable*
|
|||||||
This variable can be changed to modify the executable used for pylint.
|
This variable can be changed to modify the executable used for pylint.
|
||||||
|
|
||||||
|
|
||||||
g:ale_python_pylint_args *g:ale_python_pylint_args*
|
g:ale_python_pylint_options *g:ale_python_pylint_options*
|
||||||
|
|
||||||
Type: |String|
|
Type: |String|
|
||||||
Default: `''`
|
Default: `''`
|
||||||
@ -815,7 +815,7 @@ For example, to dynamically switch between programs targeting Python 2 and
|
|||||||
Python 3, you may want to set >
|
Python 3, you may want to set >
|
||||||
|
|
||||||
let g:ale_python_pylint_executable = 'python3' " or 'python' for Python 2
|
let g:ale_python_pylint_executable = 'python3' " or 'python' for Python 2
|
||||||
let g:ale_python_pylint_args = '-rcfile /path/to/pylint.rc'
|
let g:ale_python_pylint_options = '-rcfile /path/to/pylint.rc'
|
||||||
|
|
||||||
after making sure it's installed for the appropriate Python versions (e.g.
|
after making sure it's installed for the appropriate Python versions (e.g.
|
||||||
`python3 -m pip install --user pylint`).
|
`python3 -m pip install --user pylint`).
|
||||||
|
Loading…
Reference in New Issue
Block a user