summaryrefslogtreecommitdiff
path: root/ale_linters/ansible/ansible-lint.vim
blob: ee2465fb0ef68725aa34da1520563bb9c114ee50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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',
\})