summaryrefslogtreecommitdiff
path: root/test/linter/test_cookstyle.vader
blob: ccd6b1a209b90702735ccfb9c49d6a47118a0931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Before:
  call ale#assert#SetUpLinterTest('chef', 'cookstyle')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default cookstyle command should be correct):
  AssertLinter 'cookstyle', ale#Escape('cookstyle') . ' --force-exclusion --format json --stdin  %s'

Execute(The cookstyle executable and options should be configurable):
  let b:ale_chef_cookstyle_executable = 'foobar'
  let b:ale_chef_cookstyle_options = '--parallel'

  AssertLinter 'foobar', ale#Escape('foobar') . ' --parallel --force-exclusion --format json --stdin  %s'