From: Steve Hancock Date: Wed, 25 Oct 2023 14:45:13 +0000 (-0700) Subject: update max_arguments X-Git-Tag: 20230912.05~14 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8456bb87bb65eb09ae3d4b395ca922dbed885f4f;p=perltidy.git update max_arguments --- 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]