summaryrefslogtreecommitdiff
path: root/ale_linters/ansible/ansible-lint.vim
diff options
context:
space:
mode:
authorBjorn Neergaard <bjorn@neersighted.com>2016-10-20 09:23:23 -0500
committerBjorn Neergaard <bjorn@neersighted.com>2016-10-20 09:23:23 -0500
commitc34664120b53e48ae6719a11fbd0a46f233a4ac9 (patch)
tree22a1eae8b8bc5e37b50d467edc4756ccccc540a3 /ale_linters/ansible/ansible-lint.vim
parenta34fb0a6a7f920cd4d9a3e50facf51f8d5defea2 (diff)
downloadale-c34664120b53e48ae6719a11fbd0a46f233a4ac9.zip
Add ansible-lint support and factor out PEP8 handler
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..ee2465fb
--- /dev/null
+++ b/ale_linters/ansible/ansible-lint.vim
@@ -0,0 +1,15 @@
+" Author: w0rp <devw0rp@gmail.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',
+\})