From b45a86dd15acf813106322630e13bf7dd39dfa22 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Tue, 6 Nov 2018 23:13:04 +0100 Subject: [PATCH] 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. --- 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 443434e4a..cea147bc1 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'