summaryrefslogtreecommitdiff
path: root/ale_linters/ansible/ansible-lint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/ansible/ansible-lint.vim')
-rw-r--r--ale_linters/ansible/ansible-lint.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/ale_linters/ansible/ansible-lint.vim b/ale_linters/ansible/ansible-lint.vim
new file mode 100644
index 00000000..a947d9e7
--- /dev/null
+++ b/ale_linters/ansible/ansible-lint.vim
@@ -0,0 +1,15 @@
+" Author: Bjorn Neergaard <bjorn@neersighted.com>
+" Description: ansible-lint for ansible-yaml files
+
+if exists('g:loaded_ale_linters_ansible_ansiblelint')
+ finish
+endif
+
+let g:loaded_ale_linters_ansible_ansiblelint = 1
+
+call ale#linter#Define('ansible', {
+\ 'name': 'ansible',
+\ 'executable': 'ansible',
+\ 'command': g:ale#util#stdin_wrapper . ' .yml ansible-lint -p',
+\ 'callback': 'ale#handlers#HandlePEP8Format',
+\})