Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Run Perl::Critic static analysis "While U Type" via Emacs Flymake.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Changes
Octocat-spinner-32 README.mkdn
Octocat-spinner-32 flymake-perlcritic.el
README.mkdn

Perl::Critic plugin for Emacs Flymake mode

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 flymake_perlcritic isn't in your path.
(setq flymake-perlcritic-command
  "~/projects/emacs-flymake-perlcritic/bin/flymake_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")

(require 'flymake-perlcritic)

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:

Something went wrong with that request. Please try again.