From 2389fb2b6af7309f9745a69f8c9d1a46227c6712 Mon Sep 17 00:00:00 2001 From: Bruno Guidolim Date: Tue, 28 Jul 2026 23:47:19 +0200 Subject: [PATCH] Disable wrapIfStatementBodies to match the repo's inline style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Newer SwiftFormat releases wrap single-line `if x { return y }` bodies, which this codebase writes inline throughout — a clean main fails `swiftformat --lint --strict .` on 20 files under 0.62.1 - Declares the existing style in config rather than pinning the tool version, so the check is stable across SwiftFormat upgrades --- .swiftformat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.swiftformat b/.swiftformat index 37c83427..c6a8ca08 100644 --- a/.swiftformat +++ b/.swiftformat @@ -2,4 +2,4 @@ --indent 4 --ifdef noindent --exclude .build,.swiftpm ---disable wrapMultilineStatementBraces +--disable wrapMultilineStatementBraces,wrapIfStatementBodies