Nimbin[12]?Mirrors & Forks / syntastic / commits / b45a86dd

syntastic git · master

syntastic vim plugin (fork)

vim fork · first commit 2009-07-10 · last commit 2022-07-10 (4 years ago) · synced 3 days ago · upstream: github.com/vim-syntastic/syntastic

Vim Script 99%
git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gz

Checker ansible/ansible_lint: fix errorformat

Sebastian Meyer · 2018-11-06 22:13 · b45a86dd15acf813106322630e13bf7dd39dfa22

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.
 syntax_checkers/ansible/ansible_lint.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/syntax_checkers/ansible/ansible_lint.vim b/syntax_checkers/ansible/ansible_lint.vim
index 443434e4..cea147bc 100644
--- a/syntax_checkers/ansible/ansible_lint.vim
+++ b/syntax_checkers/ansible/ansible_lint.vim
@@ -29,6 +29,7 @@ function! SyntaxCheckers_ansible_ansible_lint_GetLocList() dict
     let makeprg = self.makeprgBuild({ 'args_after': '-p' })
 
     let errorformat =
+        \ '%f:%l: [E%n] %m,' .
         \ '%f:%l: [EANSIBLE%n] %m,' .
         \ '%f:%l: [ANSIBLE%n] %m'