From c4bbf60c5825809993ad32edacbf93d6edc48c84 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 24 Mar 2026 11:23:25 +1100 Subject: [PATCH] Enable SwiftLint rule: `empty_count` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zero violations found — the codebase already conforms. Part of the Orchard SwiftLint rollout campaign. --- Generated with the help of Claude Code, https://code.claude.com Co-Authored-By: Claude Code Opus 4.6 --- .swiftlint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index 6652bee9..52527f7b 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -20,6 +20,9 @@ only_rules: # if,for,while,do statements shouldn't wrap their conditionals in parentheses. - control_statement + # Prefer checking `isEmpty` over comparing `count` to zero. + - empty_count + # Arguments can be omitted when matching enums with associated types if they # are not used. - empty_enum_arguments