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

.clang-tidy.full

index 3d678e379e2513d8eec0b1be46f52239428f6438..db601de548060357eafd1bccaa8f303010ef1ced 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