Perl::Critic::Statistics - Compile stats on Perl::Critic violations |
Perl::Critic::Statistics - Compile stats on Perl::Critic violations
This class accumulates statistics on Perl::Critic violations across one or more files. NOTE: This class is experimental and subject to change.
new()
accumulate( $doc, \@violations )
$doc
and the @violations
that were
found.
modules()
subs()
statements()
lines_of_code()
violations_by_severity()
violations_by_policy()
total_violations()
average_sub_mccabe()
violations_per_line_of_code()
Elliot Shank <perl@galumph.com>
Copyright (c) 2007 Elliot Shank
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
Perl::Critic::Statistics - Compile stats on Perl::Critic violations |