From 813a0ff2b43819a3ca5802eab12e6fded0ad8d9e Mon Sep 17 00:00:00 2001 From: krugerk <4656811+krugerk@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:24:20 +0200 Subject: [PATCH] lane for applying code formatting via swift-format --- fastlane/Fastfile | 6 ++++++ fastlane/README.md | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index b729f351..9b43a3df 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -101,4 +101,10 @@ platform :ios do xcodeproj: "BeeSwift.xcodeproj" ) end + + lane :format do + Dir.chdir("..") do + sh("swift-format", "--recursive", "--in-place", ".") + end + end end diff --git a/fastlane/README.md b/fastlane/README.md index f90f7b42..70c29541 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -63,6 +63,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do +### ios format + +```sh +[bundle exec] fastlane ios format +``` + + + ---- This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.