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.
2 Save g:ale_make_checkmake_config
4 let g:ale_make_checkmake_config = ''
6 call ale#assert#SetUpLinterTest('make', 'checkmake')
8 " NOTE: the format string must be manually matched that set in the plugin
9 let b:format = '"{{.LineNumber}}:{{.Rule}}:{{.Violation}}{{\"\r\n\"}}"'
15 unlet! b:ale_make_checkmake_config
17 call ale#assert#TearDownLinterTest()
19 Execute(checkmake should run with default format option):
20 let b:command_tail = ' --format=' . b:format . ' %s'
22 AssertLinter 'checkmake', 'checkmake' . b:command_tail
24 Execute(checkmake command should take the config option if it is non-empty):
25 let g:ale_make_checkmake_config = '/path to/checkmake.ini'
26 let b:command_tail = ' --format=' . b:format
27 \ . ' --config="' . g:ale_make_checkmake_config . '"'
30 AssertLinter 'checkmake', 'checkmake' . b:command_tail
32 Execute(the local buffer config option takes precedence over global option):
33 let g:ale_make_checkmake_config = '/path/to/checkmake.ini'
34 let b:ale_make_checkmake_config = '/another/checkmake.ini'
35 let b:command_tail = ' --format=' . b:format
36 \ . ' --config="' . b:ale_make_checkmake_config . '"'
39 AssertLinter 'checkmake', 'checkmake' . b:command_tail