summaryrefslogtreecommitdiff
path: root/test/linter/test_dockerlinter.vader
blob: a7077221f5fdd7d5bb99f9f9d00c39965c77f81f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpLinterTest('dockerfile', 'dockerlinter')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'dockerlinter', ale#Escape('dockerlinter') . ' -j -f %t'

Execute(The executable should be configurable):
  let b:ale_dockerfile_dockerlinter_executable = 'foobar'

  AssertLinter 'foobar', ale#Escape('foobar') . ' -j -f %t'

Execute(The options should be configurable):
  let b:ale_dockerfile_dockerlinter_options = '-r additional.yaml'

  AssertLinter 'dockerlinter', ale#Escape('dockerlinter') . ' -r additional.yaml -j -f %t'