summaryrefslogtreecommitdiff
path: root/test/linter/test_rego_opacheck.vader
blob: 3b672282d1e906e1a893ea6f425d883ac9043f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

" 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 '

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 --format json '