Skip to content

Commit 97334f2

Browse files
committed
Remove AvoidInitializersForLiterals and NoEmptyAssociatedValues.
1 parent 2efa25d commit 97334f2

File tree

7 files changed

+0
-219
lines changed

7 files changed

+0
-219
lines changed

Sources/SwiftFormat/Pipelines+Generated.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ extension LintPipeline {
7373
return .visitChildren
7474
}
7575

76-
func visit(_ node: EnumCaseDeclSyntax) -> SyntaxVisitorContinueKind {
77-
_ = NoEmptyAssociatedValues(context: context).visit(node)
78-
return .visitChildren
79-
}
80-
8176
func visit(_ node: EnumCaseElementSyntax) -> SyntaxVisitorContinueKind {
8277
_ = AlwaysUseLowerCamelCase(context: context).visit(node)
8378
_ = NoLeadingUnderscores(context: context).visit(node)
@@ -107,7 +102,6 @@ extension LintPipeline {
107102
}
108103

109104
func visit(_ node: FunctionCallExprSyntax) -> SyntaxVisitorContinueKind {
110-
_ = AvoidInitializersForLiterals(context: context).visit(node)
111105
_ = NoEmptyTrailingClosureParentheses(context: context).visit(node)
112106
_ = OnlyOneTrailingClosureArgument(context: context).visit(node)
113107
return .visitChildren
@@ -289,7 +283,6 @@ extension FormatPipeline {
289283
node = NoAccessLevelOnExtensionDeclaration(context: context).visit(node)
290284
node = NoBlockComments(context: context).visit(node)
291285
node = NoCasesWithOnlyFallthrough(context: context).visit(node)
292-
node = NoEmptyAssociatedValues(context: context).visit(node)
293286
node = NoEmptyTrailingClosureParentheses(context: context).visit(node)
294287
node = NoLabelsInCasePatterns(context: context).visit(node)
295288
node = NoParensAroundConditions(context: context).visit(node)

Sources/SwiftFormatConfiguration/RuleRegistry.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ enum RuleRegistry {
1717
"AllPublicDeclarationsHaveDocumentation": true,
1818
"AlwaysUseLowerCamelCase": true,
1919
"AmbiguousTrailingClosureOverload": true,
20-
"AvoidInitializersForLiterals": true,
2120
"BeginDocumentationCommentWithOneLineSummary": true,
2221
"BlankLineBetweenMembers": true,
2322
"CaseIndentLevelEqualsSwitch": true,
@@ -33,7 +32,6 @@ enum RuleRegistry {
3332
"NoAccessLevelOnExtensionDeclaration": true,
3433
"NoBlockComments": true,
3534
"NoCasesWithOnlyFallthrough": true,
36-
"NoEmptyAssociatedValues": true,
3735
"NoEmptyTrailingClosureParentheses": true,
3836
"NoLabelsInCasePatterns": true,
3937
"NoLeadingUnderscores": true,

Sources/SwiftFormatRules/AvoidInitializersForLiterals.swift

Lines changed: 0 additions & 86 deletions
This file was deleted.

Sources/SwiftFormatRules/NoEmptyAssociatedValues.swift

Lines changed: 0 additions & 45 deletions
This file was deleted.

Tests/SwiftFormatRulesTests/AvoidInitializersForLiteralsTests.swift

Lines changed: 0 additions & 30 deletions
This file was deleted.

Tests/SwiftFormatRulesTests/NoEmptyAssociatedValuesTests.swift

Lines changed: 0 additions & 29 deletions
This file was deleted.

Tests/SwiftFormatRulesTests/XCTestManifests.swift

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ extension AmbiguousTrailingClosureOverloadTests {
2828
]
2929
}
3030

31-
extension AvoidInitializersForLiteralsTests {
32-
// DO NOT MODIFY: This is autogenerated, use:
33-
// `swift test --generate-linuxmain`
34-
// to regenerate.
35-
static let __allTests__AvoidInitializersForLiteralsTests = [
36-
("testInitializersForLiterals", testInitializersForLiterals),
37-
]
38-
}
39-
4031
extension BeginDocumentationCommentWithOneLineSummaryTests {
4132
// DO NOT MODIFY: This is autogenerated, use:
4233
// `swift test --generate-linuxmain`
@@ -187,15 +178,6 @@ extension NoCasesWithOnlyFallthroughTests {
187178
]
188179
}
189180

190-
extension NoEmptyAssociatedValuesTests {
191-
// DO NOT MODIFY: This is autogenerated, use:
192-
// `swift test --generate-linuxmain`
193-
// to regenerate.
194-
static let __allTests__NoEmptyAssociatedValuesTests = [
195-
("testEmptyAssociatedValue", testEmptyAssociatedValue),
196-
]
197-
}
198-
199181
extension NoEmptyTrailingClosureParenthesesTests {
200182
// DO NOT MODIFY: This is autogenerated, use:
201183
// `swift test --generate-linuxmain`
@@ -400,7 +382,6 @@ public func __allTests() -> [XCTestCaseEntry] {
400382
testCase(AllPublicDeclarationsHaveDocumentationTests.__allTests__AllPublicDeclarationsHaveDocumentationTests),
401383
testCase(AlwaysUseLowerCamelCaseTests.__allTests__AlwaysUseLowerCamelCaseTests),
402384
testCase(AmbiguousTrailingClosureOverloadTests.__allTests__AmbiguousTrailingClosureOverloadTests),
403-
testCase(AvoidInitializersForLiteralsTests.__allTests__AvoidInitializersForLiteralsTests),
404385
testCase(BeginDocumentationCommentWithOneLineSummaryTests.__allTests__BeginDocumentationCommentWithOneLineSummaryTests),
405386
testCase(BlankLineBetweenMembersTests.__allTests__BlankLineBetweenMembersTests),
406387
testCase(CaseIndentLevelEqualsSwitchTests.__allTests__CaseIndentLevelEqualsSwitchTests),
@@ -416,7 +397,6 @@ public func __allTests() -> [XCTestCaseEntry] {
416397
testCase(NoAccessLevelOnExtensionDeclarationTests.__allTests__NoAccessLevelOnExtensionDeclarationTests),
417398
testCase(NoBlockCommentsTests.__allTests__NoBlockCommentsTests),
418399
testCase(NoCasesWithOnlyFallthroughTests.__allTests__NoCasesWithOnlyFallthroughTests),
419-
testCase(NoEmptyAssociatedValuesTests.__allTests__NoEmptyAssociatedValuesTests),
420400
testCase(NoEmptyTrailingClosureParenthesesTests.__allTests__NoEmptyTrailingClosureParenthesesTests),
421401
testCase(NoLabelsInCasePatternsTests.__allTests__NoLabelsInCasePatternsTests),
422402
testCase(NoLeadingUnderscoresTests.__allTests__NoLeadingUnderscoresTests),

0 commit comments

Comments
 (0)