exclude third_party

pull/35655/head
AJ Heller 10 months ago
parent 5fe271bcb6
commit 3eb0a2bc3a
  1. 3
      tools/distrib/check_trailing_newlines.sh

@ -17,7 +17,8 @@
cd $(dirname $0)/../..
function find_without_newline() {
git ls-files | sed -En '/\.(c|cc|proto|rb|py|cs|sh)$/p' |
git ls-files |
sed -En -e '/^third_party/d' -e '/\.(c|cc|proto|rb|py|cs|sh)$/p' |
while IFS= read -r -d '' f; do
if [[ ! -z $f ]]; then
if [[ $(tail -c 1 "$f") != $NEWLINE ]]; then

Loading…
Cancel
Save