Skip to content

Commit

Permalink
Remove anyobject_protocol rule (#5770)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildm8nnered authored Aug 24, 2024
1 parent 9f4cb92 commit 60a1d34
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 88 deletions.
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ opt_in_rules:
- all
disabled_rules:
- anonymous_argument_in_multiline_closure
- anyobject_protocol
- conditional_returns_on_newline
- contrasted_opening_brace
- convenience_type
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

#### Breaking

* None.
* The deprecated `anyobject_protocol` rule has now been removed.
[Martin Redington](https://github.com/mildm8nnered)
[#5769](https://github.com/realm/SwiftLint/issues/5769)

#### Experimental

Expand Down
1 change: 0 additions & 1 deletion Source/SwiftLintBuiltInRules/Models/BuiltInRules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public let builtInRules: [any Rule.Type] = [
AccessibilityLabelForImageRule.self,
AccessibilityTraitForButtonRule.self,
AnonymousArgumentInMultilineClosureRule.self,
AnyObjectProtocolRule.self,
ArrayInitRule.self,
AttributesRule.self,
BalancedXCTestLifecycleRule.self,
Expand Down

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 @@ -25,12 +25,6 @@ final class AnonymousArgumentInMultilineClosureRuleGeneratedTests: SwiftLintTest
}
}

final class AnyObjectProtocolRuleGeneratedTests: SwiftLintTestCase {
func testWithDefaultConfiguration() {
verifyRule(AnyObjectProtocolRule.description)
}
}

final class ArrayInitRuleGeneratedTests: SwiftLintTestCase {
func testWithDefaultConfiguration() {
verifyRule(ArrayInitRule.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 @@ -4,8 +4,6 @@ accessibility_trait_for_button:
severity: warning
anonymous_argument_in_multiline_closure:
severity: warning
anyobject_protocol:
severity: warning
array_init:
severity: warning
attributes:
Expand Down

0 comments on commit 60a1d34

Please sign in to comment.