summaryrefslogtreecommitdiff
path: root/test/linter/test_bashate.vader
blob: 714cf690e1200afce69c1d08932a74935b79990b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Before:
  call ale#assert#SetUpLinterTest('sh', 'bashate')
  call ale#test#SetFilename('test.sh')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default bashate command should be correct):
  AssertLinter 'bashate', ale#Escape('bashate') . '  %t'

Execute(The bashate command should accept options):
  let b:ale_sh_bashate_options = '-i E310 --max-line-length 100'

  AssertLinter 'bashate',
  \ ale#Escape('bashate') . ' -i E310 --max-line-length 100 %t'