-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to disable
redundant_discardable_let
in SwiftUI view bod…
…ies (#5929)
- Loading branch information
1 parent
be25c1f
commit ae8aeb3
Showing
4 changed files
with
80 additions
and
24 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
11 changes: 11 additions & 0 deletions
11
...SwiftLintBuiltInRules/Rules/RuleConfigurations/RedundantDiscardableLetConfiguration.swift
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,11 @@ | ||
import SwiftLintCore | ||
|
||
@AutoConfigParser | ||
struct RedundantDiscardableLetConfiguration: SeverityBasedRuleConfiguration { | ||
typealias Parent = RedundantDiscardableLetRule | ||
|
||
@ConfigurationElement(key: "severity") | ||
private(set) var severityConfiguration = SeverityConfiguration<Parent>(.warning) | ||
@ConfigurationElement(key: "ignore_swiftui_view_bodies") | ||
private(set) var ignoreSwiftUIViewBodies = false | ||
} |
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