mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Ban !=# and !=? from the codebase
This commit is contained in:
@@ -34,7 +34,7 @@ function! ale_linters#perl#perl#Handle(buffer, lines) abort
|
||||
|
||||
if ale#path#IsBufferPath(a:buffer, l:match[2])
|
||||
\ && (
|
||||
\ l:text !=# 'BEGIN failed--compilation aborted'
|
||||
\ l:text isnot# 'BEGIN failed--compilation aborted'
|
||||
\ || empty(l:output)
|
||||
\ || match(l:output[-1].text, s:begin_failed_skip_pattern) < 0
|
||||
\ )
|
||||
|
||||
@@ -41,10 +41,10 @@ function! ale_linters#perl#perlcritic#GetCommand(buffer) abort
|
||||
let l:command = ale#Escape(ale_linters#perl#perlcritic#GetExecutable(a:buffer))
|
||||
\ . " --verbose '". l:critic_verbosity . "' --nocolor"
|
||||
|
||||
if l:profile !=? ''
|
||||
if l:profile isnot? ''
|
||||
let l:command .= ' --profile ' . ale#Escape(l:profile)
|
||||
endif
|
||||
if l:options !=? ''
|
||||
if l:options isnot? ''
|
||||
let l:command .= ' ' . l:options
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user