Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use newer release of swift-format.
  • Loading branch information
mportiz08 committed Oct 3, 2024
commit 75c8ee8a6687d99d9b9d3c7bd872fd702bbe909c
8 changes: 4 additions & 4 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
.package(url: "https://github.com/apple/swift-docc-symbolkit", branch: "main"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "2.5.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.2.0"),
.package(url: "https://github.com/swiftlang/swift-format", from: "600.0.0"),
.package(url: "https://github.com/swiftlang/swift-format", from: "601.0.0-prerelease-2024-10-01"),
]
} else {
// Building in the Swift.org CI system, so rely on local versions of dependencies.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDocC/Utility/Formatting/SyntaxFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct SyntaxFormatter {
configuration.indentation = .spaces(indentWidth)
configuration.lineBreakBeforeEachArgument = true
configuration.lineBreakBeforeEachGenericRequirement = true
//configuration.lineBreakBetweenDeclarationAttributes = true
configuration.lineBreakBetweenDeclarationAttributes = true
}

/// Initializes the formatter with the provided configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class SyntaxFormatterTests: XCTestCase {
: Sendable
"""),
"""
@attached(peer) macro Test<C1, C2>(
@attached(peer)
macro Test<C1, C2>(
_ displayName: String? = nil,
_ traits: any TestTrait...,
arguments zippedCollections: Zip2Sequence<C1, C2>
Expand Down