diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale.vim | 2 | ||||
-rw-r--r-- | autoload/ale/cursor.vim | 4 | ||||
-rw-r--r-- | autoload/ale/engine.vim | 8 | ||||
-rw-r--r-- | autoload/ale/fix.vim | 2 | ||||
-rw-r--r-- | autoload/ale/job.vim | 2 | ||||
-rw-r--r-- | autoload/ale/linter.vim | 6 | ||||
-rw-r--r-- | autoload/ale/list.vim | 2 | ||||
-rw-r--r-- | autoload/ale/lsp.vim | 2 | ||||
-rw-r--r-- | autoload/ale/ruby.vim | 2 | ||||
-rw-r--r-- | autoload/ale/sign.vim | 2 | ||||
-rw-r--r-- | autoload/ale/test.vim | 2 | ||||
-rw-r--r-- | autoload/ale/util.vim | 2 |
12 files changed, 18 insertions, 18 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim index 6e16a8ee..766ed6fa 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -58,7 +58,7 @@ function! ale#Queue(delay, ...) abort endfunction function! s:ALEQueueImpl(delay, linting_flag, buffer) abort - if a:linting_flag !=# '' && a:linting_flag !=# 'lint_file' + if a:linting_flag isnot# '' && a:linting_flag isnot# 'lint_file' throw "linting_flag must be either '' or 'lint_file'" endif diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index d30b1ebd..693d1642 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -72,7 +72,7 @@ function! ale#cursor#EchoCursorWarning(...) abort endif " Only echo the warnings in normal mode, otherwise we will get problems. - if mode() !=# 'n' + if mode() isnot# 'n' return endif @@ -118,7 +118,7 @@ function! ale#cursor#ShowCursorDetail() abort endif " Only echo the warnings in normal mode, otherwise we will get problems. - if mode() !=# 'n' + if mode() isnot# 'n' return endif diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 2cd691b7..b22b1a6d 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -128,14 +128,14 @@ function! s:HandleLoclist(linter_name, buffer, loclist) abort " Remove this linter from the list of active linters. " This may have already been done when the job exits. - call filter(l:buffer_info.active_linter_list, 'v:val !=# a:linter_name') + call filter(l:buffer_info.active_linter_list, 'v:val isnot# a:linter_name') " Make some adjustments to the loclists to fix common problems, and also " to set default values for loclist items. let l:linter_loclist = ale#engine#FixLocList(a:buffer, a:linter_name, a:loclist) " Remove previous items for this linter. - call filter(g:ale_buffer_info[a:buffer].loclist, 'v:val.linter_name !=# a:linter_name') + call filter(g:ale_buffer_info[a:buffer].loclist, 'v:val.linter_name isnot# a:linter_name') " Add the new items. call extend(g:ale_buffer_info[a:buffer].loclist, l:linter_loclist) @@ -169,8 +169,8 @@ function! s:HandleExit(job_id, exit_code) abort " Remove this job from the list. call ale#job#Stop(a:job_id) call remove(s:job_info_map, a:job_id) - call filter(g:ale_buffer_info[l:buffer].job_list, 'v:val !=# a:job_id') - call filter(g:ale_buffer_info[l:buffer].active_linter_list, 'v:val !=# l:linter.name') + call filter(g:ale_buffer_info[l:buffer].job_list, 'v:val isnot# a:job_id') + call filter(g:ale_buffer_info[l:buffer].active_linter_list, 'v:val isnot# l:linter.name') " Stop here if we land in the handle for a job completing if we're in " a sandbox. diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 3669fcd8..80f46c27 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -335,7 +335,7 @@ function! ale#fix#Fix(...) abort let l:fixing_flag = get(a:000, 0, '') - if l:fixing_flag !=# '' && l:fixing_flag !=# 'save_file' + if l:fixing_flag isnot# '' && l:fixing_flag isnot# 'save_file' throw "fixing_flag must be either '' or 'save_file'" endif diff --git a/autoload/ale/job.vim b/autoload/ale/job.vim index 63cb8abc..a52e57bc 100644 --- a/autoload/ale/job.vim +++ b/autoload/ale/job.vim @@ -161,7 +161,7 @@ function! ale#job#ParseVim8ProcessID(job_string) abort endfunction function! ale#job#ValidateArguments(command, options) abort - if a:options.mode !=# 'nl' && a:options.mode !=# 'raw' + if a:options.mode isnot# 'nl' && a:options.mode isnot# 'raw' throw 'Invalid mode: ' . a:options.mode endif endfunction diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 7c6f08f8..80c045f2 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -60,8 +60,8 @@ function! ale#linter#PreProcess(linter) abort endif let l:needs_address = l:obj.lsp is# 'socket' - let l:needs_executable = l:obj.lsp !=# 'socket' - let l:needs_command = l:obj.lsp !=# 'socket' + let l:needs_executable = l:obj.lsp isnot# 'socket' + let l:needs_command = l:obj.lsp isnot# 'socket' let l:needs_lsp_details = !empty(l:obj.lsp) if empty(l:obj.lsp) @@ -377,7 +377,7 @@ function! ale#linter#StartLSP(buffer, linter, callback) abort let l:address = '' let l:root = ale#util#GetFunction(a:linter.project_root_callback)(a:buffer) - if empty(l:root) && a:linter.lsp !=# 'tsserver' + if empty(l:root) && a:linter.lsp isnot# 'tsserver' " If there's no project root, then we can't check files with LSP, " unless we are using tsserver, which doesn't use project roots. return {} diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim index 4487e951..e01f9e6d 100644 --- a/autoload/ale/list.vim +++ b/autoload/ale/list.vim @@ -62,7 +62,7 @@ function! ale#list#SetLists(buffer, loclist) abort endif " If focus changed, restore it (jump to the last window). - if l:winnr !=# winnr() + if l:winnr isnot# winnr() wincmd p endif diff --git a/autoload/ale/lsp.vim b/autoload/ale/lsp.vim index ef09dded..b5525c98 100644 --- a/autoload/ale/lsp.vim +++ b/autoload/ale/lsp.vim @@ -296,7 +296,7 @@ function! ale#lsp#ConnectToAddress(address, project_root, callback) abort " Get the current connection or a new one. let l:conn = !empty(l:conn) ? l:conn : s:NewConnection() - if !has_key(l:conn, 'channel') || ch_status(l:conn.channel) !=# 'open' + if !has_key(l:conn, 'channel') || ch_status(l:conn.channel) isnot# 'open' let l:conn.channnel = ch_open(a:address, { \ 'mode': 'raw', \ 'waittime': 0, diff --git a/autoload/ale/ruby.vim b/autoload/ale/ruby.vim index 503ff1db..b981ded6 100644 --- a/autoload/ale/ruby.vim +++ b/autoload/ale/ruby.vim @@ -10,7 +10,7 @@ function! ale#ruby#FindRailsRoot(buffer) abort \ ':h:h' \) - if l:dir !=# '.' + if l:dir isnot# '.' \&& isdirectory(l:dir . '/app') \&& isdirectory(l:dir . '/config') \&& isdirectory(l:dir . '/db') diff --git a/autoload/ale/sign.vim b/autoload/ale/sign.vim index 222fa6b7..0652f4f1 100644 --- a/autoload/ale/sign.vim +++ b/autoload/ale/sign.vim @@ -40,7 +40,7 @@ if !hlexists('ALESignColumnWithoutErrors') if !empty(l:match) execute 'highlight link ALESignColumnWithoutErrors ' . l:match[1] - elseif l:highlight_syntax !=# 'cleared' + elseif l:highlight_syntax isnot# 'cleared' execute 'highlight ALESignColumnWithoutErrors ' . l:highlight_syntax endif endfunction diff --git a/autoload/ale/test.vim b/autoload/ale/test.vim index 204b7115..c0458053 100644 --- a/autoload/ale/test.vim +++ b/autoload/ale/test.vim @@ -12,7 +12,7 @@ " " This function should be run in a Vader Before: block. function! ale#test#SetDirectory(docker_path) abort - if a:docker_path[:len('/testplugin/') - 1] !=# '/testplugin/' + if a:docker_path[:len('/testplugin/') - 1] isnot# '/testplugin/' throw 'docker_path must start with /testplugin/!' endif diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim index 37c6f10f..adfcd476 100644 --- a/autoload/ale/util.vim +++ b/autoload/ale/util.vim @@ -136,7 +136,7 @@ function! s:LoadArgCount(function) abort endif let l:match = matchstr(split(l:output, "\n")[0], '\v\([^)]+\)')[1:-2] - let l:arg_list = filter(split(l:match, ', '), 'v:val !=# ''...''') + let l:arg_list = filter(split(l:match, ', '), 'v:val isnot# ''...''') return len(l:arg_list) endfunction |