Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2020-05-27 10:38 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (154 votes). Check out past polls.