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: "???"
25 lines
837 B
Text
25 lines
837 B
Text
Before:
|
|
call ale#assert#SetUpLinterTest('awk', 'gawk')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertLinter 'gawk',
|
|
\ ale#Escape('gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }')
|
|
\ . ' --lint -f %t /dev/null'
|
|
|
|
Execute(The executable should be configurable):
|
|
let b:ale_awk_gawk_executable = '/other/gawk'
|
|
|
|
AssertLinter '/other/gawk',
|
|
\ ale#Escape('/other/gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }')
|
|
\ . ' --lint -f %t /dev/null'
|
|
|
|
Execute(The options should be configurable):
|
|
let b:ale_awk_gawk_executable = 'gawk'
|
|
let b:ale_awk_gawk_options = '--lint=no-ext'
|
|
|
|
AssertLinter 'gawk',
|
|
\ ale#Escape('gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }')
|
|
\ . ' --lint --lint=no-ext -f %t /dev/null'
|