Build Information
Failed to build SwiftFormat, reference main (b83a8f
), with Swift 6.2 (beta) for Android on 15 Jul 2025 15:09:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nicklockwood/SwiftFormat.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/nicklockwood/SwiftFormat
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b83a8f1 Update for 0.57.2 release
Cloned https://github.com/nicklockwood/SwiftFormat.git
Revision (git rev-parse @):
b83a8f132ff5430f3b6ff7d912baa407caea9e29
SUCCESS checkout https://github.com/nicklockwood/SwiftFormat.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/nicklockwood/SwiftFormat.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
[1/1] Compiling plugin SwiftFormatPlugin
Building for debugging...
[1/10] Write sources
[5/10] Write swift-version-8C5A4AE7A8CE2BA.txt
[7/276] Compiling SwiftFormat SpaceInsideBraces.swift
[8/276] Compiling SwiftFormat SpaceInsideBrackets.swift
[9/276] Compiling SwiftFormat SpaceInsideComments.swift
[10/276] Compiling SwiftFormat SpaceInsideGenerics.swift
[11/276] Compiling SwiftFormat SpaceInsideParens.swift
[12/276] Compiling SwiftFormat Specifiers.swift
[13/276] Compiling SwiftFormat StrongOutlets.swift
[14/276] Compiling SwiftFormat StrongifiedSelf.swift
[15/276] Compiling SwiftFormat SwiftTestingTestCaseNames.swift
[16/276] Compiling SwiftFormat ThrowingTests.swift
[17/276] Compiling SwiftFormat Todos.swift
[18/276] Compiling SwiftFormat TrailingClosures.swift
[19/276] Compiling SwiftFormat TrailingCommas.swift
[20/276] Compiling SwiftFormat TrailingSpace.swift
[21/276] Compiling SwiftFormat TypeSugar.swift
[22/276] Compiling SwiftFormat URLMacro.swift
[23/276] Compiling SwiftFormat UnusedArguments.swift
[24/276] Compiling SwiftFormat UnusedPrivateDeclarations.swift
[25/294] Compiling SwiftFormat AndOperator.swift
[26/294] Compiling SwiftFormat AnyObjectProtocol.swift
[27/294] Compiling SwiftFormat ApplicationMain.swift
[28/294] Compiling SwiftFormat AssertionFailures.swift
[29/294] Compiling SwiftFormat BlankLineAfterImports.swift
[30/294] Compiling SwiftFormat BlankLineAfterSwitchCase.swift
[31/294] Compiling SwiftFormat BlankLinesAfterGuardStatements.swift
[32/294] Compiling SwiftFormat BlankLinesAroundMark.swift
[33/294] Compiling SwiftFormat BlankLinesAtEndOfScope.swift
[34/294] Compiling SwiftFormat BlankLinesAtStartOfScope.swift
[35/294] Compiling SwiftFormat BlankLinesBetweenChainedFunctions.swift
[36/294] Compiling SwiftFormat BlankLinesBetweenImports.swift
[37/294] Compiling SwiftFormat BlankLinesBetweenScopes.swift
[38/294] Compiling SwiftFormat BlockComments.swift
[39/294] Compiling SwiftFormat Braces.swift
[40/294] Compiling SwiftFormat ConditionalAssignment.swift
[41/294] Compiling SwiftFormat ConsecutiveBlankLines.swift
[42/294] Compiling SwiftFormat ConsecutiveSpaces.swift
[43/294] Compiling SwiftFormat ConsistentSwitchCaseSpacing.swift
[44/294] Compiling SwiftFormat RedundantClosure.swift
[45/294] Compiling SwiftFormat RedundantEquatable.swift
[46/294] Compiling SwiftFormat RedundantExtensionACL.swift
[47/294] Compiling SwiftFormat RedundantFileprivate.swift
[48/294] Compiling SwiftFormat RedundantGet.swift
[49/294] Compiling SwiftFormat RedundantInit.swift
[50/294] Compiling SwiftFormat RedundantInternal.swift
[51/294] Compiling SwiftFormat RedundantLet.swift
[52/294] Compiling SwiftFormat RedundantLetError.swift
[53/294] Compiling SwiftFormat RedundantMemberwiseInit.swift
[54/294] Compiling SwiftFormat RedundantNilInit.swift
[55/294] Compiling SwiftFormat RedundantObjc.swift
[56/294] Compiling SwiftFormat RedundantOptionalBinding.swift
[57/294] Compiling SwiftFormat RedundantParens.swift
[58/294] Compiling SwiftFormat RedundantPattern.swift
[59/294] Compiling SwiftFormat RedundantProperty.swift
[60/294] Compiling SwiftFormat RedundantPublic.swift
[61/294] Compiling SwiftFormat RedundantRawValues.swift
[62/294] Compiling SwiftFormat RedundantReturn.swift
[63/294] Compiling SwiftFormat RedundantSelf.swift
[64/294] Compiling SwiftFormat RedundantStaticSelf.swift
[65/294] Compiling SwiftFormat RedundantType.swift
[66/294] Compiling SwiftFormat RedundantTypedThrows.swift
[67/294] Compiling SwiftFormat RedundantVoidReturnType.swift
[68/294] Compiling SwiftFormat Semicolons.swift
[69/294] Compiling SwiftFormat SinglePropertyPerLine.swift
[70/294] Compiling SwiftFormat SortDeclarations.swift
[71/294] Compiling SwiftFormat SortImports.swift
[72/294] Compiling SwiftFormat SortSwitchCases.swift
[73/294] Compiling SwiftFormat SortTypealiases.swift
[74/294] Compiling SwiftFormat SortedImports.swift
[75/294] Compiling SwiftFormat SortedSwitchCases.swift
[76/294] Compiling SwiftFormat SpaceAroundBraces.swift
[77/294] Compiling SwiftFormat SpaceAroundBrackets.swift
[78/294] Compiling SwiftFormat SpaceAroundComments.swift
[79/294] Compiling SwiftFormat SpaceAroundGenerics.swift
[80/294] Compiling SwiftFormat SpaceAroundOperators.swift
[81/294] Compiling SwiftFormat SpaceAroundParens.swift
[82/294] Compiling SwiftFormat LeadingDelimiters.swift
[83/294] Compiling SwiftFormat LinebreakAtEndOfFile.swift
[84/294] Compiling SwiftFormat Linebreaks.swift
[85/294] Compiling SwiftFormat MarkTypes.swift
[86/294] Compiling SwiftFormat ModifierOrder.swift
[87/294] Compiling SwiftFormat ModifiersOnSameLine.swift
[88/294] Compiling SwiftFormat NoExplicitOwnership.swift
[89/294] Compiling SwiftFormat NoGuardInTests.swift
[90/294] Compiling SwiftFormat NumberFormatting.swift
[91/294] Compiling SwiftFormat OpaqueGenericParameters.swift
[92/294] Compiling SwiftFormat OrganizeDeclarations.swift
[93/294] Compiling SwiftFormat PreferCountWhere.swift
[94/294] Compiling SwiftFormat PreferForLoop.swift
[95/294] Compiling SwiftFormat PreferKeyPath.swift
[96/294] Compiling SwiftFormat PreferSwiftTesting.swift
[97/294] Compiling SwiftFormat PrivateStateVariables.swift
[98/294] Compiling SwiftFormat PropertyTypes.swift
[99/294] Compiling SwiftFormat RedundantBackticks.swift
[100/294] Compiling SwiftFormat RedundantBreak.swift
[101/294] Compiling SwiftFormat DocComments.swift
[102/294] Compiling SwiftFormat DocCommentsBeforeModifiers.swift
[103/294] Compiling SwiftFormat DuplicateImports.swift
[104/294] Compiling SwiftFormat ElseOnSameLine.swift
[105/294] Compiling SwiftFormat EmptyBraces.swift
[106/294] Compiling SwiftFormat EmptyExtensions.swift
[107/294] Compiling SwiftFormat EnumNamespaces.swift
[108/294] Compiling SwiftFormat EnvironmentEntry.swift
[109/294] Compiling SwiftFormat ExtensionAccessControl.swift
[110/294] Compiling SwiftFormat FileHeader.swift
[111/294] Compiling SwiftFormat FileMacro.swift
[112/294] Compiling SwiftFormat GenericExtensions.swift
[113/294] Compiling SwiftFormat HeaderFileName.swift
[114/294] Compiling SwiftFormat HoistAwait.swift
[115/294] Compiling SwiftFormat HoistPatternLet.swift
[116/294] Compiling SwiftFormat HoistTry.swift
[117/294] Compiling SwiftFormat Indent.swift
[118/294] Compiling SwiftFormat InitCoderUnavailable.swift
[119/294] Compiling SwiftFormat IsEmpty.swift
[233/312] Compiling SwiftFormat Void.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[234/312] Compiling SwiftFormat Wrap.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[235/312] Compiling SwiftFormat WrapArguments.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[236/312] Compiling SwiftFormat WrapAttributes.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[237/312] Compiling SwiftFormat WrapConditionalBodies.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[238/312] Compiling SwiftFormat WrapEnumCases.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[239/312] Compiling SwiftFormat WrapLoopBodies.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[240/312] Compiling SwiftFormat WrapMultilineConditionalAssignment.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[241/312] Compiling SwiftFormat WrapMultilineFunctionChains.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[242/312] Compiling SwiftFormat WrapMultilineStatementBraces.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[243/312] Compiling SwiftFormat WrapSingleLineComments.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[244/312] Compiling SwiftFormat WrapSwitchCases.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[245/312] Compiling SwiftFormat YodaConditions.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[246/312] Compiling SwiftFormat SARIFReporter.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[247/312] Compiling SwiftFormat Singularize.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[248/312] Compiling SwiftFormat SwiftFormat.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[249/312] Compiling SwiftFormat Tokenizer.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[250/312] Compiling SwiftFormat XMLReporter.swift
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/SwiftFormat.swift:139:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | func onComplete(_ block: @escaping () throws -> Void) {
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
| `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | }
141 | }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:194:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
192 | }
193 |
194 | func enumerate(inputURL: URL,
| `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
195 | outputURL: URL?,
196 | options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:145:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
143 | let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
144 |
145 | func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
| `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
146 | let fileOptions = options.fileOptions ?? .default
147 | let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:137:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
135 | var completionBlocks = [() throws -> Void]()
136 | let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
137 | func onComplete(_ block: @escaping () throws -> Void) {
| `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
138 | completionQueue.async(group: group) {
139 | completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:352:33: warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
350 | }
351 | configQueue.async {
352 | configCache[inputURL] = args
| `- warning: reference to captured var 'args' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
353 | }
354 | assert(options.formatOptions != nil)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
59 | let result = SARIFLog(changes)
60 | var data = try encoder.encode(result)
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[269/312] Compiling SwiftFormat Arguments.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[270/312] Compiling SwiftFormat CommandLine.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[271/312] Compiling SwiftFormat Declaration.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[272/312] Compiling SwiftFormat DeclarationType.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[273/312] Compiling SwiftFormat EnumAssociable.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[274/312] Compiling SwiftFormat FormatRule.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[275/312] Compiling SwiftFormat Formatter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[276/312] Compiling SwiftFormat FormattingHelpers.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[277/312] Compiling SwiftFormat GitFileInfo.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[278/312] Compiling SwiftFormat GithubActionsLogReporter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[279/312] Compiling SwiftFormat Globs.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[280/312] Compiling SwiftFormat Inference.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[281/312] Compiling SwiftFormat JSONReporter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[282/312] Compiling SwiftFormat OptionDescriptor.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[283/312] Compiling SwiftFormat Options.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[284/312] Compiling SwiftFormat ParsingHelpers.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[285/312] Compiling SwiftFormat Reporter.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[286/312] Compiling SwiftFormat RuleRegistry.generated.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[287/312] Compiling SwiftFormat Acronyms.swift
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[288/312] Emitting module SwiftFormat
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
[290/315] Emitting module CommandLineTool
[291/315] Compiling CommandLineTool main.swift
[293/316] Emitting module SwiftFormat
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
/host/spi-builder-workspace/Sources/CommandLine.swift:741:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
739 | var input: String?
740 | var status = Status.idle
741 | func processFromStdin() {
| `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
742 | status = .started
743 | while let line = CLI.readLine() {
/host/spi-builder-workspace/Sources/JSONReporter.swift:61:39: warning: will never be executed
59 | }
60 | var data = try encoder.encode(changes.map(ReportItem.init))
61 | if stripSlashes, let string = String(data: data, encoding: .utf8) {
| | `- warning: will never be executed
| `- note: condition always evaluates to false
62 | data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
63 | }
[313/319] Wrapping AST for SwiftFormat for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[315/319] Emitting module CommandLineTool
/host/spi-builder-workspace/CommandLineTool/main.swift:65:27: error: cannot find 'isatty' in scope
63 | private var stderr = FileHandleOutputStream(filehandle: .standardError)
64 |
65 | private let stderrIsTTY = isatty(STDERR_FILENO) != 0
| `- error: cannot find 'isatty' in scope
66 |
67 | private let printQueue = DispatchQueue(label: "swiftformat.print")
/host/spi-builder-workspace/CommandLineTool/main.swift:65:34: error: cannot find 'STDERR_FILENO' in scope
63 | private var stderr = FileHandleOutputStream(filehandle: .standardError)
64 |
65 | private let stderrIsTTY = isatty(STDERR_FILENO) != 0
| `- error: cannot find 'STDERR_FILENO' in scope
66 |
67 | private let printQueue = DispatchQueue(label: "swiftformat.print")
[316/319] Compiling CommandLineTool main.swift
/host/spi-builder-workspace/CommandLineTool/main.swift:65:27: error: cannot find 'isatty' in scope
63 | private var stderr = FileHandleOutputStream(filehandle: .standardError)
64 |
65 | private let stderrIsTTY = isatty(STDERR_FILENO) != 0
| `- error: cannot find 'isatty' in scope
66 |
67 | private let printQueue = DispatchQueue(label: "swiftformat.print")
/host/spi-builder-workspace/CommandLineTool/main.swift:65:34: error: cannot find 'STDERR_FILENO' in scope
63 | private var stderr = FileHandleOutputStream(filehandle: .standardError)
64 |
65 | private let stderrIsTTY = isatty(STDERR_FILENO) != 0
| `- error: cannot find 'STDERR_FILENO' in scope
66 |
67 | private let printQueue = DispatchQueue(label: "swiftformat.print")
BUILD FAILURE 6.2 android