summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-11 00:31:42 +0100
committerw0rp <devw0rp@gmail.com>2017-08-11 00:31:42 +0100
commitd5ae3201a4128c9e7b1042e9ea40b7f13cf72a10 (patch)
tree86ca55a467b86555aaed7e83e0094a5def357bd1 /ale_linters
parentb1462ac66c10ed323c5148ecd8821c3a433ff403 (diff)
downloadale-d5ae3201a4128c9e7b1042e9ea40b7f13cf72a10.zip
Ban !=# and !=? from the codebase
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/dockerfile/hadolint.vim2
-rw-r--r--ale_linters/elm/make.vim2
-rw-r--r--ale_linters/kotlin/kotlinc.vim8
-rw-r--r--ale_linters/nim/nimcheck.vim2
-rw-r--r--ale_linters/perl/perl.vim2
-rw-r--r--ale_linters/perl/perlcritic.vim4
-rw-r--r--ale_linters/python/mypy.vim2
-rw-r--r--ale_linters/rust/cargo.vim2
-rw-r--r--ale_linters/rust/rustc.vim2
9 files changed, 13 insertions, 13 deletions
diff --git a/ale_linters/dockerfile/hadolint.vim b/ale_linters/dockerfile/hadolint.vim
index 563be630..5550d698 100644
--- a/ale_linters/dockerfile/hadolint.vim
+++ b/ale_linters/dockerfile/hadolint.vim
@@ -14,7 +14,7 @@ function! ale_linters#dockerfile#hadolint#Handle(buffer, lines) abort
for l:match in ale#util#GetMatches(a:lines, l:pattern)
let l:lnum = 0
- if l:match[1] !=# ''
+ if l:match[1] isnot# ''
let l:lnum = l:match[1] + 0
endif
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim
index 5f7705b8..04563a4d 100644
--- a/ale_linters/elm/make.vim
+++ b/ale_linters/elm/make.vim
@@ -31,7 +31,7 @@ function! ale_linters#elm#make#Handle(buffer, lines) abort
\})
endif
endfor
- elseif l:line !=# 'Successfully generated /dev/null'
+ elseif l:line isnot# 'Successfully generated /dev/null'
call add(l:unparsed_lines, l:line)
endif
endfor
diff --git a/ale_linters/kotlin/kotlinc.vim b/ale_linters/kotlin/kotlinc.vim
index c8d238b2..00f94be5 100644
--- a/ale_linters/kotlin/kotlinc.vim
+++ b/ale_linters/kotlin/kotlinc.vim
@@ -13,7 +13,7 @@ let s:classpath_sep = has('unix') ? ':' : ';'
function! ale_linters#kotlin#kotlinc#GetImportPaths(buffer) abort
" exec maven/gradle only if classpath is not set
- if ale#Var(a:buffer, 'kotlin_kotlinc_classpath') !=# ''
+ if ale#Var(a:buffer, 'kotlin_kotlinc_classpath') isnot# ''
return ''
else
let l:pom_path = ale#path#FindNearestFile(a:buffer, 'pom.xml')
@@ -70,7 +70,7 @@ function! ale_linters#kotlin#kotlinc#GetCommand(buffer, import_paths) abort
endif
" We only get here if not using module or the module file not readable
- if ale#Var(a:buffer, 'kotlin_kotlinc_classpath') !=# ''
+ if ale#Var(a:buffer, 'kotlin_kotlinc_classpath') isnot# ''
let l:kotlinc_opts .= ' -cp ' . ale#Var(a:buffer, 'kotlin_kotlinc_classpath')
else
" get classpath from maven/gradle
@@ -78,7 +78,7 @@ function! ale_linters#kotlin#kotlinc#GetCommand(buffer, import_paths) abort
endif
let l:fname = ''
- if ale#Var(a:buffer, 'kotlin_kotlinc_sourcepath') !=# ''
+ if ale#Var(a:buffer, 'kotlin_kotlinc_sourcepath') isnot# ''
let l:fname .= expand(ale#Var(a:buffer, 'kotlin_kotlinc_sourcepath'), 1) . ' '
else
" Find the src directory for files in this project.
@@ -121,7 +121,7 @@ function! ale_linters#kotlin#kotlinc#Handle(buffer, lines) abort
let l:curbuf_abspath = expand('#' . a:buffer . ':p')
" Skip if file is not loaded
- if l:buf_abspath !=# l:curbuf_abspath
+ if l:buf_abspath isnot# l:curbuf_abspath
continue
endif
let l:type_marker_str = l:type is# 'warning' ? 'W' : 'E'
diff --git a/ale_linters/nim/nimcheck.vim b/ale_linters/nim/nimcheck.vim
index e9576ff2..cdd8c564 100644
--- a/ale_linters/nim/nimcheck.vim
+++ b/ale_linters/nim/nimcheck.vim
@@ -12,7 +12,7 @@ function! ale_linters#nim#nimcheck#Handle(buffer, lines) abort
" module names.
let l:temp_buffer_filename = fnamemodify(l:match[1], ':p:t')
- if l:buffer_filename !=# '' && l:temp_buffer_filename !=# l:buffer_filename
+ if l:buffer_filename isnot# '' && l:temp_buffer_filename isnot# l:buffer_filename
continue
endif
diff --git a/ale_linters/perl/perl.vim b/ale_linters/perl/perl.vim
index 087d03eb..33288061 100644
--- a/ale_linters/perl/perl.vim
+++ b/ale_linters/perl/perl.vim
@@ -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
\ )
diff --git a/ale_linters/perl/perlcritic.vim b/ale_linters/perl/perlcritic.vim
index 6f23048d..df2f8b23 100644
--- a/ale_linters/perl/perlcritic.vim
+++ b/ale_linters/perl/perlcritic.vim
@@ -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
diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim
index f71365a6..1d4efe89 100644
--- a/ale_linters/python/mypy.vim
+++ b/ale_linters/python/mypy.vim
@@ -37,7 +37,7 @@ function! ale_linters#python#mypy#Handle(buffer, lines) abort
let l:buffer_filename = expand('#' . a:buffer . ':p')
for l:match in ale#util#GetMatches(a:lines, l:pattern)
- if l:buffer_filename[-len(l:match[1]):] !=# l:match[1]
+ if l:buffer_filename[-len(l:match[1]):] isnot# l:match[1]
continue
endif
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim
index 32c09a58..f19061ad 100644
--- a/ale_linters/rust/cargo.vim
+++ b/ale_linters/rust/cargo.vim
@@ -4,7 +4,7 @@
let g:ale_rust_cargo_use_check = get(g:, 'ale_rust_cargo_use_check', 0)
function! ale_linters#rust#cargo#GetCargoExecutable(bufnr) abort
- if ale#path#FindNearestFile(a:bufnr, 'Cargo.toml') !=# ''
+ if ale#path#FindNearestFile(a:bufnr, 'Cargo.toml') isnot# ''
return 'cargo'
else
" if there is no Cargo.toml file, we don't use cargo even if it exists,
diff --git a/ale_linters/rust/rustc.vim b/ale_linters/rust/rustc.vim
index 73c99cd9..e792faa7 100644
--- a/ale_linters/rust/rustc.vim
+++ b/ale_linters/rust/rustc.vim
@@ -7,7 +7,7 @@ function! ale_linters#rust#rustc#RustcCommand(buffer_number) abort
" <project root>/target/release/deps/
let l:cargo_file = ale#path#FindNearestFile(a:buffer_number, 'Cargo.toml')
- if l:cargo_file !=# ''
+ if l:cargo_file isnot# ''
let l:project_root = fnamemodify(l:cargo_file, ':h')
let l:dependencies = '-L ' . l:project_root . '/target/debug/deps -L ' .
\ l:project_root . '/target/release/deps'