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', 'mcsc')
5 call ale#assert#TearDownLinterTest()
7 Execute(The mcsc linter should return the correct default command):
8 AssertLinterCwd expand('%:p:h')
9 AssertLinter 'mcs', 'mcs -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_mcsc_options = '-pkg:dotnet'
14 AssertLinter 'mcs', 'mcs -unsafe -pkg:dotnet -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_mcsc_source = '../foo/bar'
19 AssertLinterCwd '../foo/bar'
20 AssertLinter 'mcs', 'mcs -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_mcsc_assembly_path = ['/usr/lib/mono', '../foo/bar']
25 AssertLinter 'mcs', 'mcs -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_mcsc_assembly_path = []
31 AssertLinter 'mcs', 'mcs -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_mcsc_assemblies = ['foo.dll', 'bar.dll']
36 AssertLinter 'mcs', 'mcs -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_mcsc_assemblies = []
42 AssertLinter 'mcs', 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')