Tweak AGENTS.md to make sure SwiftLint/SwiftFormat warnings are discovered. (#5680)

Also remove redundant whitespace-formatting requirement now that SwiftFormat has a rule.
This commit is contained in:
Doug
2026-06-02 09:39:55 +01:00
committed by GitHub
parent c22c6deb1a
commit 9bfc97ad59
+1 -2
View File
@@ -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`.