From 3d04430c50a44441fac1d08f7efad2b29f8ee697 Mon Sep 17 00:00:00 2001 From: Laurent Stacul Date: Wed, 26 Jan 2022 14:48:47 +0000 Subject: [PATCH] Checker python/pylint: display message ID For the time being, pylint error code (msg_id) are not display in the statusline and the location window. For instance, 1 test.y|89 col 13 warning| [consider-using-f-string] Formatting a regular string which could be a f-string [python/pylint] It would be great to have the ID of this message so that we can pass it directly to projects like `plerr`. This PR add the code next to the 'symbol' (like consider-using-f-string). As an example: 1 test.y|89 col 13 warning| [C0209][consider-using-f-string] Formatting a regular string which could be a f-string [python/pylint] --- syntax_checkers/python/pylint.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/python/pylint.vim b/syntax_checkers/python/pylint.vim index f93f60538..82d25edcb 100644 --- a/syntax_checkers/python/pylint.vim +++ b/syntax_checkers/python/pylint.vim @@ -50,7 +50,7 @@ endfunction " }}}1 function! SyntaxCheckers_python_pylint_GetLocList() dict " {{{1 let makeprg = self.makeprgBuild({ \ 'args_after': (s:pylint_new ? - \ '-f text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" -r n' : + \ '-f text --msg-template="{path}:{line}:{column}:{C}: [{msg_id}][{symbol}] {msg}" -r n' : \ '-f parseable -r n -i y') }) let errorformat =