perlcritic.vim 740 B

12345678910111213141516171819202122232425
  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. " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
  10. if exists("current_compiler")
  11. finish
  12. endif
  13. let current_compiler = "perlcritic"
  14. let s:cpo_save = &cpo
  15. set cpo&vim
  16. CompilerSet makeprg=perlcritic\ --nocolor\ --quiet\ --verbose\ \"\\%f:\\%l:\\%c:\\%s:\\%m\\n\"
  17. CompilerSet errorformat=%f:%l:%c:%n:%m,
  18. \%-G%.%#
  19. let &cpo = s:cpo_save
  20. unlet s:cpo_save