From 0b3c5f17de5af6b5f0520295d96eb21c6ebe5a60 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 27 Mar 2022 12:57:24 +0200 Subject: [PATCH] =?utf8?q?chore:=20Disable=20some=20clang-tidy=20checks=20?= =?utf8?q?that=20don=E2=80=99t=20contribute=20much?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/third_party/.clang-tidy | 3 +-- unittest/.clang-tidy | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/third_party/.clang-tidy b/src/third_party/.clang-tidy index d2f78e17f..f29196582 100644 --- a/src/third_party/.clang-tidy +++ b/src/third_party/.clang-tidy @@ -2,8 +2,7 @@ # config file... So just pick a fast check that will never fail. --- Checks: '-*,readability-function-size' -CheckOptions: +CheckOptions: - key: readability-function-size.LineThreshold value: 99999999 ... - diff --git a/unittest/.clang-tidy b/unittest/.clang-tidy index d311fb572..06d78c329 100644 --- a/unittest/.clang-tidy +++ b/unittest/.clang-tidy @@ -8,11 +8,9 @@ CheckOptions: - key: readability-braces-around-statements.ShortStatementLines value: 0 - # If you hit the limits, please change the code and not the limits!! - # Note: some limits "disabled" due to TEST_SUITE macro. - # The macro generates hundreds of statements, branches and variables. + # If you hit a limit, please consider changing the code instead of the limit. - key: readability-function-size.LineThreshold - value: 130 + value: 999999 - key: readability-function-size.StatementThreshold value: 999999 - key: readability-function-size.ParameterThreshold -- 2.47.2