]> git.donarmstrong.com Git - perltidy.git/commitdiff
adjust max_nests
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 26 Sep 2022 13:36:24 +0000 (06:36 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 26 Sep 2022 13:36:24 +0000 (06:36 -0700)
.perlcriticrc

index 8958c37adf6b50db4aa6214ba8080d1002a885ad..c3ad3778b2a9e3795c11f4e1f53a94f441dd64ef 100644 (file)
@@ -80,10 +80,11 @@ short_subroutine_statements = 2
 [Subroutines::ProhibitExcessComplexity]
 max_mccabe=125
 
-# This policy can be very helpful for locating complex code, but there are too
-# many good exceptions to use it as a general rule. So it is turned off here.
-[-ControlStructures::ProhibitDeepNests]
-# max_nests=8
+# This policy can be very helpful for locating complex code, but sometimes
+# deep nests are the best option, especially in error handling and debug
+# coding. So a large value is used here.
+[ControlStructures::ProhibitDeepNests]
+max_nests=9
 
 # The if-elsif sequences in perltidy have all been profiled and
 # are fine as is. Changing them would complicate the code without