From 9f397f16a999a054a4b349057ef05d176fe603e2 Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Fri, 1 Jul 2022 10:34:16 +0800 Subject: [PATCH] filter whitespace/parent since clang-format has similar function (#43978) --- tools/codestyle/cpplint_pre_commit.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/codestyle/cpplint_pre_commit.hook b/tools/codestyle/cpplint_pre_commit.hook index cef11ab135..3c584a440e 100755 --- a/tools/codestyle/cpplint_pre_commit.hook +++ b/tools/codestyle/cpplint_pre_commit.hook @@ -24,7 +24,7 @@ for file in $files; do if [[ $file =~ ^(patches/.*) ]]; then continue; else - cpplint --filter=-readability/fn_size,-build/include_what_you_use,-build/c++11 $file; + cpplint --filter=-readability/fn_size,-build/include_what_you_use,-build/c++11,-whitespace/parens $file; TOTAL_ERRORS=$(expr $TOTAL_ERRORS + $?); fi done -- GitLab