22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
@@ -22,7 +22,7 @@ import Foundation
2222internal let highestSupportedConfigurationVersion = 1
2323
2424/// Holds the complete set of configured values and defaults.
25- public struct Configuration : Codable , Equatable {
25+ public struct Configuration : Codable , Equatable , Sendable {
2626
2727 private enum CodingKeys : CodingKey {
2828 case version
@@ -176,7 +176,7 @@ public struct Configuration: Codable, Equatable {
176176 public var noAssignmentInExpressions : NoAssignmentInExpressionsConfiguration
177177
178178 /// Determines how trailing commas in comma-separated lists should be handled during formatting.
179- public enum MultilineTrailingCommaBehavior : String , Codable {
179+ public enum MultilineTrailingCommaBehavior : String , Codable , Sendable {
180180 case alwaysUsed
181181 case neverUsed
182182 case keptAsWritten
@@ -215,7 +215,7 @@ public struct Configuration: Codable, Equatable {
215215 public var multiElementCollectionTrailingCommas : Bool
216216
217217 /// Determines how multiline string literals should reflow when formatted.
218- public enum MultilineStringReflowBehavior : String , Codable {
218+ public enum MultilineStringReflowBehavior : String , Codable , Sendable {
219219 /// Never reflow multiline string literals.
220220 case never
221221 /// Reflow lines in string literal that exceed the maximum line length. For example with a line length of 10:
@@ -524,8 +524,8 @@ public struct Configuration: Codable, Equatable {
524524}
525525
526526/// Configuration for the `FileScopedDeclarationPrivacy` rule.
527- public struct FileScopedDeclarationPrivacyConfiguration : Codable , Equatable {
528- public enum AccessLevel : String , Codable {
527+ public struct FileScopedDeclarationPrivacyConfiguration : Codable , Equatable , Sendable {
528+ public enum AccessLevel : String , Codable , Sendable {
529529 /// Private file-scoped declarations should be declared `private`.
530530 ///
531531 /// If a file-scoped declaration is declared `fileprivate`, it will be diagnosed (in lint mode)
@@ -547,7 +547,7 @@ public struct FileScopedDeclarationPrivacyConfiguration: Codable, Equatable {
547547}
548548
549549/// Configuration for the `NoAssignmentInExpressions` rule.
550- public struct NoAssignmentInExpressionsConfiguration : Codable , Equatable {
550+ public struct NoAssignmentInExpressionsConfiguration : Codable , Equatable , Sendable {
551551 /// A list of function names where assignments are allowed to be embedded in expressions that are
552552 /// passed as parameters to that function.
553553 public var allowedFunctions : [ String ] = [
@@ -561,7 +561,7 @@ public struct NoAssignmentInExpressionsConfiguration: Codable, Equatable {
561561}
562562
563563/// Configuration for the `OrderedImports` rule.
564- public struct OrderedImportsConfiguration : Codable , Equatable {
564+ public struct OrderedImportsConfiguration : Codable , Equatable , Sendable {
565565 /// Determines whether imports within conditional compilation blocks should be ordered.
566566 public var includeConditionalImports : Bool = false
567567
0 commit comments