You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run Windows tests dockerless (+13 squashed commits)
Squashed commits:
[23709e8] Fix issue in publish_release pipeline testing swift-format in debug configuration
[ce212ca] Use matrix to run debug and release
[39ee6a2] Run Windows tests before tagging a release
The GitHub workflows enabled Windows in the testing matrix. We needed to port the pre-build commands that apply the release commits to Windows to make the Windows checks pass.
[8fec655] Use dockerless Windows jobs
Dockerless Windows is 5-10 minutes faster than Docker on Windows
[2cd032c] PrettyPrinter reports wrong line LineNumbersTests
The reason for the wrong line number were multiline
comments.
In to accomodate for this, we now check the string
while writing for new lines and increment the line
count accordingly.
Issue: #882
[8c68ec3] Add indentBlankLines configuration
[fee42c9] Add `--enable-experimental-feature` to enable those features in the parser.
Also add a couple small tests for value generics to exercise the capability in
tests.
Fixes#875.
[5e4caa8] feat: add pre-commit hooks
[e6aa9ec] Update UseShorthandTypeNames.swift
[9cbc942] Update UseShorthandTypeNames.swift
[dfb366a] Fix formatting
[c3b0c9f] Prepare for integer generics with new generic argument node
[211884f] Fix tests when building swift-format using Swift 6.0.2
When traversing the file URL with Foundation from Swift 6.0.2, you get the following components
- `["/", "C:", "test.swift"]`
- `["/", "C:"]`
- `[]`
The component count never reaches 1.
Foundation from Swift 6.1 goes
- `["/", "C:", "test.swift"]`
- `["/", "C:"]`
- `["/"]`
Cover both cases by checking for `<= 1` instead of `== 1`
Prepare for integer generics with new generic argument node
Fix formatting
Update UseShorthandTypeNames.swift
Update UseShorthandTypeNames.swift
feat: add pre-commit hooks
Add `--enable-experimental-feature` to enable those features in the parser.
Also add a couple small tests for value generics to exercise the capability in
tests.
Fixes#875.
Add indentBlankLines configuration
PrettyPrinter reports wrong line LineNumbersTests
The reason for the wrong line number were multiline
comments.
In to accomodate for this, we now check the string
while writing for new lines and increment the line
count accordingly.
Issue: #882
Use dockerless Windows jobs
Dockerless Windows is 5-10 minutes faster than Docker on Windows
Run Windows tests before tagging a release
The GitHub workflows enabled Windows in the testing matrix. We needed to port the pre-build commands that apply the release commits to Windows to make the Windows checks pass.
Use matrix to run debug and release
Fix issue in publish_release pipeline testing swift-format in debug configuration
Run Windows tests dockerless
Copy file name to clipboardExpand all lines: Sources/SwiftFormat/API/Configuration.swift
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -486,3 +486,17 @@ public struct NoAssignmentInExpressionsConfiguration: Codable, Equatable {
486
486
487
487
publicinit(){}
488
488
}
489
+
490
+
fileprivateextensionURL{
491
+
varisRoot:Bool{
492
+
#if os(Windows)
493
+
// FIXME: We should call into Windows' native check to check if this path is a root once https://github.com/swiftlang/swift-foundation/issues/976 is fixed.
0 commit comments