From fd6a2cba5e44cec4fc2c090b46b37bc5612e7b4a Mon Sep 17 00:00:00 2001 From: Pxl Date: Thu, 16 Nov 2023 20:37:12 +0800 Subject: [PATCH] =?UTF-8?q?[Chore](clang-tidy)enable=20readability-functio?= =?UTF-8?q?n-size.LineThreshold=20and=20readability-functi=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit set readability-function-size.LineThreshold to 80 and enable readability-function-cognitive-complexity --- .clang-tidy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 1b3a4b896d..58bee7a1fb 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -14,7 +14,6 @@ Checks: | readability-*, -readability-identifier-length, -readability-implicit-bool-conversion, - -readability-function-cognitive-complexity, -readability-magic-numbers, -readability-else-after-return, -readability-inconsistent-declaration-parameter-name, @@ -26,3 +25,8 @@ Checks: | performance-inefficient-algorithm, performance-move-const-arg WarningsAsErrors: '*' +CheckOptions: + - key: readability-function-size.LineThreshold + value: '80' + - key: readability-function-cognitive-complexity.Threshold + value: '50' \ No newline at end of file