From 6ef6fb84ac40b6cd39d60f2b9aa3d6947c5ac3c2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 24 Feb 2026 11:21:20 +0100 Subject: [PATCH] top-complexity: lower the max allowed complexity to 60 Closes #20706 --- scripts/top-complexity | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/top-complexity b/scripts/top-complexity index 7ee0c825ec..26fa20ee87 100755 --- a/scripts/top-complexity +++ b/scripts/top-complexity @@ -78,8 +78,9 @@ my %whitelist = ( ); -# functions with complexity above this level causes the function to return error -my $cutoff = 70; +# complexity above this level is treated as an error and contributes to the +# script's exit code +my $cutoff = 60; # show this many from the top my $top = $ARGV[0] ? $ARGV[0] : 25;