From 6d6fc3419e7786c06d77c1e9b600fda8064c0cc7 Mon Sep 17 00:00:00 2001 From: NRK Date: Sat, 23 Sep 2023 12:19:52 +0600 Subject: [PATCH 1/2] split clang-tidy checks into multiple lines makes it more readable and more easily editable. also produces better diff when editing. --- src/.clang-tidy | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/.clang-tidy b/src/.clang-tidy index 0422c2a54..c8b9b93b0 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -1,5 +1,30 @@ --- -Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-modernize-macro-to-enum,-readability-magic-numbers,-readability-braces-around-statements,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-isolate-declaration,-readability-suspicious-call-argument,-bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-bugprone-reserved-identifier' +Checks: > + clang-diagnostic-*, + clang-analyzer-*, + readability-*, + modernize-*, + bugprone-*, + misc-*, + google-runtime-int, + fuchsia-restrict-system-includes, + -misc-unused-parameters, + -llvm-header-guard, + -clang-analyzer-valist.Uninitialized, + -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, + -clang-analyzer-security.insecureAPI.rand, + -clang-analyzer-alpha.*, + -modernize-macro-to-enum, + -readability-magic-numbers, + -readability-braces-around-statements, + -readability-function-cognitive-complexity, + -readability-identifier-length, + -readability-isolate-declaration, + -readability-suspicious-call-argument, + -bugprone-easily-swappable-parameters, + -bugprone-narrowing-conversions, + -bugprone-reserved-identifier, + WarningsAsErrors: '*' HeaderFilterRegex: '.*(? Date: Sat, 23 Sep 2023 12:20:22 +0600 Subject: [PATCH 2/2] fix CI --- src/.clang-tidy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/.clang-tidy b/src/.clang-tidy index c8b9b93b0..6772ddbca 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -9,6 +9,7 @@ Checks: > google-runtime-int, fuchsia-restrict-system-includes, -misc-unused-parameters, + -misc-include-cleaner, -llvm-header-guard, -clang-analyzer-valist.Uninitialized, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, @@ -24,6 +25,7 @@ Checks: > -bugprone-easily-swappable-parameters, -bugprone-narrowing-conversions, -bugprone-reserved-identifier, + -bugprone-switch-missing-default-case, WarningsAsErrors: '*' HeaderFilterRegex: '.*(?