2017-11-21 08:38:27 -05:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('chef', 'foodcritic')
|
2017-11-21 08:38:27 -05:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-21 08:38:27 -05:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foodcritic', ale#Escape('foodcritic') . ' %s'
|
2017-11-21 08:38:27 -05:00
|
|
|
|
|
|
|
Execute(Extra options should be included with escapeed tildes (~)):
|
|
|
|
let b:ale_chef_foodcritic_options = '-t ~F011'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foodcritic', ale#Escape('foodcritic') . ' -t \~F011 %s'
|
2017-11-21 08:38:27 -05:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let b:ale_chef_foodcritic_executable = 'foobar'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' %s'
|