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;