]> git.donarmstrong.com Git - perltidy.git/commitdiff
update comments
authorSteve Hancock <perltidy@users.sourceforge.net>
Fri, 20 May 2022 19:04:53 +0000 (12:04 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Fri, 20 May 2022 19:04:53 +0000 (12:04 -0700)
.perlcriticrc

index d03e16193cf32d90317f42d157331cbb58752ec8..5d4e1640b063adebb7c6f28a447e83a002beb9ec 100644 (file)
@@ -55,12 +55,14 @@ verbose = %f: [%p] %m at line %l, column %c.\n
 # AUTOLOAD is only used in perltidy to help find and debug programming errors.
 [-ClassHierarchies::ProhibitAutoloading]
 
-# TBD: These are both good policies but they can be very hard to
-# avoid without a significant loss of efficiency.  So they are excluded here
-# but they should be run as --single-policy from time to time to see if
-# improvements can be made.
-[-Subroutines::ProhibitExcessComplexity]
-[-ControlStructures::ProhibitDeepNests]
+# TBD: These are both good policies but they are hard to avoid without losing
+# efficiency or making risky program changes.  They are included here but
+# deactivated with with high max values.  The max values can be reduced to
+# locate code which might be improved.
+[Subroutines::ProhibitExcessComplexity]
+max_mccabe=270
+[ControlStructures::ProhibitDeepNests]
+max_nests=11
 
 # The if-elsif sequences in perltidy have all been profiled and
 # are fine as is. Changing them would complicate the code without