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', 'swaglint')
5 call ale#assert#TearDownLinterTest()
7 Execute(The yaml swaglint command callback should return the correct default string):
8 AssertLinter 'swaglint', ale#Escape('swaglint') . ' -r compact --stdin'
10 Execute(The yaml swaglint command callback should be configurable):
11 let g:ale_yaml_swaglint_executable = '~/.local/bin/swaglint'
13 AssertLinter '~/.local/bin/swaglint',
14 \ ale#Escape('~/.local/bin/swaglint') . ' -r compact --stdin'
16 Execute(The yaml swaglint command callback should allow a global installation to be used):
17 let g:ale_yaml_swaglint_executable = '/usr/local/bin/swaglint'
18 let g:ale_yaml_swaglint_use_global = 1
20 AssertLinter '/usr/local/bin/swaglint',
21 \ ale#Escape('/usr/local/bin/swaglint') . ' -r compact --stdin'
23 Execute(The yaml swaglint command callback should allow a local installation to be used):
24 call ale#test#SetFilename('../test-files/swaglint/docs/swagger.yaml')
27 \ ale#path#Simplify(g:dir . '/../test-files/swaglint/node_modules/.bin/swaglint'),
28 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/swaglint/node_modules/.bin/swaglint'))
29 \ . ' -r compact --stdin'