From 645f12f95a2835ba0935801678b2702b23084b08 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 5 May 2026 11:13:07 +1000 Subject: [PATCH] Enable SwiftLint rule: redundant_nil_coalescing Adds the rule to `only_rules`. SwiftLint --fix removed redundant `?? ` operators applied to non-optional expressions. 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..cb5fdca4 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -50,6 +50,9 @@ only_rules: # over `CGPoint(x: 0, y: 0)`). - prefer_zero_over_explicit_init + # `nil` coalescing on a non-optional is redundant. + - redundant_nil_coalescing + # Use shorthand syntax for optional binding (`if let foo` instead of # `if let foo = foo`). - shorthand_optional_binding