From ff12c7453f23deb8fb8fe94b84cfe9f8c14523e1 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 06fa42e..f1ead1a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -9,12 +9,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, @@ -24,9 +22,7 @@ Checks: > -misc-non-private-member-variables-in-classes, -modernize-avoid-c-arrays, -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 +32,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