diff --git a/.perlcriticrc b/.perlcriticrc new file mode 100644 index 0000000..174349d --- /dev/null +++ b/.perlcriticrc @@ -0,0 +1,30 @@ +severity = 3 + +# Constants are necessary for optimal performance - some users may not have Readonly::XS +[-ValuesAndExpressions::ProhibitConstantPragma] + +# These are just too restrictive IMO +[-Subroutines::RequireArgUnpacking] +[-Subroutines::RequireFinalReturn] +[-NamingConventions::ProhibitAmbiguousNames] +[-InputOutput::RequireBriefOpen] + +# Jury's still out on these +[-RegularExpressions::RequireExtendedFormatting] + +# Unfortunately, this will mistakenly hit on anon hash references +[-ValuesAndExpressions::ProhibitCommaSeparatedStatements] + +# Necessary for generating named subroutines +[TestingAndDebugging::ProhibitNoStrict] +allow = refs + +# Default too short +[RegularExpressions::ProhibitComplexRegexes] +max_characters = 100 + +# Theoretically I like this, but ultimately caused too many exceptions +[-ErrorHandling::RequireCarping] + +# Unfortunately this breaks on 'open( my $fh, '<', $file )' +# [-Variables::ProhibitUnusedVariables] \ No newline at end of file diff --git a/.perltidyrc b/.perltidyrc new file mode 100644 index 0000000..f6a201b --- /dev/null +++ b/.perltidyrc @@ -0,0 +1 @@ +-noll