GithubHelp home page GithubHelp logo

flymake / emacs-flymake-perlcritic Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 2.0 45 KB

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

Home Page: http://www.illusori.co.uk/projects/emacs-flymake-perlcritic/

License: GNU General Public License v3.0

Emacs Lisp 93.51% Makefile 6.49%
flymake emacs perl

emacs-flymake-perlcritic's Introduction

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:

emacs-flymake-perlcritic's People

Contributors

dependabot[bot] avatar gemmaro avatar illusori avatar jcs090218 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emacs-flymake-perlcritic's Issues

don't run perl -c

Running perl -c on unknown files is dangerous because it executes BEGIN blocks, which could contain arbitrary code.

This module is currently a security risk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.