From a70177a72590e502e71cf4af62b7f53603774e61 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 4 Oct 2024 11:44:14 +0200 Subject: [PATCH] linter: try to make readability-function-cognitive-complexity ignore gtest --- .clang-tidy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 4542a6f93..25e1302cc 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,8 +16,9 @@ Checks: > performance-*, portability-*, readability-*, + -readability-function-cognitive-complexity, -readability-named-parameter, - -readability-uppercase-literal-suffix + -readability-uppercase-literal-suffix, CheckOptions: - key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues value: true @@ -35,6 +36,8 @@ CheckOptions: value: true - key: modernize-avoid-c-arrays.AllowStringArrays value: true + - key: readability-function-cognitive-complexity.IgnoreMacros + value: true - key: readability-identifier-length.MinimumParameterNameLength value: 2 - key: readability-identifier-length.MinimumVariableNameLength