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.)