Skip to content

flymake/emacs-flymake-perlcritic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL v3 MELPA MELPA Stable

Perl::Critic plugin for Emacs Flymake mode

CI

Flymake mode is an Emacs mode that allows you to run continuous syntax checks against the current buffer "While U Type".

Perl::Critic is a static analysis tool for Perl that can be configured to produce a wide range of warnings and errors according to various customizable coding standards.

Emacs-flymake-perlcritic glues the two together, giving you continuous static analysis as you edit.

Setup

You will also need Perl::Critic installed, this can be installed via CPAN:

cpan Perl::Critic

Once you have both of those installed you can install flymake-perlcritic.el somewhere that emacs can find it and add something like the following to your .emacs:

;; If perlcritic isn't found correctly, specify the full path
(setq flymake-perlcritic-command "/path/to/perlcritic")

;; Lets set it to be the most severe available.
(setq flymake-perlcritic-severity 1)

;; If you don't want to use the default ~/.perlcriticrc
(setq flymake-perlcritic-profile "~/projects/big-project/perlcriticrc")

;; Setup Flymake perlcritic for Perl mode
(add-hook 'perl-mode-hook 'flymake-perlcritic-register)

Have fun.

See Also

You might also be interested in my patched version of flymake.el which contains fixes and enhancements that can be used by flymake-perlcritic.el, you can grab it from here: