e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
16 lines
528 B
Text
16 lines
528 B
Text
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)
|