mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
#2017 Simplify lint cycles for supporting other sources later
This commit is contained in:
@@ -138,6 +138,9 @@ After:
|
||||
|
||||
Given foobar(An empty file):
|
||||
Execute(Global ignore lists should be applied for linters):
|
||||
" We have to set up buffer info so RunLinters is called.
|
||||
let g:ale_buffer_info = {bufnr(''): {}}
|
||||
|
||||
ALELint
|
||||
Assert g:run_linters_called, "The mock callback wasn't called"
|
||||
AssertEqual ['testlinter'], map(g:linters, 'v:val.name')
|
||||
@@ -147,6 +150,9 @@ Execute(Global ignore lists should be applied for linters):
|
||||
AssertEqual [], g:linters
|
||||
|
||||
Execute(buffer ignore lists should be applied for linters):
|
||||
" We have to set up buffer info so RunLinters is called.
|
||||
let g:ale_buffer_info = {bufnr(''): {}}
|
||||
|
||||
ALELint
|
||||
Assert g:run_linters_called, "The mock callback wasn't called"
|
||||
AssertEqual ['testlinter'], map(g:linters, 'v:val.name')
|
||||
|
||||
Reference in New Issue
Block a user