Permalink
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (104 sloc) 3.68 KB
## perlcritic file for Bucardo
## Usage: perlcritic -profile <thisfile> <scriptname>
verbose = 8
severity = 1
profile-strictness = quiet
##
## Five:
##
[-BuiltinFunctions::ProhibitStringyEval]
[-ControlStructures::ProhibitMutatingListFunctions]
[-Subroutines::ProhibitNestedSubs]
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
[-Subroutines::ProhibitExplicitReturnUndef]
##
## Four:
##
[-BuiltinFunctions::RequireBlockGrep]
## We are just fine with 'die', thanks very much
[-ErrorHandling::RequireUseOfExceptions]
[-InputOutput::ProhibitOneArgSelect]
## Too many false positives for this one:
[-InputOutput::RequireBriefOpen]
[-Lax::RequireEndWithTrueConst]
[-Modules::RequireEndWithOne]
## This does such a poor job we have to exclude it
[-RegularExpressions::ProhibitCaptureWithoutTest]
[-RegularExpressions::ProhibitFixedStringMatches]
[-ValuesAndExpressions::ProhibitConstantPragma]
[-ValuesAndExpressions::ProhibitMixedBooleanOperators]
[-Variables::RequireLocalizedPunctuationVars]
[-InputOutput::ProhibitExplicitStdin]
##
## Three:
##
[-Bangs::ProhibitNumberedNames]
[-Bangs::ProhibitVagueNames]
[-BuiltinFunctions::ProhibitComplexMappings]
[-CodeLayout::RequireUseUTF8]
[-ControlStructures::ProhibitCascadingIfElse]
[-ControlStructures::ProhibitDeepNests]
[-Documentation::RequirePODUseEncodingUTF8]
[-ErrorHandling::RequireCarping]
[-ErrorHandling::RequireCheckingReturnValueOfEval]
[-InputOutput::ProhibitBacktickOperators]
[-Lax::ProhibitComplexMappings::LinesNotStatements]
[-Miscellanea::ProhibitUnrestrictedNoCritic]
[-Modules::ProhibitExcessMainComplexity]
[-Modules::ProhibitUseQuotedVersion]
[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::RequireExtendedFormatting]
[-Subroutines::ProhibitExcessComplexity]
[-Subroutines::ProhibitManyArgs]
[-ValuesAndExpressions::ProhibitImplicitNewlines]
[-Variables::ProhibitPackageVars]
[-Variables::RequireInitializationForLocalVars]
[-ValuesAndExpressions::ProhibitVersionStrings]
##
## Two:
##
[-Bangs::ProhibitCommentedOutCode]
[-Bangs::ProhibitFlagComments]
[-BuiltinFunctions::ProhibitBooleanGrep]
[-BuiltinFunctions::ProhibitStringySplit]
[-CodeLayout::ProhibitQuotedWordLists]
[-ControlStructures::ProhibitCStyleForLoops]
[-ControlStructures::ProhibitPostfixControls]
[-ControlStructures::ProhibitUnlessBlocks]
[-Documentation::RequirePodSections]
[-Editor::RequireEmacsFileVariables]
[-Lax::ProhibitEmptyQuotes::ExceptAsFallback]
## This one really ought to be removed entirely:
## Giving too many false positives in bucardo:
[-Miscellanea::ProhibitUselessNoCritic]
[-Miscellanea::RequireRcsKeywords]
[-References::ProhibitDoubleSigils]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Tics::ProhibitLongLines]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitMagicNumbers]
## This one has such potential to be useful, but complains about some wrong things:
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::RequireNumberSeparators]
[-ValuesAndExpressions::RestrictLongStrings]
[-Variables::ProhibitPunctuationVars]
##
## One:
##
[-BuiltinFunctions::ProhibitReverseSortBlock]
[-CodeLayout::ProhibitParensWithBuiltins]
[-CodeLayout::RequireTidyCode]
[-Documentation::PodSpelling]
## Yeah, because everyone checks the return value of 'print'
[-InputOutput::RequireCheckedSyscalls]
[-Miscellanea::RequireRcsKeywords]
[-NamingConventions::Capitalization]
[-RegularExpressions::ProhibitEnumeratedClasses]
[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::ProhibitSingleCharAlternation]
## Change the severity level of some specific items
[CodeLayout::ProhibitTrailingWhitespace]
severity = 5
[Subroutines::ProhibitBuiltinHomonyms]
severity = 5