Perl::Critic |
Critique Perl source code for best-practices. |
1.152 |
metacpan |
Perl::Critic::Annotation |
A "## no critic" annotation in a document. |
1.152 |
metacpan |
Perl::Critic::Command |
Guts of L<perlcritic|perlcritic>. |
1.152 |
metacpan |
Perl::Critic::Config |
The final derived Perl::Critic configuration, combined from any profile file and command-line parameters. |
1.152 |
metacpan |
Perl::Critic::Document |
Caching wrapper around a PPI::Document. |
1.152 |
metacpan |
Perl::Critic::Exception |
A problem identified by L<Perl::Critic|Perl::Critic>. |
1.152 |
metacpan |
Perl::Critic::Exception::AggregateConfiguration |
A collection of a set of problems found in the configuration and/or command-line options. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration |
A problem with L<Perl::Critic|Perl::Critic> configuration. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Generic |
A problem with L<Perl::Critic|Perl::Critic> configuration that doesn't involve an option. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::NonExistentPolicy |
The configuration referred to a non-existent policy. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option |
A problem with an option in the L<Perl::Critic|Perl::Critic> configuration. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option::Global |
A problem with L<Perl::Critic|Perl::Critic> global configuration. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option::Global::ExtraParameter |
The configuration referred to a non-existent global option. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option::Global::ParameterValue |
A problem with the value of a global parameter. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option::Policy |
A problem with configuration of a policy. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option::Policy::ExtraParameter |
The configuration referred to a non-existent parameter for a policy. |
1.152 |
metacpan |
Perl::Critic::Exception::Configuration::Option::Policy::ParameterValue |
A problem with the value of a parameter for a policy. |
1.152 |
metacpan |
Perl::Critic::Exception::Fatal |
A problem that should cause L<Perl::Critic|Perl::Critic> to stop running. |
1.152 |
metacpan |
Perl::Critic::Exception::Fatal::Generic |
A problem for which there is no specialized information. |
1.152 |
metacpan |
Perl::Critic::Exception::Fatal::Internal |
A problem with the L<Perl::Critic|Perl::Critic> implementation, i.e. a bug. |
1.152 |
metacpan |
Perl::Critic::Exception::Fatal::PolicyDefinition |
A bug in a policy. |
1.152 |
metacpan |
Perl::Critic::Exception::IO |
A problem with input or output. |
1.152 |
metacpan |
Perl::Critic::Exception::Parse |
The code doesn't look like code. |
1.152 |
metacpan |
Perl::Critic::OptionsProcessor |
The global configuration default values, combined with command-line values. |
1.152 |
metacpan |
Perl::Critic::Policy |
Base class for all Policy modules. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitBooleanGrep |
Use C<any> from C<List::Util>, C<List::SomeUtils>, or C<List::MoreUtils> instead of C<grep> in boolean context. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitComplexMappings |
Map blocks should have a single statement. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr |
Use 4-argument C<substr> instead of writing C<substr($foo, 2, 6) = $bar>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitReverseSortBlock |
Forbid $b before $a in sort blocks. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitShiftRef |
Prohibit C<\shift> in code |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitSleepViaSelect |
Use L<Time::HiRes|Time::HiRes> instead of something like C<select(undef, undef, undef, .05)>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval |
Write C<eval { my $foo; bar($foo) }> instead of C<eval "my $foo; bar($foo);">. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitStringySplit |
Write C<split /-/, $string> instead of C<split '-', $string>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalCan |
Write C<< eval { $foo->can($name) } >> instead of C<UNIVERSAL::can($foo, $name)>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa |
Write C<< eval { $foo->isa($pkg) } >> instead of C<UNIVERSAL::isa($foo, $pkg)>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitUselessTopic |
Don't pass $_ to built-in functions that assume it, or to most filetest operators. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidGrep |
Don't use C<grep> in void contexts. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap |
Don't use C<map> in void contexts. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep |
Write C<grep { /$pattern/ } @list> instead of C<grep /$pattern/, @list>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::RequireBlockMap |
Write C<map { /$pattern/ } @list> instead of C<map /$pattern/, @list>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::RequireGlobFunction |
Use C<glob q{*}> instead of <*>. |
1.152 |
metacpan |
Perl::Critic::Policy::BuiltinFunctions::RequireSimpleSortBlock |
Sort blocks should have a single statement. |
1.152 |
metacpan |
Perl::Critic::Policy::ClassHierarchies::ProhibitAutoloading |
AUTOLOAD methods should be avoided. |
1.152 |
metacpan |
Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA |
Employ C<use parent> instead of C<@ISA>. |
1.152 |
metacpan |
Perl::Critic::Policy::ClassHierarchies::ProhibitOneArgBless |
Write C<bless {}, $class;> instead of just C<bless {};>. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::ProhibitHardTabs |
Use spaces instead of tabs. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::ProhibitParensWithBuiltins |
Write C<open $handle, $path> instead of C<open($handle, $path)>. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::ProhibitQuotedWordLists |
Write C<qw(foo bar baz)> instead of C<('foo', 'bar', 'baz')>. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::ProhibitTrailingWhitespace |
Don't use whitespace at the end of lines. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::RequireConsistentNewlines |
Use the same newline through the source. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::RequireTidyCode |
Must run code through L<perltidy|perltidy>. |
1.152 |
metacpan |
Perl::Critic::Policy::CodeLayout::RequireTrailingCommas |
Put a comma at the end of every multi-line list declaration, including the last one. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitCStyleForLoops |
Write C<for(0..20)> instead of C<for($i=0; $i<=20; $i++)>. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitCascadingIfElse |
Don't write long "if-elsif-elsif-elsif-elsif...else" chains. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitDeepNests |
Don't write deeply nested loops and conditionals. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitLabelsWithSpecialBlockNames |
Don't use labels that are the same as the special block names. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitMutatingListFunctions |
Don't modify C<$_> in list functions. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions |
Don't use operators like C<not>, C<!~>, and C<le> within C<until> and C<unless>. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls |
Write C<if($condition){ do_something() }> instead of C<do_something() if $condition>. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks |
Write C<if(! $condition)> instead of C<unless($condition)>. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitUnreachableCode |
Don't write code after an unconditional C<die, exit, or next>. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks |
Write C<while(! $condition)> instead of C<until($condition)>. |
1.152 |
metacpan |
Perl::Critic::Policy::ControlStructures::ProhibitYadaOperator |
Never use C<...> in production code. |
1.152 |
metacpan |
Perl::Critic::Policy::Documentation::PodSpelling |
Check your spelling. |
1.152 |
metacpan |
Perl::Critic::Policy::Documentation::RequirePackageMatchesPodName |
The C<=head1 NAME> section should match the package. |
1.152 |
metacpan |
Perl::Critic::Policy::Documentation::RequirePodAtEnd |
All POD should be after C<__END__>. |
1.152 |
metacpan |
Perl::Critic::Policy::Documentation::RequirePodSections |
Organize your POD into the customary sections. |
1.152 |
metacpan |
Perl::Critic::Policy::ErrorHandling::RequireCarping |
Use functions from L<Carp|Carp> instead of C<warn> or C<die>. |
1.152 |
metacpan |
Perl::Critic::Policy::ErrorHandling::RequireCheckingReturnValueOfEval |
You can't depend upon the value of C<$@>/C<$EVAL_ERROR> to tell whether an C<eval> failed. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitBacktickOperators |
Discourage stuff like C<@files = `ls $directory`>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitBarewordDirHandles |
Write C<opendir my $dh, $dirname;> instead of C<opendir DH, $dirname;>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles |
Write C<open my $fh, q{<}, $filename;> instead of C<open FH, q{<}, $filename;>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin |
Use "<>" or "<ARGV>" or a prompting module instead of "<STDIN>". |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest |
Use prompt() instead of -t. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitJoinedReadline |
Use C<local $/ = undef> or L<Path::Tiny|Path::Tiny> instead of joined readline. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitOneArgSelect |
Never write C<select($fh)>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitReadlineInForLoop |
Write C<< while( $line = <> ){...} >> instead of C<< for(<>){...} >>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen |
Write C<< open $fh, q{<}, $filename; >> instead of C<< open $fh, "<$filename"; >>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::RequireBracedFileHandleWithPrint |
Write C<print {$FH} $foo, $bar;> instead of C<print $FH $foo, $bar;>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::RequireBriefOpen |
Close filehandles as soon as possible after opening them. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::RequireCheckedClose |
Write C<< my $error = close $fh; >> instead of C<< close $fh; >>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::RequireCheckedOpen |
Write C<< my $error = open $fh, $mode, $filename; >> instead of C<< open $fh, $mode, $filename; >>. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::RequireCheckedSyscalls |
Return value of flagged function ignored. |
1.152 |
metacpan |
Perl::Critic::Policy::InputOutput::RequireEncodingWithUTF8Layer |
Write C<< open $fh, q{<:encoding(UTF-8)}, $filename; >> instead of C<< open $fh, q{<:utf8}, $filename; >>. |
1.152 |
metacpan |
Perl::Critic::Policy::Miscellanea::ProhibitFormats |
Do not use C<format>. |
1.152 |
metacpan |
Perl::Critic::Policy::Miscellanea::ProhibitTies |
Do not use C<tie>. |
1.152 |
metacpan |
Perl::Critic::Policy::Miscellanea::ProhibitUnrestrictedNoCritic |
Forbid a bare C<## no critic> |
1.152 |
metacpan |
Perl::Critic::Policy::Miscellanea::ProhibitUselessNoCritic |
Remove ineffective "## no critic" annotations. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::ProhibitAutomaticExportation |
Export symbols via C<@EXPORT_OK> or C<%EXPORT_TAGS> instead of C<@EXPORT>. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::ProhibitConditionalUseStatements |
Avoid putting conditional logic around compile-time includes. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::ProhibitEvilModules |
Ban modules that aren't blessed by your shop. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::ProhibitExcessMainComplexity |
Minimize complexity in code that is B<outside> of subroutines. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::ProhibitMultiplePackages |
Put packages (especially subclasses) in separate files. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::RequireBarewordIncludes |
Write C<require Module> instead of C<require 'Module.pm'>. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::RequireEndWithOne |
End each module with an explicitly C<1;> instead of some funky expression. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::RequireExplicitPackage |
Always make the C<package> explicit. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::RequireFilenameMatchesPackage |
Package declaration must match filename. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::RequireNoMatchVarsWithUseEnglish |
C<use English> must be passed a C<-no_match_vars> argument. |
1.152 |
metacpan |
Perl::Critic::Policy::Modules::RequireVersionVar |
Give every module a C<$VERSION> number. |
1.152 |
metacpan |
Perl::Critic::Policy::NamingConventions::Capitalization |
Distinguish different program components by case. |
1.152 |
metacpan |
Perl::Critic::Policy::NamingConventions::ProhibitAmbiguousNames |
Don't use vague variable or subroutine names like 'last' or 'record'. |
1.152 |
metacpan |
Perl::Critic::Policy::Objects::ProhibitIndirectSyntax |
Prohibit indirect object call syntax. |
1.152 |
metacpan |
Perl::Critic::Policy::References::ProhibitDoubleSigils |
Write C<@{ $array_ref }> instead of C<@$array_ref>. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitCaptureWithoutTest |
Capture variable used outside conditional. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitComplexRegexes |
Split long regexps into smaller C<qr//> chunks. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitEnumeratedClasses |
Use named character classes instead of explicit character lists. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitEscapedMetacharacters |
Use character classes for literal meta-characters instead of escapes. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitFixedStringMatches |
Use C<eq> or hash instead of fixed-pattern regexps. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitSingleCharAlternation |
Use C<[abc]> instead of C<a|b|c>. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitUnusedCapture |
Only use a capturing group if you plan to use the captured value. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters |
Use only C<//> or C<{}> to delimit regexps. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::ProhibitUselessTopic |
Don't use $_ to match against regexes. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::RequireBracesForMultiline |
Use C<{> and C<}> to delimit multi-line regexps. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything |
Always use the C</s> modifier with regular expressions. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::RequireExtendedFormatting |
Always use the C</x> modifier with regular expressions. |
1.152 |
metacpan |
Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching |
Always use the C</m> modifier with regular expressions. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils |
Don't call functions with a leading ampersand sigil. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitBuiltinHomonyms |
Don't declare your own C<open> function. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitExcessComplexity |
Minimize complexity by factoring code into smaller subroutines. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitExplicitReturnUndef |
Return failure with bare C<return> instead of C<return undef>. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitManyArgs |
Too many arguments. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitNestedSubs |
C<sub never { sub correct {} }>. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitReturnSort |
Behavior of C<sort> is not defined if called in scalar context. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitSubroutinePrototypes |
Don't write C<sub my_function (@@) {}>. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProhibitUnusedPrivateSubroutines |
Prevent unused private subroutines. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::ProtectPrivateSubs |
Prevent access to private subs in other packages. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::RequireArgUnpacking |
Always unpack C<@_> first. |
1.152 |
metacpan |
Perl::Critic::Policy::Subroutines::RequireFinalReturn |
End every path through a subroutine with an explicit C<return> statement. |
1.152 |
metacpan |
Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict |
Prohibit various flavors of C<no strict>. |
1.152 |
metacpan |
Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings |
Prohibit various flavors of C<no warnings>. |
1.152 |
metacpan |
Perl::Critic::Policy::TestingAndDebugging::ProhibitProlongedStrictureOverride |
Don't turn off strict for large blocks of code. |
1.152 |
metacpan |
Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels |
Tests should all have labels. |
1.152 |
metacpan |
Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict |
Always C<use strict>. |
1.152 |
metacpan |
Perl::Critic::Policy::TestingAndDebugging::RequireUseWarnings |
Always C<use warnings>. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitCommaSeparatedStatements |
Don't use the comma operator as a statement separator. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitComplexVersion |
Prohibit version values from outside the module. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma |
Don't C<< use constant FOO => 15 >>. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes |
Write C<q{}> instead of C<''>. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitEscapedCharacters |
Write C<"\N{DELETE}"> instead of C<"\x7F">, etc. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitImplicitNewlines |
Use concatenation or HEREDOCs instead of literal line breaks in strings. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitInterpolationOfLiterals |
Always use single quotes for literal strings. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros |
Write C<oct(755)> instead of C<0755>. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitLongChainsOfMethodCalls |
Long chains of method calls indicate tightly coupled code. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitMagicNumbers |
Don't use values that don't explain themselves. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitMismatchedOperators |
Don't mix numeric operators with string operands, or vice-versa. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitMixedBooleanOperators |
Write C< !$foo && $bar || $baz > instead of C< not $foo && $bar or $baz>. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes |
Use C<q{}> or C<qq{}> instead of quotes for awkward-looking strings. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters |
Don't use quotes (C<'>, C<">, C<`>) as delimiters for the quote-like operators. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator |
Don't write C< print <<'__END__' >. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::ProhibitVersionStrings |
Don't use strings like C<v1.4> or C<1.4.5> when including other modules. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::RequireConstantVersion |
Require $VERSION to be a constant rather than a computed value. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::RequireInterpolationOfMetachars |
Warns that you might have used single quotes when you really wanted double-quotes. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators |
Write C< 141_234_397.0145 > instead of C< 141234397.0145 >. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator |
Write C< print <<'THE_END' > or C< print <<"THE_END" >. |
1.152 |
metacpan |
Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator |
Write C< <<'THE_END'; > instead of C< <<'theEnd'; >. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitAugmentedAssignmentInDeclaration |
Do not write C< my $foo .= 'bar'; >. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations |
Do not write C< my $foo = $bar if $baz; >. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitEvilVariables |
Ban variables that aren't blessed by your shop. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitLocalVars |
Use C<my> instead of C<local>, except when you have to. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitMatchVars |
Avoid C<$`>, C<$&>, C<$'> and their English equivalents. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitPackageVars |
Eliminate globals declared with C<our> or C<use vars>. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames |
Use double colon (::) to separate package name components instead of single quotes ('). |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitPunctuationVars |
Write C<$EVAL_ERROR> instead of C<$@>. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitReusedNames |
Do not reuse a variable name in a lexical scope |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProhibitUnusedVariables |
Don't ask for storage you don't need. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::ProtectPrivateVars |
Prevent access to private vars in other packages. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::RequireInitializationForLocalVars |
Write C<local $foo = $bar;> instead of just C<local $foo;>. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::RequireLexicalLoopIterators |
Write C<for my $element (@list) {...}> instead of C<for $element (@list) {...}>. |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::RequireLocalizedPunctuationVars |
Magic variables should be assigned as "local". |
1.152 |
metacpan |
Perl::Critic::Policy::Variables::RequireNegativeIndices |
Negative array index should be used. |
1.152 |
metacpan |
Perl::Critic::PolicyConfig |
Configuration data for a Policy. |
1.152 |
metacpan |
Perl::Critic::PolicyFactory |
Instantiates Policy objects. |
1.152 |
metacpan |
Perl::Critic::PolicyListing |
Display minimal information about Policies. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter |
Metadata about a parameter for a Policy. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter::Behavior |
Default type-specific actions for a parameter. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter::Behavior::Boolean |
Actions appropriate for a boolean parameter. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter::Behavior::Enumeration |
Actions appropriate for an enumerated value. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter::Behavior::Integer |
Actions appropriate for an integer parameter. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter::Behavior::String |
Actions appropriate for a simple string parameter. |
1.152 |
metacpan |
Perl::Critic::PolicyParameter::Behavior::StringList |
Actions appropriate for a parameter that is a list of strings. |
1.152 |
metacpan |
Perl::Critic::ProfilePrototype |
Generate an initial Perl::Critic profile. |
1.152 |
metacpan |
Perl::Critic::Statistics |
Compile stats on Perl::Critic violations. |
1.152 |
metacpan |
Perl::Critic::TestUtils |
Utility functions for testing new Policies. |
1.152 |
metacpan |
Perl::Critic::Theme |
Construct thematic sets of policies. |
1.152 |
metacpan |
Perl::Critic::ThemeListing |
List the themes of the installed Policies. |
1.152 |
metacpan |
Perl::Critic::UserProfile |
The contents of the user's profile, often F<.perlcriticrc>. |
1.152 |
metacpan |
Perl::Critic::Utils |
General utility subroutines and constants for Perl::Critic and derivative distributions. |
1.152 |
metacpan |
Perl::Critic::Utils::Constants |
Global constants. |
1.152 |
metacpan |
Perl::Critic::Utils::McCabe |
Functions that calculate the McCabe score of source code. |
1.152 |
metacpan |
Perl::Critic::Utils::POD |
Utility functions for dealing with POD. |
1.152 |
metacpan |
Perl::Critic::Utils::PPI |
Utility functions for dealing with PPI objects. |
1.152 |
metacpan |
Perl::Critic::Utils::Perl |
Utility functions for dealing with Perl language issues. |
1.152 |
metacpan |
Perl::Critic::Violation |
A violation of a Policy found in some source code. |
1.152 |
metacpan |
Test::Perl::Critic::Policy |
A framework for testing your custom Policies |
1.152 |
metacpan |