mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-25 01:38:41 +08:00
Add ansible-lint support and factor out PEP8 handler
This commit is contained in:
@@ -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',
|
||||
\})
|
||||
Reference in New Issue
Block a user