Skip to content

Commit ad4a512

Browse files
committed
Syntax errors
1 parent 879492f commit ad4a512

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/SwiftLintBuiltInRules/Rules/Idiomatic/LegacyNSGeometryFunctionsRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct LegacyNSGeometryFunctionsRule: Rule {
1313
is a typealias for CGRect), and are supported on all Swift platforms.
1414
1515
The legacy functions are only supported on macOS and Mac Catalyst.
16-
"""
16+
""",
1717
kind: .idiomatic,
1818
nonTriggeringExamples: [
1919
Example("rect.width"),

Source/SwiftLintBuiltInRules/Rules/Performance/ContainsOverRangeNilComparisonRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ 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-
kind: .performance,
1211
rationale: """
1312
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
1413
soon as a match is found.
1514
""",
15+
kind: .performance,
1616
nonTriggeringExamples: [
1717
Example("let range = myString.range(of: \"Test\")"),
1818
Example("myString.contains(\"Test\")"),

0 commit comments

Comments
 (0)