This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=13912f20bc4127e7100eae4aee9e5bfc1cf0d8ec commit 13912f20bc4127e7100eae4aee9e5bfc1cf0d8ec Author: Guillem Jover <[email protected]> AuthorDate: Tue Feb 28 23:24:10 2023 +0100 test: Update perlcritic checks and suppressions These checks were not explicitly listed because they had not triggered, add them explicitly either as checks to perform or checks to suppress, when they do not make sense. --- t/critic.t | 4 ++++ t/critic/perlcriticrc | 1 + 2 files changed, 5 insertions(+) diff --git a/t/critic.t b/t/critic.t index acb841f38..ede44ff4f 100644 --- a/t/critic.t +++ b/t/critic.t @@ -27,6 +27,7 @@ my @policies = qw( BuiltinFunctions::ProhibitBooleanGrep BuiltinFunctions::ProhibitLvalueSubstr BuiltinFunctions::ProhibitReverseSortBlock + BuiltinFunctions::ProhibitShiftRef BuiltinFunctions::ProhibitSleepViaSelect BuiltinFunctions::ProhibitStringySplit BuiltinFunctions::ProhibitUniversalCan @@ -50,8 +51,10 @@ my @policies = qw( ControlStructures::ProhibitMutatingListFunctions ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions ControlStructures::ProhibitUntilBlocks + ControlStructures::ProhibitYadaOperator Documentation::RequirePackageMatchesPodName Documentation::RequirePodSections + InputOutput::ProhibitBarewordDirHandles InputOutput::ProhibitBarewordFileHandles InputOutput::ProhibitInteractiveTest InputOutput::ProhibitJoinedReadline @@ -88,6 +91,7 @@ my @policies = qw( Subroutines::ProtectPrivateSubs TestingAndDebugging::ProhibitNoStrict TestingAndDebugging::ProhibitNoWarnings + TestingAndDebugging::ProhibitProlongedStrictureOverride TestingAndDebugging::RequireTestLabels TestingAndDebugging::RequireUseStrict TestingAndDebugging::RequireUseWarnings diff --git a/t/critic/perlcriticrc b/t/critic/perlcriticrc index e3689543b..56c5c7b2a 100644 --- a/t/critic/perlcriticrc +++ b/t/critic/perlcriticrc @@ -97,6 +97,7 @@ allow_if_string_contains_single_quote = 1 # Readers need to know perl, English module is worse. [-Variables::ProhibitPunctuationVars] +[-Modules::RequireNoMatchVarsWithUseEnglish] # Readers need to know perl. [-Variables::RequireInitializationForLocalVars] -- Dpkg.Org's dpkg

