From 8456bb87bb65eb09ae3d4b395ca922dbed885f4f Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Wed, 25 Oct 2023 07:45:13 -0700 Subject: [PATCH] update max_arguments --- .perlcriticrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.perlcriticrc b/.perlcriticrc index 57cbf968..9430a230 100644 --- a/.perlcriticrc +++ b/.perlcriticrc @@ -86,9 +86,12 @@ max_nests=9 [-ControlStructures::ProhibitCascadingIfElse] # This is a good general policy but the default max of 5 args is not always -# possible in time-critical subs. +# possible in time-critical subs. Two subs in perltidy have 10 args. +# When large numbers of args cannot be avoided, it works well to format them +# with one arg per line, and no trailing comma. [Subroutines::ProhibitManyArgs] -max_arguments = 12 +max_arguments = 10 +skip_object = 1 [-ClassHierarchies::ProhibitExplicitISA] -- 2.39.5