Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: perlcritic --color option not working

by toolic (Bishop)
on Dec 16, 2011 at 20:20 UTC ( [id://944010]=note: print w/replies, xml ) Need Help??


in reply to perlcritic --color option not working

Did you set color = 0 in your .perlcriticrc file?

I get red when I run this command:

$ echo foo | perlcritic --noprofile Code before strictures are enabled at line 1, column 1. See page 429 +of PBP. (Severity: 5)
See what's in your profile using:
perlcritic --profile-proto | grep color

Replies are listed 'Best First'.
Re^2: perlcritic --color option not working
by roadrider (Novice) on Dec 16, 2011 at 21:05 UTC
    Thanks for your reply. Actually my .perlcriticrc has specific colors set for the various severity levels. I tried using --noprofile but still no colors appear. I also tried commenting out the color specifications in my profile (to get the defaults) and that didn't work either.
      Do you have recent versions of perl and Perl::Critic?
      perl -v perl -MPerl::Critic -le 'print $Perl::Critic::VERSION'
      Take a look through the bug list. I didn't see anything related to color, but maybe you can get some debug tips. (Tip #11 from the Basic debugging checklist.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found