From 88aed63d8b40f986f404cf15871b929d7f1d3020 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 5 May 2026 11:04:56 +1000 Subject: [PATCH] Enable SwiftLint rule: array_init Adds the rule to `only_rules`. The rule prefers `Array(xs)` over the `xs.map { $0 }` identity transform when converting a sequence into an Array. 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..ec3fed07 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -11,6 +11,9 @@ excluded: - vendor only_rules: + # Prefer `Array(xs)` over `xs.map { $0 }`. + - array_init + # Colons should be next to the identifier when specifying a type. - colon