in reply to Re: Perl::Critic usage
in thread Perl::Critic usage

I'm trying to use the perlcritic command line utility and is outputting all the violations inside my file, How can I distinguish each and every section of the violations. My intention is to parse the output of the perlcritic violations, assign some HTML tags and colors and mail them to the concerned user for fixing the issues.. How can I achieve that?

Replies are listed 'Best First'.
Re^3: Perl::Critic usage
by FalseVinylShrub (Chaplain) on Sep 25, 2009 at 10:06 UTC

    I see. Perhaps it is better to use the Perl::Critic module, if you are going to do further processing.

    As for distinguishing the violations, there are ways to set policies as to which to report, but I can't think of any way to explain them better than the documentation.

    You could make the violations easier to parse by specifying your own format string - comma separated or something.

    I don't think I can help more without getting into great details about your requirements, sorry.

    FVS.