File tree 2 files changed +3
-5
lines changed
Source/SwiftLintFramework
Tests/SwiftLintFrameworkTests
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ private extension Set<String> {
178
178
private extension Configuration {
179
179
func totalNumberOfRules( for mode: LintOrAnalyzeMode ) -> Int {
180
180
RuleRegistry . shared. totalNumberOfRules ( for: mode) + max( rules. customRuleIdentifiers. count - 1 , 0 )
181
-
182
181
}
183
182
}
184
183
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ final class CoverageTests: SwiftLintTestCase {
98
98
func testFinalEnable( ) throws {
99
99
let source = """
100
100
// swiftlint:disable direct_return
101
-
101
+
102
102
// swiftlint:enable direct_return
103
103
"""
104
104
try testCoverage ( source: source, observedCoverage: 10 , maximumCoverage: 12 )
@@ -174,7 +174,7 @@ final class CoverageTests: SwiftLintTestCase {
174
174
func testFinalEnableWithCustomRules( ) throws {
175
175
let source = """
176
176
// swiftlint:disable \( Self . customRuleIdentifier1)
177
-
177
+
178
178
// swiftlint:enable \( Self . customRuleIdentifier1)
179
179
"""
180
180
let enabledRuleIdentifiers = Self . ruleIdentifiers + [ CustomRules . identifier]
@@ -198,7 +198,6 @@ final class CoverageTests: SwiftLintTestCase {
198
198
observedCoverage: 13 ,
199
199
maximumCoverage: 15
200
200
)
201
-
202
201
}
203
202
204
203
func testRuleAliasesCoverage( ) throws {
@@ -263,7 +262,7 @@ final class CoverageTests: SwiftLintTestCase {
263
262
customRules: [ String : [ String : String ] ] = [ : ] ,
264
263
file: SwiftLintFile
265
264
) throws -> Coverage {
266
- var configurationDictionary : [ String : Any ] = [ " only_rules " : enabledRuleIdentifiers]
265
+ var configurationDictionary : [ String : Any ] = [ " only_rules " : enabledRuleIdentifiers]
267
266
if customRules. isNotEmpty {
268
267
configurationDictionary [ CustomRules . identifier] = customRules
269
268
}
You can’t perform that action at this time.
0 commit comments