]> git.donarmstrong.com Git - perltidy.git/commitdiff
update max_arguments
authorSteve Hancock <perltidy@users.sourceforge.net>
Wed, 25 Oct 2023 14:45:13 +0000 (07:45 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Wed, 25 Oct 2023 14:45:13 +0000 (07:45 -0700)
.perlcriticrc

index 57cbf968d29a72d48ddfe34786a1bf09b115fb56..9430a230ec5172de3e8c86603245eb0789e3fb10 100644 (file)
@@ -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]