summaryrefslogtreecommitdiff
path: root/ale_linters/openapi/yamllint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/openapi/yamllint.vim')
-rw-r--r--ale_linters/openapi/yamllint.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/openapi/yamllint.vim b/ale_linters/openapi/yamllint.vim
new file mode 100644
index 00000000..2b8952cc
--- /dev/null
+++ b/ale_linters/openapi/yamllint.vim
@@ -0,0 +1,9 @@
+call ale#Set('yaml_yamllint_executable', 'yamllint')
+call ale#Set('yaml_yamllint_options', '')
+
+call ale#linter#Define('openapi', {
+\ 'name': 'yamllint',
+\ 'executable': {b -> ale#Var(b, 'yaml_yamllint_executable')},
+\ 'command': function('ale#handlers#yamllint#GetCommand'),
+\ 'callback': 'ale#handlers#yamllint#Handle',
+\})