File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function! ale_linters#rego#opacheck#GetCommand(buffer) abort
1111 let l: options = ale#Var (a: buffer , ' rego_opacheck_options' )
1212
1313 return ale#Escape (ale_linters#rego#opacheck#GetExecutable (a: buffer ))
14- \ . ' check %s --format json '
14+ \ . ' check %s:h --format json '
1515 \ . (! empty (l: options ) ? ' ' . l: options : ' ' )
1616endfunction
1717
Original file line number Diff line number Diff line change 88
99Execute(The default command should be correct):
1010 AssertLinter 'opa',
11- \ ale#Escape('opa') . ' check %s --format json '
11+ \ ale#Escape('opa') . ' check %s:h --format json '
1212
1313Execute(The default command should be overridden):
1414 let b:ale_rego_opacheck_executable = '/bin/other/opa'
1515 AssertLinter '/bin/other/opa',
16- \ ale#Escape('/bin/other/opa') . ' check %s --format json '
16+ \ ale#Escape('/bin/other/opa') . ' check %s:h --format json '
You can’t perform that action at this time.
0 commit comments