Build Information
Successful build of AnyLint, reference main (049671
), with Swift 6.0 for Linux on 29 Nov 2024 09:24:15 UTC.
Swift 6 data race errors: 11
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
| |- note: annotate 'ignoreCase' 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
143 |
144 | /// Ignore any metacharacters in the pattern, treating every character as
/host/spi-builder-workspace/Sources/Utility/Regex.swift:155:25: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
137 | extension Regex {
138 | /// `Options` defines alternate behaviours of regular expressions when matching.
139 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
140 | // MARK: - Properties
141 | /// Ignores the case of letters when matching.
:
153 | /// Usually, "." matches all characters except newlines (\n). Using this,
154 | /// options will allow "." to match newLines
155 | public static let dotMatchesLineSeparators = Options(rawValue: 1 << 3)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dotMatchesLineSeparators' 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
156 |
157 | /// The raw value of the `OptionSet`
/host/spi-builder-workspace/Sources/Utility/Constants.swift:7:12: warning: var 'log' is not concurrency-safe because it is nonisolated 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 nonisolated 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.
[53/58] Compiling Utility Logger.swift
/host/spi-builder-workspace/Sources/Utility/TestHelper.swift:9:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TestHelper' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A helper class for Unit Testing only.
4 | public final class TestHelper {
| `- note: class 'TestHelper' does not conform to the 'Sendable' protocol
5 | /// The console output data.
6 | public typealias ConsoleOutput = (message: String, level: Logger.PrintLevel)
7 |
8 | /// The shared `TestHelper` object.
9 | public static let shared = TestHelper()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TestHelper' 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
10 |
11 | /// Use only in Unit Tests.
[54/58] Compiling Utility Regex.swift
/host/spi-builder-workspace/Sources/Utility/Regex.swift:8:22: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public struct Regex {
7 | /// The recommended default options passed to any Regex if not otherwise specified.
8 | public static let defaultOptions: Options = [.anchorsMatchLines]
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultOptions' 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
9 |
10 | // MARK: - Properties
:
137 | extension Regex {
138 | /// `Options` defines alternate behaviours of regular expressions when matching.
139 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
140 | // MARK: - Properties
141 | /// Ignores the case of letters when matching.
/host/spi-builder-workspace/Sources/Utility/Regex.swift:151:25: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
137 | extension Regex {
138 | /// `Options` defines alternate behaviours of regular expressions when matching.
139 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
140 | // MARK: - Properties
141 | /// Ignores the case of letters when matching.
:
149 | /// end of the string, ignoring any newlines. With this option, "^" will
150 | /// the beginning of each line, and "$" will match the end of each line.
151 | public static let anchorsMatchLines = Options(rawValue: 1 << 2)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anchorsMatchLines' 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
152 |
153 | /// Usually, "." matches all characters except newlines (\n). Using this,
/host/spi-builder-workspace/Sources/Utility/Regex.swift:142:25: warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
137 | extension Regex {
138 | /// `Options` defines alternate behaviours of regular expressions when matching.
139 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
140 | // MARK: - Properties
141 | /// Ignores the case of letters when matching.
142 | public static let ignoreCase = Options(rawValue: 1)
| |- warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreCase' 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
143 |
144 | /// Ignore any metacharacters in the pattern, treating every character as
/host/spi-builder-workspace/Sources/Utility/Regex.swift:146:25: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
137 | extension Regex {
138 | /// `Options` defines alternate behaviours of regular expressions when matching.
139 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
140 | // MARK: - Properties
141 | /// Ignores the case of letters when matching.
:
144 | /// Ignore any metacharacters in the pattern, treating every character as
145 | /// a literal.
146 | public static let ignoreMetacharacters = Options(rawValue: 1 << 1)
| |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreMetacharacters' 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
147 |
148 | /// By default, "^" matches the beginning of the string and "$" matches the
/host/spi-builder-workspace/Sources/Utility/Regex.swift:155:25: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
137 | extension Regex {
138 | /// `Options` defines alternate behaviours of regular expressions when matching.
139 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
140 | // MARK: - Properties
141 | /// Ignores the case of letters when matching.
:
153 | /// Usually, "." matches all characters except newlines (\n). Using this,
154 | /// options will allow "." to match newLines
155 | public static let dotMatchesLineSeparators = Options(rawValue: 1 << 3)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dotMatchesLineSeparators' 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
156 |
157 | /// The raw value of the `OptionSet`
[55/59] Wrapping AST for Utility for debugging
[57/84] Compiling AnyLintCLI VersionTask.swift
/host/spi-builder-workspace/Sources/AnyLintCLI/Tasks/VersionTask.swift:8: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
6 | extension VersionTask: TaskHandler {
7 | func perform() throws {
8 | log.message(Constants.currentVersion, 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
9 | }
10 | }
/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.
[58/85] Compiling AnyLintCLI TaskHandler.swift
[59/85] Compiling AnyLintCLI LintTask.swift
/host/spi-builder-workspace/Sources/AnyLintCLI/Tasks/LintTask.swift:30: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
28 |
29 | do {
30 | log.message("Start linting using config file at \(configFilePath) ...", 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
31 |
32 | var command = "\(configFilePath.absolutePath) \(log.outputType.rawValue)"
/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/Tasks/LintTask.swift:32:58: warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | log.message("Start linting using config file at \(configFilePath) ...", level: .info)
31 |
32 | var command = "\(configFilePath.absolutePath) \(log.outputType.rawValue)"
| `- warning: reference to var 'log' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | if logDebugLevel {
/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/Tasks/LintTask.swift:55: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
53 |
54 | try Task.run(bash: command)
55 | log.message("Linting successful using config file at \(configFilePath). Congrats! 🎉", level: .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
56 | } catch is RunError {
57 | if log.outputType != .xcode {
/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/Tasks/LintTask.swift:57: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
55 | log.message("Linting successful using config file at \(configFilePath). Congrats! 🎉", level: .success)
56 | } catch is RunError {
57 | if log.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
58 | log.message("Linting failed using config file at \(configFilePath).", level: .error)
59 | }
/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/Tasks/LintTask.swift:58: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
56 | } catch is RunError {
57 | if log.outputType != .xcode {
58 | log.message("Linting failed using config file at \(configFilePath).", 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
59 | }
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.
[60/85] Emitting module AnyLintCLI
[61/85] Compiling AnyLint AutoCorrection.swift
/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/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.
[62/85] Compiling AnyLint CheckInfo.swift
/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/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.
[63/85] Compiling AnyLint Checker.swift
[64/85] Compiling AnyLint FileContentsChecker.swift
[65/85] Compiling AnyLintCLI InitTask.swift
/host/spi-builder-workspace/Sources/AnyLintCLI/Tasks/InitTask.swift:35:19: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
33 |
34 | log.message("Creating config file using template '\(template.rawValue)' ...", level: .info)
35 | fileManager.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
36 | atPath: configFilePath,
37 | contents: template.configFileContents.data(using: .utf8),
/host/spi-builder-workspace/Sources/AnyLintCLI/Tasks/InitTask.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 | func perform() throws {
23 | guard !fileManager.fileExists(atPath: configFilePath) else {
24 | log.message("Configuration file already exists at path '\(configFilePath)'.", 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/AnyLintCLI/Tasks/InitTask.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 !fileManager.fileExists(atPath: configFilePath) else {
24 | log.message("Configuration file already exists at path '\(configFilePath)'.", 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/AnyLintCLI/Tasks/InitTask.swift:31: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
29 | ValidateOrFail.swiftShInstalled()
30 |
31 | log.message("Making sure config file directory exists ...", 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
32 | try Task.run(bash: "mkdir -p '\(configFilePath.parentDirectoryPath)'")
33 |
/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/Tasks/InitTask.swift:34: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
32 | try Task.run(bash: "mkdir -p '\(configFilePath.parentDirectoryPath)'")
33 |
34 | log.message("Creating config file using template '\(template.rawValue)' ...", 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
35 | fileManager.createFile(
36 | atPath: configFilePath,
/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/Tasks/InitTask.swift:41: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
39 | )
40 |
41 | log.message("Making config file executable ...", 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
42 | try Task.run(bash: "chmod +x '\(configFilePath)'")
43 |
/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/Tasks/InitTask.swift:44: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
42 | try Task.run(bash: "chmod +x '\(configFilePath)'")
43 |
44 | log.message("Successfully created config file at \(configFilePath)", level: .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
45 | }
46 | }
/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.
[66/85] Compiling AnyLintCLI ValidateOrFail.swift
/host/spi-builder-workspace/Sources/AnyLintCLI/Globals/ValidateOrFail.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 | static func swiftShInstalled() {
8 | guard fileManager.fileExists(atPath: CLIConstants.swiftShPath) else {
9 | 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
10 | "swift-sh not installed – please try `brew install swift-sh` or follow instructions on https://github.com/mxcl/swift-sh#installation",
11 | 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/AnyLintCLI/Globals/ValidateOrFail.swift:13: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
11 | level: .error
12 | )
13 | 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
14 | return // only reachable in unit tests
15 | }
/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/Globals/ValidateOrFail.swift:20: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
18 | static func configFileExists(at configFilePath: String) throws {
19 | guard fileManager.fileExists(atPath: configFilePath) else {
20 | 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
21 | "No configuration file found at \(configFilePath) – consider running `--init` with a template, e.g.`\(CLIConstants.commandName) --init blank`.",
22 | 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/AnyLintCLI/Globals/ValidateOrFail.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 | level: .error
23 | )
24 | 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
25 | return // only reachable in unit tests
26 | }
/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 AnyLintCLI main.swift
[68/86] Compiling AnyLint FilePathsChecker.swift
/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/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] = []
[69/86] Compiling AnyLint ArrayExt.swift
/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/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/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/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.
/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/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.
[73/88] Compiling AnyLint FileManagerExt.swift
/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]] = [:]
[74/88] Compiling AnyLint StringExt.swift
/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]] = [:]
[75/88] Compiling AnyLint URLExt.swift
/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/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.
[76/88] Compiling AnyLint FilesSearch.swift
/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/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.
[77/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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/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/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.
[79/88] Wrapping AST for AnyLintCLI for debugging
[80/88] Write Objects.LinkFileList
[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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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/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/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/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.
[88/89] Linking anylint
Build complete! (36.01s)
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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.