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.
3 Save g:ale_set_highlights
5 Save g:ale_set_quickfix
7 Save g:ale_run_synchronously
8 Save g:ale_set_lists_synchronously
10 Save g:ale_sign_offset
12 " We want to check that sign IDs are set for this test.
13 let g:ale_set_signs = 1
14 let g:ale_set_loclist = 1
15 let g:ale_sign_offset = 2000000
16 " Disable features we don't need for these tests.
17 let g:ale_set_quickfix = 0
18 let g:ale_set_highlights = 0
19 let g:ale_echo_cursor = 0
21 let g:ale_run_synchronously = 1
22 let g:ale_set_lists_synchronously = 1
23 let g:ale_buffer_info = {}
25 function! TestCallback(buffer, output)
31 \ 'text': 'Infix operators must be spaced. [Warning/space-infix-ops]',
37 \ 'text': 'Missing semicolon. [Error/semi]',
42 call ale#linter#Define('foobar', {
43 \ 'name': 'testlinter',
44 \ 'callback': 'TestCallback',
45 \ 'executable': has('win32') ? 'cmd': 'true',
52 call ale#engine#Cleanup(bufnr(''))
57 delfunction TestCallback
59 call ale#linter#Reset()
63 Given foobar (Some JavaScript with problems):
67 Execute(The loclist should be updated after linting is done):
69 call ale#test#FlushJobs()
75 \ 'bufnr': bufnr('%'),
77 \ 'linter_name': 'testlinter',
81 \ 'text': 'Infix operators must be spaced. [Warning/space-infix-ops]',
86 \ 'bufnr': bufnr('%'),
88 \ 'linter_name': 'testlinter',
92 \ 'text': 'Missing semicolon. [Error/semi]',
96 \ get(get(g:ale_buffer_info, bufnr('%'), {}), 'loclist', [])