http://www.perlmonks.org?node_id=526412


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:

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