Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Announcing Perl-Critic-0.14

by simon.proctor (Vicar)
on Jan 30, 2006 at 09:55 UTC ( [id://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!

    -Jeff

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://526412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found