| line | % | coverage | branch |
| 1383 | 50 | T | F | unless exists $params->{'input_file'} |
| 1399 | 100 | T | F | unless (-f $self->{'input_file'}) |
| 1490 | 50 | T | F | unless my $document = "PPI::Document"->new($self->{'input_file'}) |
| 1511 | 100 | T | F | if $method->{'name'} eq "new" |
| 1514 | 100 | T | F | if defined $target |
| 1526 | 100 | T | F | if (exists $schemas{'new'}) |
| 1531 | 50 | T | F | $new_method ? : |
| 1533 | 100 | T | F | if %{$object_stubs;} |
| 1536 | 100 | T | F | if (defined $ctor_args) |
| 1538 | 100 | T | F | if $method_name eq "new" |
| 1540 | 100 | T | F | unless exists $schema->{'new'} and defined $schema->{'new'} |
| 1553 | 100 | T | F | if ($ctor_body and $schemas{'new'} and my $reason = _constructor_requires_live_objects($ctor_body, $schemas{'new'})) |
| 1555 | 100 | T | F | unless %{$object_stubs;} |
| 1556 | 100 | T | F | unless %{$object_stubs;} |
| 1568 | 100 | T | F | if ($ctor_body and $schemas{'new'} and my $reason = _constructor_needs_live_dependencies($schemas{'new'})) |
| 1573 | 50 | T | F | unless %{$object_stubs;} |
| 1574 | 50 | T | F | unless %{$object_stubs;} |
| 1583 | 100 | T | F | if ($ctor_body and $schemas{'new'} and _constructor_refuses_direct_instantiation($ctor_body, $schemas{'new'})) |
| 1588 | 100 | T | F | if $method_name eq "new" |
| 1590 | 50 | T | F | unless exists $schema->{'new'} and defined $schema->{'new'} |
| 1605 | 50 | T | F | unless $schema and ref $schema->{'output'} eq "HASH" |
| 1620 | 100 | T | F | if ($body =~ /\bmy\s*(?:\(([^)]*)\)|(%\w+))\s*=\s*\@_/s) |
| 1622 | 100 | T | F | if (not defined $declared or $declared =~ /[\@%]\w+/) |
| 1625 | 100 | T | F | if $decl =~ /^\s*[\@%]/ |
| 1626 | 100 | T | F | if $decl =~ /^\s*\$(?!self\b|class\b)(\w+)/ |
| 1635 | 100 | T | F | exists $keep{$param} ? : |
| 1636 | 100 | T | F | if (defined $pos and $pos < @prefix) { } |
| 1641 | 100 | T | F | if @prefix |
| 1647 | 100 | T | F | if ($body =~ /\bcroak\b[^;\n]*must be implemented by subclass/) { } |
| 100 | T | F | elsif ($body =~ /\breturn\s+\@\{/ and ($method->{'pod'} // '') =~ /\b(?:a\s+)?list\s+of\b|\breturns?\s+a\s+list\b/i) { } |
| 100 | T | F | elsif ($body =~ /\breturn\s*;/ and not $body =~ /\breturn\s+[^\s;]/) { } |
| 50 | T | F | elsif ($body =~ /\breturn\s+\\?[A-Z]\w*(?:::\w+)+(?:->)?\w*\s*\(/) { } |
| 1668 | 100 | T | F | if (_always_croaks($body)) |
| 1676 | 100 | T | F | if (_keeps_database_handle($body, $method->{'pod'} // "")) |
| 1680 | 100 | T | F | if (my $skip = _requires_input_file($body, $schema->{'input'})) |
| 1692 | 100 | T | F | if ((my $pod = $method->{'pod'} // "") =~ /(?:HASHREF|hashref)\s+of\s*\{|(?:HASHREF|hashref)[^\n]*\bmodel store\b/i) |
| 1700 | 100 | T | F | if ((my $pod = $method->{'pod'} // "") =~ /HASHREF[^\n]*\{[^}]*\bdatabase\b[^}]*\b(?:username|password)\b/i) |
| 1706 | 100 | T | F | if (ref $schema->{'new'} eq "HASH" and %{$schema->{'new'};}) |
| 1712 | 100 | T | F | unless $reads_keys and $body =~ /\bcroak\b/ |
| 1713 | 50 | T | F | if $self->{'_package_name'} |
| 1720 | 50 | T | F | unless ref $spec eq "HASH" |
| 1723 | 100 | T | F | if ($body =~ /ref\(\s*\$args\{\s*['"]?${p}['"]?\s*\}\s*\)\s*(?:ne|eq)\s*['"]CODE['"]/ or $body =~ /\$args\{\s*['"]?${p}['"]?\s*\}\s*->\s*\(/) |
| 1731 | 100 | T | F | if ($body =~ /my\s+\$(\w+)\s*=\s*\$args\{\s*['"]?${p}['"]?\s*\}/) |
| 1733 | 100 | T | F | if ($body =~ /[\$%](\w+)\s*\{\s*\$$var\s*\}/) |
| 1735 | 50 | T | F | $self->{'_document'} ? : |
| 1736 | 50 | T | F | if ($source =~ /%$const\s*(?:=|=>)\s*.*?qw\s*[\(\{\[]([^\)\}\]]+)[\)\}\]]/s) |
| 1738 | 50 | T | F | if @values |
| 1758 | 50 | T | F | if $from < 0 |
| 1766 | 100 | T | F | $prefix =~ /\breturn\b[^;]*\bunless\b/ ? : |
| 1769 | 50 | T | F | if (not $accepts and $prefix =~ /\bif\s*\([^;{}]*$/) |
| 1773 | 0 | T | F | if ($brace >= 0) |
| 1775 | 0 | T | F | $close >= 0 ? : |
| 1777 | 0 | T | F | $block =~ /\breturn\b/ ? : |
| 1780 | 100 | T | F | unless $accepts |
| 1783 | 50 | T | F | if $prefix =~ /\b(?:croak|die|confess)\b[^;]*\bif\b/ |
| 1784 | 50 | T | F | unless (_pattern_is_self_contained($pattern)) |
| 1794 | 100 | T | F | unless $body =~ /\b(?:croak|die|confess)\b[^;]*$subject/s |
| 1800 | 100 | T | F | if ($body =~ m[\$args\{\s*['"]?${p}['"]?\s*\}\s*=~\s*/([^/\n]+)/]) { } |
| 100 | T | F | elsif ($body =~ m[\$$p\b\s*=~\s*/([^/\n]+)/]) { } |
| 1805 | 100 | T | F | if (@accepted and $croaks_about_param) { } |
| 50 | T | F | elsif (defined $pattern and _pattern_is_self_contained($pattern) and $body =~ /\bcroak\b[^;\n]*(?:not a valid|invalid)/i) { } |
| 1810 | 100 | T | F | @accepted == 1 ? : |
| 1823 | 100 | T | F | if ($schemas{'new'} and $schemas{'new'}{'skip'}) |
| 1825 | 100 | T | F | if $method_name eq "new" |
| 1827 | 100 | T | F | unless exists $schema->{'new'} and defined $schema->{'new'} |
| 1839 | 50 | T | F | if $method_name eq $target |
| 1841 | 100 | T | F | unless $target_schema |
| 1844 | 50 | T | F | unless $schema |
| 1850 | 50 | T | F | if (ref $target_schema->{'output'} eq "HASH" and %{$target_schema->{'output'};}) |
| 1855 | 100 | T | F | unless ref $target_schema->{'input'} eq "HASH" and scalar keys %{$$target_schema{"input"};} |
| 1856 | 50 | T | F | if ref $schema->{'input'} eq "HASH" and scalar keys %{$$schema{"input"};} |
| 1873 | 100 | T | F | if ($self->{'_multiple_packages'}) |
| 1880 | 100 | T | F | unless ($params->{'no_write'}) |
| 1914 | 50 | T | F | unless defined $code |
| 1921 | 100 | T | F | $body =~ /\A\{ (?:my \$self = shift; )?(?:carp\s+(?:'[^']*'|"[^"]*")\s*; )?return \$self->(\w+)\(\s*\\?\@_\s*\); \}\z/ ? : |
| 1951 | 100 | T | F | unless (defined $document) |
| 1955 | 100 | T | F | if (@$pkgs == 0) |
| 1957 | 50 | T | F | $package_stmt ? : |
| 1960 | 100 | T | F | if (@$pkgs > 1) |
| 1973 | 100 | T | F | unless $pkgs and @$pkgs > 1 |
| 1976 | 50 | T | F | unless ref $loc eq "ARRAY" |
| 1981 | 50 | T | F | unless ref $pkg_loc eq "ARRAY" |
| 1982 | 100 | T | F | if $pkg_loc->[0] > $loc->[0] |
| 2036 | 50 | T | F | unless defined $name |
| 2039 | 100 | T | F | unless $self->_in_primary_package($sub, $pkgs) |
| 2040 | 100 | T | F | if $name =~ /^(BEGIN|END|DESTROY|AUTOLOAD|CHECK|INIT|UNITCHECK)$/ |
| 2041 | 50 | T | F | if $name =~ /::/ |
| 2044 | 100 | T | F | if ($name =~ /^_/ and not $name =~ /^_(new|init|build)/) |
| 2045 | 100 | T | F | unless $self->{'include_private'} |
| 2063 | 100 | T | F | if (@$pkgs <= 1 and $content =~ /\bclass\b/) |
| 2076 | 0 | T | F | unless $self->_in_primary_package($decl, $pkgs) |
| 2078 | 0 | T | F | if ($content =~ /^\s*(before|after|around)\s+['"]?(\w+)['"]?\b/) |
| 2088 | 0 | T | F | if ($next_sib and $next_sib->isa("PPI::Statement::Sub")) |
| 2108 | 100 | T | F | if ($seen{$n}++) { } |
| 2162 | 50 | T | F | unless defined $extracted |
| 2176 | 50 | T | F | if ($method_name =~ /^_/ and not $method_name =~ /^_(new|init|build)/) |
| 2177 | 0 | T | F | unless $self->{'include_private'} |
| 2233 | 50 | T | F | $sub->can('name') ? : |
| 2243 | 100 | T | F | if ($current->isa('PPI::Token::Pod')) { } |
| 100 | T | F | elsif ($current->isa('PPI::Token::Comment')) { } |
| 100 | T | F | elsif ($current->isa('PPI::Token::Whitespace') or $current->isa('PPI::Token::Separator')) { } |
| 100 | T | F | elsif ($current->isa('PPI::Statement::Include')) { } |
| 100 | T | F | elsif ($current->isa('PPI::Statement::Variable') and $current->content =~ /\A\s*(?:my|our)\b/ and not $current->content =~ /\bsub\b/) { } |
| 2248 | 50 | T | F | if (not $skipped_declaration or defined $name and $content =~ /^=head[1-6]\s+\Q$name\E\b/m) |
| 2256 | 50 | T | F | if ($comment =~ /#\s*(?:param|arg|input)\s+\$(\w+)\s*:\s*(.+)/i) |
| 2281 | 100 | T | F | if ($pod and defined $name and $pod =~ /^=head([1-6])\s+\Q$name\E\b/m) |
| 2286 | 50 | T | F | if (my $doc = eval {
do {
$sub->document
}
}) |
| 2290 | 50 | T | F | unless $subs |
| 2292 | 50 | T | F | if defined $method_name |
| 2301 | 100 | T | F | if $-[0] == 0 |
| 2302 | 50 | T | F | if ($heading_level < $level or $heading_level == $level and $method_names->{$title}) |
| 2308 | 50 | T | F | if (defined $cut) |
| 2318 | 100 | T | F | if (defined $name and not $pod =~ /^=head[1-6]\s+\Q$name\E\b/m) |
| 2320 | 100 | T | F | if defined $named and length $named |
| 2350 | 50 | T | F | unless my $doc = eval {
do {
$sub->document
}
} |
| 2351 | 100 | T | F | unless my $tokens = $doc->find("PPI::Token::Pod") |
| 2366 | 100 | T | F | unless $heads[$j][1] <= $level |
| 2380 | 100 | T | F | unless ($heads[$i][2] // "") =~ /\A\Q$name\E\b/ or defined $synopsis and $synopsis =~ /^\s*\Q$name\E\s*\(/m |
| 2412 | 100 | T | F | unless defined $pod and length $pod |
| 2415 | 100 | T | F | unless defined $section and length $section |
| 2417 | 100 | T | F | if $section =~ /\b(?:creates?|writes?|rewrites?|overwrites?|updates?)\b[^.\n]*\bfiles?\b/i |
| 2418 | 50 | T | F | if $section =~ /\bfiles?\b[^.\n]*\b(?:is|are)\s+(?:created|written|rewritten|overwritten|updated)\b/i |
| 2471 | 50 | T | F | if ($method->{'fields'} and keys %{$$method{"fields"};}) |
| 2494 | 100 | T | F | if $self->_pod_documents_class_invocant($pod) |
| 2503 | 100 | T | F | if ($self->{'strict_pod'} and $pod) |
| 2514 | 100 | T | F | if (@validation_errors) |
| 2522 | 100 | T | F | if ($self->{'strict_pod'} == $STRICT_POD_FATAL) { } |
| 2535 | 100 | T | F | if ($validator_params) { } |
| 2546 | 50 | T | F | unless ($pod_params->{$name}{'_source'} // "") eq "input_spec" |
| 2549 | 50 | T | F | if defined $pod_p->{'optional'} |
| 2550 | 50 | T | F | if defined $pod_p->{'memberof'} |
| 2551 | 50 | T | F | if defined $pod_p->{'matches'} |
| 2552 | 50 | T | F | if defined $pod_p->{'type'} |
| 2553 | 50 | T | F | if defined $pod_p->{'min'} |
| 2554 | 50 | T | F | if defined $pod_p->{'max'} |
| 2557 | 100 | T | F | if ref $pod_p->{'schema'} eq "HASH" |
| 2562 | 50 | T | F | unless defined $pod_p->{$key} |
| 2574 | 100 | T | F | if (keys %$fields) |
| 2607 | 100 | T | F | if ($method->{'name'} ne "new" and $needs_object) |
| 2614 | 50 | T | F | unless (ref $input_confidence) |
| 2635 | 50 | T | F | if ($input_confidence->{'per_parameter'}) |
| 2654 | 100 | T | F | $level_rank{$input_level} < $level_rank{$output_level} ? : |
| 2660 | 100 | T | F | if ($relationships and @{$relationships;}) |
| 2666 | 100 | T | F | if keys %$attributes |
| 2667 | 100 | T | F | if keys %$postfix_derefs |
| 2668 | 100 | T | F | if keys %$fields |
| 2671 | 100 | T | F | if ($method->{'class'}) |
| 2681 | 50 | T | F | defined $_ ? : |
| 2689 | 100 | T | F | if ($self->_method_has_numeric_intent($schema)) |
| 2695 | 0 | T | F | defined $_ ? : |
| 2699 | 100 | T | F | defined $v ? : |
| 2700 | 50 | T | F | unless $seen{$key}++ |
| 2706 | 50 | T | F | if (keys %$hints) |
| 2710 | 100 | T | F | unless exists $schema->{'_yamltest_hints'}{$k} |
| 2714 | 100 | T | F | if ($level_rank{$overall} < $level_rank{$LEVEL_MEDIUM} and $level_rank{$overall} < $self->{'confidence_threshold'} * 4) |
| 2732 | 50 | T | F | if ($schema->{'output'}) |
| 2771 | 50 | T | F | if ($self->_pod_documents_file_write($pod)) |
| 2809 | 100 | T | F | if $schema->{'output'} and $schema->{'output'}{'type'} and $schema->{'output'}{'type'} =~ /^(number|integer)$/ |
| 2812 | 100 | T | F | unless $schema->{'input'} |
| 2813 | 100 | T | F | if $p->{'optional'} |
| 2814 | 100 | T | F | if $p->{'type'} and $p->{'type'} =~ /^(number|integer)$/ |
| 2881 | 100 | T | F | if ($method->{'name'} // "") eq "new" |
| 2894 | 100 | T | F | if (keys %fields_seen > 1) |
| 2914 | 100 | T | F | if $arg eq "self" |
| 2915 | 100 | T | F | if ($code =~ /(?:if|unless)\s*\(?\s*(?:defined\s*\(?\s*)?\$\Q$arg\E\b/) |
| 2927 | 100 | T | F | $code =~ /\bif\s*\(\s*(?:\@_|scalar\s*\(\s*\@_\s*\))/ ? : |
| 2932 | 50 | T | F | if ($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*\@_/) { } |
| 100 | T | F | elsif ($arg_guard || $conditional_arg and $code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=\s*(?:shift|\@_|\$_\[\d+\]|\$\w+)\b/x and $code =~ /return\b/) { } |
| 100 | T | F | elsif ($code =~ /return\s+\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*;/) { } |
| 100 | T | F | elsif ($code =~ /return\s+\$self\b/ and $code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=\s*\$(\w+)\s*;/) { } |
| 2940 | 0 | T | F | unless (defined $property) |
| 2941 | 0 | T | F | if ($code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=\s*shift\s*;/) |
| 2961 | 0 | T | F | if (my $pod = $method->{'pod'}) |
| 2962 | 0 | T | F | if ($pod =~ /\b(LWP::UserAgent(?:::\w+)*)\b/) |
| 2992 | 50 | T | F | if ($conditional_arg and not $arg_guard and ref $schema->{'input'} eq "HASH" and scalar keys %{$$schema{"input"};} > 1) |
| 2998 | 50 | T | F | unless (defined $property) |
| 2999 | 50 | T | F | if ($code =~ /\$self\s*->\s*\{\s*['"]?([^}'"]+)['"]?\s*\}\s*=/) |
| 3003 | 100 | T | F | if ($code =~ /validate_strict/) { } |
| 3009 | 50 | T | F | if ($code =~ /blessed\s*\(\s*\$(\w+)\s*\)/) { } |
| 3038 | 100 | T | F | if (my $pod = $method->{'pod'}) |
| 3039 | 50 | T | F | if ($pod =~ /\b(LWP::UserAgent(?:::\w+)*)\b/) |
| 3063 | 50 | T | F | if (ref $schema->{'input'} eq "HASH") |
| 3065 | 50 | T | F | if (scalar @input_keys > 1) { } |
| 50 | T | F | elsif (@input_keys == 1) { } |
| 3086 | 100 | T | F | unless ($code =~ /\$self\s*->\s*\{\s*['"]?\Q$property\E['"]?\s*\}\s*=\s*(?:shift|\$\w+\s*=\s*shift|\@_|\$_\[\d+\])/) |
| 3090 | 100 | T | F | if (scalar @returns == scalar @self_returns) |
| 3105 | 50 | T | F | if ($code =~ m(\$self\s*->\s*\{\s*['"]?\Q$property\E['"]?\s*\}\s*//=\s*\[)) { } |
| 50 | T | F | elsif ($code =~ m[\$self\s*->\s*\{\s*['"]?\Q$property\E['"]?\s*\}\s*//=\s*\{]) { } |
| 3146 | 100 | T | F | if ($1 =~ /(?:->|::)\w+\s*\([^)]*\$\Q$param\E\b/) |
| 3161 | 100 | T | F | if ($schema->{'output'}{'_returns_self'}) { } |
| 50 | T | F | elsif (scalar keys %{$$schema{'output'};} != 0) { } |
| 3162 | 50 | T | F | if ($schema->{'output'}{'type'} ne "object") |
| 3165 | 50 | T | F | if ($schema->{'output'}{'isa'} ne $self->{'_package_name'}) |
| 3176 | 100 | T | F | if (exists $schema->{'accessor'}) |
| 3177 | 50 | T | F | if ($schema->{'accessor'}{'type'} and $schema->{'accessor'}{'type'} =~ /setter|getset/ and $schema->{'input'}) |
| 3181 | 100 | T | F | if ($in->{'type'} and $in->{'type'} eq "object") |
| 3184 | 50 | T | F | $in->{'isa'} ? : |
| 3195 | 100 | T | F | if ($schema->{'accessor'}{'type'} and $schema->{'accessor'}{'property'} and $schema->{'accessor'}{'type'} =~ /getter|getset/ and !defined($schema->{'output'}{'type'}) || $schema->{'output'}{'type'} eq 'string') |
| 3197 | 100 | T | F | if (my $pod = $method->{'pod'}) |
| 3199 | 100 | T | F | if ($pod =~ /\bUser[- ]?Agent\b.*\bobject\b/i) |
| 3274 | 50 | T | F | unless $res->{'input'} |
| 50 | T | F | if $res and ref $res eq "HASH" and keys %{{} unless $res->{'input'};} |
| 3308 | 50 | T | F | if ($child->isa("PPI::Statement") or $child->isa("PPI::Statement::Expression")) |
| 3317 | 0 | T | F | if ($tokens[$i]->isa('PPI::Token::Word') || $tokens[$i]->isa('PPI::Token::Quote') and $tokens[$i + 1]->isa("PPI::Structure::Constructor")) |
| 3326 | 0 | T | F | unless $key and $val |
| 3330 | 0 | T | F | unless $inner->isa("PPI::Statement") or $inner->isa("PPI::Statement::Expression") |
| 3337 | 0 | T | F | unless $k and $v |
| 3340 | 0 | T | F | $v->can('content') ? : |
| 3341 | 0 | T | F | if defined $value |
| 3343 | 0 | T | F | if ($keyname eq 'type') { } |
| 0 | T | F | elsif ($keyname eq 'optional') { } |
| 0 | T | F | elsif ($keyname =~ /^(min|max)$/ and &looks_like_number($value)) { } |
| 0 | T | F | elsif ($keyname eq 'matches') { } |
| 3346 | 0 | T | F | $value ? : |
| 3396 | 100 | T | F | if ref $code and $code->can("find") |
| 3422 | 100 | T | F | unless $code =~ /\bvalidate_strict\s*\(/ |
| 3424 | 50 | T | F | unless my $doc = $self->_ppi($code) |
| 3427 | 100 | T | F | if $_[1]->isa("PPI::Token::Word") |
| 3428 | 50 | T | F | unless my $calls = $doc->find(sub {
$_[1]->content eq "validate_strict" or $_[1]->content eq "Params::Validate::Strict::validate_strict" if $_[1]->isa("PPI::Token::Word");
}
) |
| 3435 | 50 | T | F | unless (defined $list) |
| 3437 | 50 | T | F | unless defined $next |
| 3438 | 100 | T | F | if ($next->content =~ /schema\s*=>\s*(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/s) |
| 3440 | 50 | T | F | if $schema_text =~ /$UNSAFE_KEYWORD_RE/ |
| 3446 | 100 | T | F | if ($self->_usable_validator_schema($schema)) |
| 3455 | 50 | T | F | unless $list |
| 3459 | 0 | T | F | unless $schema_block |
| 3462 | 0 | T | F | if $schema |
| 3487 | 100 | T | F | unless $code =~ /\bvalidate\s*\(/ |
| 3489 | 50 | T | F | unless my $doc = $self->_ppi($code) |
| 3492 | 100 | T | F | if $_[1]->isa("PPI::Token::Word") |
| 3493 | 50 | T | F | unless my $calls = $doc->find(sub {
$_[1]->content eq "validate" or $_[1]->content eq "Params::Validate::validate" if $_[1]->isa("PPI::Token::Word");
}
) |
| 3500 | 50 | T | F | unless (defined $list) |
| 3504 | 50 | T | F | if ($schema_text and not $schema_text =~ /$UNSAFE_KEYWORD_RE/) |
| 3511 | 100 | T | F | if ($self->_usable_validator_schema($schema)) |
| 3514 | 50 | T | F | if (my $type = $field->{'type'}) |
| 3515 | 100 | T | F | if ($type eq 'ARRAYREF') { } |
| 50 | T | F | elsif ($type eq 'SCALAR') { } |
| 3532 | 50 | T | F | unless $list |
| 3536 | 0 | T | F | unless $schema_block |
| 3539 | 0 | T | F | if $schema |
| 3580 | 100 | T | F | if (substr($rest, 0, 1) eq "{") |
| 3584 | 50 | T | F | unless defined $extracted |
| 3588 | 100 | T | F | if (substr($rest, 0, 1) eq ",") |
| 3596 | 100 | T | F | unless $found_comma |
| 3629 | 100 | T | F | unless $code =~ /\bvalidated_hash\s*\(/ |
| 3631 | 50 | T | F | unless my $doc = $self->_ppi($code) |
| 3634 | 100 | T | F | if $_[1]->isa("PPI::Token::Word") |
| 3635 | 50 | T | F | unless my $calls = $doc->find(sub {
$_[1]->content eq "validated_hash" if $_[1]->isa("PPI::Token::Word");
}
) |
| 3642 | 50 | T | F | unless (defined $list) |
| 3646 | 50 | T | F | if ($schema_text and not $schema_text =~ /$UNSAFE_KEYWORD_RE/) |
| 3654 | 50 | T | F | if ($self->_usable_validator_schema($schema)) |
| 3657 | 50 | T | F | if (my $isa = delete $field->{'isa'}) |
| 3660 | 100 | T | F | if (exists $field->{'required'}) { } |
| 3662 | 100 | T | F | $required ? : |
| 3666 | 100 | T | F | if (ref $field->{'default'} eq "CODE") |
| 3673 | 50 | T | F | if (my $type = $field->{'type'}) |
| 3674 | 50 | T | F | if ($type eq 'ARRAYREF') { } |
| 50 | T | F | elsif ($type eq 'SCALAR') { } |
| 3691 | 0 | T | F | unless $list |
| 3695 | 0 | T | F | unless $schema_block |
| 3698 | 0 | T | F | if $schema |
| 3727 | 50 | T | F | unless $block and $block->can("children") |
| 3731 | 0 | T | F | unless $result and ref $result eq "HASH" and $result->{'input'} |
| 3775 | 100 | T | F | unless ref $schema eq "HASH" |
| 3778 | 50 | T | F | unless @names |
| 3781 | 100 | T | F | unless length $name |
| 3782 | 50 | T | F | unless ref $schema->{$name} eq "HASH" |
| 3820 | 100 | T | F | exists $spec->{'optional'} ? : |
| 3855 | 100 | T | F | unless my $function = $self->_extract_function_name($code) |
| 3857 | 100 | T | F | unless my $doc = $self->{'_document'} |
| 3858 | 100 | T | F | unless my $stmt = $self->_find_signature_statement($doc, $function) |
| 3860 | 50 | T | F | unless my $signature_expr = $self->_extract_signature_expression($stmt, $function) |
| 3862 | 100 | T | F | unless my $meta = $self->_compile_signature_isolated($function, $signature_expr) |
| 3884 | 100 | T | F | if $code =~ /^\s*sub\s+([a-zA-Z0-9_]+)/ |
| 3908 | 100 | T | F | if $_[1]->isa("PPI::Statement") |
| 3910 | 100 | T | F | unless my $statements = $doc->find(sub {
$_[1]->content =~ /^\s*signature_for\b/ if $_[1]->isa("PPI::Statement");
}
) |
| 3914 | 50 | T | F | if ($content =~ /^\s*signature_for\s+\Q$function\E\b/) |
| 3944 | 100 | T | F | if ($content =~ /^\s*signature_for\s+\Q$function\E\s*=>\s*(.+?);?\s*$/s) |
| 4011 | 100 | T | F | unless ($self->{'allow_signature_exec'}) |
| 4015 | 50 | T | F | if $self->{'verbose'} |
| 4029 | 50 | T | F | if ($signature_expr =~ /$UNSAFE_KEYWORD_RE/ or $signature_expr =~ /$UNSAFE_CHAR_RE/) |
| 4137 | 100 | T | F | if ($stderr and length $stderr) |
| 4138 | 50 | T | F | if $self->{'verbose'} |
| 4145 | 100 | T | F | unless (defined $stdout and length $stdout) |
| 4146 | 50 | T | F | if $self->{'verbose'} |
| 4151 | 50 | T | F | if ($@) |
| 4152 | 50 | T | F | if $self->{'verbose'} |
| 4200 | 50 | T | F | unless $meta->{'parameters'} |
| 4203 | 100 | T | F | unless (exists $type_map{$p->{'type'}}) |
| 4211 | 100 | T | F | $p->{'optional'} ? : |
| 4219 | 100 | T | F | if (my $ret = $meta->{'returns'}) |
| 4222 | 50 | T | F | unless (exists $type_map{$ret->{'type'}}) |
| 4279 | 100 | T | F | unless $pod |
| 4286 | 100 | T | F | if ($pod =~ /=head2\s+\w+\s*\(([^)]+)\)/s) |
| 4292 | 50 | T | F | if @sig_params and $sig_params[0] =~ /^(self|class|pkg|proto|klass)$/i |
| 4307 | 100 | T | F | if ($pod =~ /(?:Parameters?|Arguments?|Inputs?):?\s*\n((?:\s*\$.*\n)+)/is) { } |
| 100 | T | F | elsif ($pod =~ /^=head\d+\s+(?:Parameters?|Arguments?|Inputs?)\b.*?\n(.*?)(?=^=head|\Z)/ism) { } |
| 4312 | 100 | T | F | if ($param_section) |
| 4318 | 50 | T | F | if ($line =~ /C<\$(\w+)>\s*\((Required|Mandatory)\)/i) |
| 4326 | 100 | T | F | if ($line =~ /^\s*\$(\w+)\s*-\s*(\w+)(?:\s*\(([^)]+)\))?\s*,?\s*(.*)$/i or $line =~ /^\s*C<\$(\w+)>\s*-\s*(\w+)(?:\s*\(([^)]+)\))?\s*,?\s*(.*)$/i) |
| 4331 | 100 | T | F | if $desc |
| 4334 | 100 | T | F | if $name =~ /^(self|class|pkg|proto|klass|return|returns?)$/i |
| 4339 | 100 | T | F | unless (exists $params{$name}{'position'}) |
| 4345 | 50 | T | F | if $type eq "int" |
| 4346 | 50 | T | F | if $type eq "num" or $type eq "float" |
| 4347 | 50 | T | F | if $type eq "bool" |
| 4348 | 50 | T | F | if $type eq "array" |
| 4349 | 50 | T | F | if $type eq "hash" |
| 4354 | 100 | T | F | if ($constraint) |
| 4361 | 100 | T | F | if ($full_text =~ /\boptional\b/i) { } |
| 100 | T | F | elsif ($full_text =~ /required|mandatory/i) { } |
| 4370 | 100 | T | F | if ($desc =~ /\b(email|url|uri|path|filename)\b/i) |
| 4377 | 100 | T | F | if ($desc and $desc =~ m[matches?\s+(/[^/]+/|qr/.+?/)]i) |
| 4382 | 50 | T | F | if (my $values = $self->_prose_memberof($desc)) |
| 4388 | 100 | T | F | $constraint ? : |
| 100 | T | F | $desc ? : |
| 4400 | 100 | T | F | if exists $params{$name} |
| 4403 | 50 | T | F | if $desc |
| 4406 | 100 | T | F | if $name =~ /^(self|class|pkg|proto|klass|return|returns?)$/i |
| 4411 | 50 | T | F | if $type eq "int" |
| 4412 | 50 | T | F | if $type eq "num" or $type eq "float" |
| 4413 | 50 | T | F | if $type eq "bool" |
| 4414 | 50 | T | F | if $type eq "array" |
| 4415 | 50 | T | F | if $type eq "hash" |
| 4420 | 50 | T | F | if ($constraint) |
| 4426 | 50 | T | F | if ($desc) |
| 4427 | 50 | T | F | if ($desc =~ /\boptional\b/i) { } |
| 50 | T | F | elsif ($desc =~ /required|mandatory/i) { } |
| 4434 | 50 | T | F | if ($desc =~ m[matches?\s+(/[^/]+/|qr/.+?/)]i) |
| 4439 | 50 | T | F | if (my $values = $self->_prose_memberof($desc)) |
| 4445 | 50 | T | F | $constraint ? : |
| 4475 | 50 | T | F | unless defined $name and length $name |
| 4480 | 50 | T | F | if $name =~ /^(self|class|pkg|proto|klass|return|returns?)$/i |
| 4486 | 100 | T | F | if ($desc =~ /^\s*(string|integer|int|number|num|float|boolean|bool|array|arrayref|hash|hashref|any)\b(?:\s*\(([^)]+)\))?/i) { } |
| 4491 | 50 | T | F | if $type eq "int" |
| 4492 | 50 | T | F | if $type eq "num" or $type eq "float" |
| 4493 | 50 | T | F | if $type eq "bool" |
| 4494 | 50 | T | F | if $type eq "array" |
| 4495 | 50 | T | F | if $type eq "hash" |
| 4499 | 100 | T | F | if ($constraint) |
| 4506 | 50 | T | F | if ($desc =~ /\bstring\b/i) { } |
| 100 | T | F | elsif ($desc =~ /\b(int|integer)\b/i) { } |
| 50 | T | F | elsif ($desc =~ /\b(num|number|float)\b/i) { } |
| 50 | T | F | elsif ($desc =~ /\b(bool|boolean)\b/i) { } |
| 100 | T | F | elsif ($desc =~ /\bhashref\b/i) { } |
| 4528 | 100 | T | F | if ($optionality_text =~ /\boptional\b/i) { } |
| 100 | T | F | elsif ($optionality_text =~ /\b(?:required|mandatory)\b/i) { } |
| 4535 | 50 | T | F | if ($desc =~ m[matches?\s+(/[^/]+/|qr/.+?/)]i) |
| 4540 | 100 | T | F | if (my $values = $self->_prose_memberof($desc)) |
| 4552 | 50 | T | F | if (exists $params{$param}) |
| 4554 | 100 | T | F | unless defined $params{$param}{'optional'} |
| 4557 | 100 | T | F | defined $pod_defaults->{$param} ? : |
| 4564 | 50 | T | F | if $name =~ /^(self|class|pkg|proto|klass)$/i |
| 4578 | 100 | T | F | if ($pod =~ /=head[34]\s+Input\b(.*?)(?==head|\z)/is) |
| 4583 | 100 | T | F | unless $block =~ /\A[\[\{]/ |
| 4585 | 100 | T | F | if ($block =~ /\A\[/) { } |
| 100 | T | F | elsif ($block =~ /\A\{/) { } |
| 4592 | 100 | T | F | if (defined $name) |
| 4594 | 50 | T | F | if (my $t = $self->_map_formal_input_type($spec)) |
| 4598 | 50 | T | F | if (defined(my $opt = _spec_optionality($spec))) |
| 4608 | 100 | T | F | if $name =~ /^(self|class|pkg|proto|klass)$/i |
| 4611 | 50 | T | F | if (my $t = $self->_map_formal_input_type($spec)) |
| 4615 | 100 | T | F | if (defined(my $opt = _spec_optionality($spec))) |
| 4618 | 100 | T | F | if ($spec =~ /\bmemberof\s*=>\s*\[([^\]]*)\]/i) |
| 4624 | 50 | T | F | if (@vals) |
| 4630 | 100 | T | F | if ($spec =~ /\bmin\s*=>\s*(\d+)/i) |
| 4633 | 100 | T | F | if ($spec =~ /\bmax\s*=>\s*(\d+)/i) |
| 4640 | 100 | T | F | if (exists $params{$name}{'min'} or exists $params{$name}{'max'}) |
| 4643 | 50 | T | F | if ($spec =~ /\bisa\s*=>\s*['"]([^'"]+)['"]/i) |
| 4669 | 100 | T | F | unless ($block =~ /\A[\[\{]/) |
| 4672 | 50 | T | F | if $bare_name =~ /^(self|class|pkg|proto|klass)$/i |
| 4674 | 100 | T | F | unless $own =~ /\brequired\s*=>\s*(0|1)/i |
| 4675 | 50 | T | F | if $own =~ /\boptional\s*=>\s*(?:0|1)/i |
| 4682 | 50 | T | F | if (my $shape = _pod_nested_input_shape($bare_type // "", $desc)) |
| 4697 | 100 | T | F | unless $params{$name} |
| 4698 | 100 | T | F | if defined $params{$name}{'memberof'} |
| 4700 | 50 | T | F | if (my $values = $self->_prose_memberof($text)) |
| 4732 | 100 | T | F | unless $spec =~ /\btype\s*=>\s*(?:['"]([^'"]+)['"]|([A-Z_]+))/i |
| 4733 | 100 | T | F | defined $1 ? : |
| 4759 | 100 | T | F | if exists $map{$t} |
| 4795 | 100 | T | F | unless defined $pod and length $pod |
| 4796 | 100 | T | F | unless $pod =~ /=head[34]\s+Input\b(.*?)(?==head|\z)/is |
| 4800 | 100 | T | F | $1 =~ /^\s*\$?class\b/im ? : |
| 4820 | 50 | T | F | unless defined $code |
| 4853 | 50 | T | F | unless defined $code |
| 4855 | 100 | T | F | if ($node and $node->can("tokens")) |
| 4857 | 100 | T | F | $_->isa('PPI::Token::Comment') ? : |
| 4879 | 50 | T | F | unless defined $text |
| 4880 | 50 | T | F | if $text =~ /\barrayref\b|\barray\s+of\b|\blist\s+of\b/i |
| 4881 | 50 | T | F | if $text =~ /\bhashref\b|\bhash\s+of\b/i |
| 4882 | 50 | T | F | if $text =~ /\bboolean\b|\bbool\b/i |
| 4883 | 50 | T | F | if $text =~ /\binteger\b|\bint\b/i |
| 4884 | 50 | T | F | if $text =~ /\bnumber\b|\bfloat\b/i |
| 4885 | 100 | T | F | if $text =~ /\bstring\b|\btext\b/i |
| 4920 | 100 | T | F | if (not defined $name) { } |
| 4921 | 100 | T | F | unless $line =~ /^\s*(\w+)\s*=>\s*\{(.*)$/ |
| 4930 | 100 | T | F | if $depth > 0 |
| 4932 | 50 | T | F | if $depth == 0 |
| 4952 | 50 | T | F | if ($body =~ /\benum\s*=>\s*\[([^\]]*)\]/) |
| 4954 | 0 | T | F | if @values |
| 4968 | 100 | T | F | unless defined $type and length $type |
| 4969 | 50 | T | F | unless defined $desc and not ref $desc and length $desc |
| 4971 | 100 | T | F | if ($type eq "arrayref" and $desc =~ /\bof\s+\{([^}]+)\}/i) |
| 4976 | 100 | T | F | if ($desc =~ /\b\Q$key\E\s*--\s*one\s+of:\s*([^\n]+)/i) |
| 4978 | 50 | T | F | if @values |
| 4982 | 50 | T | F | if %element |
| 4987 | 100 | T | F | if ($type eq "arrayref" and $desc =~ /\bhashrefs?\b/i) |
| 4991 | 100 | T | F | if $type eq "hashref" and $desc =~ /=>\s*\w+\s+hashref\b/i |
| 5002 | 50 | T | F | unless defined $number |
| 5041 | 100 | T | F | if (my(@dump) = _pod_input_hash_dump($block)) |
| 5045 | 100 | T | F | if $name =~ /^(?:self|class|pkg|proto|klass|returns?)$/i |
| 5052 | 50 | T | F | if (defined $fields->{'type'}) |
| 5054 | 50 | T | F | if defined $type |
| 5058 | 100 | T | F | $fields->{'optional'} ? : |
| 5060 | 50 | T | F | if defined $fields->{'isa'} and not $fields->{'isa'} =~ /\Aundef\z/i |
| 5064 | 50 | T | F | if ref $fields->{'enum'} eq "ARRAY" and @{$fields->{'enum'};} |
| 5066 | 100 | T | F | if defined $fields->{'min'} and $fields->{'min'} =~ /\A-?\d/ |
| 5068 | 100 | T | F | if defined $fields->{'max'} and $fields->{'max'} =~ /\A-?\d/ |
| 5077 | 100 | T | F | if (my $shape = _pod_nested_input_shape($p->{'type'}, $desc)) |
| 5082 | 50 | T | F | defined $p->{'type'} ? : |
| 5087 | 50 | T | F | if $count |
| 5102 | 100 | T | F | if ($line =~ /^(\s{0,8})(\\?[\$\@%]\w+\s*,\s*(?:\\?[\$\@%]\w+\s*,\s*)*\\?[\$\@%]\w+)\s*(.*)$/) { } |
| 5115 | 100 | T | F | if ($line =~ /^\s{0,8}(\w+)\s*:\s*\\?[\$\@%](\w+)\s+#\s*(\S.*)$/) { } |
| 100 | T | F | elsif ($line =~ /^\s{0,8}\\?[\$\@%]?(\w+)\s*(?::|=>)\s*(\S.*)$/) { } |
| 100 | T | F | elsif ($line =~ /^\s{0,8}\\?[\$\@%](\w+)\s+(SCALAR|ARRAYREF|HASHREF|CODEREF|CODE|OBJECT|GLOB)\b\s*,?\s*(.*)$/i) { } |
| 100 | T | F | elsif ($line =~ /^\s*\\?[\$\@%](\w+)\s+#\s*(\S.*)$/) { } |
| 100 | T | F | elsif ($line =~ /^\s{0,8}\\?[\$\@%](\w+)\s+(\S.*)$/) { } |
| 5130 | 50 | T | F | unless defined $first and exists $types{lc $first} |
| 5146 | 100 | T | F | if defined $routine and defined $row_routine and $row_routine ne $routine |
| 5148 | 100 | T | F | if $name =~ /^(?:self|class|pkg|proto|klass|returns?)$/i |
| 5155 | 100 | T | F | if ($prose) { } |
| 5160 | 100 | T | F | if not defined $type and defined $type_word |
| 5162 | 50 | T | F | defined $type_word ? : |
| 5163 | 50 | T | F | if not defined $type and $prose |
| 5171 | 100 | T | F | unless defined $p->{'position'} |
| 5172 | 100 | T | F | if defined $type |
| 5178 | 100 | T | F | if (my $shape = _pod_nested_input_shape($type, $spec)) |
| 5182 | 100 | T | F | if ($spec =~ /\boptional\b/i or $spec =~ /\bdefault\b/i) { } |
| 100 | T | F | elsif ($spec =~ /\b(?:required|mandatory)\b/i) { } |
| 5193 | 100 | T | F | if (defined $type and $type eq "arrayref" and $spec =~ /\b(?:one\s+or\s+more|at\s+least\s+one|non-empty)\b/i) |
| 5195 | 100 | T | F | unless defined $p->{'optional'} |
| 5200 | 100 | T | F | if (defined $type and $type eq "string" and $spec =~ /\b(?:readable|existing)\b[^;:]*\bfile\b/i) |
| 5207 | 100 | T | F | if (defined $type and $type eq "string" and $spec =~ /\bdir(?:ectory)?\b/i and $spec =~ /\b(?:existing|readable|writable)\b/i) |
| 5215 | 100 | T | F | if ($name =~ /\A(?:bytes|blob)\z/i or $spec =~ /\braw\s+bytes\b|file'?s\s+contents|\bbinary\s+(?:data|contents)\b/i) |
| 5222 | 100 | T | F | if ($spec =~ /(-?\d+(?:\.\d+)?)\s*\.\.\s*(-?\d+(?:\.\d+)?)/) { } |
| 100 | T | F | elsif ($spec =~ /(-?\d[\d_]*)\s+to\s+(-?\d[\d_]*)/) { } |
| 5243 | 100 | T | F | if (defined $type and $type =~ /\A(?:integer|number)\z/ and $spec =~ /\bdefault\b\s*\(?\s*(-?\d[\d_]*)/i) |
| 5250 | 50 | T | F | if defined $p->{'max'} and $default > 0 and $p->{'max'} >= 10 * $default and !defined($p->{'min'}) || $default >= $p->{'min'} |
| 5253 | 50 | T | F | if (my $values = $self->_prose_memberof($spec)) |
| 5257 | 100 | T | F | defined $type ? : |
| 5267 | 50 | T | F | if ($block =~ /^(\w+)\s+hashref\s+keys\s*:\s*\n(.*?)(?=\n\s*\n|\z)/ism) |
| 5271 | 0 | T | F | unless $line =~ /^\s{0,8}(\w+)\s*=>\s*(\S.*)$/ |
| 5277 | 0 | T | F | if $text =~ /\brequired\b[^;]*\bexcept\b/i |
| 5279 | 0 | T | F | if ($text =~ /\(([^)]*\|[^)]*)\)/) |
| 5281 | 0 | T | F | if @values |
| 5284 | 0 | T | F | if ($text =~ m[match(?:es)?\s+C?<\s*/(.*?)/\s*>]) |
| 5292 | 0 | T | F | if (my($except) = $rows =~ /\bexcept\s+(?:bare\s+)?(\w+)/i) |
| 5294 | 0 | T | F | unless grep {$_ eq $except;} @{$alternation{$key};} |
| 5299 | 0 | T | F | if (%element) |
| 5302 | 0 | T | F | unless ($p->{'_source'} // "") eq "input_spec" |
| 5303 | 0 | T | F | unless ($p->{'type'} // "") =~ /^array/ |
| 5305 | 0 | T | F | unless defined $row_text{$name} and $row_text{$name} =~ /arrayref\s+of\s+\Q$kind\E\s+hashrefs/i |
| 5316 | 50 | T | F | if ($block =~ /\bReserved keys\b/i) |
| 5319 | 0 | T | F | unless ($p->{'_source'} // "") eq "input_spec" |
| 5321 | 0 | T | F | unless defined $p->{'optional'} and not $p->{'optional'} |
| 5324 | 0 | T | F | unless $type eq "arrayref" or $type eq "array" or $type eq "hashref" |
| 5325 | 0 | T | F | if ref $p->{'schema'} eq "HASH" |
| 5326 | 0 | T | F | if ref $p->{'memberof'} eq "ARRAY" and @{$p->{'memberof'};} |
| 5328 | 0 | T | F | if $p->{'optional'} |
| 5374 | 100 | T | F | if keys %output |
| 5377 | 100 | T | F | keys %output ? : |
| 5408 | 100 | T | F | if ($pod) |
| 5414 | 100 | T | F | if ($pod =~ /=head4\s+Output\b(.*?)(?==head|\z)/is) |
| 5417 | 100 | T | F | if ($block =~ /^\(/) { } |
| 50 | T | F | elsif ($block =~ /^\[/) { } |
| 100 | T | F | elsif ($block =~ /^\{/) { } |
| 100 | T | F | elsif ($block =~ /\A(?:(?:Always|Usually)\s+)?(?:An?\s+)?(Hashref|Hash|Arrayref|Array|List)(?=\s*(?:of\b|:|\(|\[|\.|;|,|\z))/i) { } |
| 5421 | 0 | T | F | unless ($block =~ /^\[\s*\]/) |
| 5426 | 100 | T | F | if ($block =~ /type\s*=>\s*['"]?(\w[\w:]*?)['"]?\s*[,}]/i) { } |
| 50 | T | F | elsif ($block =~ /\bisa\s*=>/) { } |
| 50 | T | F | elsif ($block =~ /^\{[^}]*\}/ and $block =~ /=>/) { } |
| 5428 | 50 | T | F | if $type eq "scalar" or $type eq "scalarref" or $type eq "str" |
| 5429 | 50 | T | F | if $type eq "int" |
| 5430 | 50 | T | F | if $type eq "float" or $type eq "num" |
| 5431 | 50 | T | F | if $type eq "bool" |
| 5432 | 50 | T | F | if $type eq "hash" |
| 5433 | 50 | T | F | if $type eq "array" |
| 5434 | 50 | T | F | if ($VALID_OUTPUT_TYPES{$type}) { } |
| 0 | T | F | elsif ($block =~ /\bisa\s*=>/) { } |
| 5457 | 50 | T | F | $word =~ /^array|^list/ ? : |
| 5464 | 100 | T | F | if ($pod =~ /Returns?:\s+([^\n]+(?:\n[^\n]+){0,2})/is) |
| 5471 | 100 | T | F | if (not $output->{'type'} and $returns_desc =~ /\b(string|text)\b/i) { } |
| 100 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\b(integer|int|count)\b/i) { } |
| 50 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\b(float|decimal|number)\b/i) { } |
| 100 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\b(boolean|true|false)\b/i) { } |
| 50 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\b(array|list)\b/i) { } |
| 50 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\b(hash|hashref|dictionary)\b/i) { } |
| 100 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\b(object|instance)\b/i) { } |
| 50 | T | F | elsif (not $output->{'type'} and $returns_desc =~ /\bundef\b/i) { } |
| 5490 | 100 | T | F | if ($returns_desc =~ /\b1\s+(?:on\s+success|if\s+successful)\b/i) { } |
| 50 | T | F | elsif ($returns_desc =~ /\b0\s+(?:on\s+failure|if\s+fail)\b/i) { } |
| 50 | T | F | elsif ($returns_desc =~ /dies\s+on\s+(?:error|failure)/i) { } |
| 5492 | 50 | T | F | if (defined $output->{'type'} and $output->{'type'} eq 'scalar') { } |
| 5504 | 100 | T | F | if ($returns_desc =~ /\b(true|false)\b/i) |
| 5507 | 50 | T | F | if ($returns_desc =~ /\bundef\b/i) |
| 5513 | 100 | T | F | if (not $output->{'type'} and $pod =~ /returns?\s+(?:an?\s+)?(\w+)/i) |
| 5516 | 100 | T | F | if $type =~ /^(true|false|bool)$/ |
| 5518 | 50 | T | F | if $type eq "int" |
| 5519 | 50 | T | F | if $type =~ /^(num|float)$/ |
| 5520 | 50 | T | F | if $type eq "array" |
| 5521 | 50 | T | F | if $type eq "hash" |
| 5523 | 50 | T | F | if ($type =~ /^\d+$/) |
| 5524 | 0 | T | F | if ($type eq '1' or $type eq '0') { } |
| 5526 | 0 | T | F | if ($pod =~ /1 on success.+0 (on|if) /i) { } |
| 0 | T | F | elsif ($pod =~ /return 0 .+ 1 on success/) { } |
| 5538 | 50 | T | F | if not $type and $pod =~ /returns?\s+.+\slist\b/i |
| 5540 | 100 | T | F | if ($VALID_OUTPUT_TYPES{$type}) { } |
| 5578 | 100 | T | F | unless $pod |
| 5591 | 50 | T | F | if @param_matches |
| 5593 | 50 | T | F | if ($param) |
| 5595 | 50 | T | F | if ($default_text =~ /(\w+)\s*=\s*(.+)$/) { } |
| 5615 | 100 | T | F | if (@param_matches) |
| 5653 | 50 | T | F | if ($code) |
| 5656 | 100 | T | F | if (@all_returns) |
| 5663 | 100 | T | F | if $ret =~ /^(?:0|1)(?:\s|$)/ |
| 5667 | 100 | T | F | if ($boolean_count >= 2 and $boolean_count >= $total_count * "0.8") |
| 5668 | 50 | T | F | unless ($output->{'type'}) |
| 5677 | 100 | T | F | if ($code =~ /return\s+bless\s*\{[^}]*\}\s*,\s*['"]?(\w+)['"]?/s) { } |
| 100 | T | F | elsif ($code =~ /return\s+bless/s) { } |
| 100 | T | F | elsif ($code =~ /return\s*\(\s*[^)]+\s*,\s*[^)]+\s*\)\s*;/) { } |
| 50 | T | F | elsif ($code =~ /return\s+bless[^,]+,\s*__PACKAGE__/) { } |
| 100 | T | F | elsif ($code =~ /return\s*\(([^)]+)\)/) { } |
| 100 | T | F | elsif ($code =~ /return\s+\$self\s*;/ and $code =~ /\$self\s*->\s*\{[^}]+\}\s*=/) { } |
| 5680 | 100 | T | F | if ($method_name eq 'new') { } |
| 5682 | 50 | T | F | if ($self->{'_document'} and my $package_stmt = $self->{'_document'}->find_first("PPI::Statement::Package")) |
| 5692 | 100 | T | F | if ($method_name eq 'new') { } |
| 5706 | 0 | T | F | if ($self->{'_document'}) |
| 5708 | 0 | T | F | $pkg ? : |
| 5714 | 50 | T | F | if ($content =~ /,/) |
| 5720 | 50 | T | F | if ($self->{'_document'}) |
| 5722 | 50 | T | F | $pkg ? : |
| 5734 | 100 | T | F | if (@return_statements) { } |
| 5740 | 100 | T | F | if ($output->{'type'}) |
| 5755 | 100 | T | F | if ($ret eq '1' or $ret eq '0') { } |
| 100 | T | F | elsif ($ret =~ /^['"]/) { } |
| 100 | T | F | elsif ($ret =~ /^-?\d+$/) { } |
| 50 | T | F | elsif ($ret =~ /^-?\d+\.\d+$/) { } |
| 100 | T | F | elsif ($ret =~ /\A(?:sprintf|join|lc|uc|lcfirst|ucfirst|quotemeta)\b/) { } |
| 100 | T | F | elsif ($ret =~ /\Aundef\b/) { } |
| 100 | T | F | elsif ($self->_returns_time_list($ret)) { } |
| 100 | T | F | elsif ($ret =~ /^\[/) { } |
| 100 | T | F | elsif ($ret =~ /^\{/) { } |
| 100 | T | F | elsif ($ret =~ /^\\\%/) { } |
| 50 | T | F | elsif ($ret =~ /^\\\@/) { } |
| 100 | T | F | elsif ($ops_ret =~ m[
# Numeric expressions (heuristic, medium confidence).
# `->` is a method call, `//` a defined-or, and `-e` a file
# test, not operators.
(?:
\+ | -(?!>|[A-Za-z]\b) | \* | (?<!\/)\/(?!\/) | (?<!\\)%
| \+\+ | --
)
]x) { } |
| 100 | T | F | elsif ($ret =~ /\|\|\s*\d+\b/) { } |
| 100 | T | F | elsif ($ret =~ /^length[\s\(]/) { } |
| 50 | T | F | elsif ($ret =~ /^pos[\s\(]/) { } |
| 50 | T | F | elsif ($ret =~ /^index[\s\(]/) { } |
| 50 | T | F | elsif ($ret =~ /^rindex[\s\(]/) { } |
| 50 | T | F | elsif ($ret =~ /^ord[\s\(]/) { } |
| 100 | T | F | elsif ($ops_ret =~ /=/ and $ops_ret =~ /\$\w+/) { } |
| 100 | T | F | elsif ($ret =~ /\$\w+/) { } |
| 5826 | 100 | T | F | if ($numeric_ret =~ /\b\d+\b/) { } |
| 5840 | 50 | T | F | if ($ref_ret =~ /\\\@/) { } |
| 100 | T | F | elsif ($ref_ret =~ /\\\%/) { } |
| 100 | T | F | elsif ($ret =~ /bless/) { } |
| 50 | T | F | elsif ($ret =~ /^\{[^}]*\}$/) { } |
| 50 | T | F | elsif ($ret =~ /^\[[^\]]*\]$/) { } |
| 5857 | 100 | T | F | if (keys %return_types) |
| 5863 | 100 | T | F | if keys %value_types > 1 |
| 5868 | 50 | T | F | unless $value_types{$b} <=> $value_types{$a} |
| 5870 | 100 | T | F | if ($return_types{'integer'} and not $return_types{'string'}) |
| 5871 | 100 | T | F | if (not $output->{'type'} or $output->{'type'} eq "scalar") |
| 5875 | 100 | T | F | if (defined $min) |
| 5880 | 100 | T | F | unless ($output->{'type'}) |
| 5884 | 100 | T | F | if ($most_common eq "number") |
| 5886 | 50 | T | F | if (defined $min) |
| 5894 | 100 | T | F | if ($time_list and ($output->{'type'} // "") eq "array") |
| 5903 | 100 | T | F | if (@return_statements == 1 and $return_statements[0] eq 1) |
| 5905 | 50 | T | F | if not $output->{'type'} or $output->{'type'} eq "scalar" |
| 5906 | 50 | T | F | if $output->{'type'} |
| 5947 | 100 | T | F | unless not $output->{'type'} or $output->{'type'} eq "unknown" |
| 5950 | 100 | T | F | if ($pod and not $output->{'type'}) |
| 5952 | 50 | T | F | if ($pod =~ /returns?\s+(?:true|false|1|0)\s+(?:on|for|upon)\s+(?:success|failure|error|valid|invalid)/i) |
| 5958 | 50 | T | F | if ($pod =~ /(?:method|sub)\s+(\w+)/) |
| 5960 | 0 | T | F | if ($inferred_method_name =~ /^(is_|has_|can_|should_|contains_|exists_)/) |
| 5968 | 50 | T | F | if ($code) |
| 5973 | 50 | T | F | if ($true_returns + $false_returns >= 2) { } |
| 100 | T | F | elsif ($true_returns + $false_returns == 1) { } |
| 5982 | 50 | T | F | if ($code =~ /return\s+(?:\w+\s*[!=]=\s*\w+|\w+\s*>\s*\w+|\w+\s*<\s*\w+)\s*\?\s*(?:1|0)\s*:\s*(?:1|0)/) |
| 5988 | 50 | T | F | if ($code =~ /return\s+[!\$\@\%]/) |
| 5996 | 50 | T | F | if ($method_name) |
| 5997 | 100 | T | F | if ($method_name =~ /^(?:is_|has_|can_|should_|contains_|exists_|check_|verify_|validate_)/) |
| 6001 | 50 | T | F | if ($method_name =~ /_ok$/) |
| 6009 | 100 | T | F | if ($boolean_score >= $BOOLEAN_SCORE_THRESHOLD) |
| 6010 | 50 | T | F | if (not $output->{'type'} or $output->{'type'} eq "scalar" or $output->{'type'} eq "array" or $output->{'type'} eq "undef") |
| 6040 | 50 | T | F | unless $code |
| 6043 | 100 | T | F | if ($code =~ /wantarray/) |
| 6048 | 100 | T | F | if ($code =~ /(wantarray[^;]+;)/s) |
| 6052 | 100 | T | F | if ($code =~ /wantarray\s*\?\s*\(([^)]+)\)\s*:\s*([^;]+)/s) { } |
| 100 | T | F | elsif ($code =~ /wantarray\s*\?\s*([^:]+?)\s*:\s*([^;]+)/s) { } |
| 50 | T | F | elsif ($code =~ /return[^;]*unless\s+wantarray.*?return\s*\(([^)]+)\)/s) { } |
| 6081 | 100 | T | F | if ($code =~ /return\s*\(\s*([^)]+)\s*\)\s*;/) |
| 6090 | 100 | T | F | if (substr($rest, 0, 1) =~ /[(\[{]/) |
| 6092 | 50 | T | F | unless defined $extracted |
| 6095 | 100 | T | F | if substr($rest, 0, 1) eq "," |
| 6099 | 100 | T | F | if ($comma_count > 0 and not $content =~ /\b(?:bless|new)\b/) |
| 6101 | 50 | T | F | unless ($output->{'type'} and $output->{'type'} eq "boolean") |
| 6128 | 50 | T | F | unless defined $ret |
| 6129 | 100 | T | F | unless $ret =~ /(?:\A|[?:])\s*\(*\s*(?:localtime|gmtime)\s*\(/ |
| 6131 | 50 | T | F | $ret =~ /(?:localtime|gmtime)\s*\([^()]*\)\s*\)*\s*\z/ ? : |
| 6158 | 50 | T | F | unless $code |
| 6172 | 100 | T | F | if ($method_name =~ /$void_patterns->{$type}/) |
| 6192 | 100 | T | F | if $ret eq "" |
| 6193 | 100 | T | F | if $ret =~ /^(if|unless)\s/ |
| 6194 | 100 | T | F | if $ret eq 1 |
| 6195 | 100 | T | F | if $ret eq "\$self" |
| 6196 | 100 | T | F | if ($ret =~ /\?\s*1\s*:\s*0\b/) |
| 6209 | 100 | T | F | if ($no_value_returns > 0 and $no_value_returns == $total_returns) { } |
| 100 | T | F | elsif ($true_returns > 0 and $true_returns == $total_returns and $total_returns >= 1) { } |
| 6217 | 100 | T | F | unless ($output->{'type'} and $output->{'type'} eq "boolean") |
| 6247 | 50 | T | F | unless $code |
| 6257 | 100 | T | F | if $ret eq "\$self" |
| 6261 | 100 | T | F | if ($self_returns > 0 and $total_returns > 0) |
| 6264 | 100 | T | F | if ($ratio >= "0.8") |
| 6269 | 100 | T | F | if ($self->{'_document'}) |
| 6271 | 50 | T | F | $pkg ? : |
| 6305 | 50 | T | F | unless $code |
| 6324 | 100 | T | F | if ($code =~ /return\s*\(\s*\)\s*(?:if|unless|;)/) |
| 6334 | 100 | T | F | if ($1 eq '0') { } |
| 6341 | 100 | T | F | if ($zero_returns > 0 and $one_returns > 0) |
| 6347 | 100 | T | F | if ($code =~ /eval\s*\{/) |
| 6349 | 100 | T | F | if ($code =~ /eval\s*\{.*?\}[^}]*(?:if\s*\(\s*\$\@|catch|return\s+undef)/s) |
| 6360 | 50 | T | F | if ($has_undef and $has_value and scalar @all_returns >= 2) |
| 6366 | 100 | T | F | if (scalar keys %error_patterns) { } |
| 6370 | 100 | T | F | if ($error_patterns{'undef_on_error'}) { } |
| 100 | T | F | elsif ($error_patterns{'implicit_undef'}) { } |
| 100 | T | F | elsif ($error_patterns{'empty_list'}) { } |
| 100 | T | F | elsif ($error_patterns{'zero_on_error'}) { } |
| 6384 | 100 | T | F | if ($error_patterns{'exception_handling'}) |
| 6416 | 100 | T | F | unless defined $expr |
| 6421 | 100 | T | F | if ($expr =~ /,/) |
| 6426 | 100 | T | F | if (substr($rest, 0, 1) =~ /[(\[{]/) |
| 6428 | 50 | T | F | unless defined $extracted |
| 6431 | 100 | T | F | if substr($rest, 0, 1) eq "," |
| 6435 | 100 | T | F | if ($comma_count > 0) |
| 6441 | 100 | T | F | if ($expr =~ /^\@\w+/ or $expr =~ /^qw\(/ or $expr =~ /^\@\{/) |
| 6446 | 100 | T | F | if ($expr =~ /scalar\s*\(/) |
| 6451 | 100 | T | F | if ($expr =~ /^\[/ or $expr =~ /^\\\@/) |
| 6456 | 100 | T | F | if ($expr =~ /^\{/ or $expr =~ /^\\\%/) |
| 6461 | 50 | T | F | if ($expr =~ /^\%\w+/ or $expr =~ /^\%\{/) |
| 6466 | 100 | T | F | if ($expr =~ /^['"]/ or $expr =~ /['"]$/) |
| 6472 | 100 | T | F | if ($expr =~ /^[01]$/) |
| 6477 | 100 | T | F | if ($expr =~ /^-?\d+$/) |
| 6481 | 100 | T | F | if ($expr =~ /^-?\d+\.\d+$/) |
| 6486 | 50 | T | F | if ($expr =~ /bless/) |
| 6490 | 100 | T | F | if ($expr =~ /\blength\s*\(/) |
| 6518 | 100 | T | F | unless $pod |
| 6521 | 100 | T | F | if ($pod =~ /returns?\s+(?:\$)?self\b/i or $pod =~ /chainable/i or $pod =~ /fluent\s+interface/i or $pod =~ /method\s+chaining/i) |
| 6553 | 100 | T | F | if (defined $output->{'type'} and $output->{'type'} eq "boolean" and not defined $output->{'value'}) |
| 6556 | 50 | T | F | if ($output->{'value'} and defined $output->{'type'} and $output->{'type'} ne "boolean") |
| 6560 | 100 | T | F | if (exists $output->{'type'}) |
| 6561 | 100 | T | F | if (not $valid_types{$output->{'type'}}) |
| 6589 | 100 | T | F | unless defined $text and length $text |
| 6598 | 100 | T | F | if ($plain =~ /\b(?:one\s+of|valid\s+values?\s*(?:are|is)?\s*:?|allowed\s+values?\s*(?:are|is)?\s*:?|accepted\s+values?\s*(?:are|is)?\s*:?|permitted\s+values?\s*(?:are|is)?\s*:?)\s*(.+)$/i) { } |
| 100 | T | F | elsif ($plain =~ /\b(?:must\s+be\s+)?either\s+(.+)$/i) { } |
| 100 | T | F | elsif ($plain =~ /\b(?:also\s+)?accepts\s+the\s+strings?\s+(.+)$/i) { } |
| 6614 | 100 | T | F | if @values < 2 or @values > 20 |
| 6619 | 100 | T | F | unless $value =~ /\A[A-Za-z0-9_:.+-]+\z/ |
| 6651 | 50 | T | F | if (my $values = $self->_prose_memberof($constraint)) |
| 6656 | 100 | T | F | if ($constraint =~ /(\d+)\s*-\s*(\d+)/) { } |
| 100 | T | F | elsif ($constraint =~ /(\d+)\s*\.\.\s*(\d+)/) { } |
| 100 | T | F | elsif ($constraint =~ /(?:min|minimum|at least)\s*(\d+)/i) { } |
| 100 | T | F | elsif ($constraint =~ /(?:max|maximum|up to)\s*(\d+)/i) { } |
| 100 | T | F | elsif ($constraint =~ /positive/i) { } |
| 100 | T | F | elsif ($constraint =~ /non-negative/i) { } |
| 100 | T | F | elsif ($constraint =~ /^(\S+)\s+(.+)$/) { } |
| 6675 | 100 | T | F | if $param->{'type'} and $param->{'type'} eq "integer" |
| 6676 | 100 | T | F | if $param->{'type'} and $param->{'type'} eq "number" |
| 6683 | 50 | T | F | if (&looks_like_number($val)) |
| 6684 | 0 | T | F | if ($op eq '<') { } |
| 0 | T | F | elsif ($op eq '<=') { } |
| 0 | T | F | elsif ($op eq '>') { } |
| 0 | T | F | elsif ($op eq '>=') { } |
| 6696 | 100 | T | F | if (defined $param->{'max'}) |
| 6699 | 100 | T | F | if (defined $param->{'min'}) |
| 6706 | 100 | T | F | if (defined $param->{'min'} or defined $param->{'max'} or $param->{'memberof'}) |
| 6758 | 100 | T | F | if ($code =~ /Params::Get/) |
| 6762 | 50 | T | F | if $name =~ /^(self|class|pkg|proto|klass)$/i |
| 6772 | 100 | T | F | if ($params{$param}{'_default'} and not $params{$param}{'type'}) |
| 6774 | 100 | T | F | if (ref $default eq 'HASH') { } |
| 100 | T | F | elsif (ref $default eq 'ARRAY') { } |
| 6784 | 50 | T | F | if ($code =~ /(?:croak|die)\(.*\)\s+if\s*\(\s*scalar\(\@_\)\s*<\s*(\d+)\s*\)/s) { } |
| 50 | T | F | elsif ($code =~ /(?:croak|die)\(.*\)\s+if\s*\(\s*scalar\(\@_\)\s*==\s*0\s*\)/s) { } |
| 6800 | 50 | T | F | if ($param_count++ > $self->{'max_parameters'}) |
| 6813 | 100 | T | F | if ($code =~ /defined\s*\(\s*\$$param\s*\)/) |
| 6819 | 100 | T | F | if ($code =~ m[\s*\$$param\s*(?://|\|\|)=]) { } |
| 100 | T | F | elsif ($code =~ m[\s*\$$param\s*(?!->)(?:[\+\-\*\%]|/(?!/)|(?:\+\+)|(?:--)|(?:[\+\-\*\%]=|/(?!/)=)|\+\$|\$[+-])]) { } |
| 50 | T | F | elsif ($code =~ /\$\b$param\b\s*(?:\+0|\*1)/) { } |
| 6839 | 50 | T | F | if ($code =~ /if\s*\(\s*!\s*defined\s*\(\s*\$$param\s*\)\s*\)\s*\{([^}]+)\}/s) |
| 6841 | 0 | T | F | if ($block =~ /\b(croak|die|confess)\b/) |
| 6848 | 100 | T | F | if ($code =~ /\b(croak|die|confess)\b[^;]*\bunless\s+defined\s*\(\s*\$$param\s*\)/) |
| 6854 | 50 | T | F | if ($code =~ /exists\s*\(\s*\$$param\s*\)/) |
| 6860 | 50 | T | F | if ($code =~ /scalar\s*\(\s*\@?\$$param\s*\)/) |
| 6898 | 100 | T | F | if ($code =~ /ref\s*\(\s*\$$param\s*\)\s*eq\s*['"](ARRAY|HASH|SCALAR)['"]/gi) { } |
| 100 | T | F | elsif ($code =~ /\$$param\s*->\s*isa\s*\(\s*['"]([^'"]+)['"]\s*\)/i) { } |
| 100 | T | F | elsif ($code =~ /bless\s+.*\$$param/) { } |
| 6900 | 50 | T | F | $reftype eq 'hash' ? : |
| 100 | T | F | $reftype eq 'array' ? : |
| 6917 | 100 | T | F | unless ($p->{'type'}) |
| 6918 | 100 | T | F | if ($code =~ /\@\{\s*\$$param\s*\}/ or $code =~ /push\s*\(\s*\@?\$$param/) { } |
| 100 | T | F | elsif ($code =~ /\%\{\s*\$$param\s*\}/ or $code =~ /\$$param\s*->\s*\{/) { } |
| 6930 | 100 | T | F | if (not $p->{'type'} and $code =~ /\$$param\s*->\s*[A-Za-z_]\w*/) |
| 6940 | 100 | T | F | if (not $p->{'type'} and exists $p->{'_default'}) |
| 6942 | 50 | T | F | if (ref $default eq 'HASH') { } |
| 50 | T | F | elsif (ref $default eq 'ARRAY') { } |
| 6954 | 100 | T | F | if (not $p->{'type'}) |
| 6964 | 100 | T | F | if ($code =~ /\blooks_like_number\s*\(\s*\$$param\s*\)/) { } |
| 100 | T | F | elsif ($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*\)/) { } |
| 100 | T | F | elsif ($ops_code =~ /\$$param\s*(?:==|!=|<=|>=|<|>)/ or $ops_code =~ /(?:==|!=|<=|>=|<|>)\s*\$$param/) { } |
| 7065 | 50 | T | F | unless defined $param and $param =~ /^\w+$/ |
| 7068 | 100 | T | F | if ($code =~ /\$$param\s*->\s*isa\s*\(\s*['"]DateTime['"]\s*\)/i) |
| 7077 | 100 | T | F | if ($code =~ /\$$param\s*->\s*(ymd|dmy|mdy|hms|iso8601|epoch|strftime)/) |
| 7086 | 50 | T | F | if ($code =~ /\$$param\s*->\s*isa\s*\(\s*['"]Time::Piece['"]\s*\)/i or $code =~ /\$$param\s*->\s*(strftime|epoch|year|mon|mday)/) |
| 7097 | 100 | T | F | if ($code =~ m[\$$param\s*=~\s*/([^/]+)/]) |
| 7099 | 100 | T | F | if ($self->_looks_like_iso8601_regex($regex)) |
| 7109 | 100 | T | F | if ($code =~ m[\$$param\s*=~\s*/.*?\\d\{4\}.*?\\d\{2\}.*?\\d\{2\}]) |
| 7118 | 50 | T | F | if ($code =~ /\$$param\s*>\s*\d{9,}/ or $code =~ /time\(\s*\)\s*-\s*\$$param/ or $code =~ /\$$param\s*-\s*time\(\s*\)/) |
| 7129 | 50 | T | F | if ($code =~ /strptime\s*\(\s*\$$param/ or $code =~ /DateTime::Format::\w+\s*->\s*parse_datetime\s*\(\s*\$$param/) |
| 7157 | 100 | T | F | unless defined $regex and $regex =~ /[Tt]/ and $regex =~ /[Zz]/ |
| 7163 | 100 | T | F | $regex =~ /${year}[^A-Za-z]{0,3}${short}[^A-Za-z]{0,3}$short/ ? : |
| 7190 | 50 | T | F | unless defined $param and $param =~ /^\w+$/ |
| 7195 | 100 | T | F | if ($code =~ /(?<![\w:])(?:open|close|read|print|say|sysread|syswrite)\s*\(?\s*\$$param/) |
| 7204 | 100 | T | F | if ($code =~ /\$$param\s*->\s*(readline|getline|print|say|close|flush|autoflush)/) |
| 7215 | 100 | T | F | if ($code =~ /(?:-[frwxoOeszlpSbctugkTBMAC])\s+\$$param/) |
| 7217 | 100 | T | F | if ($code =~ /-d\s+\$$param/) { } |
| 7228 | 50 | T | F | if ($code =~ /File::(?:Spec|Basename)::\w+\s*\(\s*\$$param/ or $code =~ /(?:basename|dirname|fileparse)\s*\(\s*\$$param/) |
| 7238 | 50 | T | F | if (defined $p->{'_default'} and $p->{'_default'} =~ m[^([A-Za-z]:\\|/|\./|\.\./)]) |
| 7246 | 50 | T | F | if ($code =~ /\$$param\s*->\s*isa\s*\(\s*['"]IO::File['"]\s*\)/ or $code =~ /IO::File\s*->\s*new\s*\(\s*\$$param/) |
| 7279 | 50 | T | F | unless defined $param and $param =~ /^\w+$/ |
| 7282 | 100 | T | F | if ($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 | T | F | if ($code =~ /\$$param\s*->\s*\(/ or $code =~ /\$$param\s*->\s*\(\s*\@_\s*\)/ or $code =~ /&\s*\{\s*\$$param\s*\}/) |
| 7301 | 100 | T | F | if ($param =~ /^(?:callback|cb|handler|sub|code|fn|func|on_\w+)$/i) |
| 7309 | 50 | T | F | if ($code =~ /blessed\s*\(\s*\$$param\s*\)/ and $code =~ /ref\s*\(\s*\$$param\s*\)\s*eq\s*['"]CODE['"]/i) |
| 7348 | 50 | T | F | unless defined $param and $param =~ /^\w+$/ |
| 7352 | 100 | T | F | if ($code =~ m[unless\s+\$$param\s*=~\s*/\^?\(([^)]+)\)]) |
| 7355 | 100 | T | F | unless $p->{'type'} |
| 7365 | 100 | T | F | if ($code =~ /\%(\w+)\s*=.*?qw\s*[\(\[<{]([^)\]>}]+)[\)\]>}]/) |
| 7368 | 100 | T | F | if (defined $values_str and $code =~ /\$$hash_name\s*\{\s*\$$param\s*\}/) |
| 7370 | 50 | T | F | unless $p->{'type'} |
| 7380 | 100 | T | F | if ($code =~ /grep\s*\{[^}]*\$${param}[^}]*\}\s*qw\s*[\(\[<{]([^)\]>}]+)[\)\]>}]/) |
| 7383 | 50 | T | F | unless $p->{'type'} |
| 7391 | 100 | T | F | if ($code =~ /given\s*\(\s*\$$param\s*\)/) |
| 7396 | 50 | T | F | if (@enum_values >= 2) |
| 7397 | 50 | T | F | unless $p->{'type'} |
| 7414 | 100 | T | F | if (@if_values >= 3) |
| 7415 | 50 | T | F | unless $p->{'type'} |
| 7424 | 50 | T | F | if ($code =~ /\$$param\s*~~\s*\[([^\]]+)\]/ or $code =~ /\$$param\s*~~\s*qw\s*[\(\[<{]([^)\]>}]+)[\)\]>}]/) |
| 7428 | 0 | T | F | if ($values_str =~ /['"]/) { } |
| 7433 | 0 | T | F | if (@enum_values) |
| 7434 | 0 | T | F | unless $p->{'type'} |
| 7487 | 100 | T | F | unless $condition =~ /\$$param\b/ |
| 7504 | 100 | T | F | if ($condition =~ /\$$param\s*([!<>=]=?|eq|ne|lt|gt|le|ge)\s*(.+)/) { } |
| 100 | T | F | elsif ($condition =~ /length\s*\(\s*\$$param\s*\)\s*([<>=!]+)\s*(\d+)/) { } |
| 50 | T | F | elsif ($condition =~ /\$$param\s*==\s*0/) { } |
| 7515 | 100 | T | F | if $constraint |
| 7516 | 100 | T | F | if defined $message |
| 7518 | 100 | T | F | defined $message ? : |
| 7525 | 100 | T | F | if ($code =~ /\b\Q$param\E\s*(<=|<|>=|>)\s*(-?\d+)/) |
| 7531 | 100 | T | F | if ($op eq '<=') { } |
| 100 | T | F | elsif ($op eq '<') { } |
| 100 | T | F | elsif ($op eq '>=') { } |
| 50 | T | F | elsif ($op eq '>') { } |
| 7585 | 100 | T | F | if ($code =~ /sub\s+\w+\s*(?::\w+(?:\([^)]*\))?\s*)*\(((?:[^()]|\([^)]*\))*)\)\s*\{/s) |
| 7589 | 100 | T | F | if ($potential_sig =~ /[\$\%\@]/) |
| 7599 | 100 | T | F | if ($code =~ /my\s+\$(?:self|class)\s*=\s*\$_\[0\]/) |
| 7603 | 100 | T | F | if $name =~ /^(self|class|pkg|proto|klass)$/i |
| 7611 | 100 | T | F | if ($code =~ /my\s*\(\s*([^)]+)\)\s*=\s*\@_/s) { } |
| 100 | T | F | elsif ($code =~ /my\s+\$self\s*=\s*shift/) { } |
| 7618 | 100 | T | F | if $name =~ /^(self|class|pkg|proto|klass)$/i |
| 7625 | 50 | T | F | unless exists $params->{$name}{'position'} |
| 7636 | 50 | T | F | if @shifts and $shifts[0] =~ /^(self|class|pkg|proto|klass)$/i |
| 7645 | 50 | T | F | if ($code =~ /my\s*\(\s*([^)]+)\)\s*=\s*\@_/s) |
| 7650 | 0 | T | F | if $param =~ /^(self|class|pkg|proto|klass)$/i |
| 7658 | 0 | T | F | if ($seen{$param}++) |
| 7696 | 100 | T | F | if (substr($rest, 0, 1) =~ /[(\[{]/) |
| 7700 | 50 | T | F | unless defined $extracted |
| 7704 | 100 | T | F | if (substr($rest, 0, 1) eq ",") |
| 7713 | 50 | T | F | if $current =~ /\S/ |
| 7721 | 50 | T | F | unless $part |
| 7726 | 50 | T | F | if ($param_info) |
| 7730 | 100 | T | F | if ($name =~ /^(self|class|pkg|proto|klass)$/i) |
| 7737 | 100 | T | F | $param_info->{'optional'} ? : |
| 100 | T | F | $param_info->{'_default'} ? : |
| 7782 | 100 | T | F | if ($part =~ /^\$(\w+)\s*:\s*(\w+)\s*=\s*(.+)$/s) { } |
| 100 | T | F | elsif ($part =~ /^\$(\w+)\s*:\s*(\w+)\s*$/s) { } |
| 100 | T | F | elsif ($part =~ /^\$(\w+)\s*=\s*(.+)$/s) { } |
| 100 | T | F | elsif ($part =~ /^\$(\w+)$/s) { } |
| 100 | T | F | elsif ($part =~ /^\@(\w+)$/s) { } |
| 100 | T | F | elsif ($part =~ /^\%(\w+)$/s) { } |
| 7791 | 100 | T | F | if ($constraint =~ /^(Int|Integer)$/i) { } |
| 100 | T | F | elsif ($constraint =~ /^(Num|Number)$/i) { } |
| 50 | T | F | elsif ($constraint =~ /^(Str|String)$/i) { } |
| 0 | T | F | elsif ($constraint =~ /^(Bool|Boolean)$/i) { } |
| 0 | T | F | elsif ($constraint =~ /^(Array|ArrayRef)$/i) { } |
| 0 | T | F | elsif ($constraint =~ /^(Hash|HashRef)$/i) { } |
| 7816 | 100 | T | F | if ($constraint =~ /^(Int|Integer)$/i) { } |
| 100 | T | F | elsif ($constraint =~ /^(Num|Number)$/i) { } |
| 100 | T | F | elsif ($constraint =~ /^(Str|String)$/i) { } |
| 100 | T | F | elsif ($constraint =~ /^(Bool|Boolean)$/i) { } |
| 100 | T | F | elsif ($constraint =~ /^(Array|ArrayRef)$/i) { } |
| 50 | T | F | elsif ($constraint =~ /^(Hash|HashRef)$/i) { } |
| 7842 | 50 | T | F | if $self->can("_infer_type_from_default") |
| 7896 | 100 | T | F | unless defined $default |
| 7898 | 100 | T | F | if (ref $default eq 'HASH') { } |
| 100 | T | F | elsif (ref $default eq 'ARRAY') { } |
| 100 | T | F | elsif ($default =~ /^-?\d+$/) { } |
| 100 | T | F | elsif ($default =~ /^-?\d+\.\d+$/) { } |
| 50 | T | F | elsif ($default eq '1' or $default eq '0') { } |
| 7945 | 100 | T | F | if ($code =~ /sub\s+\w+\s+((?::\w+(?:\([^)]*\))?\s*)+)/s) |
| 7950 | 100 | T | F | if ($attr_section) |
| 7954 | 100 | T | F | if (defined $value and $value ne '') { } |
| 7965 | 100 | T | F | if ($attributes{'Returns'}) |
| 7967 | 50 | T | F | if ($return_type ne 1) |
| 7972 | 100 | T | F | if ($attributes{'lvalue'}) |
| 7976 | 100 | T | F | if ($attributes{'method'}) |
| 8010 | 100 | T | F | if ($code =~ /\$\w+\s*->\s*\@\*/) |
| 8016 | 100 | T | F | if ($code =~ /\$\w+\s*->\s*\%\*/) |
| 8022 | 100 | T | F | if ($code =~ /\$\w+\s*->\s*\$\*/) |
| 8028 | 100 | T | F | if ($code =~ /\$\w+\s*->\s*\&\*/) |
| 8034 | 100 | T | F | if ($code =~ /\$\w+\s*->\s*\@\[/) |
| 8040 | 100 | T | F | if ($code =~ /\$\w+\s*->\s*\%\{/) |
| 8089 | 100 | T | F | if ($modifiers =~ /:param(?:\(([^)]+)\))?/) |
| 8092 | 100 | T | F | if (defined $1) { } |
| 8104 | 100 | T | F | if ($modifiers =~ /=\s*([^:;]+)(?::|;|$)/) |
| 8109 | 50 | T | F | defined $field_info{'_default'} ? : |
| 8113 | 100 | T | F | if ($modifiers =~ /:isa\(([^)]+)\)/) |
| 8160 | 100 | T | F | unless $field->{'is_param'} |
| 8169 | 50 | T | F | unless $p->{'_source'} |
| 8170 | 100 | T | F | if $field_name ne $param_name |
| 8172 | 100 | T | F | if ($field->{'_default'}) |
| 8177 | 100 | T | F | if ($field->{'isa'}) |
| 8222 | 100 | T | F | unless exists $params->{$param} |
| 8223 | 50 | T | F | if $value =~ /->/ |
| 8233 | 50 | T | F | unless exists $params->{$param} |
| 8243 | 50 | T | F | unless exists $params->{$param} |
| 8253 | 50 | T | F | unless exists $params->{$param} |
| 8263 | 50 | T | F | unless exists $params->{$param} |
| 8273 | 100 | T | F | unless exists $params->{$param} |
| 8298 | 0 | T | F | unless exists $params->{$param} |
| 8308 | 50 | T | F | unless exists $params->{$param} |
| 8322 | 100 | T | F | if (not keys %{$params;} || $code =~ /my\s+\$(?:self|class|pkg|proto|klass)\s*=\s*\$_\[0\]/) |
| 8329 | 50 | T | F | if ($position == 0 and $var =~ /^(self|class|pkg|proto|klass)$/i) { } |
| 8342 | 100 | T | F | if ($position == 0 and $var =~ /^(self|class|pkg|proto|klass)$/i) { } |
| 8354 | 0 | T | F | if ($index > 0 or not $var =~ /^(self|class|pkg|proto|klass)$/i) |
| 8382 | 100 | T | F | unless defined $default |
| 8383 | 100 | T | F | if ref $default |
| 8392 | 100 | T | F | if $rhs =~ /^\d+$/ |
| 8393 | 50 | T | F | unless $rhs =~ /^\$(\w+)$/ |
| 8402 | 100 | T | F | if ($invert) |
| 8407 | 50 | T | F | if ($op eq '<') { } |
| 100 | T | F | elsif ($op eq '<=') { } |
| 50 | T | F | elsif ($op eq '>') { } |
| 50 | T | F | elsif ($op eq '>=') { } |
| 8409 | 0 | T | F | if not defined $p->{'max'} or $max < $p->{'max'} |
| 8411 | 50 | T | F | if not defined $p->{'max'} or $val < $p->{'max'} |
| 8414 | 0 | T | F | if not defined $p->{'min'} or $min > $p->{'min'} |
| 8416 | 100 | T | F | if not defined $p->{'min'} or $val > $p->{'min'} |
| 8439 | 0 | T | F | if ($char eq '(') { } |
| 0 | T | F | elsif ($char eq ')') { } |
| 8443 | 0 | T | F | if ($depth < 0) |
| 8449 | 0 | T | F | unless $balanced and $depth == 0 |
| 8455 | 100 | T | F | unless $condition =~ /^length\s*\(\s*\$\Q$param\E\s*\)\s*([<>]=?)\s*(\d+|\$\w+)$/ |
| 8459 | 50 | T | F | unless defined $val |
| 8485 | 100 | T | F | if exists $self->{'_constants'} |
| 8489 | 50 | T | F | unless ($doc) |
| 8542 | 100 | T | F | if ($code =~ /(die|croak|confess)\b[^{;]*\bif\b[^{;]*\$$param\b/s) |
| 8551 | 100 | T | F | if $code =~ /length\s*\(\s*\$$param\s*\)/ |
| 8557 | 100 | T | F | unless defined $op |
| 8565 | 50 | T | F | unless $block =~ /\b(?:croak|die|confess)\b/ |
| 8567 | 50 | T | F | unless defined $val |
| 8573 | 100 | T | F | if (not $guarded and $code =~ /\$$param\s*([<>]=?)\s*([+-]?(?:\d+\.?\d*|\.\d+))/) |
| 8578 | 0 | T | F | &looks_like_number($val) ? : |
| 8580 | 100 | T | F | if ($op eq '<' or $op eq '<=') { } |
| 50 | T | F | elsif ($op eq '>' or $op eq '>=') { } |
| 8582 | 50 | T | F | $op eq '<' ? : |
| 8583 | 50 | T | F | if not defined $p->{'max'} or $max < $p->{'max'} |
| 8585 | 100 | T | F | $op eq '>' ? : |
| 8586 | 50 | T | F | if not defined $p->{'min'} or $min > $p->{'min'} |
| 8591 | 100 | T | F | if ($code =~ m[\$$param\s*=~\s*(?:qr?/([^/]+)/|(\$[\w:]+|\$\{\w+\}))]) |
| 8595 | 100 | T | F | if (defined $variable) { } |
| 50 | T | F | elsif (not _pattern_is_self_contained($body)) { } |
| 8631 | 50 | T | F | unless defined $pattern and length $pattern |
| 8632 | 100 | T | F | if $pattern =~ /\\[QE]/ |
| 8633 | 50 | T | F | if $pattern =~ /(?<!\\)[\$\@]\w/ |
| 8670 | 100 | T | F | if ($code =~ /(?:die|croak|confess)\s+[^;]*unless\s+(?:defined\s+)?\$$param/s) |
| 8677 | 100 | T | F | if ($code =~ /(?:croak|die|confess)\b[^;]*\bunless\b[^;]*?(?:length\s*\(?\s*\$$param\b|defined\s+\$$param\b[^;]*?\blength\b)/s) |
| 8685 | 100 | T | F | if (defined $default_value and not exists $p->{'_default'}) |
| 8690 | 50 | T | F | unless ($p->{'type'}) |
| 8691 | 50 | T | F | if (&looks_like_number($default_value)) { } |
| 0 | T | F | elsif (ref $default_value eq 'ARRAY') { } |
| 0 | T | F | elsif (ref $default_value eq 'HASH') { } |
| 0 | T | F | elsif ($default_value eq 'undef') { } |
| 0 | T | F | elsif (defined $default_value and not ref $default_value) { } |
| 8692 | 50 | T | F | $default_value =~ /\./ ? : |
| 8704 | 50 | T | F | ref $default_value ? : |
| 8709 | 100 | T | F | if (not $default_value || exists $p->{'_default'} and $code =~ /\$$param\s*=\s*([^;{}]+?)(?:\s*[;}])/s) |
| 8712 | 100 | T | F | unless ($assignment =~ /\$$param/ or $assignment =~ /^shift/) |
| 8716 | 50 | T | F | if (defined $possible_default) |
| 8727 | 100 | T | F | if (not $is_required and $code =~ /\b(?:if|unless)\s*\(\s*\$$param\s*\)/) |
| 8733 | 100 | T | F | if ($is_required) |
| 8735 | 100 | T | F | if exists $p->{'_default'} |
| 8767 | 100 | T | F | unless @documented == 1 |
| 8768 | 100 | T | F | unless $self->_argument_style($code) eq "positional" |
| 8776 | 50 | T | F | @code_names == 1 ? : |
| 100 | T | F | $code_params->{$name} ? : |
| 8781 | 100 | T | F | $source ? : |
| 8809 | 50 | T | F | unless defined $code |
| 8814 | 50 | T | F | if $body =~ /\bmy\s+%\w+\s*=[^;]*\@_/s |
| 8815 | 100 | T | F | if $body =~ /\bmy\s*\(\s*[^)]*%\w+\s*\)\s*=\s*\@_/s |
| 8816 | 50 | T | F | if $body =~ /\$_\s*\[\s*\d+\s*\]\s*(?:->\s*)?\{/ |
| 8817 | 100 | T | F | if $body =~ /\$\w+\s*->\s*\{/ |
| 8819 | 100 | T | F | if $body =~ /\$_\s*\[\s*\d+\s*\]/ |
| 8820 | 100 | T | F | if $body =~ /\bmy\s+\$(?!self\b|class\b)\w+\s*=\s*shift\b/ |
| 8821 | 50 | T | F | if $body =~ /\bmy\s*\((?!\s*\$(?:self|class)\s*\))[^)]*\)\s*=\s*\@_/s |
| 8886 | 100 | T | F | unless $invalid |
| 8909 | 50 | T | F | if (ref $pod eq "HASH" and ref $code eq "HASH") |
| 8911 | 100 | T | F | if exists $pod->{$code_name} |
| 8913 | 100 | T | F | unless defined $pos |
| 8917 | 100 | T | F | if not exists $code->{$_} and defined $pod->{$_}{'position'} |
| 8919 | 100 | T | F | unless defined $pod_name |
| 8938 | 100 | T | F | if $pod->{$param} and defined $pod->{$param}{'position'} |
| 8939 | 50 | T | F | if $sig->{$param} and defined $sig->{$param}{'position'} |
| 8940 | 100 | T | F | if $code->{$param} and defined $code->{$param}{'position'} |
| 8943 | 100 | T | F | if (@positions) |
| 8946 | 0 | T | F | unless $pos_count{$b} <=> $pos_count{$a} |
| 8947 | 50 | T | F | unless exists $p->{'position'} |
| 8951 | 100 | T | F | if ($pod->{$param}) |
| 8959 | 100 | T | F | unless exists $pod->{$param}{$key} and defined $pod->{$param}{$key} |
| 8965 | 100 | T | F | if ($code->{$param}) |
| 8967 | 100 | T | F | if $key eq "_source" |
| 8968 | 100 | T | F | if $key eq "position" |
| 8979 | 100 | T | F | if (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) |
| 8983 | 100 | T | F | if $is_constraint{$key} |
| 8990 | 50 | T | F | if ($sig->{$param}) |
| 8992 | 0 | T | F | if $key eq "_source" |
| 8993 | 0 | T | F | if $key eq "position" |
| 8994 | 0 | T | F | if defined $p->{$key} |
| 8996 | 0 | T | F | if $is_constraint{$key} |
| 9010 | 100 | T | F | if ($self->{'verbose'}) |
| 9016 | 50 | T | F | defined $p->{'position'} ? : |
| 50 | T | F | defined $p->{'optional'} ? : |
| 9047 | 100 | T | F | $pod_param ? : |
| 9048 | 100 | T | F | $code_param ? : |
| 9051 | 100 | T | F | if (defined $pod_optional) { } |
| 100 | T | F | elsif (defined $code_optional) { } |
| 50 | T | F | elsif (keys %$merged_param > 0) { } |
| 9101 | 100 | T | F | unless keys %$params |
| 9113 | 100 | T | F | if ($p->{'type'}) { } |
| 9114 | 100 | T | F | if ($p->{'type'} eq 'string' and $p->{'min'} || $p->{'max'} || $p->{'matches'}) { } |
| 100 | T | F | elsif ($p->{'type'} eq 'string') { } |
| 9129 | 100 | T | F | if (defined $p->{'min'}) |
| 9133 | 100 | T | F | if (defined $p->{'max'}) |
| 9137 | 100 | T | F | if (defined $p->{'optional'}) |
| 9141 | 100 | T | F | if ($p->{'matches'}) |
| 9145 | 100 | T | F | if ($p->{'isa'}) |
| 9151 | 100 | T | F | if (defined $p->{'position'}) |
| 9157 | 100 | T | F | if (exists $p->{'_default'}) |
| 9163 | 100 | T | F | if ($p->{'semantic'}) |
| 9177 | 50 | T | F | $count ? : |
| 9180 | 100 | T | F | $count == 1 ? : |
| 9186 | 50 | T | F | if (@sorted_params) |
| 9191 | 100 | T | F | if (@sorted_params > 1) |
| 9200 | 100 | T | F | if ($avg >= $CONFIDENCE_HIGH_THRESHOLD) { } |
| 100 | T | F | elsif ($avg >= $CONFIDENCE_MEDIUM_THRESHOLD) { } |
| 100 | T | F | elsif ($avg >= $CONFIDENCE_LOW_THRESHOLD) { } |
| 9249 | 100 | T | F | unless keys %$output |
| 9254 | 100 | T | F | if ($output->{'type'}) { } |
| 9262 | 100 | T | F | if (defined $output->{'value'}) |
| 9268 | 100 | T | F | if ($output->{'isa'}) |
| 9274 | 100 | T | F | if ($output->{'_context_aware'}) |
| 9278 | 50 | T | F | if ($output->{'_list_context'}) |
| 9281 | 100 | T | F | if ($output->{'_scalar_context'}) |
| 9287 | 100 | T | F | if ($output->{'_error_return'}) |
| 9293 | 100 | T | F | if ($output->{'_success_failure_pattern'}) |
| 9299 | 100 | T | F | if ($output->{'_returns_self'}) |
| 9305 | 100 | T | F | if ($output->{'_void_context'}) |
| 9311 | 100 | T | F | if ($output->{'_error_handling'} and $output->{'_error_handling'}{'exception_handling'}) |
| 9320 | 100 | T | F | if ($score >= $CONFIDENCE_HIGH_THRESHOLD) { } |
| 100 | T | F | elsif ($score >= $CONFIDENCE_MEDIUM_THRESHOLD) { } |
| 100 | T | F | elsif ($score >= $CONFIDENCE_LOW_THRESHOLD) { } |
| 9362 | 100 | T | F | unless $schema->{'_analysis'} |
| 9374 | 50 | T | F | if ($analysis->{'confidence_factors'}{'input'}) |
| 9385 | 50 | T | F | if ($analysis->{'confidence_factors'}{'output'}) |
| 9394 | 50 | T | F | if ($analysis->{'per_parameter_scores'}) |
| 9435 | 100 | T | F | unless ($p->{'type'}) |
| 9439 | 100 | T | F | unless (defined $p->{'optional'}) |
| 9481 | 100 | T | F | unless ref $p eq "HASH" |
| 9482 | 100 | T | F | unless ($p->{'type'}) |
| 9533 | 100 | T | F | unless @param_names |
| 9581 | 100 | T | F | if ($rel->{'type'} eq 'mutually_exclusive') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'required_group') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'conditional_requirement') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'dependency') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'value_constraint') { } |
| 50 | T | F | elsif ($rel->{'type'} eq 'value_conditional') { } |
| 9597 | 100 | T | F | unless ($seen{$sig}++) |
| 9633 | 100 | T | F | if $param1 eq $param2 |
| 9636 | 100 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+&&\s+\$$param2/ or $code =~ /(?:die|croak|confess)[^;]*if\s+\$$param2\s+&&\s+\$$param1/) |
| 9642 | 100 | T | F | if ($rel->{'type'} eq "mutually_exclusive" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1)) |
| 9649 | 100 | T | F | if $found_reverse |
| 9661 | 100 | T | F | if ($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 | 50 | T | F | if ($rel->{'type'} eq "mutually_exclusive" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1)) |
| 9673 | 50 | T | F | if $found_reverse |
| 9717 | 100 | T | F | if $param1 eq $param2 |
| 9719 | 100 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*unless\s+\$$param1\s+\|\|\s+\$$param2/ or $code =~ /(?:die|croak|confess)[^;]*unless\s+\$$param2\s+\|\|\s+\$$param1/) |
| 9725 | 50 | T | F | if ($rel->{'type'} eq "required_group" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1)) |
| 9732 | 100 | T | F | if $found_reverse |
| 9745 | 100 | T | F | if ($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 | 50 | T | F | if ($rel->{'type'} eq "required_group" and ($rel->{'params'}[0] eq $param2 and $rel->{'params'}[1] eq $param1)) |
| 9757 | 50 | T | F | if $found_reverse |
| 9802 | 100 | T | F | if $param1 eq $param2 |
| 9805 | 100 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+&&\s+!\$$param2/) |
| 9817 | 50 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+&&\s+!defined\s*\(\s*\$$param2\s*\)/) |
| 9829 | 100 | T | F | if ($code =~ /(?:die|croak|confess)\s+['"]\w*${param1}[^'"]*requires[^'"]*$param2/i) |
| 9872 | 100 | T | F | if $param1 eq $param2 |
| 9876 | 100 | T | F | if ($code =~ /(?:die|croak|confess)\s+['"]\w*${param1}[^'"]*requires[^'"]*$param2/i and $code =~ /if\s+\$$param1\s+&&\s+!\$$param2/) |
| 9921 | 100 | T | F | if $param1 eq $param2 |
| 9924 | 100 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+&&\s+\$$param2\s*!=\s*(\d+)/) |
| 9939 | 50 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+&&\s+\$$param2\s*<\s*(\d+)/) |
| 9954 | 100 | T | F | if ($code =~ /(?:die|croak|confess)[^;]*if\s+\$$param1\s+eq\s+['"]([^'"]+)['"]\s+&&\s+!\$$param2/) |
| 9984 | 100 | T | F | unless defined $self->{'output_dir'} |
| 9986 | 100 | T | F | unless -d $self->{'output_dir'} |
| 9994 | 100 | T | F | if ($self->{'_document'}) |
| 9996 | 100 | T | F | $package_stmt ? : |
| 10017 | 100 | T | F | if ($schema->{'_analysis'}{'side_effects'}{'writes_file'}) |
| 10022 | 100 | T | F | if ($schema->{'_analysis'}{'side_effects'}{'keeps_fd'}) |
| 10028 | 100 | T | F | if $schema->{'skip'} |
| 10031 | 50 | T | F | if $schema->{'invocant'} |
| 10034 | 100 | T | F | if ($schema->{'input'}) |
| 10035 | 100 | T | F | if (scalar keys %{$$schema{'input'};}) { } |
| 10040 | 100 | T | F | if ($param->{'name'}) |
| 10042 | 50 | T | F | if ($name ne $param_name) |
| 10060 | 100 | T | F | if (@with_pos and grep {not $output->{'input'}{$_}{'named'};} @without_pos) |
| 10069 | 50 | T | F | if ($schema->{'output'} and scalar keys %{$$schema{"output"};}) |
| 10070 | 100 | T | F | if (ref $schema->{'output'}{'_error_handling'} eq "HASH" and scalar keys %{$$schema{"output"}{"_error_handling"};} == 0) |
| 10079 | 50 | T | F | if ($schema->{'output'}{'type'} and $schema->{'output'}{'type'} eq "scalar") |
| 10085 | 100 | T | F | if ($schema->{'new'}) |
| 10087 | 100 | T | F | if (ref $schema->{'new'} or $schema->{'new'} eq $package_name) { } |
| 10088 | 100 | T | F | $schema->{'new'} eq $package_name ? : |
| 10096 | 100 | T | F | unless (defined $schema->{'_confidence'}{'input'}{'level'}) |
| 10099 | 100 | T | F | unless (defined $schema->{'_confidence'}{'output'}{'level'}) |
| 10104 | 100 | T | F | if ($schema->{'relationships'} and @{$schema->{'relationships'};}) |
| 10108 | 50 | T | F | if ($schema->{'accessor'} and scalar keys %{$$schema{"accessor"};}) |
| 10118 | 100 | T | F | $schema->{'relationships'} ? : |
| 10120 | 100 | T | F | $schema->{'new'} ? : |
| 10159 | 100 | T | F | if ($schema->{'input'}) |
| 10164 | 100 | T | F | if ($p->{'semantic'}) |
| 10168 | 100 | T | F | if ($p->{'enum'}) |
| 10172 | 100 | T | F | if ($p->{'isa'}) |
| 10177 | 100 | T | F | if (@param_notes) |
| 10188 | 100 | T | F | if ($schema->{'relationships'} and @{$schema->{'relationships'};}) |
| 10194 | 50 | T | F | unless $_->{'description'} |
| 10202 | 100 | T | F | if ($schema->{'_notes'} and scalar @{$schema->{'_notes'};}) |
| 10210 | 100 | T | F | if ($schema->{'_analysis'}) |
| 10230 | 100 | T | F | if ($schema->{'input'}) |
| 10234 | 100 | T | F | if ($p->{'type'} and $p->{'type'} eq "coderef") |
| 10238 | 100 | T | F | if ($p->{'semantic'} and $p->{'semantic'} eq "filehandle") |
| 10242 | 100 | T | F | if ($p->{'isa'} and $p->{'isa'} =~ /DateTime/) |
| 10248 | 100 | T | F | if (@warnings) |
| 10295 | 100 | T | F | if defined $param->{$field} |
| 10299 | 100 | T | F | if defined $param->{'_source'} and length $param->{'_source'} |
| 10303 | 100 | T | F | if (ref $param->{'_constraint_source'} eq "HASH") |
| 10307 | 100 | T | F | if defined $source and length $source |
| 10309 | 50 | T | F | if keys %provenance |
| 10313 | 100 | T | F | if (my $semantic = $param->{'semantic'}) |
| 10314 | 100 | T | F | if ($semantic eq 'datetime_object') { } |
| 50 | T | F | elsif ($semantic eq 'timepiece_object') { } |
| 100 | T | F | elsif ($semantic eq 'date_string') { } |
| 50 | T | F | elsif ($semantic eq 'bytes') { } |
| 100 | T | F | elsif ($semantic eq 'iso8601_string') { } |
| 100 | T | F | elsif ($semantic eq 'unix_timestamp') { } |
| 50 | T | F | elsif ($semantic eq 'datetime_parseable') { } |
| 100 | T | F | elsif ($semantic eq 'filehandle') { } |
| 100 | T | F | elsif ($semantic eq 'filepath') { } |
| 100 | T | F | elsif ($semantic eq 'existing_file') { } |
| 100 | T | F | elsif ($semantic eq 'directory') { } |
| 100 | T | F | elsif ($semantic eq 'callback') { } |
| 100 | T | F | elsif ($semantic eq 'enum') { } |
| 10379 | 50 | T | F | if (($param->{'_source'} // '') eq 'input_spec' and defined $param->{'type'} and $param->{'type'} ne 'string') { } |
| 10384 | 50 | T | F | if ($param->{'enum'} and ref $param->{'enum'} eq "ARRAY") |
| 10395 | 50 | T | F | if $param->{'_fixture'} |
| 10399 | 50 | T | F | if (ref $param->{'schema'} eq "HASH") |
| 10409 | 100 | T | F | if ($param->{'enum'} and ref $param->{'enum'} eq "ARRAY" and not $cleaned{'enum'} and not $formal_non_string) |
| 10412 | 100 | T | F | if ($param->{'memberof'} and ref $param->{'memberof'} eq "ARRAY") |
| 10417 | 100 | T | F | if ($param->{'isa'} and not $cleaned{'isa'}) |
| 10422 | 100 | T | F | if ($param->{'format'}) |
| 10432 | 100 | T | F | if (defined(my $pattern = $cleaned{'matches'})) |
| 10433 | 50 | T | F | if ((&reftype($pattern) // '') eq 'REGEXP') { } |
| 50 | T | F | elsif (not ref $pattern) { } |
| 10437 | 0 | T | F | if defined $body |
| 10441 | 50 | T | F | if ($@) { } |
| 10451 | 50 | T | F | if (ref $param->{'_stub_elements'} eq "HASH") |
| 10458 | 100 | T | F | unless ($cleaned{'semantic'} // "") =~ /^(?:directory|existing_file|bytes)$/ |
| 10483 | 100 | T | F | if ($rel->{'type'} eq 'mutually_exclusive') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'required_group') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'conditional_requirement') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'dependency') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'value_constraint') { } |
| 100 | T | F | elsif ($rel->{'type'} eq 'value_conditional') { } |
| 10534 | 100 | T | F | unless ref $input eq "HASH" |
| 10535 | 50 | T | F | unless defined $body and length $body |
| 10543 | 100 | T | F | if $1 ne $param |
| 10548 | 100 | T | F | if $body =~ /\b(?:PPI::Document->new|_load_schema|_slurp|read_file|slurp_file)\s*\(\s*\$$v\b/ or $body =~ /\bopen\b\s*\(?[^;]*['"]<[^;]*\$$v\b/ |
| 10559 | 100 | T | F | unless $tests_existence |
| 10562 | 50 | T | F | if ref $spec eq "HASH" |
| 10588 | 100 | T | F | if $own =~ /\boptional\s*=>\s*(0|1)/i |
| 10589 | 100 | T | F | if $own =~ /\brequired\s*=>\s*(0|1)/i |
| 10602 | 100 | T | F | if (defined $1) |
| 10603 | 100 | T | F | if $depth == 0 |
| 10606 | 100 | T | F | if ($2 eq "{") |
| 10607 | 100 | T | F | if ($depth == 0 and defined $pending) |
| 10614 | 50 | T | F | unless $depth > 0 |
| 10616 | 100 | T | F | if ($depth == 0 and defined $name) |
| 10643 | 50 | T | F | unless ref $input eq "HASH" |
| 10647 | 50 | T | F | unless ref $spec eq "HASH" |
| 10650 | 50 | T | F | if ($type =~ /\bobject\b/ and not defined $spec->{'can'} and not defined $spec->{'isa'}) |
| 10653 | 50 | T | F | if (($spec->{'semantic'} // "") eq "directory") |
| 10670 | 50 | T | F | ref $body ? : |
| 10671 | 50 | T | F | unless defined $content and length $content |
| 10674 | 50 | T | F | unless ref $input eq "HASH" |
| 10679 | 50 | T | F | unless ref $spec eq "HASH" |
| 10680 | 100 | T | F | if $spec->{'optional'} |
| 10683 | 100 | T | F | unless $type eq "arrayref" or $type eq "array" |
| 10696 | 100 | T | F | unless $empty_guard or $elements_are_objects |
| 10698 | 100 | T | F | $empty_guard ? : |
| 10711 | 100 | T | F | unless %reasons |
| 10726 | 50 | T | F | unless defined $pod and length $pod |
| 10728 | 100 | T | F | if $pod =~ /\bsubclass(?:es)?\s+of\s+(?:C<)?([A-Z]\w*(?:::\w+)+)/ |
| 10729 | 50 | T | F | if $pod =~ /\bisa\s*\(\s*['\"]?([A-Z]\w*(?:::\w+)+)/ |
| 10730 | 50 | T | F | if $pod =~ /\binstances?\s+of\s+(?:C<)?([A-Z]\w*(?:::\w+)+)/ |
| 10752 | 100 | T | F | unless %reasons |
| 10755 | 100 | T | F | unless defined $base and $base eq "Database::Abstraction" |
| 10759 | 50 | T | F | ref $input->{'join_column'} eq 'HASH' ? : |
| 10760 | 50 | T | F | unless defined $join_column and not ref $join_column and length $join_column |
| 10784 | 50 | T | F | if (ref $input->{'join_column'} eq "HASH") |
| 10795 | 100 | T | F | unless ref $element eq "HASH" and ref $element->{'col'} eq "HASH" |
| 10796 | 50 | T | F | if ref $element->{'col'}{'memberof'} eq "ARRAY" and @{$element->{'col'}{'memberof'};} |
| 10835 | 50 | T | F | unless defined $body |
| 10838 | 100 | T | F | if $body =~ /\breturn\s*\{[^}]*\bdbh\s*=>/s and $pod =~ /\bdbh\b/ |
| 10841 | 50 | T | F | if $body =~ /\$self\s*->\s*\{_sqlite_cache\}\s*=\s*\{/s and $body =~ /\bdbh\s*=>/ |
| 10846 | 100 | T | F | if $pod =~ /\b(?:SQLite\s+)?cache/i and $body =~ /\$self\s*->\s*(?:_build_sqlite_cache|_sqlite_join|_sqlite_aggregate)\s*\(/ |
| 10864 | 100 | T | F | $code =~ /\A\s*(?:my\s+[^;]+;\s*)*croak\b[^;]*;\s*\z/s ? : |
| 10876 | 50 | T | F | ref $body ? : |
| 10877 | 50 | T | F | unless defined $content and length $content |
| 10879 | 50 | T | F | if $content =~ /\bcheck_abstract\s*\(/ |
| 10880 | 100 | T | F | if $content =~ /\bcroak\b/ and $content =~ /\beq\s+__PACKAGE__\b/ |
| 10882 | 50 | T | F | ref $ctor_schema->{'input'} eq 'HASH' ? : |
| 10884 | 50 | T | F | unless exists $declared{$2} |
| 10907 | 100 | T | F | if $spec->{'optional'} |
| 10914 | 100 | T | F | if ($param_name =~ /(?:file|filename)/i) |
| 10917 | 100 | T | F | if ($param_name =~ /(?:dir|path)/i) |
| 10923 | 100 | T | F | if (ref $spec->{'_stub_elements'} eq "HASH") |
| 10928 | 100 | T | F | unless (exists $REP{$type}) |
| 10969 | 50 | T | F | unless $doc |
| 10973 | 100 | T | F | $package_stmt ? : |
| 10989 | 100 | T | F | if ($method_name eq "new") |
| 10993 | 100 | T | F | if ($method_name =~ /^(create|build|construct|init|DESTROY)$/i) |
| 11004 | 100 | T | F | if ($is_singleton) |
| 11016 | 0 | T | F | if ($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'};}) |
| 11024 | 100 | T | F | if ($is_factory) |
| 11038 | 50 | T | F | if ($inheritance_info and $inheritance_info->{'use_parent_constructor'}) |
| 11050 | 100 | T | F | if ($constructor_needs) |
| 11064 | 50 | T | F | if ($needs_other_object) |
| 11068 | 0 | T | F | if $needs_other_object->{'package'} |
| 11074 | 0 | T | F | if $result->{'package'} |
| 11078 | 100 | T | F | if ($is_factory and not $skip_object) |
| 11084 | 50 | T | F | if $is_factory->{'returns_class'} |
| 11120 | 100 | T | F | if ($method_name =~ /^(create_|make_|build_|get_)/i) |
| 11125 | 50 | T | F | if ($method_body) |
| 11127 | 100 | T | F | if ($method_body =~ /return\s+bless\s*\{[^}]*\},\s*['"]?(\w+(?:::\w+)*|\$\w+)['"]?/s or $method_body =~ /bless\s*\{[^}]*\},\s*['"]?(\w+(?:::\w+)*|\$\w+)['"]?.*return/s) |
| 11132 | 100 | T | F | if ($class_name =~ /^\$(class|self|package)$/) { } |
| 100 | T | F | elsif ($class_name =~ /^\$/) { } |
| 11146 | 100 | T | F | if ($method_body =~ /return\s+([\$\w:]+)->new\(/s or $method_body =~ /([\$\w:]+)->new\(.*return/s) |
| 11151 | 50 | T | F | if ($target eq '$self' or $target eq 'shift' or $target =~ /^\$/) { } |
| 100 | T | F | elsif ($target =~ /::/) { } |
| 11167 | 50 | T | F | if ($method_body =~ /return\s+([\$\w:]+)->(create_|make_|build_|get_)/i or $method_body =~ /([\$\w:]+)->(create_|make_|build_|get_).*return/is) |
| 11176 | 100 | T | F | if ($method_info and ref $method_info eq "HASH" and $method_info->{'pod'}) |
| 11178 | 50 | T | F | if ($pod =~ /returns?\s+(?:an?\s+)?(object|instance|new\s+\w+)/i) |
| 11218 | 100 | T | F | unless $method_name =~ /^(instance|get_instance|singleton|shared_instance)$/i |
| 11225 | 50 | T | F | if ($method_body) |
| 11227 | 100 | T | F | if ($method_body =~ /(?:my\s+)?(?:our\s+)?\$(?:instance|_instance|singleton)\b/s or $method_body =~ /state\s+\$(?:instance|_instance|singleton)\b/s) |
| 11234 | 100 | T | F | if ($method_body =~ /return\s+\$instance\s+if\s+(?:defined\s+)?\$instance/ or $method_body =~ /unless\s+\$instance.*?=\s*.*?new/) |
| 11241 | 100 | T | F | if ($method_body =~ /\$instance\s*\|\|=\s*.*?new/ or $method_body =~ /\$instance\s*=\s*.*?new\s+unless\s+(?:defined\s+)?\$instance/) |
| 11248 | 100 | T | F | if ($method_body =~ /return\s+\$instance;/) |
| 11250 | 50 | T | F | unless $singleton_info{'confidence'} |
| 11254 | 50 | T | F | if keys %singleton_info > 0 |
| 11289 | 100 | T | F | if ($method_body =~ /my\s*\(\s*\$self\s*[,)]/) { } |
| 100 | T | F | elsif ($method_body =~ /my\s+\$self\s*=\s*\$_\[0\]/) { } |
| 100 | T | F | elsif ($method_body =~ /my\s+\$self\s*=\s*shift/) { } |
| 100 | T | F | elsif ($method_body =~ /\$self\s*->\s*(\w+|[\{\[])/) { } |
| 11314 | 100 | T | F | if ($method_body =~ /\$self\s*->\s*[\{\[]/) |
| 11316 | 100 | T | F | unless $instance_info{'confidence'} eq "high" |
| 11320 | 100 | T | F | if ($method_body =~ /\$self\s*->\s*(\w+)\s*\(/s) |
| 11325 | 50 | T | F | if @{$instance_info{'calls_instance_methods'};} |
| 11329 | 100 | T | F | if ($method_name =~ /^_/ and not $method_name =~ /^_new/) |
| 11332 | 50 | T | F | unless exists $instance_info{'confidence'} |
| 11335 | 100 | T | F | if keys %instance_info |
| 11368 | 100 | T | F | unless $doc |
| 11379 | 100 | T | F | if ($content =~ /use\s+(parent|base)\s+['"]?([\w:]+)['"]?/) |
| 11384 | 50 | T | F | if ($content =~ /use\s+(parent|base)\s+qw?[\(\[]?(.+?)[\)\]]?;/) |
| 11397 | 50 | T | F | if ($content =~ /(?:our\s+)?\@ISA\s*=\s*qw?[\(\[]?(.+?)[\)\]]?/) |
| 11409 | 100 | T | F | if ($content =~ /\@ISA\s*=\s*qw?[\(\[]?(.+?)[\)\]]?/) |
| 11418 | 100 | T | F | if ($method_body and $method_body =~ /SUPER::/) |
| 11420 | 50 | T | F | if ($method_body =~ /SUPER::new/) |
| 11427 | 100 | T | F | if $_[1]->isa("PPI::Statement::Sub") |
| 11431 | 100 | T | F | if ($has_own_new) { } |
| 100 | T | F | elsif (@parent_classes) { } |
| 11439 | 100 | T | F | if keys %inheritance_info |
| 11473 | 50 | T | F | unless $doc |
| 11477 | 100 | T | F | if ($target_package ne $current_package) |
| 11487 | 100 | T | F | if $_[1]->isa("PPI::Statement::Sub") |
| 11491 | 100 | T | F | unless $new_method |
| 11499 | 100 | T | F | if ($body =~ /my\s*\(\s*\$(self|class)\s*,\s*(.+?)\)\s*=\s*\@_/s) |
| 11503 | 100 | T | F | if (@param_names) |
| 11517 | 50 | T | F | if (@shift_params) |
| 11525 | 100 | T | F | if ($body =~ /croak.*unless.*(?:defined\s+)?\$(\w+)/g) |
| 11528 | 100 | T | F | if ($body =~ /die.*unless.*(?:defined\s+)?\$(\w+)/g) |
| 11532 | 100 | T | F | if (@required_params) |
| 11542 | 100 | T | F | if ($requirements{'parameters'}) |
| 11545 | 100 | T | F | if (defined $default) |
| 11552 | 100 | T | F | if (@optional_params) |
| 11557 | 100 | T | F | if keys %requirements |
| 11588 | 100 | T | F | unless $method_body |
| 11597 | 100 | T | F | if $class eq "main" or $class eq "__PACKAGE__" or $class =~ /^\$/ |
| 11601 | 100 | T | F | if ($dependency_info{'creates_objects'}) |
| 11609 | 100 | T | F | if ($method_body =~ /\$(\w+)->\w+\(/) |
| 11623 | 100 | T | F | if ($method_body =~ /my\s+\$$var\s*=\s*(\w+(?:::\w+)+)->(?:new|create)/) { } |
| 50 | T | F | elsif ($method_body =~ /my\s+\$$var\s*=\s*(\w+(?:::\w+)+)->/) { } |
| 11630 | 100 | T | F | if (@object_classes) |
| 11632 | 100 | T | F | unless $dependency_info{'package'} |
| 11639 | 100 | T | F | if keys %dependency_info |
| 11662 | 50 | T | F | unless $doc |
| 11666 | 50 | T | F | if $_[1]->isa("PPI::Statement::Include") and $_[1]->type eq "use" and $_[1]->module =~ /^(parent|base)$/ |
| 11671 | 50 | T | F | if ($parent_stmt) |
| 11678 | 100 | T | F | if $_[1]->isa("PPI::Statement") |
| 11681 | 50 | T | F | if ($isa_stmt and $isa_stmt->content =~ /['"](\w+(?:::\w+)*)['"]/) |
| 11715 | 100 | T | F | unless $package_stmt |
| 11721 | 100 | T | F | if $_[1]->isa("PPI::Statement::Sub") |
| 11724 | 50 | T | F | if ($has_new) |
| 11730 | 0 | T | F | if $parent |
| 11766 | 100 | T | F | unless $param and $code |
| 11776 | 100 | T | F | if ($clean_code =~ /\$$param\s*=\s*(?:\$$param|\$[a-zA-Z_]\w*)\s*\|\|\s*([^;]+)/) |
| 11780 | 50 | T | F | if defined $default |
| 11784 | 100 | T | F | if ($clean_code =~ m[\$$param\s*//=\s*([^;]+)]) |
| 11788 | 100 | T | F | if defined $default |
| 11793 | 100 | T | F | if ($clean_code =~ /\$$param\s*=\s*defined\s+(?:\$$param|\$[a-zA-Z_]\w*)\s*\?\s*(?:\$$param|\$[a-zA-Z_]\w*)\s*:\s*([^;]+)/) |
| 11797 | 50 | T | F | if defined $default |
| 11801 | 100 | T | F | if ($clean_code =~ /\$$param\s*=\s*([^;]+?)\s+unless\s+defined\s+(?:\$$param|\$[a-zA-Z_]\w*)/) |
| 11804 | 50 | T | F | if defined $default |
| 11808 | 100 | T | F | if ($clean_code =~ /\$$param\s*\|\|=\s*([^;]+)/) |
| 11812 | 50 | T | F | if defined $default |
| 11816 | 100 | T | F | if ($clean_code =~ m[\$$param\s*=\s*(?:\$$param|\$[a-zA-Z_]\w*)\s*//\s*([^;]+)]) |
| 11820 | 100 | T | F | if defined $default |
| 11824 | 100 | T | F | if ($clean_code =~ /if\s*\(\s*!defined\s+\$$param\s*\)\s*\{[^}]*\$$param\s*=\s*([^;]+)/s) |
| 11828 | 50 | T | F | if defined $default |
| 11832 | 100 | T | F | if ($clean_code =~ /unless\s*\(\s*defined\s+\$$param\s*\)\s*\{[^}]*\$$param\s*=\s*([^;]+)/s) |
| 11836 | 50 | T | F | if defined $default |
| 11873 | 100 | T | F | unless $code |
| 11880 | 100 | T | F | unless @{$hints{$k};} |
| 11907 | 100 | T | F | if ($code =~ /defined\s*\(\s*\$/) |
| 11912 | 100 | T | F | if ($code =~ /\beq\s*''/ or $code =~ /\blength\s*\(/) |
| 11917 | 100 | T | F | if ($code =~ /\$\w+\s*<\s*0/) |
| 11945 | 100 | T | F | if ($op eq '<') { } |
| 100 | T | F | elsif ($op eq '<=') { } |
| 100 | T | F | elsif ($op eq '>') { } |
| 50 | T | F | elsif ($op eq '>=') { } |
| 11985 | 100 | T | F | unless $pod |
| 11991 | 100 | T | F | if ($pod =~ /=head[12]\s+SYNOPSIS\s*(.+?)(?=\n=head|\z)/s) |
| 12002 | 100 | T | F | unless length $synopsis |
| 12011 | 50 | T | F | defined $3 ? : |
| 100 | T | F | defined $2 ? : |
| 12015 | 100 | T | F | if %kv |
| 12023 | 100 | T | F | unless (scalar @examples) |
| 12032 | 50 | T | F | unless @args |
| 12043 | 50 | T | F | if (scalar @examples) |
| 12088 | 100 | T | F | unless defined $value |
| 12098 | 100 | T | F | if ($value =~ m[\|\||/{2}]) |
| 12108 | 100 | T | F | if ($value =~ /^qq?\{(.*?)\}$/s) { } |
| 50 | T | F | elsif ($value =~ /^qw\{(.*?)\}$/s) { } |
| 50 | T | F | elsif ($value =~ /^q[qwx]?\s*([^a-zA-Z0-9\{\[])(.*?)\1$/s) { } |
| 12117 | 100 | T | F | if ($value =~ /^(['"])(.*)\1$/s) |
| 12120 | 100 | T | F | if ($from_code) |
| 12131 | 100 | T | F | unless ($from_code) |
| 12140 | 100 | T | F | unless ($value =~ /^\(/) |
| 12145 | 100 | T | F | if ($value =~ /^\{\s*\}$/) |
| 12150 | 100 | T | F | if ($value =~ /^\[\s*\]$/) |
| 12155 | 100 | T | F | if ($value =~ /^-?\d+(?:\.\d+)?$/) |
| 12156 | 100 | T | F | if ($value =~ /\./) { } |
| 12164 | 100 | T | F | if ($value =~ /^(true|false)$/i) |
| 12165 | 100 | T | F | lc $1 eq 'true' ? : |
| 12169 | 50 | T | F | if ($value eq '1') { } |
| 50 | T | F | elsif ($value eq '0') { } |
| 12176 | 100 | T | F | if ($value eq "undef") |
| 12181 | 100 | T | F | if ($value eq "__PACKAGE__") |
| 12189 | 100 | T | F | if ($value =~ /^\$[a-zA-Z_]/ or $value =~ /\(.*\)/) |
| 12190 | 100 | T | F | if $value =~ /^\$|\@|\%/ |
| 12244 | 100 | T | F | unless (($pod->{'_source'} // "") eq "input_spec") |
| 12246 | 100 | T | F | if (exists $pod_params->{$param} and not exists $code_params->{$param}) |
| 12251 | 50 | T | F | if (not exists $pod_params->{$param} and exists $code_params->{$param}) |
| 12252 | 100 | T | F | if ($param =~ /^(class|pkg|proto|klass)$/i) |
| 12256 | 100 | T | F | if ($param eq "self") |
| 12265 | 100 | T | F | if ($pod->{'type'} and $code->{'type'} and $pod->{'type'} ne $code->{'type'}) |
| 12266 | 100 | T | F | if (not $self->_types_are_compatible($pod->{'type'}, $code->{'type'})) { } |
| 12274 | 100 | T | F | if (exists $pod->{'optional'} and exists $code->{'optional'} and $pod->{'optional'} != $code->{'optional'}) |
| 12276 | 100 | T | F | $pod->{'optional'} ? : |
| 12277 | 100 | T | F | $code->{'optional'} ? : |
| 12282 | 50 | T | F | if ($pod->{'matches'} and $code->{'matches'} and $pod->{'matches'} ne $code->{'matches'}) |
| 12288 | 100 | T | F | if (defined $pod->{'min'} and defined $code->{'min'} and $pod->{'min'} != $code->{'min'}) |
| 12292 | 100 | T | F | if (defined $pod->{'max'} and defined $code->{'max'} and $pod->{'max'} != $code->{'max'}) |
| 12296 | 100 | T | F | if (defined $pod->{'min'} and defined $code->{'max'} and $pod->{'min'} > $code->{'max'}) |
| 12300 | 50 | T | F | if (defined $code->{'min'} and defined $pod->{'max'} and $code->{'min'} > $pod->{'max'}) |
| 12329 | 100 | T | F | unless defined $val |
| 12332 | 100 | T | F | if $val =~ /^(0|off|none)$/i |
| 12333 | 100 | T | F | if $val =~ /^(1|warn|warning)$/i |
| 12334 | 100 | T | F | if $val =~ /^(2|fatal|die|error)$/i |
| 12360 | 100 | T | F | if $pod_type eq $code_type |
| 12373 | 100 | T | F | if (my $allowed = $compatible_types{$pod_type}) |
| 12378 | 50 | T | F | if (my $allowed = $compatible_types{$code_type}) |
| 12443 | 100 | T | F | if (my $errors = $schema->{'_pod_validation_errors'}) |
| 12445 | 100 | T | F | $schema->{'_pod_disagreement'} ? : |
| 12452 | 100 | T | F | if (@reports) { } |
| 12468 | 100 | T | F | if $self->{'verbose'} |