2019-07-02 07:18:17 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('cs', 'csc')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The csc linter should return the correct default command):
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinterCwd expand('%:p:h')
|
|
|
|
AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|
2019-07-02 07:18:17 +00:00
|
|
|
|
|
|
|
Execute(The options should be be used in the command):
|
|
|
|
let g:ale_cs_csc_options = ''
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|
2019-07-02 07:18:17 +00:00
|
|
|
|
|
|
|
Execute(The souce path should be be used in the command):
|
|
|
|
let g:ale_cs_csc_source = '../foo/bar'
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinterCwd '../foo/bar'
|
|
|
|
AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|
2019-07-02 07:18:17 +00:00
|
|
|
|
|
|
|
Execute(The list of search pathes for assemblies should be be used in the command if not empty):
|
|
|
|
let g:ale_cs_csc_assembly_path = ['/usr/lib/mono', '../foo/bar']
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'csc', 'csc /unsafe'
|
2019-07-02 07:18:17 +00:00
|
|
|
\ . ' /lib:' . ale#Escape('/usr/lib/mono') . ',' . ale#Escape('../foo/bar')
|
|
|
|
\ . ' /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|
|
|
|
|
|
|
|
let g:ale_cs_csc_assembly_path = []
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|
2019-07-02 07:18:17 +00:00
|
|
|
|
|
|
|
Execute(The list of assemblies should be be used in the command if not empty):
|
|
|
|
let g:ale_cs_csc_assemblies = ['foo.dll', 'bar.dll']
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'csc', 'csc /unsafe'
|
2019-07-02 07:18:17 +00:00
|
|
|
\ . ' /r:' . ale#Escape('foo.dll') . ',' . ale#Escape('bar.dll')
|
|
|
|
\ . ' /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|
|
|
|
|
|
|
|
let g:ale_cs_csc_assemblies = []
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs')
|