This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of AnyLint with Swift 6.0 for Linux.

Swift 6 data race errors: 12

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:46:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
44 |    func execute() throws {
45 |       if xcode {
46 |          log = Logger(outputType: .xcode)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 |       }
48 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:49:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 |       }
48 |
49 |       log.logDebugLevel = debug
   |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 |
51 |       // version subcommand
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:54:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 |       if version {
53 |          try VersionTask().perform()
54 |          log.exit(status: .success)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
55 |       }
56 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:64:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
62 |       if let initTemplateName = initTemplateName {
63 |          guard let initTemplate = InitTask.Template(rawValue: initTemplateName) else {
64 |             log.message("Unknown default template '\(initTemplateName)' – use one of: [\(CLIConstants.initTemplateCases)]", level: .error)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
65 |             log.exit(status: .failure)
66 |             return // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:65:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |          guard let initTemplate = InitTask.Template(rawValue: initTemplateName) else {
64 |             log.message("Unknown default template '\(initTemplateName)' – use one of: [\(CLIConstants.initTemplateCases)]", level: .error)
65 |             log.exit(status: .failure)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
66 |             return // only reachable in unit tests
67 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:72:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
70 |             try InitTask(configFilePath: configPath, template: initTemplate).perform()
71 |          }
72 |          log.exit(status: .success)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
73 |       }
74 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[67/85] Compiling AnyLint ArrayExt.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:46:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
44 |    func execute() throws {
45 |       if xcode {
46 |          log = Logger(outputType: .xcode)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 |       }
48 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:49:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 |       }
48 |
49 |       log.logDebugLevel = debug
   |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 |
51 |       // version subcommand
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:54:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 |       if version {
53 |          try VersionTask().perform()
54 |          log.exit(status: .success)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
55 |       }
56 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:64:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
62 |       if let initTemplateName = initTemplateName {
63 |          guard let initTemplate = InitTask.Template(rawValue: initTemplateName) else {
64 |             log.message("Unknown default template '\(initTemplateName)' – use one of: [\(CLIConstants.initTemplateCases)]", level: .error)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
65 |             log.exit(status: .failure)
66 |             return // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:65:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |          guard let initTemplate = InitTask.Template(rawValue: initTemplateName) else {
64 |             log.message("Unknown default template '\(initTemplateName)' – use one of: [\(CLIConstants.initTemplateCases)]", level: .error)
65 |             log.exit(status: .failure)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
66 |             return // only reachable in unit tests
67 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLintCLI/Commands/SingleCommand.swift:72:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
70 |             try InitTask(configFilePath: configPath, template: initTemplate).perform()
71 |          }
72 |          log.exit(status: .success)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
73 |       }
74 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:19:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
17 |          let matchingFilePathsCount = filePathsToCheck.filter { regex.matches($0) }.count
18 |          if matchingFilePathsCount <= 0 {
19 |             log.message("Reporting violation for \(checkInfo) as no matching file was found ...", level: .debug)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 |             violations.append(
21 |                Violation(checkInfo: checkInfo, filePath: nil, locationInfo: nil, appliedAutoCorrection: nil)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:26:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
24 |       } else {
25 |          for filePath in filePathsToCheck where regex.matches(filePath) {
26 |             log.message("Found violating match for \(checkInfo) ...", level: .debug)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 |
28 |             let appliedAutoCorrection: AutoCorrection? = try {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:38:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
36 |
37 |             if appliedAutoCorrection != nil {
38 |                log.message("Applied autocorrection for last match ...", level: .debug)
   |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |             }
40 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:41:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |             }
40 |
41 |             log.message("Reporting violation for \(checkInfo) in file \(filePath) ...", level: .debug)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 |             violations.append(
43 |                Violation(checkInfo: checkInfo, filePath: filePath, locationInfo: nil, appliedAutoCorrection: appliedAutoCorrection)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:19:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
17 |          let matchingFilePathsCount = filePathsToCheck.filter { regex.matches($0) }.count
18 |          if matchingFilePathsCount <= 0 {
19 |             log.message("Reporting violation for \(checkInfo) as no matching file was found ...", level: .debug)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 |             violations.append(
21 |                Violation(checkInfo: checkInfo, filePath: nil, locationInfo: nil, appliedAutoCorrection: nil)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:26:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
24 |       } else {
25 |          for filePath in filePathsToCheck where regex.matches(filePath) {
26 |             log.message("Found violating match for \(checkInfo) ...", level: .debug)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 |
28 |             let appliedAutoCorrection: AutoCorrection? = try {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:38:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
36 |
37 |             if appliedAutoCorrection != nil {
38 |                log.message("Applied autocorrection for last match ...", level: .debug)
   |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |             }
40 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FilePathsChecker.swift:41:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |             }
40 |
41 |             log.message("Reporting violation for \(checkInfo) in file \(filePath) ...", level: .debug)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 |             violations.append(
43 |                Violation(checkInfo: checkInfo, filePath: filePath, locationInfo: nil, appliedAutoCorrection: appliedAutoCorrection)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
[70/88] Compiling AnyLint FileManagerExt.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:8:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 6 |    public func moveFileSafely(from sourcePath: String, to targetPath: String) throws {
 7 |       guard fileExists(atPath: sourcePath) else {
 8 |          log.message("No file found at \(sourcePath) to move.", level: .error)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 9 |          log.exit(status: .failure)
10 |          return // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:9:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 7 |       guard fileExists(atPath: sourcePath) else {
 8 |          log.message("No file found at \(sourcePath) to move.", level: .error)
 9 |          log.exit(status: .failure)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
10 |          return // only reachable in unit tests
11 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:14:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |       guard !fileExists(atPath: targetPath) || sourcePath.lowercased() == targetPath.lowercased() else {
14 |          log.message("File already exists at target path \(targetPath) – can't move from \(sourcePath).", level: .warning)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
15 |          return
16 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:24:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
22 |
23 |       guard fileExistsAndIsDirectory(atPath: targetParentDirectoryPath) else {
24 |          log.message("Expected \(targetParentDirectoryPath) to be a directory.", level: .error)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
25 |          log.exit(status: .failure)
26 |          return // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:25:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |       guard fileExistsAndIsDirectory(atPath: targetParentDirectoryPath) else {
24 |          log.message("Expected \(targetParentDirectoryPath) to be a directory.", level: .error)
25 |          log.exit(status: .failure)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 |          return // only reachable in unit tests
27 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
[71/88] Compiling AnyLint StringExt.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:8:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 6 |    public func moveFileSafely(from sourcePath: String, to targetPath: String) throws {
 7 |       guard fileExists(atPath: sourcePath) else {
 8 |          log.message("No file found at \(sourcePath) to move.", level: .error)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 9 |          log.exit(status: .failure)
10 |          return // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:9:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 7 |       guard fileExists(atPath: sourcePath) else {
 8 |          log.message("No file found at \(sourcePath) to move.", level: .error)
 9 |          log.exit(status: .failure)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
10 |          return // only reachable in unit tests
11 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:14:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |       guard !fileExists(atPath: targetPath) || sourcePath.lowercased() == targetPath.lowercased() else {
14 |          log.message("File already exists at target path \(targetPath) – can't move from \(sourcePath).", level: .warning)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
15 |          return
16 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:24:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
22 |
23 |       guard fileExistsAndIsDirectory(atPath: targetParentDirectoryPath) else {
24 |          log.message("Expected \(targetParentDirectoryPath) to be a directory.", level: .error)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
25 |          log.exit(status: .failure)
26 |          return // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Extensions/FileManagerExt.swift:25:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |       guard fileExistsAndIsDirectory(atPath: targetParentDirectoryPath) else {
24 |          log.message("Expected \(targetParentDirectoryPath) to be a directory.", level: .error)
25 |          log.exit(status: .failure)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 |          return // only reachable in unit tests
27 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
[72/88] Emitting module AnyLint
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:68:1: warning: extension declares a conformance of imported type 'Change' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
66 | // TODO: make the autocorrection diff sorted by line number
67 | @available(OSX 10.15, *)
68 | extension CollectionDifference.Change: Comparable where ChangeElement == String {
   | |- warning: extension declares a conformance of imported type 'Change' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
69 |    public static func < (lhs: Self, rhs: Self) -> Bool {
70 |       switch (lhs, rhs) {
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
/host/spi-builder-workspace/Sources/AnyLint/Options.swift:4:15: warning: static property 'validateOnly' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | enum Options {
4 |    static var validateOnly: Bool = false
  |               |- warning: static property 'validateOnly' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |               |- note: convert 'validateOnly' to a 'let' constant to make 'Sendable' shared state immutable
  |               |- note: annotate 'validateOnly' with '@MainActor' if property should only be accessed from the main actor
  |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |    static var unvalidated: Bool = false
6 | }
/host/spi-builder-workspace/Sources/AnyLint/Options.swift:5:15: warning: static property 'unvalidated' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | enum Options {
4 |    static var validateOnly: Bool = false
5 |    static var unvalidated: Bool = false
  |               |- warning: static property 'unvalidated' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |               |- note: convert 'unvalidated' to a 'let' constant to make 'Sendable' shared state immutable
  |               |- note: annotate 'unvalidated' with '@MainActor' if property should only be accessed from the main actor
  |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | }
7 |
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:68:1: warning: extension declares a conformance of imported type 'Change' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
66 | // TODO: make the autocorrection diff sorted by line number
67 | @available(OSX 10.15, *)
68 | extension CollectionDifference.Change: Comparable where ChangeElement == String {
   | |- warning: extension declares a conformance of imported type 'Change' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
69 |    public static func < (lhs: Self, rhs: Self) -> Bool {
70 |       switch (lhs, rhs) {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:57:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
55 |          let after = elements.first(where: { $0.0 == "after" })?.1
56 |       else {
57 |          log.message("Failed to convert Dictionary literal '\(elements)' to type AutoCorrection.", level: .error)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
58 |          log.exit(status: .failure)
59 |          exit(EXIT_FAILURE) // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:58:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 |       else {
57 |          log.message("Failed to convert Dictionary literal '\(elements)' to type AutoCorrection.", level: .error)
58 |          log.exit(status: .failure)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |          exit(EXIT_FAILURE) // only reachable in unit tests
60 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:51:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
49 |
50 |          guard let severity = Severity.from(string: severityString) else {
51 |             log.message("Specified severity '\(severityString)' for check '\(id)' unknown. Use one of [error, warning, info].", level: .error)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 |             log.exit(status: .failure)
53 |             exit(EXIT_FAILURE) // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:52:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 |          guard let severity = Severity.from(string: severityString) else {
51 |             log.message("Specified severity '\(severityString)' for check '\(id)' unknown. Use one of [error, warning, info].", level: .error)
52 |             log.exit(status: .failure)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
53 |             exit(EXIT_FAILURE) // only reachable in unit tests
54 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:65:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |
64 |          guard let defaultSeverityMatch = defaultSeverityRegex.firstMatch(in: value) else {
65 |             log.message(
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
66 |                "Could not convert String literal '\(value)' to type CheckInfo. Please check the structure to be: <id>(@<severity>): <hint>",
67 |                level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:69:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 |                level: .error
68 |             )
69 |             log.exit(status: .failure)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
70 |             exit(EXIT_FAILURE) // only reachable in unit tests
71 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:68:1: warning: extension declares a conformance of imported type 'Change' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
66 | // TODO: make the autocorrection diff sorted by line number
67 | @available(OSX 10.15, *)
68 | extension CollectionDifference.Change: Comparable where ChangeElement == String {
   | |- warning: extension declares a conformance of imported type 'Change' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
69 |    public static func < (lhs: Self, rhs: Self) -> Bool {
70 |       switch (lhs, rhs) {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:57:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
55 |          let after = elements.first(where: { $0.0 == "after" })?.1
56 |       else {
57 |          log.message("Failed to convert Dictionary literal '\(elements)' to type AutoCorrection.", level: .error)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
58 |          log.exit(status: .failure)
59 |          exit(EXIT_FAILURE) // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/AutoCorrection.swift:58:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 |       else {
57 |          log.message("Failed to convert Dictionary literal '\(elements)' to type AutoCorrection.", level: .error)
58 |          log.exit(status: .failure)
   |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |          exit(EXIT_FAILURE) // only reachable in unit tests
60 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:51:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
49 |
50 |          guard let severity = Severity.from(string: severityString) else {
51 |             log.message("Specified severity '\(severityString)' for check '\(id)' unknown. Use one of [error, warning, info].", level: .error)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 |             log.exit(status: .failure)
53 |             exit(EXIT_FAILURE) // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:52:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 |          guard let severity = Severity.from(string: severityString) else {
51 |             log.message("Specified severity '\(severityString)' for check '\(id)' unknown. Use one of [error, warning, info].", level: .error)
52 |             log.exit(status: .failure)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
53 |             exit(EXIT_FAILURE) // only reachable in unit tests
54 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:65:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |
64 |          guard let defaultSeverityMatch = defaultSeverityRegex.firstMatch(in: value) else {
65 |             log.message(
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
66 |                "Could not convert String literal '\(value)' to type CheckInfo. Please check the structure to be: <id>(@<severity>): <hint>",
67 |                level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/CheckInfo.swift:69:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 |                level: .error
68 |             )
69 |             log.exit(status: .failure)
   |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
70 |             exit(EXIT_FAILURE) // only reachable in unit tests
71 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[75/88] Wrapping AST for AnyLintCLI for debugging
[76/88] Write Objects.LinkFileList
[78/88] Compiling AnyLint URLExt.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:30:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 28 |       excludeFilters: [Regex] = []
 29 |    ) -> [String] {
 30 |       log.message(
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 31 |          "Start searching for matching files in path \(path) with includeFilters \(includeFilters) and excludeFilters \(excludeFilters) ...",
 32 |          level: .debug
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:37:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 35 |       let searchOptions = SearchOptions(pathToSearch: path, includeFilters: includeFilters, excludeFilters: excludeFilters)
 36 |       if let cachedFilePaths: [String] = cachedFilePaths[searchOptions] {
 37 |          log.message("A file search with exactly the above search options was already done and was not invalidated, using cached results ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 38 |          return cachedFilePaths
 39 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:42:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |       guard let url = URL(string: path, relativeTo: fileManager.currentDirectoryUrl) else {
 42 |          log.message("Could not convert path '\(path)' to type URL.", level: .error)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 43 |          log.exit(status: .failure)
 44 |          return [] // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:43:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 41 |       guard let url = URL(string: path, relativeTo: fileManager.currentDirectoryUrl) else {
 42 |          log.message("Could not convert path '\(path)' to type URL.", level: .error)
 43 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |          return [] // only reachable in unit tests
 45 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:49:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |       let propKeys = [URLResourceKey.isRegularFileKey, URLResourceKey.isHiddenKey]
 48 |       guard let enumerator = fileManager.enumerator(at: url, includingPropertiesForKeys: propKeys, options: [], errorHandler: nil) else {
 49 |          log.message("Couldn't create enumerator for path '\(path)'.", level: .error)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 50 |          log.exit(status: .failure)
 51 |          return [] // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:50:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 48 |       guard let enumerator = fileManager.enumerator(at: url, includingPropertiesForKeys: propKeys, options: [], errorHandler: nil) else {
 49 |          log.message("Couldn't create enumerator for path '\(path)'.", level: .error)
 50 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 51 |          return [] // only reachable in unit tests
 52 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:62:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 60 |             let isRegularFilePath = resourceValues.isRegularFile
 61 |          else {
 62 |             log.message("Could not read resource values for file at \(fileUrl.path)", level: .error)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 63 |             log.exit(status: .failure)
 64 |             return [] // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:63:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |          else {
 62 |             log.message("Could not read resource values for file at \(fileUrl.path)", level: .error)
 63 |             log.exit(status: .failure)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 64 |             return [] // only reachable in unit tests
 65 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[79/88] Compiling AnyLint FilesSearch.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:30:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 28 |       excludeFilters: [Regex] = []
 29 |    ) -> [String] {
 30 |       log.message(
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 31 |          "Start searching for matching files in path \(path) with includeFilters \(includeFilters) and excludeFilters \(excludeFilters) ...",
 32 |          level: .debug
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:37:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 35 |       let searchOptions = SearchOptions(pathToSearch: path, includeFilters: includeFilters, excludeFilters: excludeFilters)
 36 |       if let cachedFilePaths: [String] = cachedFilePaths[searchOptions] {
 37 |          log.message("A file search with exactly the above search options was already done and was not invalidated, using cached results ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 38 |          return cachedFilePaths
 39 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:42:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |       guard let url = URL(string: path, relativeTo: fileManager.currentDirectoryUrl) else {
 42 |          log.message("Could not convert path '\(path)' to type URL.", level: .error)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 43 |          log.exit(status: .failure)
 44 |          return [] // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:43:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 41 |       guard let url = URL(string: path, relativeTo: fileManager.currentDirectoryUrl) else {
 42 |          log.message("Could not convert path '\(path)' to type URL.", level: .error)
 43 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |          return [] // only reachable in unit tests
 45 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:49:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |       let propKeys = [URLResourceKey.isRegularFileKey, URLResourceKey.isHiddenKey]
 48 |       guard let enumerator = fileManager.enumerator(at: url, includingPropertiesForKeys: propKeys, options: [], errorHandler: nil) else {
 49 |          log.message("Couldn't create enumerator for path '\(path)'.", level: .error)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 50 |          log.exit(status: .failure)
 51 |          return [] // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:50:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 48 |       guard let enumerator = fileManager.enumerator(at: url, includingPropertiesForKeys: propKeys, options: [], errorHandler: nil) else {
 49 |          log.message("Couldn't create enumerator for path '\(path)'.", level: .error)
 50 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 51 |          return [] // only reachable in unit tests
 52 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:62:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 60 |             let isRegularFilePath = resourceValues.isRegularFile
 61 |          else {
 62 |             log.message("Could not read resource values for file at \(fileUrl.path)", level: .error)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 63 |             log.exit(status: .failure)
 64 |             return [] // only reachable in unit tests
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:63:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |          else {
 62 |             log.message("Could not read resource values for file at \(fileUrl.path)", level: .error)
 63 |             log.exit(status: .failure)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 64 |             return [] // only reachable in unit tests
 65 |          }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[80/88] Compiling AnyLint Checker.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:15:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 13 | extension FileContentsChecker: Checker {
 14 |    func performCheck() throws -> [Violation] { // swiftlint:disable:this function_body_length
 15 |       log.message("Start checking \(checkInfo) ...", level: .debug)
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 16 |       var violations: [Violation] = []
 17 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:19:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |       for filePath in filePathsToCheck.reversed() {
 19 |          log.message("Start reading contents of file at \(filePath) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 20 |
 21 |          if let fileData = fileManager.contents(atPath: filePath), let fileContents = String(data: fileData, encoding: .utf8) {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:28:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 26 |             let skipInFileRegex = try Regex(#"AnyLint\.skipInFile:[^\n]*([, ]All[,\s]|[, ]\#(checkInfo.id)[,\s])"#)
 27 |             guard !skipInFileRegex.matches(fileContents) else {
 28 |                log.message("Skipping \(checkInfo) in file \(filePath) due to 'AnyLint.skipInFile' instruction ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 29 |                continue
 30 |             }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:64:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 62 |                }
 63 |
 64 |                log.message("Found violating match at \(locationInfo) ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 65 |
 66 |                // skip found match if contains `AnyLint.skipHere: <CheckInfo.ID>` in same line or one line before
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:68:19: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 66 |                // skip found match if contains `AnyLint.skipHere: <CheckInfo.ID>` in same line or one line before
 67 |                guard !linesInFile.containsLine(at: [locationInfo.line - 2, locationInfo.line - 1], matchingRegex: skipHereRegex) else {
 68 |                   log.message("Skip reporting last match due to 'AnyLint.skipHere' instruction ...", level: .debug)
    |                   `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 69 |                   continue
 70 |                }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:87:19: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 85 |                   // apply auto correction
 86 |                   newFileContents.replaceSubrange(match.range, with: autoCorrection.after)
 87 |                   log.message("Applied autocorrection for last match ...", level: .debug)
    |                   `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 88 |                }
 89 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:90:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 88 |                }
 89 |
 90 |                log.message("Reporting violation for \(checkInfo) in file \(filePath) at \(locationInfo) ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 91 |                violations.append(
 92 |                   Violation(
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:103:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
101 |
102 |             if newFileContents != fileContents {
103 |                log.message("Rewriting contents of file \(filePath) due to autocorrection changes ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |                try newFileContents.write(toFile: filePath, atomically: true, encoding: .utf8)
105 |             }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:107:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 |             }
106 |          } else {
107 |             log.message(
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 |                "Could not read contents of file at \(filePath). Make sure it is a text file and is formatted as UTF8.",
109 |                level: .warning
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:119:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 |
118 |       if repeatIfAutoCorrected && violations.contains(where: { $0.appliedAutoCorrection != nil }) {
119 |          log.message("Repeating check \(checkInfo) because auto-corrections were applied on last run.", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 |
121 |          // only paths where auto-corrections were applied need to be re-checked
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[81/88] Compiling AnyLint FileContentsChecker.swift
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:15:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 13 | extension FileContentsChecker: Checker {
 14 |    func performCheck() throws -> [Violation] { // swiftlint:disable:this function_body_length
 15 |       log.message("Start checking \(checkInfo) ...", level: .debug)
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 16 |       var violations: [Violation] = []
 17 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:19:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |       for filePath in filePathsToCheck.reversed() {
 19 |          log.message("Start reading contents of file at \(filePath) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 20 |
 21 |          if let fileData = fileManager.contents(atPath: filePath), let fileContents = String(data: fileData, encoding: .utf8) {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:28:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 26 |             let skipInFileRegex = try Regex(#"AnyLint\.skipInFile:[^\n]*([, ]All[,\s]|[, ]\#(checkInfo.id)[,\s])"#)
 27 |             guard !skipInFileRegex.matches(fileContents) else {
 28 |                log.message("Skipping \(checkInfo) in file \(filePath) due to 'AnyLint.skipInFile' instruction ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 29 |                continue
 30 |             }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:64:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 62 |                }
 63 |
 64 |                log.message("Found violating match at \(locationInfo) ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 65 |
 66 |                // skip found match if contains `AnyLint.skipHere: <CheckInfo.ID>` in same line or one line before
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:68:19: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 66 |                // skip found match if contains `AnyLint.skipHere: <CheckInfo.ID>` in same line or one line before
 67 |                guard !linesInFile.containsLine(at: [locationInfo.line - 2, locationInfo.line - 1], matchingRegex: skipHereRegex) else {
 68 |                   log.message("Skip reporting last match due to 'AnyLint.skipHere' instruction ...", level: .debug)
    |                   `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 69 |                   continue
 70 |                }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:87:19: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 85 |                   // apply auto correction
 86 |                   newFileContents.replaceSubrange(match.range, with: autoCorrection.after)
 87 |                   log.message("Applied autocorrection for last match ...", level: .debug)
    |                   `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 88 |                }
 89 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:90:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 88 |                }
 89 |
 90 |                log.message("Reporting violation for \(checkInfo) in file \(filePath) at \(locationInfo) ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 91 |                violations.append(
 92 |                   Violation(
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:103:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
101 |
102 |             if newFileContents != fileContents {
103 |                log.message("Rewriting contents of file \(filePath) due to autocorrection changes ...", level: .debug)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |                try newFileContents.write(toFile: filePath, atomically: true, encoding: .utf8)
105 |             }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:107:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 |             }
106 |          } else {
107 |             log.message(
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 |                "Could not read contents of file at \(filePath). Make sure it is a text file and is formatted as UTF8.",
109 |                level: .warning
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/AnyLint/Checkers/FileContentsChecker.swift:119:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 |
118 |       if repeatIfAutoCorrected && violations.contains(where: { $0.appliedAutoCorrection != nil }) {
119 |          log.message("Repeating check \(checkInfo) because auto-corrections were applied on last run.", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 |
121 |          // only paths where auto-corrections were applied need to be re-checked
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[82/88] Compiling AnyLint Violation.swift
[83/88] Compiling AnyLint ViolationLocationConfig.swift
[84/88] Compiling AnyLint Lint.swift
/host/spi-builder-workspace/Sources/AnyLint/Options.swift:5:15: warning: static property 'unvalidated' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | enum Options {
4 |    static var validateOnly: Bool = false
5 |    static var unvalidated: Bool = false
  |               |- warning: static property 'unvalidated' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |               |- note: convert 'unvalidated' to a 'let' constant to make 'Sendable' shared state immutable
  |               |- note: annotate 'unvalidated' with '@MainActor' if property should only be accessed from the main actor
  |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | }
7 |
/host/spi-builder-workspace/Sources/AnyLint/Options.swift:4:15: warning: static property 'validateOnly' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | enum Options {
4 |    static var validateOnly: Bool = false
  |               |- warning: static property 'validateOnly' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |               |- note: convert 'validateOnly' to a 'let' constant to make 'Sendable' shared state immutable
  |               |- note: annotate 'validateOnly' with '@MainActor' if property should only be accessed from the main actor
  |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |    static var unvalidated: Bool = false
6 | }
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:167:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
165 |
166 |       if targetIsXcode {
167 |          log = Logger(outputType: .xcode)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
168 |       }
169 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:170:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
168 |       }
169 |
170 |       log.logDebugLevel = arguments.contains(Constants.debugArgument)
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
171 |       Options.validateOnly = arguments.contains(Constants.validateArgument)
172 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:177:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
175 |       guard !Options.validateOnly else {
176 |          Statistics.shared.logValidationSummary()
177 |          log.exit(status: .success)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
178 |          return // only reachable in unit tests
179 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:184:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
182 |
183 |       if Statistics.shared.violations(severity: .error, excludeAutocorrected: targetIsXcode).isFilled {
184 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
185 |       } else if failOnWarnings && Statistics.shared.violations(severity: .warning, excludeAutocorrected: targetIsXcode).isFilled {
186 |          log.exit(status: .failure)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:186:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
184 |          log.exit(status: .failure)
185 |       } else if failOnWarnings && Statistics.shared.violations(severity: .warning, excludeAutocorrected: targetIsXcode).isFilled {
186 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
187 |       } else {
188 |          log.exit(status: .success)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:188:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
186 |          log.exit(status: .failure)
187 |       } else {
188 |          log.exit(status: .success)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
189 |       }
190 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:194:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
192 |    static func validate(regex: Regex, matchesForEach matchingExamples: [String], checkInfo: CheckInfo) {
193 |       if matchingExamples.isFilled {
194 |          log.message("Validating 'matchingExamples' for \(checkInfo) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |       }
196 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:198:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
196 |
197 |       for example in matchingExamples where !regex.matches(example) {
198 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
199 |             "Couldn't find a match for regex \(regex) in check '\(checkInfo.id)' within matching example:\n\(example)",
200 |             level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:202:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
200 |             level: .error
201 |          )
202 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
203 |       }
204 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:208:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
206 |    static func validate(regex: Regex, doesNotMatchAny nonMatchingExamples: [String], checkInfo: CheckInfo) {
207 |       if nonMatchingExamples.isFilled {
208 |          log.message("Validating 'nonMatchingExamples' for \(checkInfo) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
209 |       }
210 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:212:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
210 |
211 |       for example in nonMatchingExamples where regex.matches(example) {
212 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
213 |             "Unexpectedly found a match for regex \(regex) in check '\(checkInfo.id)' within non-matching example:\n\(example)",
214 |             level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:216:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
214 |             level: .error
215 |          )
216 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
217 |       }
218 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:222:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
220 |    static func validateAutocorrectsAll(checkInfo: CheckInfo, examples: [AutoCorrection], regex: Regex, autocorrectReplacement: String) {
221 |       if examples.isFilled {
222 |          log.message("Validating 'autoCorrectExamples' for \(checkInfo) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
223 |       }
224 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:228:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
226 |          let autocorrected = regex.replaceAllCaptures(in: autocorrect.before, with: autocorrectReplacement)
227 |          if autocorrected != autocorrect.after {
228 |             log.message(
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
229 |                """
230 |                Autocorrecting example for \(checkInfo.id) did not result in expected output.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:237:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
235 |                level: .error
236 |             )
237 |             log.exit(status: .failure)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
238 |          }
239 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:249:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
247 |    ) {
248 |       if autoCorrectExamples.isFilled && autoCorrectReplacement == nil {
249 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
250 |             "`autoCorrectExamples` provided for check \(checkInfo.id) without specifying an `autoCorrectReplacement`.",
251 |             level: .warning
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:256:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
254 |
255 |       guard autoCorrectReplacement == nil || violateIfNoMatchesFound != true else {
256 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
257 |             "Incompatible options specified for check \(checkInfo.id): autoCorrectReplacement and violateIfNoMatchesFound can't be used together.",
258 |             level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:260:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
258 |             level: .error
259 |          )
260 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
261 |          return // only reachable in unit tests
262 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[85/88] Compiling AnyLint Options.swift
/host/spi-builder-workspace/Sources/AnyLint/Options.swift:5:15: warning: static property 'unvalidated' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | enum Options {
4 |    static var validateOnly: Bool = false
5 |    static var unvalidated: Bool = false
  |               |- warning: static property 'unvalidated' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |               |- note: convert 'unvalidated' to a 'let' constant to make 'Sendable' shared state immutable
  |               |- note: annotate 'unvalidated' with '@MainActor' if property should only be accessed from the main actor
  |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | }
7 |
/host/spi-builder-workspace/Sources/AnyLint/Options.swift:4:15: warning: static property 'validateOnly' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | enum Options {
4 |    static var validateOnly: Bool = false
  |               |- warning: static property 'validateOnly' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |               |- note: convert 'validateOnly' to a 'let' constant to make 'Sendable' shared state immutable
  |               |- note: annotate 'validateOnly' with '@MainActor' if property should only be accessed from the main actor
  |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |    static var unvalidated: Bool = false
6 | }
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/AnyLint/FilesSearch.swift:13:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Helper to search for files and filter using Regexes.
  5 | public final class FilesSearch {
    |                    `- note: class 'FilesSearch' does not conform to the 'Sendable' protocol
  6 |    struct SearchOptions: Equatable, Hashable {
  7 |       let pathToSearch: String
    :
 11 |
 12 |    /// The shared instance.
 13 |    public static let shared = FilesSearch()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FilesSearch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |    private var cachedFilePaths: [SearchOptions: [String]] = [:]
/host/spi-builder-workspace/Sources/Utility/Constants.swift:4:12: warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Shortcut to access the default `FileManager` within this project.
 4 | public let fileManager = FileManager.default
   |            |- warning: let 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'fileManager' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 1 | open class FileManager : NSObject {
   |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 2 |     open class var `default`: FileManager { get }
 3 |     open func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:167:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
165 |
166 |       if targetIsXcode {
167 |          log = Logger(outputType: .xcode)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
168 |       }
169 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:170:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
168 |       }
169 |
170 |       log.logDebugLevel = arguments.contains(Constants.debugArgument)
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
171 |       Options.validateOnly = arguments.contains(Constants.validateArgument)
172 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:177:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
175 |       guard !Options.validateOnly else {
176 |          Statistics.shared.logValidationSummary()
177 |          log.exit(status: .success)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
178 |          return // only reachable in unit tests
179 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:184:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
182 |
183 |       if Statistics.shared.violations(severity: .error, excludeAutocorrected: targetIsXcode).isFilled {
184 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
185 |       } else if failOnWarnings && Statistics.shared.violations(severity: .warning, excludeAutocorrected: targetIsXcode).isFilled {
186 |          log.exit(status: .failure)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:186:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
184 |          log.exit(status: .failure)
185 |       } else if failOnWarnings && Statistics.shared.violations(severity: .warning, excludeAutocorrected: targetIsXcode).isFilled {
186 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
187 |       } else {
188 |          log.exit(status: .success)
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:188:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
186 |          log.exit(status: .failure)
187 |       } else {
188 |          log.exit(status: .success)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
189 |       }
190 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:194:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
192 |    static func validate(regex: Regex, matchesForEach matchingExamples: [String], checkInfo: CheckInfo) {
193 |       if matchingExamples.isFilled {
194 |          log.message("Validating 'matchingExamples' for \(checkInfo) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |       }
196 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:198:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
196 |
197 |       for example in matchingExamples where !regex.matches(example) {
198 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
199 |             "Couldn't find a match for regex \(regex) in check '\(checkInfo.id)' within matching example:\n\(example)",
200 |             level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:202:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
200 |             level: .error
201 |          )
202 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
203 |       }
204 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:208:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
206 |    static func validate(regex: Regex, doesNotMatchAny nonMatchingExamples: [String], checkInfo: CheckInfo) {
207 |       if nonMatchingExamples.isFilled {
208 |          log.message("Validating 'nonMatchingExamples' for \(checkInfo) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
209 |       }
210 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:212:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
210 |
211 |       for example in nonMatchingExamples where regex.matches(example) {
212 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
213 |             "Unexpectedly found a match for regex \(regex) in check '\(checkInfo.id)' within non-matching example:\n\(example)",
214 |             level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:216:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
214 |             level: .error
215 |          )
216 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
217 |       }
218 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:222:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
220 |    static func validateAutocorrectsAll(checkInfo: CheckInfo, examples: [AutoCorrection], regex: Regex, autocorrectReplacement: String) {
221 |       if examples.isFilled {
222 |          log.message("Validating 'autoCorrectExamples' for \(checkInfo) ...", level: .debug)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
223 |       }
224 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:228:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
226 |          let autocorrected = regex.replaceAllCaptures(in: autocorrect.before, with: autocorrectReplacement)
227 |          if autocorrected != autocorrect.after {
228 |             log.message(
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
229 |                """
230 |                Autocorrecting example for \(checkInfo.id) did not result in expected output.
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:237:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
235 |                level: .error
236 |             )
237 |             log.exit(status: .failure)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
238 |          }
239 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:249:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
247 |    ) {
248 |       if autoCorrectExamples.isFilled && autoCorrectReplacement == nil {
249 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
250 |             "`autoCorrectExamples` provided for check \(checkInfo.id) without specifying an `autoCorrectReplacement`.",
251 |             level: .warning
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:256:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
254 |
255 |       guard autoCorrectReplacement == nil || violateIfNoMatchesFound != true else {
256 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
257 |             "Incompatible options specified for check \(checkInfo.id): autoCorrectReplacement and violateIfNoMatchesFound can't be used together.",
258 |             level: .error
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Lint.swift:260:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
258 |             level: .error
259 |          )
260 |          log.exit(status: .failure)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
261 |          return // only reachable in unit tests
262 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[86/88] Compiling AnyLint Severity.swift
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:44:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 42 |
 43 |    func logValidationSummary() {
 44 |       guard log.outputType != .xcode else {
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 45 |          log.message("Performing validations only while reporting for Xcode is probably misuse of the `-l` / `--validate` option.", level: .warning)
 46 |          return
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:45:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 43 |    func logValidationSummary() {
 44 |       guard log.outputType != .xcode else {
 45 |          log.message("Performing validations only while reporting for Xcode is probably misuse of the `-l` / `--validate` option.", level: .warning)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 46 |          return
 47 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:50:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |       if executedChecks.isEmpty {
 50 |          log.message("No checks found to validate.", level: .warning)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 51 |       } else {
 52 |          log.message(
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:52:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 50 |          log.message("No checks found to validate.", level: .warning)
 51 |       } else {
 52 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 53 |             "Performed \(executedChecks.count) validation(s) in \(filesChecked.count) file(s) without any issues.",
 54 |             level: .success
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:64:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 62 |
 63 |       if executedChecks.isEmpty {
 64 |          log.message("No checks found to perform.", level: .warning)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 65 |       } else if violationsBySeverity.values.contains(where: { $0.isFilled }) {
 66 |          if printExecutionTime {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:70:17: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 68 |          }
 69 |
 70 |          switch log.outputType {
    |                 `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 71 |          case .console, .test:
 72 |             logViolationsToConsole()
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:82:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 80 |          }
 81 |
 82 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 83 |             "Performed \(executedChecks.count) check(s) in \(filesChecked.count) file(s) without any violations.",
 84 |             level: .success
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:90:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 88 |
 89 |    func logExecutionTimes() {
 90 |       log.message("⏱ Executed checks sorted by their execution time:", level: .info)
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 91 |
 92 |       for (check, executionTime) in self.executionTimePerCheck.sorted(by: { $0.value > $1.value }) {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:94:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 92 |       for (check, executionTime) in self.executionTimePerCheck.sorted(by: { $0.value > $1.value }) {
 93 |          let milliseconds = Int(executionTime * 1_000)
 94 |          log.message("\(milliseconds)ms\t\(check.id)", level: .info)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 95 |       }
 96 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:110:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 |
109 |             if violationsWithLocationMessage.isFilled {
110 |                log.message(
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
111 |                   "\("[\(check.id)]".bold) Found \(checkViolations.count) violation(s) at:",
112 |                   level: check.severity.logLevel
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:119:19: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 |                   let violationNumString = String(format: "%0\(numerationDigits)d", index + 1)
118 |                   let prefix = "> \(violationNumString). "
119 |                   log.message(prefix + violation.locationMessage(pathType: .relative)!, level: check.severity.logLevel)
    |                   `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 |
121 |                   let prefixLengthWhitespaces = (0 ..< prefix.count).map { _ in " " }.joined()
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:124:25: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 |                   if let appliedAutoCorrection = violation.appliedAutoCorrection {
123 |                      for messageLine in appliedAutoCorrection.appliedMessageLines {
124 |                         log.message(prefixLengthWhitespaces + messageLine, level: .info)
    |                         `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
125 |                      }
126 |                   } else if let matchedString = violation.matchedString {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:127:22: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
125 |                      }
126 |                   } else if let matchedString = violation.matchedString {
127 |                      log.message(prefixLengthWhitespaces + "Matching string:".bold + " (trimmed & reduced whitespaces)", level: .info)
    |                      `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
128 |                      let matchedStringOutput = matchedString
129 |                         .showNewlines()
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:134:22: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 |                         .replacingOccurrences(of: "      ", with: "  ")
133 |                         .replacingOccurrences(of: "    ", with: "  ")
134 |                      log.message(prefixLengthWhitespaces + "> " + matchedStringOutput, level: .info)
    |                      `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
135 |                   }
136 |                }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:138:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
136 |                }
137 |             } else {
138 |                log.message("\("[\(check.id)]".bold) Found \(checkViolations.count) violation(s).", level: check.severity.logLevel)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
139 |             }
140 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:141:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
139 |             }
140 |
141 |             log.message(">> Hint: \(check.hint)".bold.italic, level: check.severity.logLevel)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
142 |          }
143 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:148:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
146 |       let warnings = "\(violationsBySeverity[.warning]!.count) warning(s)"
147 |
148 |       log.message(
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
149 |          "Performed \(executedChecks.count) check(s) in \(filesChecked.count) file(s) and found \(errors) & \(warnings).",
150 |          level: maxViolationSeverity!.logLevel
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:159:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
157 |          for violation in severityViolations where violation.appliedAutoCorrection == nil {
158 |             let check = violation.checkInfo
159 |             log.xcodeMessage(
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |                "[\(check.id)] \(check.hint)",
161 |                level: check.severity.logLevel,
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[87/88] Compiling AnyLint Statistics.swift
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:5:15: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | import Utility
  3 |
  4 | final class Statistics {
    |             `- note: class 'Statistics' does not conform to the 'Sendable' protocol
  5 |    static let shared = Statistics()
    |               |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Statistics' may have shared mutable state; this is an error in the Swift 6 language mode
    |               |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |    var executedChecks: [CheckInfo] = []
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            |- warning: var 'log' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: annotate 'log' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:44:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 42 |
 43 |    func logValidationSummary() {
 44 |       guard log.outputType != .xcode else {
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 45 |          log.message("Performing validations only while reporting for Xcode is probably misuse of the `-l` / `--validate` option.", level: .warning)
 46 |          return
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:45:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 43 |    func logValidationSummary() {
 44 |       guard log.outputType != .xcode else {
 45 |          log.message("Performing validations only while reporting for Xcode is probably misuse of the `-l` / `--validate` option.", level: .warning)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 46 |          return
 47 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:50:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |       if executedChecks.isEmpty {
 50 |          log.message("No checks found to validate.", level: .warning)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 51 |       } else {
 52 |          log.message(
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:52:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 50 |          log.message("No checks found to validate.", level: .warning)
 51 |       } else {
 52 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 53 |             "Performed \(executedChecks.count) validation(s) in \(filesChecked.count) file(s) without any issues.",
 54 |             level: .success
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:64:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 62 |
 63 |       if executedChecks.isEmpty {
 64 |          log.message("No checks found to perform.", level: .warning)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 65 |       } else if violationsBySeverity.values.contains(where: { $0.isFilled }) {
 66 |          if printExecutionTime {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:70:17: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 68 |          }
 69 |
 70 |          switch log.outputType {
    |                 `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 71 |          case .console, .test:
 72 |             logViolationsToConsole()
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:82:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 80 |          }
 81 |
 82 |          log.message(
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 83 |             "Performed \(executedChecks.count) check(s) in \(filesChecked.count) file(s) without any violations.",
 84 |             level: .success
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:90:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 88 |
 89 |    func logExecutionTimes() {
 90 |       log.message("⏱ Executed checks sorted by their execution time:", level: .info)
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 91 |
 92 |       for (check, executionTime) in self.executionTimePerCheck.sorted(by: { $0.value > $1.value }) {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:94:10: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 92 |       for (check, executionTime) in self.executionTimePerCheck.sorted(by: { $0.value > $1.value }) {
 93 |          let milliseconds = Int(executionTime * 1_000)
 94 |          log.message("\(milliseconds)ms\t\(check.id)", level: .info)
    |          `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 95 |       }
 96 |    }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:110:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 |
109 |             if violationsWithLocationMessage.isFilled {
110 |                log.message(
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
111 |                   "\("[\(check.id)]".bold) Found \(checkViolations.count) violation(s) at:",
112 |                   level: check.severity.logLevel
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:119:19: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 |                   let violationNumString = String(format: "%0\(numerationDigits)d", index + 1)
118 |                   let prefix = "> \(violationNumString). "
119 |                   log.message(prefix + violation.locationMessage(pathType: .relative)!, level: check.severity.logLevel)
    |                   `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 |
121 |                   let prefixLengthWhitespaces = (0 ..< prefix.count).map { _ in " " }.joined()
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:124:25: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 |                   if let appliedAutoCorrection = violation.appliedAutoCorrection {
123 |                      for messageLine in appliedAutoCorrection.appliedMessageLines {
124 |                         log.message(prefixLengthWhitespaces + messageLine, level: .info)
    |                         `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
125 |                      }
126 |                   } else if let matchedString = violation.matchedString {
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:127:22: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
125 |                      }
126 |                   } else if let matchedString = violation.matchedString {
127 |                      log.message(prefixLengthWhitespaces + "Matching string:".bold + " (trimmed & reduced whitespaces)", level: .info)
    |                      `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
128 |                      let matchedStringOutput = matchedString
129 |                         .showNewlines()
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:134:22: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 |                         .replacingOccurrences(of: "      ", with: "  ")
133 |                         .replacingOccurrences(of: "    ", with: "  ")
134 |                      log.message(prefixLengthWhitespaces + "> " + matchedStringOutput, level: .info)
    |                      `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
135 |                   }
136 |                }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:138:16: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
136 |                }
137 |             } else {
138 |                log.message("\("[\(check.id)]".bold) Found \(checkViolations.count) violation(s).", level: check.severity.logLevel)
    |                `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
139 |             }
140 |
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:141:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
139 |             }
140 |
141 |             log.message(">> Hint: \(check.hint)".bold.italic, level: check.severity.logLevel)
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
142 |          }
143 |       }
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:148:7: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
146 |       let warnings = "\(violationsBySeverity[.warning]!.count) warning(s)"
147 |
148 |       log.message(
    |       `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
149 |          "Performed \(executedChecks.count) check(s) in \(filesChecked.count) file(s) and found \(errors) & \(warnings).",
150 |          level: maxViolationSeverity!.logLevel
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
/host/spi-builder-workspace/Sources/AnyLint/Statistics.swift:159:13: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
157 |          for violation in severityViolations where violation.appliedAutoCorrection == nil {
158 |             let check = violation.checkInfo
159 |             log.xcodeMessage(
    |             `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |                "[\(check.id)] \(check.hint)",
161 |                level: check.severity.logLevel,
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: note: var declared here
 5 |
 6 | /// Shortcut to access the `Logger` within this project.
 7 | public var log = Logger(outputType: .console)
   |            `- note: var declared here
 8 |
 9 | /// Constants to reference across the project.
[87/89] Linking anylint
Build complete! (24.18s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.5",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow.git"
    },
    {
      "identity" : "swiftcli",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.1",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jakeheis/SwiftCLI.git"
    }
  ],
  "manifest_display_name" : "AnyLint",
  "name" : "AnyLint",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "AnyLint",
      "targets" : [
        "AnyLint"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "anylint",
      "targets" : [
        "AnyLintCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UtilityTests",
      "module_type" : "SwiftTarget",
      "name" : "UtilityTests",
      "path" : "Tests/UtilityTests",
      "sources" : [
        "Extensions/RegexExtTests.swift",
        "LoggerTests.swift"
      ],
      "target_dependencies" : [
        "Utility"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Utility",
      "module_type" : "SwiftTarget",
      "name" : "Utility",
      "path" : "Sources/Utility",
      "product_dependencies" : [
        "Rainbow"
      ],
      "product_memberships" : [
        "AnyLint",
        "anylint"
      ],
      "sources" : [
        "Constants.swift",
        "Extensions/CollectionExt.swift",
        "Extensions/FileManagerExt.swift",
        "Extensions/RegexExt.swift",
        "Extensions/StringExt.swift",
        "Logger.swift",
        "Regex.swift",
        "TestHelper.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AnyLintTests",
      "module_type" : "SwiftTarget",
      "name" : "AnyLintTests",
      "path" : "Tests/AnyLintTests",
      "sources" : [
        "AutoCorrectionTests.swift",
        "CheckInfoTests.swift",
        "Checkers/FileContentsCheckerTests.swift",
        "Checkers/FilePathsCheckerTests.swift",
        "Extensions/ArrayExtTests.swift",
        "Extensions/XCTestCaseExt.swift",
        "FilesSearchTests.swift",
        "LintTests.swift",
        "RegexExtTests.swift",
        "StatisticsTests.swift",
        "ViolationTests.swift"
      ],
      "target_dependencies" : [
        "AnyLint"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AnyLintCLI",
      "module_type" : "SwiftTarget",
      "name" : "AnyLintCLI",
      "path" : "Sources/AnyLintCLI",
      "product_dependencies" : [
        "Rainbow",
        "SwiftCLI"
      ],
      "product_memberships" : [
        "anylint"
      ],
      "sources" : [
        "Commands/SingleCommand.swift",
        "ConfigurationTemplates/BlankTemplate.swift",
        "ConfigurationTemplates/ConfigurationTemplate.swift",
        "Globals/CLIConstants.swift",
        "Globals/ValidateOrFail.swift",
        "Tasks/InitTask.swift",
        "Tasks/LintTask.swift",
        "Tasks/TaskHandler.swift",
        "Tasks/VersionTask.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Utility"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AnyLint",
      "module_type" : "SwiftTarget",
      "name" : "AnyLint",
      "path" : "Sources/AnyLint",
      "product_memberships" : [
        "AnyLint"
      ],
      "sources" : [
        "AutoCorrection.swift",
        "CheckInfo.swift",
        "Checkers/Checker.swift",
        "Checkers/FileContentsChecker.swift",
        "Checkers/FilePathsChecker.swift",
        "Extensions/ArrayExt.swift",
        "Extensions/FileManagerExt.swift",
        "Extensions/StringExt.swift",
        "Extensions/URLExt.swift",
        "FilesSearch.swift",
        "Lint.swift",
        "Options.swift",
        "Severity.swift",
        "Statistics.swift",
        "Violation.swift",
        "ViolationLocationConfig.swift"
      ],
      "target_dependencies" : [
        "Utility"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.