From 427c272d8af383c6abd609db240ecdfbb0616caa Mon Sep 17 00:00:00 2001 From: seiriosPlus Date: Fri, 16 Apr 2021 10:03:49 +0800 Subject: [PATCH] fix cpp lint Change-Id: Ia21fafa65adc09bb9094f7dbc987e31d5af2686e --- 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 3b392b696fa09..c90bf29ecb794 100755 --- a/tools/codestyle/cpplint_pre_commit.hook +++ b/tools/codestyle/cpplint_pre_commit.hook @@ -16,7 +16,7 @@ else fi # The trick to remove deleted files: https://stackoverflow.com/a/2413151 for file in $files; do - if [[ $file =~ ^(patches/.*) || $file =~ ^(paddle/fluid/distributed/thirdparty/.*) ]]; then + if [[ $file =~ ^(patches/.*) ]]; then continue; else cpplint --filter=-readability/fn_size,-build/include_what_you_use,-build/c++11 $file;