summaryrefslogtreecommitdiff
path: root/vim/compiler/perlcritic.vim
blob: b42a8e76f568756cb81929a264a1ca1dee22da55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
" Vim Compiler File
" Compiler: perlcritic
" Maintainer: Scott Peshak <speshak@gmail.com>
" Last Change: 2017 Feb 10

if exists("current_compiler")
finish
endif
let current_compiler = "perlcritic"

if exists(":CompilerSet") != 2 
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo-=C

" nshp - bump severity up to 4, add --quiet
CompilerSet makeprg=perlcritic\ -verbose\ 1\ -4\ --quiet\ %
CompilerSet errorformat=%f:%l:%c:%m

let &cpo = s:cpo_save
unlet s:cpo_save