summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--src/.clang-tidy6
-rw-r--r--test/.clang-tidy5
-rw-r--r--test/headers/.clang-tidy6
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