diff --git a/tools/codestyle/cpplint_pre_commit.hook b/tools/codestyle/cpplint_pre_commit.hook index 0fbe105b99fc0..3b392b696fa09 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 =~ ^(thirdparty/.*) ]]; then + if [[ $file =~ ^(patches/.*) || $file =~ ^(paddle/fluid/distributed/thirdparty/.*) ]]; then continue; else cpplint --filter=-readability/fn_size,-build/include_what_you_use,-build/c++11 $file;