2022-05-16 12:14:11 +00:00
|
|
|
|
|
|
|
" Based upon :help ale-development
|
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('rego', 'opacheck')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
|
|
|
AssertLinter 'opa',
|
|
|
|
\ ale#Escape('opa') . ' check %s --format json '
|
|
|
|
|
2022-10-29 11:56:09 +00:00
|
|
|
Execute(The default command should be overridden):
|
2022-05-16 12:14:11 +00:00
|
|
|
let b:ale_rego_opacheck_executable = '/bin/other/opa'
|
|
|
|
AssertLinter '/bin/other/opa',
|
|
|
|
\ ale#Escape('/bin/other/opa') . ' check %s --format json '
|