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 call ale#assert#SetUpLinterTest('cpp', 'clazy')
3 call ale#test#SetFilename('test.cpp')
6 call ale#assert#TearDownLinterTest()
8 Execute(The clazy command default should be correct):
9 AssertLinter 'clazy-standalone',
10 \ ale#Escape('clazy-standalone') . ' -checks=' . ale#Escape('level1') . ' %s'
12 Execute(You should be able to remove the -checks option for clazy-standalone):
13 let b:ale_cpp_clazy_checks = []
15 AssertLinter 'clazy-standalone', ale#Escape('clazy-standalone') . ' %s'
17 Execute(You should be able to set other checks for clazy-standalone):
18 let b:ale_cpp_clazy_checks = ['level2', 'level3']
20 AssertLinter 'clazy-standalone',
21 \ ale#Escape('clazy-standalone')
22 \ . ' -checks=' . ale#Escape('level2,level3') . ' %s'
24 Execute(You should be able to manually set compiler flags for clazy-standalone):
25 let b:ale_cpp_clazy_options = '-qt4-compat'
27 AssertLinter 'clazy-standalone',
28 \ ale#Escape('clazy-standalone') . ' -checks=' . ale#Escape('level1') . ' -qt4-compat' . ' %s'
30 Execute(The build directory should be configurable):
31 let b:ale_c_build_dir = '/foo/bar'
33 AssertLinter 'clazy-standalone',
34 \ ale#Escape('clazy-standalone')
35 \ . ' -checks=' . ale#Escape('level1') . ' -p ' . ale#Escape('/foo/bar') . ' %s'
37 Execute(The build directory should be used for header files):
38 call ale#test#SetFilename('test.h')
40 let b:ale_c_build_dir = '/foo/bar'
42 AssertLinter 'clazy-standalone',
43 \ ale#Escape('clazy-standalone')
44 \ . ' -checks=' . ale#Escape('level1') . ' -p ' . ale#Escape('/foo/bar') . ' %s'
46 call ale#test#SetFilename('test.hpp')
48 AssertLinter 'clazy-standalone',
49 \ ale#Escape('clazy-standalone')
50 \ . ' -checks=' . ale#Escape('level1') . ' -p ' . ale#Escape('/foo/bar') . ' %s'
52 Execute(The executable should be configurable):
53 let b:ale_cpp_clazy_executable = 'foobar'
55 AssertLinter 'foobar',
56 \ ale#Escape('foobar') . ' -checks=' . ale#Escape('level1') . ' %s'