From 7c15a1438a6723b15646880454680c158786c353 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 16 Feb 2024 15:42:21 +0000 Subject: [PATCH] chore: tweak .clang-tidy 1. Increase cognitive complexity threshold to 50. The default value of 25 marks a lot of functions, which is too noisy to be useful. 2. Ignore int8_t in signed char to integer conversion check. Signed-off-by: Yuxuan Shui --- .clang-tidy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index e46c0873..57d71dc5 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -23,5 +23,9 @@ CheckOptions: value: 255.0;1.0; - key: readability-function-cognitive-complexity.IgnoreMacros value: true + - key: readability-function-cognitive-complexity.Threshold + value: 50 - key: readability-function-cognitive-complexity.DescribeBasicIncrements value: true + - key: bugprone-signed-char-misuse.CharTypdefsToIgnore + value: int8_t