]> git.donarmstrong.com Git - perltidy.git/commitdiff
increase max_mccabe to 130 for sub check_options
authorSteve Hancock <perltidy@users.sourceforge.net>
Wed, 9 Nov 2022 16:55:43 +0000 (08:55 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Wed, 9 Nov 2022 16:55:43 +0000 (08:55 -0800)
.perlcriticrc

index c3ad3778b2a9e3795c11f4e1f53a94f441dd64ef..e294d6a73a31c6fccad491c6d9c953f484ddcd70 100644 (file)
@@ -76,9 +76,11 @@ short_subroutine_statements = 2
 
 # This policy is very useful in locating complex code which might benefit from
 # simplification.  The max value has to be set rather high here because there
-# are some routines in Formatter.pm with high mccabe values.
+# are some routines in Formatter.pm with high mccabe values. In particular,
+# sub "check_options" has a value of 126 but is a very straightforward sub.
+# Nothing would be gained by modifying it.
 [Subroutines::ProhibitExcessComplexity]
-max_mccabe=125
+max_mccabe=130
 
 # This policy can be very helpful for locating complex code, but sometimes
 # deep nests are the best option, especially in error handling and debug