diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 172da88..17849a3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -15,6 +15,6 @@ jobs: - name: Install Dependencies run: | brew install mint - mint install NickLockwood/SwiftFormat@0.51.15 --no-link + mint install NickLockwood/SwiftFormat@0.53.10 --no-link - name: run script run: ./scripts/validate.sh diff --git a/.swiftformat b/.swiftformat index beb1d05..14fb33f 100644 --- a/.swiftformat +++ b/.swiftformat @@ -1,5 +1,5 @@ # Minimum swiftformat version ---minversion 0.51.0 +--minversion 0.53.10 # Swift version --swiftversion 5.9 @@ -8,7 +8,7 @@ --exclude .build # rules ---disable redundantReturn, extensionAccessControl, typeSugar, conditionalAssignment +--disable redundantReturn, extensionAccessControl, typeSugar, conditionalAssignment, preferForLoop, redundantInternal, redundantStaticSelf # format options --ifdef no-indent diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3902bb8..14b9831 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,4 +28,4 @@ The main development branch of the repository is `main`. ### Formatting -We use Nick Lockwood's SwiftFormat for formatting code. PRs will not be accepted if they haven't be formatted. The current version of SwiftFormat we are using is v0.51.15. \ No newline at end of file +We use Nick Lockwood's SwiftFormat for formatting code. PRs will not be accepted if they haven't be formatted. The current version of SwiftFormat we are using is v0.53.10. diff --git a/scripts/validate.sh b/scripts/validate.sh index f621e66..e96524b 100755 --- a/scripts/validate.sh +++ b/scripts/validate.sh @@ -13,7 +13,7 @@ ## ##===----------------------------------------------------------------------===## -SWIFT_FORMAT_VERSION=0.51.15 +SWIFT_FORMAT_VERSION=0.53.10 set -eu here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"