File: test_ibm_openapi_validator.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (15 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Before:
  call ale#assert#SetUpLinterTest('openapi', 'ibm_validator')

After:
  call ale#assert#TearDownLinterTest()

Execute(The yaml ibm-openapi-validator command callback should return the correct default string):
  AssertLinter 'lint-openapi', ale#Escape('lint-openapi') . ' %t'

Execute(The yaml ibm-openapi-validator command callback should be configurable):
  let g:ale_openapi_ibm_validator_executable = '~/.local/bin/lint-openapi'
  let g:ale_openapi_ibm_validator_options = '-c ~/.config'

  AssertLinter '~/.local/bin/lint-openapi', ale#Escape('~/.local/bin/lint-openapi')
  \ . ' -c ~/.config %t'