diff options
author | David Robillard <d@drobilla.net> | 2025-01-19 09:24:39 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-01-19 19:34:38 -0500 |
commit | e37f70b72357dc01d24118746d2a0656fc90fb17 (patch) | |
tree | 1a011673c5907787810984f3a0ce12272b301f7d | |
parent | e792b20f6f150717bff92f1aea2c02459351766f (diff) | |
download | sratom-e37f70b72357dc01d24118746d2a0656fc90fb17.tar.gz sratom-e37f70b72357dc01d24118746d2a0656fc90fb17.tar.bz2 sratom-e37f70b72357dc01d24118746d2a0656fc90fb17.zip |
Strengthen clang-tidy configuration
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/.clang-tidy | 6 | ||||
-rw-r--r-- | test/.clang-tidy | 5 | ||||
-rw-r--r-- | test/headers/.clang-tidy | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/.clang-tidy b/.clang-tidy index a4553ab..dcf7991 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,7 +4,6 @@ Checks: > *, -altera-*, - -clang-diagnostic-unused-macros, -llvmlibc-*, -misc-include-cleaner, CheckOptions: diff --git a/src/.clang-tidy b/src/.clang-tidy index ed1198d..2967334 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -2,7 +2,6 @@ # SPDX-License-Identifier: 0BSD OR ISC Checks: > - -*-macro-to-enum, -*-magic-numbers, -*-narrowing-conversions, -bugprone-easily-swappable-parameters, @@ -11,8 +10,9 @@ Checks: > -clang-analyzer-unix.Malloc, -hicpp-signed-bitwise, -misc-no-recursion, - -performance-no-int-to-ptr, - -readability-function-cognitive-complexity, -readability-identifier-length, -readability-redundant-casting, +CheckOptions: + - key: readability-function-cognitive-complexity.Threshold + value: '75' InheritParentConfig: true 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 |