From: Steve Hancock Date: Wed, 9 Nov 2022 16:55:43 +0000 (-0800) Subject: increase max_mccabe to 130 for sub check_options X-Git-Tag: 20221112~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f63838cd638ed2c2305d66b1be44d6c5d504dfec;p=perltidy.git increase max_mccabe to 130 for sub check_options --- diff --git a/.perlcriticrc b/.perlcriticrc index c3ad3778..e294d6a7 100644 --- a/.perlcriticrc +++ b/.perlcriticrc @@ -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