Perl::Critic informal poll

ChrisDolan on 2006-09-17T21:21:40

I'm curious how many use.perl.org readers are using Perl::Critic, a static source code analyzer. So, here's a very unscientific poll. Please respond by commenting below. You may select more than one response.

1) Using Perl:Critic o I am unfamiliar with Perl::Critic o I've been meaning to try Perl::Critic o I've tried Perl::Critic, but it's too hard o I've tried Perl::Critic, but it's too strict o I use Perl::Critic on some of my code o I use Perl::Critic on all of my code

2) Perl::Critic policies o I use a small subset of the Perl::Critic policies o I use most of the Perl::Critic policies o I use all of the Perl::Critic policies o I use 3rd party policies from CPAN o I use home-grown policies

3) Configuration o I use the defaults o I use bin/perlcritic cmdline options o I use a global $HOME/.perlcriticrc o I use a per-module perlcriticrc o I configure Perl::Critic programmatically

4) Wrapper modules o I use Test::Perl::Critic o I use criticism.pm o I use perlcritic.com o None of the above

Thanks! This is just for my curiosity, but if there's enough of a response to get a consensus, I'll try to use this to drive future development.


FP

jk2addict on 2006-09-17T21:40:32

I use Perl::Critic on some of my code (Handel dist)

I use most of the Perl::Critic policies (all on by default, then disable things I don't agree with)

I use a per-module perlcriticrc. (custom rc file for the dist)

I use Test::Perl::Critic.

my answers

rhesa on 2006-09-17T21:41:38

1) Using Perl:Critic
    o I use Perl::Critic on some of my code

2) Perl::Critic policies
    o I use a small subset of the Perl::Critic policies

3) Configuration
    o I use a global $HOME/.perlcriticrc

4) Wrapper modules
    o None of the above

I like most of it, but my pet peeves are double sigils and postfix if/unless :)

informal response

dagolden on 2006-09-17T23:28:05

1) Using Perl::Critic
  o I'm familiar with Perl::Critic but haven't felt the need to try it

Sorry -- I think it's an amazing tool, but in the midst of other things, it hasn't made it onto my list of things to try out in the spare bits of time I have.

Re:informal response

ChrisDolan on 2006-09-18T01:18:37

No apologies needed. I haven't yet tried vanilla or strawberry perl. :-)

Test::Perl::Critic rocks

gabor on 2006-09-19T07:26:59

I am adding Test::Perl::Critic to my modules one at a time and fix code. As someone suggested on perl-qa I think, I started with level 5 and once all the code passes that level I move it to level 4.

I try to recommend it and use it at clients as well but in most cases just including 'use strict' would do wonders to their code. In such cases Perl::Critic is an overkill.

RE: Perl::Critic informal poll

altblue on 2006-09-21T09:14:13



1) Using Perl:Critic
o I use Perl::Critic on all my new code (ever since Sep. 2005) and slowly porting older code


2) Perl::Critic policies
o I use all of the Perl::Critic policies (except Miscellanea::RequireRcsKeywords)
o I use home-grown policies (obviously, a replacement for Miscellanea::RequireRcsKeywords)


3) Configuration
o I use bin/perlcritic cmdline options (always -1)
o I use a global $HOME/.perlcriticrc (severity changes)
o I use a per-module perlcriticrc (disabling Miscellanea::RequireRcsKeywords)
o I configure Perl::Critic programmatically (scarcely, usually for hackish optimizations)


4) Wrapper modules
o I use Test::Perl::Critic


__

Abigail on 2006-09-22T09:19:22

  1) Using Perl::Critic
     o) I'm familiar with Perl::Critic and don't see a reason to use it.

Re:__

ChrisDolan on 2006-09-22T14:06:27

Fair enough! I should have added that option in the original poll. I guess my bias was showing through. :-)

My answers

Yanick on 2006-09-22T14:47:42

1) Using Perl:Critic
    o I use Perl::Critic on some of my code

2) Perl::Critic policies
    o I use most of the Perl::Critic policies

3) Configuration
    o I use a global $HOME/.perlcriticrc
    o I use a per-module perlcriticrc

4) Wrapper modules
    o I use Test::Perl::Critic