| line | % | coverage | condition |
| 1381 | 50 | | Params::Get::get_params('input_file', @_) || {} |
| 1395 | 50 | | $params->{'allow_signature_exec'} // 0 |
| 100 | | $params->{'verbose'} // 0 |
| 100 | | $params->{'include_private'} // 0 |
| 67 | | $params->{'confidence_threshold'} // $DEFAULT_CONFIDENCE_THRESH |
| 67 | | $params->{'max_parameters'} // $DEFAULT_MAX_PARAMETERS |
| 1483 | 100 | | Params::Get::get_params(undef, @_) || {} |
| 1496 | 67 | | $self->{'_package_name'} //= $package_name |
| 1540 | 67 | | exists $schema->{'new'} and defined $schema->{'new'} |
| 1553 | 75 | | $ctor_body and $schemas{'new'} and my $reason = _constructor_requires_live_objects($ctor_body, $schemas{'new'}) |
| 1568 | 75 | | $ctor_body and $schemas{'new'} and my $reason = _constructor_needs_live_dependencies($schemas{'new'}) |
| 1573 | 33 | | $schemas{'new'}{'skip'} //= $reason |
| 1583 | 75 | | $ctor_body and $schemas{'new'} and _constructor_refuses_direct_instantiation($ctor_body, $schemas{'new'}) |
| 1590 | 33 | | exists $schema->{'new'} and defined $schema->{'new'} |
| 1605 | 33 | | $schema and ref $schema->{'output'} eq "HASH" |
| 1608 | 50 | | $method->{'body'} // "" |
| 1622 | 100 | | not defined $declared or $declared =~ /[\@%]\w+/ |
| 1624 | 100 | | $declared // "" |
| 1633 | 50 | | $schema->{'input'} // {} |
| 1636 | 100 | | defined $pos and $pos < @prefix |
| 1647 | 100 | | $body =~ /\breturn\s*;/ and not $body =~ /\breturn\s+[^\s;]/ |
| 50 | | $method->{'pod'} // "" |
| 100 | | $body =~ /\breturn\s+\@\{/ and ($method->{'pod'} // "") =~ /\b(?:a\s+)?list\s+of\b|\breturns?\s+a\s+list\b/i |
| 1676 | 50 | | $method->{'pod'} // "" |
| 1692 | 50 | | $method->{'pod'} // "" |
| 1693 | 50 | | $schema->{'skip'} //= "needs a hashref in the shape its POD documents; a generated hash has arbitrary keys" |
| 1700 | 50 | | $method->{'pod'} // "" |
| 1701 | 50 | | $schema->{'skip'} //= "needs a live database connection, which a fuzzer cannot provide" |
| 1706 | 100 | | ref $schema->{'new'} eq "HASH" and %{$schema->{'new'};} |
| 1710 | 67 | | $body =~ /\$self->\{\s*['"]?${p}['"]?\s*\}->\{/ || $body =~ /my\s+\$(\w+)\s*=\s*\$self->\{\s*['"]?${p}['"]?\s*\}/ && $body =~ /\$$1->\{/ |
| 1712 | 67 | | $reads_keys and $body =~ /\bcroak\b/ |
| 1718 | 100 | | $schema->{'input'} // {} |
| 1723 | 67 | | $body =~ /ref\(\s*\$args\{\s*['"]?${p}['"]?\s*\}\s*\)\s*(?:ne|eq)\s*['"]CODE['"]/ or $body =~ /\$args\{\s*['"]?${p}['"]?\s*\}\s*->\s*\(/ |
| 1766 | 67 | | $prefix =~ /\breturn\b/ || $prefix =~ /\b(?:croak|die|confess)\b[^;]*\bunless\b/ |
| 1769 | 67 | | not $accepts and $prefix =~ /\bif\s*\([^;{}]*$/ |
| 1805 | 100 | | @accepted and $croaks_about_param |
| 75 | | defined $pattern and _pattern_is_self_contained($pattern) and $body =~ /\bcroak\b[^;\n]*(?:not a valid|invalid)/i |
| 1823 | 100 | | $schemas{'new'} and $schemas{'new'}{'skip'} |
| 1827 | 67 | | exists $schema->{'new'} and defined $schema->{'new'} |
| 1850 | 33 | | ref $target_schema->{'output'} eq "HASH" and %{$target_schema->{'output'};} |
| 1855 | 50 | | ref $target_schema->{'input'} eq "HASH" and scalar keys %{$$target_schema{"input"};} |
| 1856 | 50 | | ref $schema->{'input'} eq "HASH" and scalar keys %{$$schema{"input"};} |
| 1876 | 33 | | $schemas{$method_name}{'skip'} //= "multi-package file; only the primary package $package_name is extracted" |
| 1954 | 100 | | $document->find('PPI::Statement::Package') || [] |
| 1959 | 67 | | $self->{'_package_name'} //= $pkgs->[0]->namespace |
| 1973 | 67 | | $pkgs and @$pkgs > 1 |
| 1986 | 33 | | $self->{'_package_name'} // $pkgs->[0]->namespace |
| 2022 | 100 | | $document->find('PPI::Statement::Sub') || [] |
| 2023 | 100 | | $document->find('PPI::Statement::Package') || [] |
| 2030 | 50 | | $document->find(sub {
$_[1]->content =~ /^\s*(?:before|after|around)\b/ if $_[1]->isa('PPI::Statement');
}
) || [] |
| 2044 | 100 | | $name =~ /^_/ and not $name =~ /^_(new|init|build)/ |
| 2063 | 100 | | @$pkgs <= 1 and $content =~ /\bclass\b/ |
| 2084 | 0 | | $next_sib and not $next_sib->isa("PPI::Statement::Sub") |
| 2088 | 0 | | $next_sib and $next_sib->isa("PPI::Statement::Sub") |
| 2173 | 50 | | $2 || '()' |
| 2176 | 33 | | $method_name =~ /^_/ and not $method_name =~ /^_(new|init|build)/ |
| 2242 | 67 | | $current and $steps++ < $POD_WALK_LIMIT |
| 2243 | 67 | | $current->isa("PPI::Token::Whitespace") or $current->isa("PPI::Token::Separator") |
| 50 | | $current->isa("PPI::Statement::Variable") and $current->content =~ /\A\s*(?:my|our)\b/ and not $current->content =~ /\bsub\b/ |
| 2248 | 25 | | not $skipped_declaration or defined $name and $content =~ /^=head[1-6]\s+\Q$name\E\b/m |
| 2281 | 75 | | $pod and defined $name and $pod =~ /^=head([1-6])\s+\Q$name\E\b/m |
| 2287 | 67 | | $self->{'_pod_method_names'}{&refaddr($doc)} ||= do {
my %names;
my $subs = $doc->find("PPI::Statement::Sub");
foreach my $method (@{[] unless $subs;}) {
my $method_name = eval {
do {
$method->name
}
};
$names{$method_name} = 1 if defined $method_name;
};
\%names
} |
| 2302 | 50 | | $heading_level < $level or $heading_level == $level and $method_names->{$title} |
| 2318 | 67 | | defined $name and not $pod =~ /^=head[1-6]\s+\Q$name\E\b/m |
| 2320 | 67 | | defined $named and length $named |
| 2380 | 50 | | $heads[$i][2] // "" |
| 75 | | ($heads[$i][2] // "") =~ /\A\Q$name\E\b/ or defined $synopsis and $synopsis =~ /^\s*\Q$name\E\s*\(/m |
| 2412 | 100 | | defined $pod and length $pod |
| 2415 | 67 | | defined $section and length $section |
| 2471 | 67 | | $method->{'fields'} and keys %{$$method{"fields"};} |
| 2503 | 100 | | $self->{'strict_pod'} and $pod |
| 2546 | 50 | | $pod_params->{$name}{'_source'} // "" |
| 2548 | 50 | | $schema->{'input'}{$name} //= {} |
| 2571 | 50 | | $schema->{'input'}{$_}{'_source'} //= "validator" |
| 2607 | 100 | | $method->{'name'} ne "new" and $needs_object |
| 2623 | 100 | | $schema->{'_analysis'} ||= {} |
| 2626 | 100 | | $schema->{'_analysis'}{'confidence_factors'} ||= {} |
| 2627 | 100 | | $schema->{'_analysis'}{'confidence_factors'}{'input'} ||= $input_confidence->{'factors'} |
| 2628 | 33 | | $schema->{'_analysis'}{'confidence_factors'}{'output'} ||= $output_confidence->{'factors'} |
| 2652 | 100 | | $input_level //= "none" |
| 2653 | 50 | | $output_level //= "none" |
| 2660 | 67 | | $relationships and @{$relationships;} |
| 2690 | 50 | | $schema->{'_yamltest_hints'} ||= {} |
| 2693 | 50 | | $schema->{'_yamltest_hints'}{'boundary_values'} ||= [] |
| 2707 | 100 | | $schema->{'_yamltest_hints'} ||= {} |
| 2714 | 100 | | $level_rank{$overall} < $level_rank{$LEVEL_MEDIUM} and $level_rank{$overall} < $self->{'confidence_threshold'} * 4 |
| 2809 | 75 | | $schema->{'output'} and $schema->{'output'}{'type'} and $schema->{'output'}{'type'} =~ /^(number|integer)$/ |
| 2814 | 67 | | $p->{'type'} and $p->{'type'} =~ /^(number|integer)$/ |
| 2881 | 50 | | $method->{'name'} // "" |
| 2932 | 100 | | $arg_guard || $conditional_arg |
| 75 | | $arg_guard || $conditional_arg and $code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=\s*(?:shift|\@_|\$_\[\d+\]|\$\w+)\b/x and $code =~ /return\b/ |
| 100 | | $code =~ /return\s+\$self\b/ and $code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=\s*\$(\w+)\s*;/ |
| 50 | | $code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=\s*shift\s*;/ and $code =~ /return\s+\$self\s*->\s*\{\s*['"]?\Q$1\E['"]?\s*\}\s*;/ and $code =~ /if\s*\(\s*\@_/ |
| 2953 | 0 | | $schema->{'input'} ||= {"value", {"type", "string", "optional", 1}} |
| 2992 | 40 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $conditional_arg and not $arg_guard and ref $schema->{'input'} eq "HASH" and scalar keys %{$$schema{"input"};} > 1 |
| 3028 | 50 | | $schema->{'input'} ||= {"value", {"type", "string", "optional", 1}} |
| 3104 | 50 | | $schema->{'output'} ||= {} |
| 3177 | 50 | | $schema->{'accessor'}{'type'} and $schema->{'accessor'}{'type'} =~ /setter|getset/ and $schema->{'input'} |
| 3181 | 100 | | $in->{'type'} and $in->{'type'} eq "object" |
| 3195 | 67 | | A | B | C | D | E | dec |
|---|
| 0 | X | X | X | X | 0 | | 1 | 0 | X | X | X | 0 | | 1 | 1 | 0 | X | X | 0 | | 1 | 1 | 1 | 0 | 0 | 0 | | 1 | 1 | 1 | 0 | 1 | 1 | | 1 | 1 | 1 | 1 | X | 1 |
| $schema->{'accessor'}{'type'} and $schema->{'accessor'}{'property'} and $schema->{'accessor'}{'type'} =~ /getter|getset/ and !defined($schema->{'output'}{'type'}) || $schema->{'output'}{'type'} eq 'string' |
| 3230 | 100 | | $args{'method'} // "UNKNOWN" |
| 3231 | 100 | | $args{'message'} // "Analysis error" |
| 3233 | 100 | | $self->{'_package_name'} // "UNKNOWN" |
| 3234 | 100 | | $self->{'input_file'} // "UNKNOWN" |
| 3274 | 50 | | $res and ref $res eq "HASH" and keys %{{} unless $res->{'input'};} |
| 3308 | 33 | | $child->isa("PPI::Statement") or $child->isa("PPI::Statement::Expression") |
| 3312 | 0 | | $_->isa('PPI::Token::Whitespace') || $_->isa('PPI::Token::Operator') |
| 3317 | 0 | | A | B | C | dec |
|---|
| 0 | 0 | X | 0 | | 0 | 1 | 0 | 0 | | 0 | 1 | 1 | 1 | | 1 | X | 0 | 0 | | 1 | X | 1 | 1 |
| $tokens[$i]->isa('PPI::Token::Word') || $tokens[$i]->isa('PPI::Token::Quote') and $tokens[$i + 1]->isa("PPI::Structure::Constructor") |
| 3326 | 0 | | $key and $val |
| 3330 | 0 | | $inner->isa("PPI::Statement") or $inner->isa("PPI::Statement::Expression") |
| 3333 | 0 | | $_->isa('PPI::Token::Whitespace') || $_->isa('PPI::Token::Operator') |
| 3337 | 0 | | $k and $v |
| 3343 | 0 | | $keyname =~ /^(min|max)$/ and &looks_like_number($value) |
| 3354 | 0 | | $param{'type'} //= "string" |
| 3355 | 0 | | $param{'optional'} //= 0 |
| 3396 | 67 | | ref $code and $code->can("find") |
| 3398 | 100 | | $self->{'_ppi_cache'} ||= {} |
| 3399 | 67 | | $self->{'_ppi_cache'}{$code} //= "PPI::Document"->new(\$code) |
| 3427 | 100 | | $_[1]->content eq "validate_strict" or $_[1]->content eq "Params::Validate::Strict::validate_strict" |
| 3432 | 67 | | $list and not $list->isa("PPI::Structure::List") |
| 3492 | 100 | | $_[1]->content eq "validate" or $_[1]->content eq "Params::Validate::validate" |
| 3497 | 67 | | $list and not $list->isa("PPI::Structure::List") |
| 3504 | 33 | | $schema_text and not $schema_text =~ /$UNSAFE_KEYWORD_RE/ |
| 3639 | 67 | | $list and not $list->isa("PPI::Structure::List") |
| 3646 | 33 | | $schema_text and not $schema_text =~ /$UNSAFE_KEYWORD_RE/ |
| 3727 | 67 | | $block and $block->can("children") |
| 3731 | 0 | | $result and ref $result eq "HASH" and $result->{'input'} |
| 4029 | 33 | | $signature_expr =~ /$UNSAFE_KEYWORD_RE/ or $signature_expr =~ /$UNSAFE_CHAR_RE/ |
| 4137 | 67 | | $stderr and length $stderr |
| 4145 | 67 | | defined $stdout and length $stdout |
| 4201 | 100 | | $type_map{$p->{'type'}} // "string" |
| 4220 | 50 | | $type_map{$ret->{'type'}} // "string" |
| 4292 | 33 | | @sig_params and $sig_params[0] =~ /^(self|class|pkg|proto|klass)$/i |
| 4296 | 33 | | $params{$param}{'position'} //= $position_counter |
| 4326 | 100 | | $line =~ /^\s*\$(\w+)\s*-\s*(\w+)(?:\s*\(([^)]+)\))?\s*,?\s*(.*)$/i or $line =~ /^\s*C<\$(\w+)>\s*-\s*(\w+)(?:\s*\(([^)]+)\))?\s*,?\s*(.*)$/i |
| 4336 | 100 | | $params{$name} ||= {"_source", "pod"} |
| 4346 | 33 | | $type eq "num" or $type eq "float" |
| 4360 | 100 | | $desc || '' |
| 100 | | $constraint || '' |
| 4377 | 100 | | $desc and $desc =~ m[matches?\s+(/[^/]+/|qr/.+?/)]i |
| 4408 | 50 | | $params{$name} ||= {"_source", "pod"} |
| 4412 | 33 | | $type eq "num" or $type eq "float" |
| 4475 | 33 | | defined $name and length $name |
| 4482 | 100 | | $params{$name} ||= {"_source", "pod"} |
| 4492 | 33 | | $type eq "num" or $type eq "float" |
| 4590 | 50 | | $params{$_}{'position'} // -1 |
| 4609 | 100 | | $params{$name} //= {"_source", "input_spec"} |
| 4640 | 100 | | exists $params{$name}{'min'} or exists $params{$name}{'max'} |
| 4676 | 50 | | $params{$bare_name} //= {"_source", "input_spec"} |
| 4682 | 50 | | $bare_type // "" |
| 4696 | 33 | | $1 // $2 |
| 4795 | 67 | | defined $pod and length $pod |
| 4855 | 67 | | $node and $node->can("tokens") |
| 4968 | 67 | | defined $type and length $type |
| 4969 | 50 | | defined $desc and not ref $desc and length $desc |
| 4971 | 100 | | $type eq "arrayref" and $desc =~ /\bof\s+\{([^}]+)\}/i |
| 4987 | 100 | | $type eq "arrayref" and $desc =~ /\bhashrefs?\b/i |
| 4991 | 100 | | $type eq "hashref" and $desc =~ /=>\s*\w+\s+hashref\b/i |
| 5050 | 100 | | $params->{$name} //= {} |
| 5060 | 33 | | defined $fields->{'isa'} and not $fields->{'isa'} =~ /\Aundef\z/i |
| 5064 | 33 | | ref $fields->{'enum'} eq "ARRAY" and @{$fields->{'enum'};} |
| 5066 | 67 | | defined $fields->{'min'} and $fields->{'min'} =~ /\A-?\d/ |
| 5068 | 67 | | defined $fields->{'max'} and $fields->{'max'} =~ /\A-?\d/ |
| 5130 | 33 | | defined $first and exists $types{lc $first} |
| 5146 | 75 | | defined $routine and defined $row_routine and $row_routine ne $routine |
| 5160 | 67 | | not defined $type and defined $type_word |
| 5163 | 33 | | not defined $type and $prose |
| 5170 | 100 | | $params->{$name} //= {} |
| 5182 | 67 | | $spec =~ /\boptional\b/i or $spec =~ /\bdefault\b/i |
| 5193 | 100 | | defined $type and $type eq "arrayref" and $spec =~ /\b(?:one\s+or\s+more|at\s+least\s+one|non-empty)\b/i |
| 5200 | 100 | | defined $type and $type eq "string" and $spec =~ /\b(?:readable|existing)\b[^;:]*\bfile\b/i |
| 5207 | 80 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $type and $type eq "string" and $spec =~ /\bdir(?:ectory)?\b/i and $spec =~ /\b(?:existing|readable|writable)\b/i |
| 5215 | 67 | | $name =~ /\A(?:bytes|blob)\z/i or $spec =~ /\braw\s+bytes\b|file'?s\s+contents|\bbinary\s+(?:data|contents)\b/i |
| 5218 | 50 | | $p->{'type'} //= "string" |
| 5243 | 100 | | defined $type and $type =~ /\A(?:integer|number)\z/ and $spec =~ /\bdefault\b\s*\(?\s*(-?\d[\d_]*)/i |
| 5250 | 50 | | A | B | C | D | E | dec |
|---|
| 0 | X | X | X | X | 0 | | 1 | 0 | X | X | X | 0 | | 1 | 1 | 0 | X | X | 0 | | 1 | 1 | 1 | 0 | 0 | 0 | | 1 | 1 | 1 | 0 | 1 | 1 | | 1 | 1 | 1 | 1 | X | 1 |
| defined $p->{'max'} and $default > 0 and $p->{'max'} >= 10 * $default and !defined($p->{'min'}) || $default >= $p->{'min'} |
| 5302 | 0 | | $p->{'_source'} // "" |
| 5303 | 0 | | $p->{'type'} // "" |
| 5305 | 0 | | defined $row_text{$name} and $row_text{$name} =~ /arrayref\s+of\s+\Q$kind\E\s+hashrefs/i |
| 5319 | 0 | | $p->{'_source'} // "" |
| 5321 | 0 | | defined $p->{'optional'} and not $p->{'optional'} |
| 5323 | 0 | | $p->{'type'} // "" |
| 5324 | 0 | | $type eq "arrayref" or $type eq "array" or $type eq "hashref" |
| 5326 | 0 | | ref $p->{'memberof'} eq "ARRAY" and @{$p->{'memberof'};} |
| 5426 | 33 | | $block =~ /^\{[^}]*\}/ and $block =~ /=>/ |
| 5428 | 50 | | $type eq "scalar" or $type eq "scalarref" or $type eq "str" |
| 5430 | 33 | | $type eq "float" or $type eq "num" |
| 5471 | 33 | | not $output->{'type'} and $returns_desc =~ /\bundef\b/i |
| 67 | | not $output->{'type'} and $returns_desc =~ /\b(string|text)\b/i |
| 67 | | not $output->{'type'} and $returns_desc =~ /\b(integer|int|count)\b/i |
| 33 | | not $output->{'type'} and $returns_desc =~ /\b(float|decimal|number)\b/i |
| 67 | | not $output->{'type'} and $returns_desc =~ /\b(boolean|true|false)\b/i |
| 33 | | not $output->{'type'} and $returns_desc =~ /\b(array|list)\b/i |
| 33 | | not $output->{'type'} and $returns_desc =~ /\b(hash|hashref|dictionary)\b/i |
| 67 | | not $output->{'type'} and $returns_desc =~ /\b(object|instance)\b/i |
| 5492 | 33 | | defined $output->{'type'} and $output->{'type'} eq "scalar" |
| 5495 | 50 | | $output->{'type'} ||= "boolean" |
| 5505 | 50 | | $output->{'type'} ||= "boolean" |
| 5513 | 100 | | not $output->{'type'} and $pod =~ /returns?\s+(?:an?\s+)?(\w+)/i |
| 5524 | 0 | | $type eq 1 or $type eq 0 |
| 5538 | 33 | | not $type and $pod =~ /returns?\s+.+\slist\b/i |
| 5667 | 100 | | $boolean_count >= 2 and $boolean_count >= $total_count * "0.8" |
| 5677 | 100 | | $code =~ /return\s+\$self\s*;/ and $code =~ /\$self\s*->\s*\{[^}]+\}\s*=/ |
| 5682 | 33 | | $self->{'_document'} and my $package_stmt = $self->{'_document'}->find_first("PPI::Statement::Package") |
| 5684 | 33 | | $self->{'_package_name'} //= $output->{'isa'} |
| 5709 | 0 | | $output->{'isa'} || 'UNKNOWN' |
| 5710 | 0 | | $self->{'_package_name'} //= $output->{'isa'} |
| 5723 | 50 | | $output->{'isa'} || 'UNKNOWN' |
| 5724 | 33 | | $self->{'_package_name'} //= $output->{'isa'} |
| 5755 | 100 | | $ops_ret =~ /=/ and $ops_ret =~ /\$\w+/ |
| 100 | | $ret eq 1 or $ret eq 0 |
| 5870 | 67 | | $return_types{'integer'} and not $return_types{'string'} |
| 5871 | 67 | | not $output->{'type'} or $output->{'type'} eq "scalar" |
| 5874 | 50 | | $output->{'_type_confidence'} ||= "low" |
| 5885 | 50 | | $output->{'_type_confidence'} ||= "medium" |
| 5894 | 67 | | $time_list and ($output->{'type'} // "") eq "array" |
| 50 | | $output->{'type'} // "" |
| 5903 | 100 | | @return_statements == 1 and $return_statements[0] eq 1 |
| 5905 | 33 | | not $output->{'type'} or $output->{'type'} eq "scalar" |
| 5947 | 67 | | not $output->{'type'} or $output->{'type'} eq "unknown" |
| 5950 | 67 | | $pod and not $output->{'type'} |
| 6010 | 20 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| not $output->{'type'} or $output->{'type'} eq "scalar" or $output->{'type'} eq "array" or $output->{'type'} eq "undef" |
| 6011 | 50 | | $output->{'type'} || 'none' |
| 6099 | 67 | | $comma_count > 0 and not $content =~ /\b(?:bless|new)\b/ |
| 6101 | 67 | | $output->{'type'} and $output->{'type'} eq "boolean" |
| 6209 | 100 | | $no_value_returns > 0 and $no_value_returns == $total_returns |
| 75 | | $true_returns > 0 and $true_returns == $total_returns and $total_returns >= 1 |
| 6217 | 100 | | $output->{'type'} and $output->{'type'} eq "boolean" |
| 6261 | 67 | | $self_returns > 0 and $total_returns > 0 |
| 6272 | 33 | | $self->{'_package_name'} //= $output->{'isa'} |
| 6341 | 100 | | $zero_returns > 0 and $one_returns > 0 |
| 6358 | 67 | | /^\s*undef\s*$/ || /^\s*$/ |
| 6360 | 50 | | $has_undef and $has_value and scalar @all_returns >= 2 |
| 6441 | 75 | | $expr =~ /^\@\w+/ or $expr =~ /^qw\(/ or $expr =~ /^\@\{/ |
| 6451 | 100 | | $expr =~ /^\[/ or $expr =~ /^\\\@/ |
| 6456 | 100 | | $expr =~ /^\{/ or $expr =~ /^\\\%/ |
| 6461 | 33 | | $expr =~ /^\%\w+/ or $expr =~ /^\%\{/ |
| 6466 | 67 | | $expr =~ /^['"]/ or $expr =~ /['"]$/ |
| 6521 | 80 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $pod =~ /returns?\s+(?:\$)?self\b/i or $pod =~ /chainable/i or $pod =~ /fluent\s+interface/i or $pod =~ /method\s+chaining/i |
| 6553 | 100 | | defined $output->{'type'} and $output->{'type'} eq "boolean" and not defined $output->{'value'} |
| 6556 | 50 | | $output->{'value'} and defined $output->{'type'} and $output->{'type'} ne "boolean" |
| 6589 | 67 | | defined $text and length $text |
| 6614 | 67 | | @values < 2 or @values > 20 |
| 6675 | 67 | | $param->{'type'} and $param->{'type'} eq "integer" |
| 6676 | 67 | | $param->{'type'} and $param->{'type'} eq "number" |
| 6706 | 75 | | defined $param->{'min'} or defined $param->{'max'} or $param->{'memberof'} |
| 6763 | 50 | | $params{$name} //= {"_source", "code", "position", $pos++} |
| 6772 | 100 | | $params{$param}{'_default'} and not $params{$param}{'type'} |
| 6827 | 100 | | $$p->{'type'} //= "number" |
| 6832 | 0 | | $$p->{'type'} //= "number" |
| 6918 | 100 | | $code =~ /\%\{\s*\$$param\s*\}/ or $code =~ /\$$param\s*->\s*\{/ |
| 67 | | $code =~ /\@\{\s*\$$param\s*\}/ or $code =~ /push\s*\(\s*\@?\$$param/ |
| 6930 | 100 | | not $p->{'type'} and $code =~ /\$$param\s*->\s*[A-Za-z_]\w*/ |
| 6940 | 100 | | not $p->{'type'} and exists $p->{'_default'} |
| 6964 | 100 | | $ops_code =~ /\$$param\s*(?:==|!=|<=|>=|<|>)/ or $ops_code =~ /(?:==|!=|<=|>=|<|>)\s*\$$param/ |
| 60 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $ops_code =~ m[\$$param\s*(?:[\+\*\%]|-(?!>|[A-Za-z]\b)|(?<!/)/(?!/))] or $ops_code =~ m[(?:[\+\*\%]|-(?!>|[A-Za-z]\b)|(?<!/)/(?!/))\s*\$$param] or $ops_code =~ /\bint\s*\(\s*\$$param\s*\)/ or $ops_code =~ /\babs\s*\(\s*\$$param\s*\)/ |
| 7065 | 33 | | defined $param and $param =~ /^\w+$/ |
| 7086 | 33 | | $code =~ /\$$param\s*->\s*isa\s*\(\s*['"]Time::Piece['"]\s*\)/i or $code =~ /\$$param\s*->\s*(strftime|epoch|year|mon|mday)/ |
| 7118 | 50 | | $code =~ /\$$param\s*>\s*\d{9,}/ or $code =~ /time\(\s*\)\s*-\s*\$$param/ or $code =~ /\$$param\s*-\s*time\(\s*\)/ |
| 7129 | 33 | | $code =~ /strptime\s*\(\s*\$$param/ or $code =~ /DateTime::Format::\w+\s*->\s*parse_datetime\s*\(\s*\$$param/ |
| 7157 | 75 | | defined $regex and $regex =~ /[Tt]/ and $regex =~ /[Zz]/ |
| 7190 | 33 | | defined $param and $param =~ /^\w+$/ |
| 7228 | 33 | | $code =~ /File::(?:Spec|Basename)::\w+\s*\(\s*\$$param/ or $code =~ /(?:basename|dirname|fileparse)\s*\(\s*\$$param/ |
| 7238 | 67 | | defined $p->{'_default'} and $p->{'_default'} =~ m[^([A-Za-z]:\\|/|\./|\.\./)] |
| 7246 | 33 | | $code =~ /\$$param\s*->\s*isa\s*\(\s*['"]IO::File['"]\s*\)/ or $code =~ /IO::File\s*->\s*new\s*\(\s*\$$param/ |
| 7279 | 33 | | defined $param and $param =~ /^\w+$/ |
| 7282 | 67 | | $code =~ /ref\s*\(\s*\$$param\s*\)\s*eq\s*['"]CODE['"]/i or $code =~ /ref\s*\(\s*\$args\{\s*['"]?${param}['"]?\s*\}\s*\)\s*eq\s*['"]CODE['"]/i |
| 7291 | 50 | | $code =~ /\$$param\s*->\s*\(/ or $code =~ /\$$param\s*->\s*\(\s*\@_\s*\)/ or $code =~ /&\s*\{\s*\$$param\s*\}/ |
| 7309 | 33 | | $code =~ /blessed\s*\(\s*\$$param\s*\)/ and $code =~ /ref\s*\(\s*\$$param\s*\)\s*eq\s*['"]CODE['"]/i |
| 7348 | 33 | | defined $param and $param =~ /^\w+$/ |
| 7368 | 67 | | defined $values_str and $code =~ /\$$hash_name\s*\{\s*\$$param\s*\}/ |
| 7424 | 33 | | $code =~ /\$$param\s*~~\s*\[([^\]]+)\]/ or $code =~ /\$$param\s*~~\s*qw\s*[\(\[<{]([^)\]>}]+)[\)\]>}]/ |
| 7483 | 67 | | $1 || $2 |
| 7490 | 100 | | $$p->{'_invalid'} ||= [] |
| 7491 | 100 | | $$p->{'_errors'} ||= [] |
| 7604 | 50 | | $params->{$name} //= {"_source", "code", "optional", 1, "position", $pos++} |
| 7620 | 50 | | $params->{$name} //= {"_source", "code", "optional", 1} |
| 7636 | 33 | | @shifts and $shifts[0] =~ /^(self|class|pkg|proto|klass)$/i |
| 7639 | 50 | | $params->{$param} ||= {"_source", "code", "optional", 1, "position", $pos++} |
| 7651 | 0 | | $params->{$param} ||= {"_source", "code", "optional", 1, "position", $pos++} |
| 7898 | 33 | | $default eq 1 or $default eq 0 |
| 7954 | 67 | | defined $value and $value ne "" |
| 8165 | 50 | | $params->{$param_name} ||= {} |
| 8286 | 50 | | $params->{$param} ||= {} |
| 8322 | 100 | | keys %{$params;} || $code =~ /my\s+\$(?:self|class|pkg|proto|klass)\s*=\s*\$_\[0\]/ |
| 8329 | 33 | | $position == 0 and $var =~ /^(self|class|pkg|proto|klass)$/i |
| 8333 | 0 | | $params->{$var} ||= {"position", $position++} |
| 8342 | 67 | | $position == 0 and $var =~ /^(self|class|pkg|proto|klass)$/i |
| 8346 | 50 | | $params->{$var} ||= {"position", $position++} |
| 8354 | 0 | | $index > 0 or not $var =~ /^(self|class|pkg|proto|klass)$/i |
| 8355 | 0 | | $params->{$var} ||= {"position", $index} |
| 8409 | 0 | | not defined $p->{'max'} or $max < $p->{'max'} |
| 8411 | 33 | | not defined $p->{'max'} or $val < $p->{'max'} |
| 8414 | 0 | | not defined $p->{'min'} or $min > $p->{'min'} |
| 8416 | 67 | | not defined $p->{'min'} or $val > $p->{'min'} |
| 8449 | 0 | | $balanced and $depth == 0 |
| 8551 | 50 | | $p->{'type'} ||= "string" |
| 8573 | 100 | | not $guarded and $code =~ /\$$param\s*([<>]=?)\s*([+-]?(?:\d+\.?\d*|\.\d+))/ |
| 8578 | 33 | | $p->{'type'} ||= &looks_like_number($val) ? "number" : "integer" |
| 8580 | 67 | | $op eq ">" or $op eq ">=" |
| 67 | | $op eq "<" or $op eq "<=" |
| 8583 | 33 | | not defined $p->{'max'} or $max < $p->{'max'} |
| 8586 | 33 | | not defined $p->{'min'} or $min > $p->{'min'} |
| 8593 | 50 | | $p->{'type'} ||= "string" |
| 8631 | 33 | | defined $pattern and length $pattern |
| 8685 | 100 | | defined $default_value and not exists $p->{'_default'} |
| 8691 | 0 | | defined $default_value and not ref $default_value |
| 8709 | 100 | | not $default_value || exists $p->{'_default'} and $code =~ /\$$param\s*=\s*([^;{}]+?)(?:\s*[;}])/s |
| 100 | | $default_value || exists $p->{'_default'} |
| 8712 | 100 | | $assignment =~ /\$$param/ or $assignment =~ /^shift/ |
| 8727 | 100 | | not $is_required and $code =~ /\b(?:if|unless)\s*\(\s*\$$param\s*\)/ |
| 8766 | 100 | | $pod->{$_}{'_source'} // "" |
| 8883 | 67 | | ref $name || $name =~ /\A(?:HASH|ARRAY|SCALAR|CODE|GLOB|REF|REGEXP|Regexp|LVALUE|VSTRING|FORMAT|IO)\(0x[0-9a-fA-F]+\)\z/ || $name =~ /\s/ |
| 8909 | 33 | | ref $pod eq "HASH" and ref $code eq "HASH" |
| 8917 | 100 | | not exists $code->{$_} and defined $pod->{$_}{'position'} |
| 8938 | 100 | | $pod->{$param} and defined $pod->{$param}{'position'} |
| 8939 | 33 | | $sig->{$param} and defined $sig->{$param}{'position'} |
| 8940 | 100 | | $code->{$param} and defined $code->{$param}{'position'} |
| 8953 | 100 | | $p->{'_source'} //= "pod" |
| 8957 | 100 | | $pod->{$param}{'_source'} // "pod" |
| 8959 | 67 | | exists $pod->{$param}{$key} and defined $pod->{$param}{$key} |
| 8960 | 33 | | $p->{'_constraint_source'}{$key} //= $source |
| 8978 | 100 | | $code->{$param}{'_type_confidence'} // "" |
| 8979 | 86 | | A | B | C | D | E | F | dec |
|---|
| 0 | 0 | X | X | X | X | 0 | | 0 | 1 | 0 | X | X | X | 0 | | 0 | 1 | 1 | 0 | X | X | 0 | | 0 | 1 | 1 | 1 | 0 | X | 0 | | 0 | 1 | 1 | 1 | 1 | 0 | 0 | | 0 | 1 | 1 | 1 | 1 | 1 | 1 | | 1 | X | X | X | X | X | 1 |
| not exists $p->{$key} or $key eq "type" and $from_pod and $p->{'type'} eq "string" and $code->{$param}{$key} ne "string" and not $heuristic_type |
| 8986 | 100 | | $p->{'_source'} //= $code->{$param}{'_source'} |
| 8998 | 0 | | $p->{'_source'} //= $sig->{$param}{'_source'} |
| 9011 | 50 | | $merged{$b}{'position'} || 999 |
| 50 | | $merged{$a}{'position'} || 999 |
| 9016 | 50 | | $p->{'type'} || 'none' |
| 9114 | 100 | | $p->{'type'} eq "string" and $p->{'min'} || $p->{'max'} || $p->{'matches'} |
| 9311 | 100 | | $output->{'_error_handling'} and $output->{'_error_handling'}{'exception_handling'} |
| 9367 | 50 | | $schema->{'method_name'} || 'method' |
| 9636 | 100 | | $code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+&&\s+\$$param2/ or $code =~ /(?:die|croak|confess)[^;]*if\s+\$$param2\s+&&\s+\$$param1/ |
| 9642 | 33 | | $rel->{'type'} eq "mutually_exclusive" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1) |
| 67 | | $rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1 |
| 9661 | 67 | | $code =~ /(?:die|croak|confess)\s+['"](Cannot|Can't)[^'"]*both[^'"]*${param1}[^'"]*$param2/i or $code =~ /(?:die|croak|confess)\s+['"](Cannot|Can't)[^'"]*both[^'"]*${param2}[^'"]*$param1/i |
| 9666 | 33 | | $rel->{'type'} eq "mutually_exclusive" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1) |
| 33 | | $rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1 |
| 9719 | 100 | | $code =~ /(?:die|croak|confess)[^;]*unless\s+\$$param1\s+\|\|\s+\$$param2/ or $code =~ /(?:die|croak|confess)[^;]*unless\s+\$$param2\s+\|\|\s+\$$param1/ |
| 9725 | 33 | | $rel->{'type'} eq "required_group" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1) |
| 33 | | $rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1 |
| 9745 | 67 | | $code =~ /(?:die|croak|confess)\s+['"]Must\s+specify\s+either[^'"]*${param1}[^'"]*or[^'"]*$param2/i or $code =~ /(?:die|croak|confess)\s+['"]Must\s+specify\s+either[^'"]*${param2}[^'"]*or[^'"]*$param1/i |
| 9750 | 33 | | $rel->{'type'} eq "required_group" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1) |
| 33 | | $rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1 |
| 9876 | 100 | | $code =~ /(?:die|croak|confess)\s+['"]\w*${param1}[^'"]*requires[^'"]*$param2/i and $code =~ /if\s+\$$param1\s+&&\s+!\$$param2/ |
| 9997 | 33 | | $self->{'_package_name'} //= $package_name |
| 10060 | 100 | | @with_pos and grep {not $output->{'input'}{$_}{'named'};} @without_pos |
| 10069 | 50 | | $schema->{'output'} and scalar keys %{$$schema{"output"};} |
| 10070 | 100 | | ref $schema->{'output'}{'_error_handling'} eq "HASH" and scalar keys %{$$schema{"output"}{"_error_handling"};} == 0 |
| 10079 | 67 | | $schema->{'output'}{'type'} and $schema->{'output'}{'type'} eq "scalar" |
| 10087 | 100 | | ref $schema->{'new'} or $schema->{'new'} eq $package_name |
| 10104 | 67 | | $schema->{'relationships'} and @{$schema->{'relationships'};} |
| 10108 | 100 | | $schema->{'accessor'} and scalar keys %{$$schema{"accessor"};} |
| 10188 | 67 | | $schema->{'relationships'} and @{$schema->{'relationships'};} |
| 10202 | 100 | | $schema->{'_notes'} and scalar @{$schema->{'_notes'};} |
| 10234 | 67 | | $p->{'type'} and $p->{'type'} eq "coderef" |
| 10238 | 100 | | $p->{'semantic'} and $p->{'semantic'} eq "filehandle" |
| 10242 | 100 | | $p->{'isa'} and $p->{'isa'} =~ /DateTime/ |
| 10299 | 67 | | defined $param->{'_source'} and length $param->{'_source'} |
| 10307 | 67 | | defined $source and length $source |
| 10317 | 50 | | $param->{'isa'} || 'DateTime' |
| 10321 | 0 | | $param->{'isa'} || 'Time::Piece' |
| 10326 | 50 | | $cleaned{'matches'} ||= "/^\\d{4}-\\d{2}-\\d{2}\$/" |
| 10332 | 0 | | $cleaned{'type'} //= "string" |
| 10335 | 50 | | $cleaned{'matches'} ||= "/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z?\$/" |
| 10339 | 50 | | $cleaned{'min'} ||= 0 |
| 10340 | 67 | | $cleaned{'max'} ||= $INT32_MAX |
| 10348 | 50 | | $param->{'isa'} || 'IO::Handle' |
| 10353 | 50 | | $cleaned{'matches'} ||= "/^[\\w\\/.\\-_]+\$/" |
| 10379 | 50 | | $param->{'_source'} // "" |
| 25 | | ($param->{'_source'} // "") eq "input_spec" and defined $param->{'type'} and $param->{'type'} ne "string" |
| 10384 | 33 | | $param->{'enum'} and ref $param->{'enum'} eq "ARRAY" |
| 10408 | 100 | | ($param->{'_source'} // '') eq 'input_spec' && defined $param->{'type'} && $param->{'type'} ne 'string' |
| 10409 | 60 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $param->{'enum'} and ref $param->{'enum'} eq "ARRAY" and not $cleaned{'enum'} and not $formal_non_string |
| 10412 | 67 | | $param->{'memberof'} and ref $param->{'memberof'} eq "ARRAY" |
| 10417 | 100 | | $param->{'isa'} and not $cleaned{'isa'} |
| 10433 | 50 | | &reftype($pattern) // "" |
| 10458 | 100 | | $cleaned{'semantic'} // "" |
| 10535 | 33 | | defined $body and length $body |
| 10548 | 67 | | $body =~ /\b(?:PPI::Document->new|_load_schema|_slurp|read_file|slurp_file)\s*\(\s*\$$v\b/ or $body =~ /\bopen\b\s*\(?[^;]*['"]<[^;]*\$$v\b/ |
| 10552 | 67 | | $body =~ /-[ef]\s+\$args\{\s*['"]?${p}['"]?\s*\}/ || $body =~ /-[ef]\s+\$$v\b/ || $body =~ /-[ef]\s+\$self->\{\s*['"]?${p}['"]?\s*\}/ |
| 10557 | 75 | | $tests_existence ||= $param eq 'config_file' && $body =~ /\bObject::Configure::configure\s*\(/ |
| 10574 | 50 | | $_[0] // "" |
| 10607 | 100 | | $depth == 0 and defined $pending |
| 10616 | 100 | | $depth == 0 and defined $name |
| 10649 | 50 | | $spec->{'type'} // "" |
| 10650 | 50 | | $type =~ /\bobject\b/ and not defined $spec->{'can'} and not defined $spec->{'isa'} |
| 10653 | 50 | | $spec->{'semantic'} // "" |
| 10671 | 33 | | defined $content and length $content |
| 10682 | 50 | | $spec->{'type'} // "" |
| 10683 | 67 | | $type eq "arrayref" or $type eq "array" |
| 10692 | 67 | | $content =~ /$field\s*(?:->\s*)?\[\s*[^\]]+\s*\]\s*->\s*\w+/ || $content =~ /\bblessed\s*\(\s*$field\s*(?:->\s*)?\[\s*[^\]]+\s*\]\s*\)/ |
| 10696 | 100 | | $empty_guard or $elements_are_objects |
| 10726 | 33 | | defined $pod and length $pod |
| 10755 | 67 | | defined $base and $base eq "Database::Abstraction" |
| 10757 | 50 | | $ctor_schema->{'input'} // {} |
| 10760 | 25 | | defined $join_column and not ref $join_column and length $join_column |
| 10795 | 100 | | ref $element eq "HASH" and ref $element->{'col'} eq "HASH" |
| 10796 | 33 | | ref $element->{'col'}{'memberof'} eq "ARRAY" and @{$element->{'col'}{'memberof'};} |
| 10838 | 67 | | $body =~ /\breturn\s*\{[^}]*\bdbh\s*=>/s and $pod =~ /\bdbh\b/ |
| 10841 | 33 | | $body =~ /\$self\s*->\s*\{_sqlite_cache\}\s*=\s*\{/s and $body =~ /\bdbh\s*=>/ |
| 10846 | 100 | | $pod =~ /\b(?:SQLite\s+)?cache/i and $body =~ /\$self\s*->\s*(?:_build_sqlite_cache|_sqlite_join|_sqlite_aggregate)\s*\(/ |
| 10859 | 50 | | $body // "" |
| 10877 | 33 | | defined $content and length $content |
| 10880 | 100 | | $content =~ /\bcroak\b/ and $content =~ /\beq\s+__PACKAGE__\b/ |
| 10903 | 50 | | $ctor_schema->{'input'} // {} |
| 10906 | 50 | | $input->{$param_name} // {} |
| 10927 | 50 | | $spec->{'type'} // "string" |
| 10966 | 50 | | $method_info ||= {} |
| 10974 | 67 | | $self->{'_package_name'} //= $current_package |
| 11016 | 50 | | $is_instance_method and $is_instance_method->{'explicit_self'} || $is_instance_method->{'shift_self'} || $is_instance_method->{'accesses_object_data'} || $is_instance_method->{'calls_instance_methods'} && scalar @{$is_instance_method->{'calls_instance_methods'};} |
| 11038 | 67 | | $inheritance_info and $inheritance_info->{'use_parent_constructor'} |
| 11078 | 100 | | $is_factory and not $skip_object |
| 11127 | 67 | | $method_body =~ /return\s+bless\s*\{[^}]*\},\s*['"]?(\w+(?:::\w+)*|\$\w+)['"]?/s or $method_body =~ /bless\s*\{[^}]*\},\s*['"]?(\w+(?:::\w+)*|\$\w+)['"]?.*return/s |
| 11146 | 100 | | $method_body =~ /return\s+([\$\w:]+)->new\(/s or $method_body =~ /([\$\w:]+)->new\(.*return/s |
| 11151 | 25 | | $target eq "\$self" or $target eq "shift" or $target =~ /^\$/ |
| 11167 | 33 | | $method_body =~ /return\s+([\$\w:]+)->(create_|make_|build_|get_)/i or $method_body =~ /([\$\w:]+)->(create_|make_|build_|get_).*return/is |
| 11176 | 50 | | $method_info and ref $method_info eq "HASH" and $method_info->{'pod'} |
| 11227 | 67 | | $method_body =~ /(?:my\s+)?(?:our\s+)?\$(?:instance|_instance|singleton)\b/s or $method_body =~ /state\s+\$(?:instance|_instance|singleton)\b/s |
| 11234 | 67 | | $method_body =~ /return\s+\$instance\s+if\s+(?:defined\s+)?\$instance/ or $method_body =~ /unless\s+\$instance.*?=\s*.*?new/ |
| 11241 | 67 | | $method_body =~ /\$instance\s*\|\|=\s*.*?new/ or $method_body =~ /\$instance\s*=\s*.*?new\s+unless\s+(?:defined\s+)?\$instance/ |
| 11329 | 67 | | $method_name =~ /^_/ and not $method_name =~ /^_new/ |
| 11376 | 100 | | $doc->find('PPI::Statement::Include') || [] |
| 11393 | 100 | | $doc->find('PPI::Statement::Variable') || [] |
| 11406 | 50 | | $doc->find('PPI::Statement') || [] |
| 11418 | 100 | | $method_body and $method_body =~ /SUPER::/ |
| 11597 | 50 | | $class eq "main" or $class eq "__PACKAGE__" or $class =~ /^\$/ |
| 11666 | 50 | | $_[1]->isa("PPI::Statement::Include") and $_[1]->type eq "use" and $_[1]->module =~ /^(parent|base)$/ |
| 11681 | 33 | | $isa_stmt and $isa_stmt->content =~ /['"](\w+(?:::\w+)*)['"]/ |
| 11717 | 33 | | $self->{'_package_name'} //= $package_name |
| 11766 | 100 | | $param and $code |
| 11912 | 100 | | $code =~ /\beq\s*''/ or $code =~ /\blength\s*\(/ |
| 12044 | 100 | | $hints->{'valid_inputs'} ||= [] |
| 12051 | 100 | | $hints->{$k} //= [] |
| 12189 | 100 | | $value =~ /^\$[a-zA-Z_]/ or $value =~ /\(.*\)/ |
| 12236 | 100 | | $pod_params->{$param} || {} |
| 12237 | 100 | | $code_params->{$param} || {} |
| 12244 | 100 | | $pod->{'_source'} // "" |
| 12246 | 100 | | exists $pod_params->{$param} and not exists $code_params->{$param} |
| 12251 | 67 | | not exists $pod_params->{$param} and exists $code_params->{$param} |
| 12265 | 100 | | $pod->{'type'} and $code->{'type'} and $pod->{'type'} ne $code->{'type'} |
| 12274 | 75 | | exists $pod->{'optional'} and exists $code->{'optional'} and $pod->{'optional'} != $code->{'optional'} |
| 12282 | 50 | | $pod->{'matches'} and $code->{'matches'} and $pod->{'matches'} ne $code->{'matches'} |
| 12288 | 100 | | defined $pod->{'min'} and defined $code->{'min'} and $pod->{'min'} != $code->{'min'} |
| 12292 | 100 | | defined $pod->{'max'} and defined $code->{'max'} and $pod->{'max'} != $code->{'max'} |
| 12296 | 100 | | defined $pod->{'min'} and defined $code->{'max'} and $pod->{'min'} > $code->{'max'} |
| 12300 | 75 | | defined $code->{'min'} and defined $pod->{'max'} and $code->{'min'} > $pod->{'max'} |