From 22fcd384e9fe0f2afb66bac71325a5e10b83813d Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 5 May 2026 08:07:04 +1000 Subject: [PATCH] Enable SwiftLint rule: first_where Adds the rule to `only_rules`. The rule prefers `xs.first(where: { ... })` over `xs.filter { ... }.first`, which is a performance and clarity win. Part of the Orchard SwiftLint rollout campaign. --- Generated with the help of Claude Code, https://claude.ai/code Co-Authored-By: Claude Code Opus 4.7 --- .swiftlint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index ef8311c1..207d153d 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -39,6 +39,9 @@ only_rules: # Empty strings should be compared to `""` only if `isEmpty` cannot be used. - empty_string + # Prefer `first(where:)` over `filter { }.first`. + - first_where + # MARK comment should be in valid format. - mark