remove debug code from the Perl::Critic label scanner
This commit is contained in:
parent
ee9772d543
commit
9942f9e70d
1 changed files with 0 additions and 5 deletions
|
|
@ -110,8 +110,6 @@ sub violates {
|
|||
my $arg_list = $elem->snext_sibling;
|
||||
return unless ref $arg_list eq 'PPI::Structure::List';
|
||||
my @arguments = _get_args($arg_list);
|
||||
use Data::Dumper;
|
||||
print Dumper \@arguments;
|
||||
##First argument should be a quote, and there shouldn't be any operators when
|
||||
##constructing arguments for the get call.
|
||||
return if exists $arguments[0]->[1] and $arguments[0]->[1]->isa('PPI::Token::Operator');
|
||||
|
|
@ -121,9 +119,6 @@ sub violates {
|
|||
if ($arguments[1]) {
|
||||
$namespace = $arguments[1]->[0]->string;
|
||||
}
|
||||
print "object : $symbol_name\n";
|
||||
print "label : $label\n";
|
||||
print "namespace : $namespace\n";
|
||||
if (! $self->{i18n}->get($label, $namespace)) {
|
||||
return $self->violation(
|
||||
$DESC,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue