From cf26551caad741bf57eab8a8fcf625d1e76eef70 Mon Sep 17 00:00:00 2001 From: Nicholas Hart Date: Fri, 26 Sep 2025 14:16:33 -0700 Subject: [PATCH] exempt UI tests from the forced unwrap lint rule --- templates/.swiftlint.yml.template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/.swiftlint.yml.template b/templates/.swiftlint.yml.template index 25b5fb4..b40d321 100644 --- a/templates/.swiftlint.yml.template +++ b/templates/.swiftlint.yml.template @@ -114,6 +114,12 @@ large_tuple: warning: 3 error: 4 +# Allow implicitly unwrapped optionals in UI tests (common pattern for XCUIApplication) +implicitly_unwrapped_optional: + excluded: + - "**/*UITests.swift" + - "**/*UITest.swift" + # Custom rules for better code quality custom_rules: no_objcMembers: