Skip to content

Commit

Permalink
Remove else else typo (realm#4933)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdotdub authored Apr 25, 2023
1 parent 4c04cda commit 172b8b8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Source/SwiftLintFramework/Rules/Style/SelfBindingRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ struct SelfBindingRule: SwiftSyntaxCorrectableRule, ConfigurationProviderRule, O
kind: .style,
nonTriggeringExamples: [
Example("if let self = self { return }"),
Example("guard let self = self else else { return }"),
Example("guard let self = self else { return }"),
Example("if let this = this { return }"),
Example("guard let this = this else else { return }"),
Example("guard let this = this else { return }"),
Example("if let this = self { return }", configuration: ["bind_identifier": "this"]),
Example("guard let this = self else else { return }", configuration: ["bind_identifier": "this"])
Example("guard let this = self else { return }", configuration: ["bind_identifier": "this"])
],
triggeringExamples: [
Example("if let ↓`self` = self { return }"),
Example("guard let ↓`self` = self else else { return }"),
Example("guard let ↓`self` = self else { return }"),
Example("if let ↓this = self { return }"),
Example("guard let ↓this = self else else { return }"),
Example("guard let ↓this = self else { return }"),
Example("if let ↓self = self { return }", configuration: ["bind_identifier": "this"]),
Example("guard let ↓self = self else { return }", configuration: ["bind_identifier": "this"]),
Example("if let ↓self { return }", configuration: ["bind_identifier": "this"]),
Expand All @@ -31,12 +31,12 @@ struct SelfBindingRule: SwiftSyntaxCorrectableRule, ConfigurationProviderRule, O
corrections: [
Example("if let ↓`self` = self { return }"):
Example("if let self = self { return }"),
Example("guard let ↓`self` = self else else { return }"):
Example("guard let self = self else else { return }"),
Example("guard let ↓`self` = self else { return }"):
Example("guard let self = self else { return }"),
Example("if let ↓this = self { return }"):
Example("if let self = self { return }"),
Example("guard let ↓this = self else else { return }"):
Example("guard let self = self else else { return }"),
Example("guard let ↓this = self else { return }"):
Example("guard let self = self else { return }"),
Example("if let ↓self = self { return }", configuration: ["bind_identifier": "this"]):
Example("if let this = self { return }", configuration: ["bind_identifier": "this"]),
Example("if let ↓self { return }", configuration: ["bind_identifier": "this"]):
Expand Down

0 comments on commit 172b8b8

Please sign in to comment.