From 371f9b3c5c1d04bfbd7c15b4d660692f2e9cdf28 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 22 Apr 2026 21:59:17 +1000 Subject: [PATCH] Enable SwiftLint rule: prefer_zero_over_explicit_init Adds `prefer_zero_over_explicit_init` to `only_rules` in `.swiftlint.yml`. No source changes were needed: 0 violations across 72 files. Part of the Orchard SwiftLint rollout campaign. --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 (1M context) --- .swiftlint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index 03dedf2b..31374f05 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -43,6 +43,10 @@ only_rules: # the declaration. - opening_brace + # Prefer `.zero` over explicit init with zero parameters (e.g., `CGPoint.zero` + # over `CGPoint(x: 0, y: 0)`). + - prefer_zero_over_explicit_init + # Files should have a single trailing newline. - trailing_newline