From 5069e089f01faf60c41e9695be42d72fec06a94d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 4 May 2023 16:38:53 +0200 Subject: [PATCH 1/2] clang-tidy: Increase the code complexity threshold to 100 for now --- .clang-tidy.full | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-tidy.full b/.clang-tidy.full index 7f1aae9c4613..d27618a002f1 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: '25' + value: '100' - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic value: 'true' - key: bugprone-argument-comment.IgnoreSingleArgument From f5467372f2459829df31a0587757e5d08db3d9f2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 5 May 2023 11:08:48 +0200 Subject: [PATCH 2/2] clang-tidy: Lower the code complexity threshold to 50 Let's see how it goes. --- .clang-tidy.full | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-tidy.full b/.clang-tidy.full index d27618a002f1..43754f59838a 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: '100' + value: '50' - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic value: 'true' - key: bugprone-argument-comment.IgnoreSingleArgument