From 91e0cb25db4de7ea8e305e712b8084352018eacd Mon Sep 17 00:00:00 2001 From: matyalatte Date: Thu, 10 Oct 2024 23:14:50 +0900 Subject: [PATCH] disable readability/fn_size by default --- include/options.h | 1 + tests/lines_test.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/options.h b/include/options.h index 33ce5e5..3e58971 100644 --- a/include/options.h +++ b/include/options.h @@ -45,6 +45,7 @@ class Filter { // All entries here should start with a '-' or '+', as in the --filter= flag. const std::vector DEFAULT_FILTERS = { Filter("-build/include_alpha"), + Filter("-readability/fn_size"), }; enum : int { diff --git a/tests/lines_test.cpp b/tests/lines_test.cpp index bf3d7a3..a165eea 100644 --- a/tests/lines_test.cpp +++ b/tests/lines_test.cpp @@ -18,7 +18,8 @@ class LinesLinterTest : public ::testing::Test { void SetUp() override { filename = "test/test.cpp"; - ResetFilters("-legal/copyright,-whitespace/ending_newline,+build/include_alpha"); + ResetFilters("-legal/copyright,-whitespace/ending_newline," + "+build/include_alpha,+readability/fn_size"); } void TearDown() override {