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('cs', 'csc')
5 call ale#assert#TearDownLinterTest()
7 Execute(The csc linter should return the correct default command):
8 AssertLinterCwd expand('%:p:h')
9 AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
11 Execute(The options should be be used in the command):
12 let g:ale_cs_csc_options = ''
14 AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
16 Execute(The source path should be be used in the command):
17 let g:ale_cs_csc_source = '../foo/bar'
19 AssertLinterCwd '../foo/bar'
20 AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
22 Execute(The list of search paths for assemblies should be be used in the command if not empty):
23 let g:ale_cs_csc_assembly_path = ['/usr/lib/mono', '../foo/bar']
25 AssertLinter 'csc', 'csc /unsafe'
26 \ . ' /lib:' . ale#Escape('/usr/lib/mono') . ',' . ale#Escape('../foo/bar')
27 \ . ' /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
29 let g:ale_cs_csc_assembly_path = []
31 AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
33 Execute(The list of assemblies should be be used in the command if not empty):
34 let g:ale_cs_csc_assemblies = ['foo.dll', 'bar.dll']
36 AssertLinter 'csc', 'csc /unsafe'
37 \ . ' /r:' . ale#Escape('foo.dll') . ',' . ale#Escape('bar.dll')
38 \ . ' /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
40 let g:ale_cs_csc_assemblies = []
42 AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')