]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clang-tidy: Increase the cognitive complexity threshold to 75 12871/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 May 2023 08:57:53 +0000 (10:57 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 31 May 2023 19:29:37 +0000 (21:29 +0200)
The current level of 50 is too low for a function like
'handleQueuedHealthChecks' which is quite simple.

(cherry picked from commit 1463e0417a11bb97017662d7e4adf2abac846d19)

.clang-tidy.full

index 43754f59838a427f3acb02f8741d98892265e2f0..bfb76458b62648846b0799bb47f9f03311bbec26 100644 (file)
@@ -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