#2017 Simplify lint cycles for supporting other sources later

This commit is contained in:
w0rp
2018-10-29 11:29:12 +00:00
parent 9dbebf1cb3
commit 2846e86217
11 changed files with 56 additions and 90 deletions

View File

@@ -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')