29150
|
1 " Vim compiler file
|
|
2 " Compiler: perlcritic
|
|
3 " Maintainer: vim-perl <vim-perl@googlegroups.com>
|
|
4 " Author: Doug Kearns <dougkearns@gmail.com>
|
|
5 " Homepage: https://github.com/vim-perl/vim-perl
|
|
6 " Bugs/requests: https://github.com/vim-perl/vim-perl/issues
|
|
7 " License: Vim License (see :help license)
|
|
8 " Last Change: 2021 Oct 20
|
|
9
|
|
10 if exists("current_compiler")
|
|
11 finish
|
|
12 endif
|
|
13 let current_compiler = "perlcritic"
|
|
14
|
|
15 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
16 command -nargs=* CompilerSet setlocal <args>
|
|
17 endif
|
|
18
|
|
19 let s:cpo_save = &cpo
|
|
20 set cpo&vim
|
|
21
|
|
22 CompilerSet makeprg=perlcritic\ --nocolor\ --quiet\ --verbose\ \"\\%f:\\%l:\\%c:\\%s:\\%m\\n\"
|
|
23 CompilerSet errorformat=%f:%l:%c:%n:%m,
|
|
24 \%-G%.%#
|
|
25
|
|
26 let &cpo = s:cpo_save
|
|
27 unlet s:cpo_save
|