WebGUI Perl::Critic policy. Handle the case when the namespace is
variable instead of a literal.
This commit is contained in:
parent
bb53b4f088
commit
0302e7b96e
1 changed files with 4 additions and 0 deletions
|
|
@ -96,6 +96,10 @@ sub violates {
|
||||||
my @arguments = _get_args($arg_list);
|
my @arguments = _get_args($arg_list);
|
||||||
my $namespace;
|
my $namespace;
|
||||||
if ($arguments[1]) {
|
if ($arguments[1]) {
|
||||||
|
my $secondArgument = $arguments[1]->[0];
|
||||||
|
return unless $secondArgument->isa('PPI::Token::Quote');
|
||||||
|
use Data::Dumper;
|
||||||
|
print Dumper($arguments[1]);
|
||||||
$namespace = $arguments[1]->[0]->string;
|
$namespace = $arguments[1]->[0]->string;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue