From 625c20e6b9e195986595e56f60cba04e99c1951a Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 10 Jun 2022 12:18:26 -0700 Subject: [PATCH] chore: skip formatting generated samples (#1456) --- docker/owlbot/java/bin/format_source.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/owlbot/java/bin/format_source.sh b/docker/owlbot/java/bin/format_source.sh index 48adb4a5f..eb82eb97d 100755 --- a/docker/owlbot/java/bin/format_source.sh +++ b/docker/owlbot/java/bin/format_source.sh @@ -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; @@ -35,4 +35,4 @@ done cat $tmpfile | xargs java -jar /owlbot/google-java-format.jar --replace -rm $tmpfile \ No newline at end of file +rm $tmpfile