All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
4 Save g:ale_set_lists_synchronously
6 let g:ale_set_lists_synchronously = 1
8 " Set up items in other buffers which should set in this one.
9 let g:ale_buffer_info = {}
10 call ale#engine#InitBufferInfo(bufnr('') + 1)
11 let g:ale_buffer_info[bufnr('') + 1].loclist =
12 \ ale#engine#FixLocList(bufnr('') + 1, 'linter_one', 0, [
13 \ {'lnum': 1, 'filename': expand('%:p'), 'text': 'foo'},
14 \ {'lnum': 2, 'filename': expand('%:p'), 'text': 'bar'},
15 \ {'lnum': 2, 'text': 'ignore this one'},
17 call ale#engine#InitBufferInfo(bufnr('') + 2)
18 let g:ale_buffer_info[bufnr('') + 2].loclist =
19 \ ale#engine#FixLocList(bufnr('') + 2, 'linter_one', 0, [
20 \ {'lnum': 1, 'filename': expand('%:p'), 'text': 'foo'},
21 \ {'lnum': 3, 'filename': expand('%:p'), 'text': 'baz'},
22 \ {'lnum': 5, 'text': 'ignore this one'},
25 call ale#linter#Define('foobar', {
26 \ 'name': 'linter_one',
27 \ 'callback': 'WhoCares',
28 \ 'executable': 'echo',
29 \ 'command': 'sleep 1000',
34 call ale#engine#Cleanup(bufnr(''))
36 call ale#linter#Reset()
38 " Items and markers, etc.
39 call setloclist(0, [])
43 Given foobar(A file with some lines):
48 Execute(Problems found from previously opened buffers should be set when linting for the first time):
49 call ale#engine#RunLinters(bufnr(''), ale#linter#Get(&filetype), 0)
57 \ 'filename': expand('%:p'),
58 \ 'linter_name': 'linter_one',
69 \ 'filename': expand('%:p'),
70 \ 'linter_name': 'linter_one',
81 \ 'filename': expand('%:p'),
82 \ 'linter_name': 'linter_one',
90 \ g:ale_buffer_info[bufnr('')].loclist
94 \ {'lnum': 1, 'bufnr': bufnr(''), 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 'E', 'pattern': '', 'text': 'foo'},
95 \ {'lnum': 2, 'bufnr': bufnr(''), 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 'E', 'pattern': '', 'text': 'bar'},
96 \ {'lnum': 3, 'bufnr': bufnr(''), 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 'E', 'pattern': '', 'text': 'baz'},
98 \ ale#test#GetLoclistWithoutNewerKeys()