# syntax https://github.com/schwern/Perl-Critic/blob/master/examples/perlcriticrc verbose = 7 severity = 1 # list from --profile-proto # --verbose 8 outputs critic labels # Write open $handle, $path instead of open($handle, $path). [-CodeLayout::ProhibitParensWithBuiltins] # Must run code through perltidy. [-CodeLayout::RequireTidyCode] # Write if($condition){ do_something() } instead of do_something() if $condition. [-ControlStructures::ProhibitPostfixControls] # Give every module a $VERSION number. [-Modules::RequireVersionVar] # Write @{ $array_ref } instead of @$array_ref. [-References::ProhibitDoubleSigils] # Always use the /s modifier with regular expressions. [-RegularExpressions::RequireDotMatchAnything] # Always use the /x modifier with regular expressions. [-RegularExpressions::RequireExtendedFormatting] # Always use the /m modifier with regular expressions. [-RegularExpressions::RequireLineBoundaryMatching] # Use character classes for literal meta-characters instead of escapes. [-RegularExpressions::ProhibitEscapedMetacharacters] # Don't write sub my_function (@@) {}. [-Subroutines::ProhibitSubroutinePrototypes] # Write q{} instead of ''. [-ValuesAndExpressions::ProhibitEmptyQuotes] # Don't use values that don't explain themselves. [-ValuesAndExpressions::ProhibitMagicNumbers]