Skip to content

Commit 1b0566a

Browse files
committed
Wrong rationale
1 parent ad4a512 commit 1b0566a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Source/SwiftLintBuiltInRules/Rules/Performance/ContainsOverRangeNilComparisonRule.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ struct ContainsOverRangeNilComparisonRule: Rule {
88
identifier: "contains_over_range_nil_comparison",
99
name: "Contains over Range Comparison to Nil",
1010
description: "Prefer `contains` over `range(of:) != nil` and `range(of:) == nil`",
11-
rationale: """
12-
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
13-
soon as a match is found.
14-
""",
1511
kind: .performance,
1612
nonTriggeringExamples: [
1713
Example("let range = myString.range(of: \"Test\")"),

0 commit comments

Comments
 (0)