mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 07:32:24 +00:00
26 lines
794 B
Plaintext
26 lines
794 B
Plaintext
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 ''BEGIN { exit } END { exit 1 }'''
|
|
\ . ' -f %t --lint /dev/null'
|
|
|
|
Execute(The executable should be configurable):
|
|
let b:ale_awk_gawk_executable = '/other/gawk'
|
|
|
|
AssertLinter '/other/gawk',
|
|
\ ale#Escape('/other/gawk') . ' --source ''BEGIN { exit } END { exit 1 }'''
|
|
\ . ' -f %t --lint /dev/null'
|
|
|
|
Execute(The options should be configurable):
|
|
let b:ale_awk_gawk_executable = 'gawk'
|
|
let b:ale_awk_gawk_options = '--something'
|
|
|
|
AssertLinter 'gawk',
|
|
\ ale#Escape('gawk') . ' --source ''BEGIN { exit } END { exit 1 }'''
|
|
\ . ' --something -f %t --lint /dev/null'
|