Checker ansible/ansible_lint: fix errorformat

ansible-lint now has a slightly different outputformat for errors:

prepare-host.yaml:24: [E302] chmod used in place of argument mode to
file module

Append the errorformat so this gets recognized by syntastic.
This commit is contained in:
Sebastian Meyer 2018-11-06 23:13:04 +01:00
parent c04603e1fd
commit b45a86dd15
No known key found for this signature in database
GPG Key ID: CC41E41BC2D45D73

View File

@ -29,6 +29,7 @@ function! SyntaxCheckers_ansible_ansible_lint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args_after': '-p' }) let makeprg = self.makeprgBuild({ 'args_after': '-p' })
let errorformat = let errorformat =
\ '%f:%l: [E%n] %m,' .
\ '%f:%l: [EANSIBLE%n] %m,' . \ '%f:%l: [EANSIBLE%n] %m,' .
\ '%f:%l: [ANSIBLE%n] %m' \ '%f:%l: [ANSIBLE%n] %m'