-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor FXIOS-10205 [Swiftlint] Enable implicitly_unwrapped_optional…
… rule but keep it disabled for test files using nested Swiftlint configurations (#24031) * Enable implicitly_unwrapped_optional rule in swiftlint configuration * Disable rule for test files using swiftlint nested configuration * Disable rule for focus-ios using swiftlint nested config * Resolve implicitly_unwrapped_optional violation in SampleComponentLibraryApp * Resolve implicitly_unwrapped_optional violations in SampleBrowser
- Loading branch information
Showing
9 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Swiftlint configuration overloads that will be applied to all files | ||
# in this folder and all its children recursively, unless another | ||
# nested configuration takes over. | ||
# https://github.com/realm/SwiftLint#nested-configurations. | ||
|
||
disabled_rules: | ||
# Many test use implicitly unwrapped optional properties that | ||
# initialized in setUp and reset in tearDown. | ||
- implicitly_unwrapped_optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Swiftlint configuration overloads that will be applied to all files | ||
# in this folder and all its children recursively, unless another | ||
# nested configuration takes over. | ||
# https://github.com/realm/SwiftLint#nested-configurations. | ||
|
||
disabled_rules: | ||
# Many test use implicitly unwrapped optional properties that | ||
# initialized in setUp and reset in tearDown. | ||
- implicitly_unwrapped_optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ disabled_rules: | |
- attributes | ||
- trailing_whitespace | ||
- vertical_whitespace | ||
- implicitly_unwrapped_optional | ||
|