Skip to content

Commit

Permalink
chore: skip formatting generated samples (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaball35 authored Jun 10, 2022
1 parent 8c80f76 commit 625c20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/owlbot/java/bin/format_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set -e

# Find all the java files relative to the current directory and format them
# using google-java-format
list="$(find . -name '*.java' )"
list="$(find . -name '*.java' -not -path ".*/samples/snippets/generated/**/*" )"
tmpfile=$(mktemp)

for file in $list;
Expand All @@ -35,4 +35,4 @@ done

cat $tmpfile | xargs java -jar /owlbot/google-java-format.jar --replace

rm $tmpfile
rm $tmpfile

0 comments on commit 625c20e

Please sign in to comment.