From 9bfc97ad594864be64ff176f8dd3c2d079345093 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 2 Jun 2026 09:39:55 +0100 Subject: [PATCH] Tweak AGENTS.md to make sure SwiftLint/SwiftFormat warnings are discovered. (#5680) Also remove redundant whitespace-formatting requirement now that SwiftFormat has a rule. --- AGENTS.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d18e5aa28..ba0798f57 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,8 +10,7 @@ PRs must meet these rules. Prefer Xcode MCP tools over terminal commands. ### Code Style -- Style enforced by **SwiftLint** (`.swiftlint.yml`) and **SwiftFormat** (`.swiftformat`). -- **Whitespace-only lines:** never strip indentation (Xcode's "Trim whitespace-only lines" is disabled). Adjusting indentation to match scope is fine; removing it causes PR rejection. +- **SwiftLint** (.swiftlint.yml) and **SwiftFormat** (.swiftformat) enforce style on build; warnings surface in Xcode; build before using **XcodeRefreshCodeIssuesInFile**. - Follow [Swift API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/) everywhere, including Rust SDK wrappers (e.g. `ID` not `Id`, `URL` not `Url`, `configuration` not `config` or `cfg`). - File headers defined in `IDETemplateMacros.plist`.