codekingpro/portable-devtools
114k
1" Vim compiler file2" Compiler: Pylint for Python3" Maintainer: Daniel Moch <daniel@danielmoch.com>4" Last Change: 2024 Nov 07 by The Vim Project (added params variable)5" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)6" 2025 Nov 06 by the Vim Project (do not set buffer-local makeprg)7 8if exists("current_compiler") | finish | endif9let current_compiler = "pylint"10 11let s:cpo_save = &cpo12set cpo&vim13 14" CompilerSet makeprg=ruff15exe 'CompilerSet makeprg=' .. escape('pylint ' .16 \ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' .17 \ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", '--jobs=0')),18 \ ' \|"')19CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%#20 21let &cpo = s:cpo_save22unlet s:cpo_save23 