Skip to content

Commit f186ccf

Browse files
committed
Refresh generated code by running generate-pipeline.
It looks like the generate-pipeline step was skipped recently, and the generated code was out of date.
1 parent 35fdb4f commit f186ccf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Sources/SwiftFormat/Pipelines+Generated.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ class LintPipeline: SyntaxVisitor {
4949
return .visitChildren
5050
}
5151

52-
override func visit(_ node: ClosureExprSyntax) -> SyntaxVisitorContinueKind {
53-
visitIfEnabled(OneVariableDeclarationPerLine.visit, in: context, for: node)
52+
override func visit(_ node: ClosureSignatureSyntax) -> SyntaxVisitorContinueKind {
53+
visitIfEnabled(ReturnVoidInsteadOfEmptyTuple.visit, in: context, for: node)
5454
return .visitChildren
5555
}
5656

5757
override func visit(_ node: CodeBlockItemListSyntax) -> SyntaxVisitorContinueKind {
5858
visitIfEnabled(DoNotUseSemicolons.visit, in: context, for: node)
59+
visitIfEnabled(OneVariableDeclarationPerLine.visit, in: context, for: node)
5960
return .visitChildren
6061
}
6162

6263
override func visit(_ node: CodeBlockSyntax) -> SyntaxVisitorContinueKind {
6364
visitIfEnabled(AmbiguousTrailingClosureOverload.visit, in: context, for: node)
64-
visitIfEnabled(OneVariableDeclarationPerLine.visit, in: context, for: node)
6565
return .visitChildren
6666
}
6767

@@ -210,7 +210,6 @@ class LintPipeline: SyntaxVisitor {
210210
visitIfEnabled(NeverForceUnwrap.visit, in: context, for: node)
211211
visitIfEnabled(NeverUseForceTry.visit, in: context, for: node)
212212
visitIfEnabled(NeverUseImplicitlyUnwrappedOptionals.visit, in: context, for: node)
213-
visitIfEnabled(OneVariableDeclarationPerLine.visit, in: context, for: node)
214213
visitIfEnabled(OrderedImports.visit, in: context, for: node)
215214
return .visitChildren
216215
}

Sources/SwiftFormatConfiguration/RuleRegistry+Generated.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum RuleRegistry {
2020
"BeginDocumentationCommentWithOneLineSummary": true,
2121
"DoNotUseSemicolons": true,
2222
"DontRepeatTypeInStaticProperties": true,
23-
"FileprivateAtFileScope": true,
23+
"FileScopedDeclarationPrivacy": true,
2424
"FullyIndirectEnum": true,
2525
"GroupNumericLiterals": true,
2626
"IdentifiersMustBeASCII": true,

0 commit comments

Comments
 (0)