From 3bf6402e0d6293842ff9bec177b837f0c07d4746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Fri, 29 May 2026 16:55:56 +0800 Subject: [PATCH] docs: update swift-format guidance in contributing doc --- .github/workflows/analyze.yaml | 2 +- CONTRIBUTING.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml index 25ac4ca4..6525078d 100644 --- a/.github/workflows/analyze.yaml +++ b/.github/workflows/analyze.yaml @@ -71,7 +71,7 @@ jobs: with: path: /home/linuxbrew/.linuxbrew key: ${{ runner.os }}-linuxbrew - - name: Install swift-format 602.0.0 + - name: Install swift-format if: steps.cache.outputs.cache-hit != 'true' run: | eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dae6f792..7d222923 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,10 +10,9 @@ _See also: [Flutter's code of conduct](https://flutter.io/design-principles/#cod - **Code Formatting:** [`swift-format`](https://formulae.brew.sh/formula/swift-format). ### 1.1. Installing swift-format -The CI is locked to swift-format 602.0.0 which you can install with the command below: +The CI uses latest swift-format which you can install with the command below: ```bash -curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/402e262f48947bad849ea7793752ff16b7038406/Formula/s/swift-format.rb -brew install swift-format.rb +brew install swift-format ``` ## 2. Setting Up Your Local Repository