Bram Moolenaar | c0514bf | 2016-11-17 14:50:09 +0100 | [diff] [blame] | 1 | " Vim compiler file |
| 2 | " Compiler: Pylint for Python |
| 3 | " Maintainer: Daniel Moch <daniel@danielmoch.com> |
| 4 | " Last Change: 2016 May 20 |
| 5 | |
| 6 | if exists("current_compiler") |
| 7 | finish |
| 8 | endif |
| 9 | let current_compiler = "pylint" |
| 10 | |
| 11 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal |
| 12 | command -nargs=* CompilerSet setlocal <args> |
| 13 | endif |
| 14 | |
| 15 | CompilerSet makeprg=pylint\ --output-format=text\ --msg-template=\"{path}:{line}:{column}:{C}:\ [{symbol}]\ {msg}\"\ --reports=no |
| 16 | CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%# |