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