From 703c43c37cee61c04947a9db793359103b1d3e4a Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 19 Feb 2024 12:45:14 -0700 Subject: [PATCH] Add more clang-tidy checks --- .clang-tidy | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 06fa42e..a2aed26 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,4 @@ Checks: > - -*, bugprone-*, clang-analyzer-*, concurrency-*, @@ -9,13 +8,10 @@ Checks: > performance-*, portability-*, readability-*, - -bugprone-branch-clone, -bugprone-easily-swappable-parameters, -cppcoreguidelines-avoid-c-arrays, -cppcoreguidelines-avoid-magic-numbers, -cppcoreguidelines-avoid-non-const-global-variables, - -cppcoreguidelines-owning-memory, - -cppcoreguidelines-pro-bounds-array-to-pointer-decay, -cppcoreguidelines-pro-bounds-constant-array-index, -cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-type-cstyle-cast, @@ -26,7 +22,6 @@ Checks: > -modernize-use-trailing-return-type, -performance-no-int-to-ptr, -readability-braces-around-statements, - -readability-function-cognitive-complexity, -readability-identifier-length, -readability-implicit-bool-conversion, -readability-magic-numbers, @@ -36,6 +31,7 @@ CheckOptions: - { key: readability-identifier-naming.NamespaceCase, value: CamelCase } - { key: readability-identifier-naming.MemberCase, value: camelBack } - { key: readability-identifier-naming.PrivateMemberCase, value: camelBack } + - { key: readability-function-cognitive-complexity.Threshold, value: 40 } HeaderFilterRegex: '(./imgui-SFML*)' WarningsAsErrors: '*' UseColor: true