From f63838cd638ed2c2305d66b1be44d6c5d504dfec Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Wed, 9 Nov 2022 08:55:43 -0800 Subject: [PATCH] increase max_mccabe to 130 for sub check_options --- .perlcriticrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5