From e37f70b72357dc01d24118746d2a0656fc90fb17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Jan 2025 09:24:39 -0500 Subject: Strengthen clang-tidy configuration --- test/.clang-tidy | 5 +++-- test/headers/.clang-tidy | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/.clang-tidy b/test/.clang-tidy index a271110..b2fbfe2 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -2,11 +2,12 @@ # SPDX-License-Identifier: 0BSD OR ISC Checks: > - -*-macro-to-enum, -*-magic-numbers, -bugprone-multi-level-implicit-pointer-conversion, -bugprone-suspicious-realloc-usage, -cert-err33-c, - -performance-no-int-to-ptr, -readability-identifier-length, +CheckOptions: + - key: readability-function-cognitive-complexity.Threshold + value: '13' InheritParentConfig: true diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy index bbcc1eb..aa1b43c 100644 --- a/test/headers/.clang-tidy +++ b/test/headers/.clang-tidy @@ -3,11 +3,11 @@ Checks: > *, - -*-macro-to-enum, -altera-*, -llvmlibc-*, - -performance-no-int-to-ptr, - -readability-identifier-length, +CheckOptions: + - key: readability-function-cognitive-complexity.Threshold + value: '0' WarningsAsErrors: '*' HeaderFilterRegex: '.*/sratom/[^/]+.h' FormatStyle: file -- cgit v1.2.1