mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-18 07:54:16 +08:00
#2017 Simplify lint cycles for supporting other sources later
This commit is contained in:
@@ -65,7 +65,7 @@ Execute(Linters should run with the default options):
|
||||
" Try the test a few times over in NeoVim 0.3 or Windows,
|
||||
" where tests fail randomly.
|
||||
for g:i in range(has('nvim-0.3') || has('win32') ? 5 : 1)
|
||||
call ale#Lint()
|
||||
call ale#Queue(0, '')
|
||||
call ale#engine#WaitForJobs(2000)
|
||||
|
||||
let g:results = ale#test#GetLoclistWithoutModule()
|
||||
@@ -109,7 +109,7 @@ Execute(Linters should run in PowerShell too):
|
||||
\ 'command': 'echo foo && echo bar',
|
||||
\})
|
||||
|
||||
call ale#Lint()
|
||||
call ale#Queue(0, '')
|
||||
call ale#engine#WaitForJobs(4000)
|
||||
|
||||
AssertEqual [
|
||||
@@ -139,7 +139,7 @@ Execute(Linters should run in PowerShell too):
|
||||
endif
|
||||
|
||||
Execute(Previous errors should be removed when linters change):
|
||||
call ale#Lint()
|
||||
call ale#Queue(0, '')
|
||||
call ale#engine#WaitForJobs(2000)
|
||||
|
||||
call ale#linter#Reset()
|
||||
@@ -166,7 +166,7 @@ Execute(Previous errors should be removed when linters change):
|
||||
" Try the test a few times over in NeoVim 0.3 or Windows,
|
||||
" where tests fail randomly.
|
||||
for g:i in range(has('nvim-0.3') || has('win32') ? 5 : 1)
|
||||
call ale#Lint()
|
||||
call ale#Queue(0, '')
|
||||
call ale#engine#WaitForJobs(2000)
|
||||
|
||||
let g:results = ale#test#GetLoclistWithoutModule()
|
||||
|
||||
Reference in New Issue
Block a user