All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('yaml', 'spectral')
5 call ale#assert#TearDownLinterTest()
7 Execute(The yaml spectral command callback should return the correct default string):
8 AssertLinter 'spectral', ale#Escape('spectral') . ' lint --ignore-unknown-format -q -f text %t'
10 Execute(The yaml spectral command callback should be configurable):
11 let g:ale_yaml_spectral_executable = '~/.local/bin/spectral'
13 AssertLinter '~/.local/bin/spectral',
14 \ ale#Escape('~/.local/bin/spectral')
15 \ . ' lint --ignore-unknown-format -q -f text %t'
17 Execute(The yaml spectral command callback should allow a global installation to be used):
18 let g:ale_yaml_spectral_executable = '/usr/local/bin/spectral'
19 let g:ale_yaml_spectral_use_global = 1
21 AssertLinter '/usr/local/bin/spectral',
22 \ ale#Escape('/usr/local/bin/spectral')
23 \ . ' lint --ignore-unknown-format -q -f text %t'
25 Execute(The yaml spectral command callback should allow a local installation to be used):
26 call ale#test#SetFilename('../test-files/spectral/openapi.yaml')
29 \ ale#path#Simplify(g:dir . '/../test-files/spectral/node_modules/.bin/spectral'),
30 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/spectral/node_modules/.bin/spectral'))
31 \ . ' lint --ignore-unknown-format -q -f text %t'