From 9cc1823b3b9a33fa59f626d53b26f1067dfa9c34 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 29 Jun 2021 02:09:40 +0200 Subject: [PATCH] clang-tidy: Set cognitive complexity threshold to 30. 25 is a bit low with a try-catch-block in a for-loop. --- .clang-tidy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index fc14d6c..f79c24c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -39,9 +39,10 @@ CheckOptions: # ↓ Clashes with static private member prefix. (static int _va - { key: readability-identifier-naming.ProtectedMemberCase, value: lower_case } - { key: readability-identifier-naming.ProtectedMemberPrefix, value: _ } - - { key: readability-identifier-naming.ClassCase, value: lower_case } + - { key: readability-identifier-naming.ClassCase, value: lower_case } - { key: readability-identifier-naming.StructCase, value: lower_case } - { key: readability-identifier-naming.EnumCase, value: lower_case } - { key: readability-identifier-naming.FunctionCase, value: lower_case } - { key: readability-identifier-naming.ParameterCase, value: lower_case } + - { key: readability-function-cognitive-complexity.Threshold, value: 30 } ...