Files
ale/test/linter/test_rego_opacheck.vader
Braden Kelley 07b0496f6d
Some checks are pending
CI / build_image (push) Waiting to run
CI / test_ale (--linters-only) (push) Blocked by required conditions
CI / test_ale (--neovim-07-only) (push) Blocked by required conditions
CI / test_ale (--neovim-08-only) (push) Blocked by required conditions
CI / test_ale (--vim-80-only) (push) Blocked by required conditions
CI / test_ale (--vim-90-only) (push) Blocked by required conditions
Run opacheck on entire dir for more context (#4531)
Running `opa check` on a single file can report errors that might not
exist when considering other files in the same directory
2025-03-11 20:05:06 +00:00

17 lines
474 B
Plaintext

" 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:h --format json '
Execute(The default command should be overridden):
let b:ale_rego_opacheck_executable = '/bin/other/opa'
AssertLinter '/bin/other/opa',
\ ale#Escape('/bin/other/opa') . ' check %s:h --format json '