aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-22 14:07:58 -0400
committerDavid Robillard <d@drobilla.net>2024-06-22 14:16:42 -0400
commitc611d43d2eafc033c8d68cb4762ea7a242bf1365 (patch)
treefd1d60b0b46a0ad9ad76d7dcd4fdea4ca5fba8cf
parent5d9addc9acc41890b34a2d53d1115394a0d145a5 (diff)
downloadserd-c611d43d2eafc033c8d68cb4762ea7a242bf1365.tar.gz
serd-c611d43d2eafc033c8d68cb4762ea7a242bf1365.tar.bz2
serd-c611d43d2eafc033c8d68cb4762ea7a242bf1365.zip
Strengthen clang-tidy configuration
-rw-r--r--src/.clang-tidy8
-rw-r--r--test/.clang-tidy6
2 files changed, 10 insertions, 4 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy
index ea728e33..52862fe4 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -6,8 +6,6 @@ Checks: >
-bugprone-easily-swappable-parameters,
-cert-err33-c,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
- -clang-analyzer-valist.Uninitialized,
- -clang-diagnostic-unused-function,
-concurrency-mt-unsafe,
-google-readability-todo,
-hicpp-multiway-paths-covered,
@@ -15,5 +13,9 @@ Checks: >
-llvm-header-guard,
-misc-no-recursion,
-modernize-macro-to-enum,
- -readability-function-cognitive-complexity,
+CheckOptions:
+ - key: readability-function-cognitive-complexity.IgnoreMacros
+ value: 'true'
+ - key: readability-function-cognitive-complexity.Threshold
+ value: '91'
InheritParentConfig: true
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 75f5312d..457abcaf 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -11,5 +11,9 @@ Checks: >
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
-hicpp-signed-bitwise,
- -readability-function-cognitive-complexity,
+CheckOptions:
+ - key: readability-function-cognitive-complexity.IgnoreMacros
+ value: 'true'
+ - key: readability-function-cognitive-complexity.Threshold
+ value: '6'
InheritParentConfig: true