diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-08 23:55:58 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-08 23:55:58 +0100 |
commit | 1ea0eda36cac8fc39b2227c8b9c4ea75e48a4be3 (patch) | |
tree | 5f30a1496b16f4266b33303ba0d576e5a5c16306 /ale_linters | |
parent | 16a150b27785e18fc9f15d66f02578ac72ffa834 (diff) | |
download | ale-1ea0eda36cac8fc39b2227c8b9c4ea75e48a4be3.zip |
Correct all Vint warnings
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/haskell/ghc.vim | 6 | ||||
-rw-r--r-- | ale_linters/scala/scalac.vim | 2 | ||||
-rw-r--r-- | ale_linters/sh/shellcheck.vim | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/haskell/ghc.vim b/ale_linters/haskell/ghc.vim index 0e6c2cf1..5af4bb3d 100644 --- a/ale_linters/haskell/ghc.vim +++ b/ale_linters/haskell/ghc.vim @@ -22,14 +22,14 @@ function! ale_linters#haskell#ghc#Handle(buffer, lines) for line in a:lines if len(matchlist(line, pattern)) > 0 call add(corrected_lines, line) - if line !~ ': error:$' + if line !~# ': error:$' call add(corrected_lines, '') endif - elseif line == '' + elseif line ==# '' call add(corrected_lines, line) else if len(corrected_lines) > 0 - if corrected_lines[-1] =~ ': error:$' + if corrected_lines[-1] =~# ': error:$' let line = substitute(line, '\v^\s+', ' ', '') endif let corrected_lines[-1] .= line diff --git a/ale_linters/scala/scalac.vim b/ale_linters/scala/scalac.vim index d5a75493..7d7d14ab 100644 --- a/ale_linters/scala/scalac.vim +++ b/ale_linters/scala/scalac.vim @@ -25,7 +25,7 @@ function! ale_linters#scala#scalac#Handle(buffer, lines) endif let text = l:match[3] - let type = l:match[2] == 'error' ? 'E' : 'W' + let type = l:match[2] ==# 'error' ? 'E' : 'W' let col = 0 if ln + 1 < len(a:lines) let col = stridx(a:lines[ln + 1], '^') diff --git a/ale_linters/sh/shellcheck.vim b/ale_linters/sh/shellcheck.vim index 00499903..3bc9abe4 100644 --- a/ale_linters/sh/shellcheck.vim +++ b/ale_linters/sh/shellcheck.vim @@ -16,7 +16,7 @@ if !exists('g:ale_linters_sh_shellcheck_exclusions') let g:ale_linters_sh_shellcheck_exclusions = '' endif -if g:ale_linters_sh_shellcheck_exclusions != '' +if g:ale_linters_sh_shellcheck_exclusions !=# '' let s:exclude_option = '-e ' . g:ale_linters_sh_shellcheck_exclusions else let s:exclude_option = '' |