2019-04-10 17:52:52 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('chef', 'cookstyle')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The default cookstyle command should be correct):
|
2019-04-10 17:52:52 +00:00
|
|
|
AssertLinter 'cookstyle', ale#Escape('cookstyle') . ' --force-exclusion --format json --stdin %s'
|
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The cookstyle executable and options should be configurable):
|
2019-04-10 17:52:52 +00:00
|
|
|
let b:ale_chef_cookstyle_executable = 'foobar'
|
|
|
|
let b:ale_chef_cookstyle_options = '--parallel'
|
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' --parallel --force-exclusion --format json --stdin %s'
|