Complain about binary operators on the ends of lines

This commit is contained in:
w0rp
2019-02-10 11:43:48 +00:00
parent d072d2654c
commit 7a48750610
5 changed files with 26 additions and 14 deletions

View File

@@ -7,9 +7,10 @@ call ale#Set('python_bandit_use_global', get(g:, 'ale_use_global_executables', 0
call ale#Set('python_bandit_auto_pipenv', 0)
function! ale_linters#python#bandit#GetExecutable(buffer) abort
if (ale#Var(a:buffer, 'python_auto_pipenv') ||
\ ale#Var(a:buffer, 'python_bandit_auto_pipenv'))
\ && ale#python#PipenvPresent(a:buffer)
if (
\ ale#Var(a:buffer, 'python_auto_pipenv')
\ || ale#Var(a:buffer, 'python_bandit_auto_pipenv')
\) && ale#python#PipenvPresent(a:buffer)
return 'pipenv'
endif