2017-09-26 03:19:53 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('cs', 'mcsc')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2017-12-19 12:34:34 -05:00
|
|
|
Execute(The mcsc linter should return the correct default command):
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
|
|
|
Execute(The options should be be used in the command):
|
|
|
|
let g:ale_cs_mcsc_options = '-pkg:dotnet'
|
|
|
|
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe -pkg:dotnet -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
|
|
|
Execute(The souce path should be be used in the command):
|
2017-12-19 12:34:34 -05:00
|
|
|
let g:ale_cs_mcsc_source = '../foo/bar'
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape('../foo/bar'))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
|
|
|
Execute(The list of search pathes for assemblies should be be used in the command if not empty):
|
2017-10-18 18:42:51 -04:00
|
|
|
let g:ale_cs_mcsc_assembly_path = ['/usr/lib/mono', '../foo/bar']
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe'
|
|
|
|
\ . ' -lib:' . ale#Escape('/usr/lib/mono') . ',' . ale#Escape('../foo/bar')
|
|
|
|
\ . ' -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2017-10-18 18:42:51 -04:00
|
|
|
let g:ale_cs_mcsc_assembly_path = []
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
|
|
|
Execute(The list of assemblies should be be used in the command if not empty):
|
2017-10-18 18:42:51 -04:00
|
|
|
let g:ale_cs_mcsc_assemblies = ['foo.dll', 'bar.dll']
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe'
|
|
|
|
\ . ' -r:' . ale#Escape('foo.dll') . ',' . ale#Escape('bar.dll')
|
|
|
|
\ . ' -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2017-10-18 18:42:51 -04:00
|
|
|
let g:ale_cs_mcsc_assemblies = []
|
2017-09-26 03:19:53 -04:00
|
|
|
|
2018-10-22 09:59:06 -04:00
|
|
|
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
|