From 462b6c157b6e41828a6965b624e04991b459a058 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Fri, 2 May 2025 17:04:55 -0400 Subject: [PATCH 1/3] [CI] Run swiftformat in style.sh on Linux --- scripts/style.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/style.sh b/scripts/style.sh index 837d553d2ca..72a31312d72 100755 --- a/scripts/style.sh +++ b/scripts/style.sh @@ -180,14 +180,10 @@ s%^./%% needs_formatting=false for f in $files; do if [[ "${f: -6}" == '.swift' ]]; then - if [[ "$system" == 'Darwin' ]]; then - # Match output that says: - # 1/1 files would have been formatted. (with --dryrun) - # 1/1 files formatted. (without --dryrun) - mint run swiftformat "${swift_options[@]}" "$f" 2>&1 | grep '^1/1 files' > /dev/null - else - false - fi + # Match output that says: + # 1/1 files would have been formatted. (with --dryrun) + # 1/1 files formatted. (without --dryrun) + mint run swiftformat "${swift_options[@]}" "$f" 2>&1 | grep '^1/1 files' > /dev/null else "$clang_format_bin" "${clang_options[@]}" "$f" | grep " /dev/null fi From 6e2a3156103a0a74ee80bfc98aa7c6ba3f9d2779 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Fri, 2 May 2025 17:13:15 -0400 Subject: [PATCH 2/3] Add code style issue for testing --- FirebaseAI/Sources/FirebaseAI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FirebaseAI/Sources/FirebaseAI.swift b/FirebaseAI/Sources/FirebaseAI.swift index b7e3ad2e893..6dca3d0c85a 100644 --- a/FirebaseAI/Sources/FirebaseAI.swift +++ b/FirebaseAI/Sources/FirebaseAI.swift @@ -45,7 +45,7 @@ public final class FirebaseAI: Sendable { assert(instance.apiConfig.service.endpoint == .firebaseProxyProd) assert(instance.apiConfig.version == .v1beta) return instance - } + } // Test style issue /// Initializes a generative model with the given parameters. /// From 3187f812ba83ff15bfefda33ecc1c73207710ebe Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Fri, 2 May 2025 17:16:31 -0400 Subject: [PATCH 3/3] Revert "Add code style issue for testing" This reverts commit 6e2a3156103a0a74ee80bfc98aa7c6ba3f9d2779. --- FirebaseAI/Sources/FirebaseAI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FirebaseAI/Sources/FirebaseAI.swift b/FirebaseAI/Sources/FirebaseAI.swift index 6dca3d0c85a..b7e3ad2e893 100644 --- a/FirebaseAI/Sources/FirebaseAI.swift +++ b/FirebaseAI/Sources/FirebaseAI.swift @@ -45,7 +45,7 @@ public final class FirebaseAI: Sendable { assert(instance.apiConfig.service.endpoint == .firebaseProxyProd) assert(instance.apiConfig.version == .v1beta) return instance - } // Test style issue + } /// Initializes a generative model with the given parameters. ///