summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-02-10 11:43:48 +0000
committerw0rp <devw0rp@gmail.com>2019-02-10 11:43:48 +0000
commit7a48750610bbed164750a3f0fbf0fd9e88fa56c5 (patch)
treef8904b5d9ed2b9b02059cdf267cee46479849c74 /ale_linters
parentd072d2654c68d1c0bf4a1cb8c15c31e989652669 (diff)
downloadale-7a48750610bbed164750a3f0fbf0fd9e88fa56c5.zip
Complain about binary operators on the ends of lines
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/perl6/perl6.vim4
-rw-r--r--ale_linters/prolog/swipl.vim4
-rw-r--r--ale_linters/python/bandit.vim7
3 files changed, 8 insertions, 7 deletions
diff --git a/ale_linters/perl6/perl6.vim b/ale_linters/perl6/perl6.vim
index 59042e57..39406ac4 100644
--- a/ale_linters/perl6/perl6.vim
+++ b/ale_linters/perl6/perl6.vim
@@ -101,8 +101,8 @@ function! ale_linters#perl6#perl6#Handle(buffer, lines) abort
if type(l:json) is v:t_dict
for l:key in keys(l:json)
- if has_key(l:json[l:key], 'sorrows') &&
- \ has_key(l:json[l:key], 'worries')
+ if has_key(l:json[l:key], 'sorrows')
+ \&& has_key(l:json[l:key], 'worries')
if !empty(l:json[l:key]['sorrows'])
for l:dictionary in get(l:json[l:key], 'sorrows')
for l:item in keys(l:dictionary)
diff --git a/ale_linters/prolog/swipl.vim b/ale_linters/prolog/swipl.vim
index 401e52b6..77261ede 100644
--- a/ale_linters/prolog/swipl.vim
+++ b/ale_linters/prolog/swipl.vim
@@ -87,8 +87,8 @@ endfunction
" Skip sandbox error which is caused by directives
" because what we want is syntactic or semantic check.
function! s:Ignore(item) abort
- return a:item.type is# 'E' &&
- \ a:item.text =~# '\vNo permission to (call|directive|assert) sandboxed'
+ return a:item.type is# 'E'
+ \ && a:item.text =~# '\vNo permission to (call|directive|assert) sandboxed'
endfunction
call ale#linter#Define('prolog', {
diff --git a/ale_linters/python/bandit.vim b/ale_linters/python/bandit.vim
index 1b5a84a4..819c83aa 100644
--- a/ale_linters/python/bandit.vim
+++ b/ale_linters/python/bandit.vim
@@ -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