mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-13 00:20:13 +08:00
#333 Pass in a flag indicating that linters should be run against files, and clear more jobs
This commit is contained in:
1 parent
790c614b7a
commit
e7d32fe376
4 files changed
+34
-17
No files matched your search
@@ -626,7 +626,15 @@ endfunction
|
||||
function! ale#engine#Invoke(buffer, linter) abort
|
||||
" Stop previous jobs for the same linter.
|
||||
call s:StopPreviousJobs(a:buffer, a:linter)
|
||||
call s:InvokeChain(a:buffer, a:linter, 0, [])
|
||||
|
||||
let l:executable = has_key(a:linter, 'executable_callback')
|
||||
\ ? ale#util#GetFunction(a:linter.executable_callback)(a:buffer)
|
||||
\ : a:linter.executable
|
||||
|
||||
" Run this program if it can be executed.
|
||||
if executable(l:executable)
|
||||
call s:InvokeChain(a:buffer, a:linter, 0, [])
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Given a buffer number, return the warnings and errors for a given buffer.
|
||||
|
||||
Reference in new issue
Block a user