24 Mar 2021 03:09:35 UTC
- Distribution: Perl-Critic
- Module version: 1.140
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (3028 / 5 / 1)
- KwaliteeBus factor: 2
- 90.11% Coverage
- License: perl_5
- Perl: v5.6.1
- Download (635.2KB)
- MetaCPAN Explorer
- Subscribe to distribution
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- This version
- Latest version++ed by:59 non-PAUSE users
- Jeffrey Thalhammer
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.
This is considered to be a non-public class. Its interface is subject to change without notice.
Create a new instance of Perl::Critic::Statistics. No arguments are supported at this time.
accumulate( $doc, \@violations )
Accumulates statistics about the
@violationsthat were found.
The number of chunks of code (usually files) that have been analyzed.
The total number of subroutines analyzed by this Critic.
The total number of statements analyzed by this Critic.
The total number of lines of code analyzed by this Critic.
The total number of blank lines analyzed by this Critic. This includes only blank lines in code, not POD or data.
The total number of comment lines analyzed by this Critic. This includes only lines whose first non-whitespace character is
The total number of lines of data section analyzed by this Critic, not counting the
__DATA__line. POD in a data section is counted as POD, not data.
The total number of lines of Perl code analyzed by this Critic. Perl appearing in the data section is not counted.
The total number of lines of POD analyzed by this Critic. Pod occurring in a data section is counted as POD, not as data.
The number of violations of each severity found by this Critic as a reference to a hash keyed by severity.
The number of violations of each policy found by this Critic as a reference to a hash keyed by full policy name.
The total number of violations found by this Critic.
The total number of statements minus the number of subroutines. Useful because a subroutine is considered a statement by PPI.
The average McCabe score of all scanned subroutines.
The total violations divided by the number of modules.
The total violations divided by the number statements minus subroutines.
The total violations divided by the lines of code.
Copyright (c) 2007-2011 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.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|