mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-10 18:02:31 +08:00
Fix Vint version detection (#5138)
CI / Build (push) Has been cancelled
CI / Neovim 0.10 Windows (push) Has been cancelled
CI / Neovim 0.12 Windows (push) Has been cancelled
CI / Vim 8.2 Windows (push) Has been cancelled
CI / Vim 9.2 Windows (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Lua (push) Has been cancelled
CI / Neovim 0.10 Linux (push) Has been cancelled
CI / Neovim 0.12 Linux (push) Has been cancelled
CI / Vim 8.2 Linux (push) Has been cancelled
CI / Vim 9.2 Linux (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Neovim 0.10 Windows (push) Has been cancelled
CI / Neovim 0.12 Windows (push) Has been cancelled
CI / Vim 8.2 Windows (push) Has been cancelled
CI / Vim 9.2 Windows (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Lua (push) Has been cancelled
CI / Neovim 0.10 Linux (push) Has been cancelled
CI / Neovim 0.12 Linux (push) Has been cancelled
CI / Vim 8.2 Linux (push) Has been cancelled
CI / Vim 9.2 Linux (push) Has been cancelled
* Ignore python warnings during 'vint --version' call * Update Vint tests
This commit is contained in:
@@ -58,7 +58,7 @@ call ale#linter#Define('vim', {
|
|||||||
\ 'command': {buffer -> ale#semver#RunWithVersionCheck(
|
\ 'command': {buffer -> ale#semver#RunWithVersionCheck(
|
||||||
\ buffer,
|
\ buffer,
|
||||||
\ ale#Var(buffer, 'vim_vint_executable'),
|
\ ale#Var(buffer, 'vim_vint_executable'),
|
||||||
\ '%e --version',
|
\ 'PYTHONWARNINGS=ignore %e --version',
|
||||||
\ function('ale_linters#vim#vint#GetCommand'),
|
\ function('ale_linters#vim#vint#GetCommand'),
|
||||||
\ )},
|
\ )},
|
||||||
\ 'callback': 'ale_linters#vim#vint#Handle',
|
\ 'callback': 'ale_linters#vim#vint#Handle',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ After:
|
|||||||
|
|
||||||
Execute(The default command should be correct):
|
Execute(The default command should be correct):
|
||||||
AssertLinter 'vint', [
|
AssertLinter 'vint', [
|
||||||
\ ale#Escape('vint') .' --version',
|
\ 'PYTHONWARNINGS=ignore '. ale#Escape('vint') .' --version',
|
||||||
\ ale#Escape('vint') .' -s --no-color' . b:common_flags . ' %t',
|
\ ale#Escape('vint') .' -s --no-color' . b:common_flags . ' %t',
|
||||||
\]
|
\]
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ Execute(The executable should be configurable):
|
|||||||
let g:ale_vim_vint_executable = 'foobar'
|
let g:ale_vim_vint_executable = 'foobar'
|
||||||
|
|
||||||
AssertLinter 'foobar', [
|
AssertLinter 'foobar', [
|
||||||
\ ale#Escape('foobar') .' --version',
|
\ 'PYTHONWARNINGS=ignore '. ale#Escape('foobar') .' --version',
|
||||||
\ ale#Escape('foobar') .' -s --no-color' . b:common_flags . ' %t',
|
\ ale#Escape('foobar') .' -s --no-color' . b:common_flags . ' %t',
|
||||||
\]
|
\]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user