From 337154760156840a31be3984731a0891dc38a32e Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Mon, 26 Sep 2022 06:36:24 -0700 Subject: [PATCH] adjust max_nests --- .perlcriticrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.perlcriticrc b/.perlcriticrc index 8958c37a..c3ad3778 100644 --- a/.perlcriticrc +++ b/.perlcriticrc @@ -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 -- 2.39.5