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_c_clangtidy_executable
4 Save g:ale_c_clangtidy_checks
5 Save g:ale_c_clangtidy_extra_options
6 Save g:ale_cpp_clangtidy_executable
7 Save g:ale_cpp_clangtidy_checks
8 Save g:ale_cpp_clangtidy_extra_options
10 " Use an invalid global executable, so we don't match it.
11 let g:ale_c_clangtidy_executable = 'xxxinvalid'
12 let g:ale_c_clangtidy_checks = []
13 let g:ale_c_clangtidy_extra_options = ''
14 let g:ale_cpp_clangtidy_executable = 'xxxinvalidpp'
15 let g:ale_cpp_clangtidy_checks = []
16 let g:ale_cpp_clangtidy_extra_options = ''
17 let g:ale_c_build_dir = ''
19 call ale#test#SetDirectory('/testplugin/test/fixers')
24 call ale#test#RestoreDirectory()
26 Execute(The clangtidy callback should return the correct default values):
27 call ale#test#SetFilename('../test-files/c/dummy.c')
31 \ 'read_temporary_file': 1,
32 \ 'command': ale#Escape(g:ale_c_clangtidy_executable)
33 \ . ' -fix -fix-errors %t'
35 \ ale#fixers#clangtidy#Fix(bufnr(''))
37 Execute(The clangtidy callback should include any additional options):
38 call ale#test#SetFilename('../test-files/c/dummy.c')
39 let g:ale_c_clangtidy_extra_options = '--some-option'
43 \ 'read_temporary_file': 1,
44 \ 'command': ale#Escape(g:ale_c_clangtidy_executable)
45 \ . ' -fix -fix-errors --some-option %t',
47 \ ale#fixers#clangtidy#Fix(bufnr(''))