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
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The default foodcritic 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
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The foodcritic executable and options should be configurable):
|
2017-11-21 13:38:27 +00:00
|
|
|
let b:ale_chef_foodcritic_executable = 'foobar'
|
2023-09-16 21:22:01 +00:00
|
|
|
" Tides should be escaped
|
|
|
|
let b:ale_chef_foodcritic_options = '-t ~F011'
|
2017-11-21 13:38:27 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' -t \~F011 %s'
|