perlcritic.vim 778 B

12345678910111213141516171819202122232425262728
  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. if exists("current_compiler")
  10. finish
  11. endif
  12. let current_compiler = "perlcritic"
  13. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  14. command -nargs=* CompilerSet setlocal <args>
  15. endif
  16. let s:cpo_save = &cpo
  17. set cpo&vim
  18. CompilerSet makeprg=perlcritic\ --nocolor\ --quiet\ --verbose\ \"\\%f:\\%l:\\%c:\\%s:\\%m\\n\"
  19. CompilerSet errorformat=%f:%l:%c:%n:%m,
  20. \%-G%.%#
  21. let &cpo = s:cpo_save
  22. unlet s:cpo_save