Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Announcing Perl-Critic-0.14

by simon.proctor (Vicar)
on Jan 30, 2006 at 09:55 UTC ( #526412=note: print w/replies, xml ) Need Help??

in reply to Announcing Perl-Critic-0.14

A product I use quite a lot is FxCop for .NET. Ignoring the fact that it is for .NET it has some quite nice features.

One feature I like especially (hence my comment here) is that each rule can point to the FxCop website with a discussion on the guideline and a code example that:

  • Breaks the rule
  • Shows the fix

Perhaps this is something that could be added? Certainly links to perlfaq where relevant. I realise you are citing the PBP book and point people at the pages in there but why not extend it a little more? It may help newer programmers who may not have the book or have the book to hand. It would also allow you to add more rules that are not necessarily from PBP but from other sources of knowledge such as this site.

Just a thought :)

Replies are listed 'Best First'.
Re^2: Announcing Perl-Critic-0.14
by jthalhammer (Friar) on Jan 30, 2006 at 20:21 UTC
    That's a great idea! I'm planning to support links to the Safari pages for PBP. Adding links to perlfaq or perlstyle should be doable too. In the meantime, you can get more information from perlcritic by using the "--verbose" option. For example...
      perlcritic --verbose=9 MyModule
    ...will add a complete discussion of the policy (including examples) to each violation. These are just pulled from the POD of the appropriate Perl::Critic::Policy subclass. You can also customize the output format to your liking. See the "--verbose" option in the perlcritic docs for more details.

    Thanks again for the suggestion!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://526412]
[erix]: to use anchors in a html table., how do I do that?
[erix]: I'm pretty sure I've done that before but I can't seem to get it right at the moment...
erix off to lookup some html 101 page

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2018-06-19 12:28 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (113 votes). Check out past polls.