Skip to content

Commit 625c20e

Browse files
authored
chore: skip formatting generated samples (#1456)
1 parent 8c80f76 commit 625c20e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/owlbot/java/bin/format_source.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -e
1717

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

2323
for file in $list;
@@ -35,4 +35,4 @@ done
3535

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

38-
rm $tmpfile
38+
rm $tmpfile

0 commit comments

Comments
 (0)