Skip to content

Commit

Permalink
Remove deprecated rule entirely (#5889)
Browse files Browse the repository at this point in the history
The rule has been deprecated for 2 years.
  • Loading branch information
SimplyDanny authored Dec 7, 2024
1 parent 7dd8e65 commit 40f9a2a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 242 deletions.
1 change: 0 additions & 1 deletion Source/SwiftLintBuiltInRules/Models/BuiltInRules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ public let builtInRules: [any Rule.Type] = [
UnneededSynthesizedInitializerRule.self,
UnownedVariableCaptureRule.self,
UntypedErrorInCatchRule.self,
UnusedCaptureListRule.self,
UnusedClosureParameterRule.self,
UnusedControlFlowLabelRule.self,
UnusedDeclarationRule.self,
Expand Down
233 changes: 0 additions & 233 deletions Source/SwiftLintBuiltInRules/Rules/Lint/UnusedCaptureListRule.swift

This file was deleted.

6 changes: 0 additions & 6 deletions Tests/GeneratedTests/GeneratedTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1333,12 +1333,6 @@ final class UntypedErrorInCatchRuleGeneratedTests: SwiftLintTestCase {
}
}

final class UnusedCaptureListRuleGeneratedTests: SwiftLintTestCase {
func testWithDefaultConfiguration() {
verifyRule(UnusedCaptureListRule.description)
}
}

final class UnusedClosureParameterRuleGeneratedTests: SwiftLintTestCase {
func testWithDefaultConfiguration() {
verifyRule(UnusedClosureParameterRule.description)
Expand Down
2 changes: 0 additions & 2 deletions Tests/IntegrationTests/default_rule_configurations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,6 @@ unowned_variable_capture:
severity: warning
untyped_error_in_catch:
severity: warning
unused_capture_list:
severity: warning
unused_closure_parameter:
severity: warning
unused_control_flow_label:
Expand Down

0 comments on commit 40f9a2a

Please sign in to comment.