|
@@ -78,7 +78,7 @@ formats = #!/usr/bin/env perl
|
|
|
# Performance
|
|
# Performance
|
|
|
[logicLAB::ProhibitShellDispatch]
|
|
[logicLAB::ProhibitShellDispatch]
|
|
|
[ProhibitPipeOpen]
|
|
[ProhibitPipeOpen]
|
|
|
-#[Performance::ProhibitRegexForSimpleSubstring]
|
|
|
|
|
|
|
+[Performance::ProhibitRegexForSimpleSubstring]
|
|
|
[RegularExpressions::ProhibitRegexToStripAffix]
|
|
[RegularExpressions::ProhibitRegexToStripAffix]
|
|
|
[RegularExpressions::ProhibitRegexToChomp]
|
|
[RegularExpressions::ProhibitRegexToChomp]
|
|
|
[BuiltinFunctions::ProhibitChainingSameListSub]
|
|
[BuiltinFunctions::ProhibitChainingSameListSub]
|
|
@@ -128,7 +128,7 @@ allow = re Exporter
|
|
|
# Perl::Critic::Distribution, as ProhibitUnusedDefinitions does, so the two
|
|
# Perl::Critic::Distribution, as ProhibitUnusedDefinitions does, so the two
|
|
|
# share one parse. A library whose subclasses live in other distributions
|
|
# share one parse. A library whose subclasses live in other distributions
|
|
|
# names in allow_subs each hook that only one of its own subclasses uses.
|
|
# names in allow_subs each hook that only one of its own subclasses uses.
|
|
|
-#[ProhibitMisplacedMethods]
|
|
|
|
|
|
|
+[ProhibitMisplacedMethods]
|
|
|
[ProhibitPrintSTDERR]
|
|
[ProhibitPrintSTDERR]
|
|
|
[InputOutput::ProhibitRepeatedPrints]
|
|
[InputOutput::ProhibitRepeatedPrints]
|
|
|
# Perl::Critic's own policies. only = 1 loads nothing that is not named, so
|
|
# Perl::Critic's own policies. only = 1 loads nothing that is not named, so
|
|
@@ -214,11 +214,15 @@ stop_words_file = .pod_stopwords
|
|
|
[Miscellanea::ProhibitUnrestrictedNoCritic]
|
|
[Miscellanea::ProhibitUnrestrictedNoCritic]
|
|
|
#[Miscellanea::ProhibitUselessNoCritic]
|
|
#[Miscellanea::ProhibitUselessNoCritic]
|
|
|
[Modules::ProhibitAutomaticExportation]
|
|
[Modules::ProhibitAutomaticExportation]
|
|
|
-#[Modules::ProhibitConditionalUseStatements]
|
|
|
|
|
|
|
+[Modules::ProhibitConditionalUseStatements]
|
|
|
[Modules::RequireBarewordIncludes]
|
|
[Modules::RequireBarewordIncludes]
|
|
|
[Modules::RequireFilenameMatchesPackage]
|
|
[Modules::RequireFilenameMatchesPackage]
|
|
|
[Modules::RequireNoMatchVarsWithUseEnglish]
|
|
[Modules::RequireNoMatchVarsWithUseEnglish]
|
|
|
-#[NamingConventions::Capitalization]
|
|
|
|
|
|
|
+[NamingConventions::Capitalization]
|
|
|
|
|
+# tCMS: each renderer is named for the content type it renders, and each
|
|
|
|
|
+# script's package for the script. The policy tests each part of a package
|
|
|
|
|
+# name on its own, so these are the parts.
|
|
|
|
|
+package_exemptions = main tcms login useradd blob css email html javascript json text
|
|
|
[RegularExpressions::ProhibitCaptureWithoutTest]
|
|
[RegularExpressions::ProhibitCaptureWithoutTest]
|
|
|
#[RegularExpressions::ProhibitComplexRegexes]
|
|
#[RegularExpressions::ProhibitComplexRegexes]
|
|
|
[RegularExpressions::ProhibitEnumeratedClasses]
|
|
[RegularExpressions::ProhibitEnumeratedClasses]
|