Skip to content

Commit 3d6cf37

Browse files
committed
Linter fixes
1 parent ef32218 commit 3d6cf37

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Source/SwiftLintFramework/Coverage.swift

-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ private extension Set<String> {
178178
private extension Configuration {
179179
func totalNumberOfRules(for mode: LintOrAnalyzeMode) -> Int {
180180
RuleRegistry.shared.totalNumberOfRules(for: mode) + max(rules.customRuleIdentifiers.count - 1, 0)
181-
182181
}
183182
}
184183

Tests/SwiftLintFrameworkTests/CoverageTests.swift

+3-4
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ final class CoverageTests: SwiftLintTestCase {
9898
func testFinalEnable() throws {
9999
let source = """
100100
// swiftlint:disable direct_return
101-
101+
102102
// swiftlint:enable direct_return
103103
"""
104104
try testCoverage(source: source, observedCoverage: 10, maximumCoverage: 12)
@@ -174,7 +174,7 @@ final class CoverageTests: SwiftLintTestCase {
174174
func testFinalEnableWithCustomRules() throws {
175175
let source = """
176176
// swiftlint:disable \(Self.customRuleIdentifier1)
177-
177+
178178
// swiftlint:enable \(Self.customRuleIdentifier1)
179179
"""
180180
let enabledRuleIdentifiers = Self.ruleIdentifiers + [CustomRules.identifier]
@@ -198,7 +198,6 @@ final class CoverageTests: SwiftLintTestCase {
198198
observedCoverage: 13,
199199
maximumCoverage: 15
200200
)
201-
202201
}
203202

204203
func testRuleAliasesCoverage() throws {
@@ -263,7 +262,7 @@ final class CoverageTests: SwiftLintTestCase {
263262
customRules: [String: [String: String]] = [:],
264263
file: SwiftLintFile
265264
) throws -> Coverage {
266-
var configurationDictionary: [String:Any] = ["only_rules": enabledRuleIdentifiers]
265+
var configurationDictionary: [String: Any] = ["only_rules": enabledRuleIdentifiers]
267266
if customRules.isNotEmpty {
268267
configurationDictionary[CustomRules.identifier] = customRules
269268
}

0 commit comments

Comments
 (0)