Perl::Critic::ViolationA violation of a Policy found in some source code. | |
Download |
Perl::Critic::Violation Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jeffrey Ryan Thalhammer
- Publisher web site:
- http://search.cpan.org/~elliotjs/Perl-Critic/lib/Perl/Critic.pm
Perl::Critic::Violation Tags
Perl::Critic::Violation Description
A violation of a Policy found in some source code. Perl::Critic::Violation is a violation of a Policy found in some source code.SYNOPSIS use PPI; use Perl::Critic::Violation; my $elem = $doc->child(0); #$doc is a PPI::Document object my $desc = 'Offending code'; #Describe the violation my $expl = ; #Page numbers from PBP my $sev = 5; #Severity level of this violation my $vio = Perl::Critic::Violation->new($desc, $expl, $node, $sev);Perl::Critic::Violation is the generic representation of an individual Policy violation. Its primary purpose is to provide an abstraction layer so that clients of Perl::Critic don't have to know anything about PPI. The violations method of all Perl::Critic::Policy subclasses must return a list of these Perl::Critic::Violation objects. Requirements: · Perl
Perl::Critic::Violation Related Software