Skip to content

Commit

Permalink
chore: skip formatting test-jdk17 files in firestore (#3320)
Browse files Browse the repository at this point in the history
In firestore,
[RecordMapperTest.java](https://github.com/googleapis/java-firestore/blob/main/google-cloud-firestore/src/test-jdk17/java/com/google/cloud/firestore/RecordMapperTest.java)
has Java Records which is incompatible with java formatter 1.7.

This PR is to skip these files.
  • Loading branch information
JoeWang1127 authored Oct 28, 2024
1 parent b16b933 commit cdcc0a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hermetic_build/library_generation/owlbot/bin/format_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ do
elif [[ $file =~ .*/samples/snippets/src/.*/java/com/example/spanner/.*.java ]];
then
echo "File skipped formatting: $file"
elif [[ $file =~ .*/test-jdk17/java/com/google/cloud/firestore/.*java ]];
then
echo "File skipped formatting: $file"
else
echo $file >> $tmp_file
fi
Expand Down

0 comments on commit cdcc0a2

Please sign in to comment.