From: Remi Gacogne Date: Mon, 15 May 2023 08:57:53 +0000 (+0200) Subject: clang-tidy: Increase the cognitive complexity threshold to 75 X-Git-Tag: rec-4.9.0-beta1~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12818%2Fhead;p=thirdparty%2Fpdns.git clang-tidy: Increase the cognitive complexity threshold to 75 The current level of 50 is too low for a function like 'handleQueuedHealthChecks' which is quite simple. --- diff --git a/.clang-tidy.full b/.clang-tidy.full index 3d678e379e..db601de548 100644 --- a/.clang-tidy.full +++ b/.clang-tidy.full @@ -405,7 +405,7 @@ CheckOptions: - key: modernize-use-noexcept.UseNoexceptFalse value: 'true' - key: readability-function-cognitive-complexity.Threshold - value: '50' + value: '75' - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic value: 'true' - key: bugprone-argument-comment.IgnoreSingleArgument