summaryrefslogtreecommitdiff
path: root/test/linter/test_erlang_elvis.vader
blob: 4aab49d6e95d04c10b28e4966cf0b097846c5e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Before:
  let b:file = fnamemodify(bufname(''), ':.')
  call ale#assert#SetUpLinterTest('erlang', 'elvis')

After:
  call ale#assert#TearDownLinterTest()

Execute(Default command should be correct):
  AssertLinter 'elvis',
  \ ale#Escape('elvis') . ' rock --output-format=parsable ' . ale#Escape(b:file)

Execute(Executable should be configurable):
  let b:ale_erlang_elvis_executable = '/path/to/elvis'

  AssertLinter '/path/to/elvis',
  \ ale#Escape('/path/to/elvis') . ' rock --output-format=parsable ' . ale#Escape(b:file)