diff --git a/Source/SwiftLintBuiltInRules/Rules/Lint/AnyObjectProtocolRule.swift b/Source/SwiftLintBuiltInRules/Rules/Lint/AnyObjectProtocolRule.swift index 39d986038..aadb131e9 100644 --- a/Source/SwiftLintBuiltInRules/Rules/Lint/AnyObjectProtocolRule.swift +++ b/Source/SwiftLintBuiltInRules/Rules/Lint/AnyObjectProtocolRule.swift @@ -1,5 +1,6 @@ import SwiftSyntax +// TODO: [09/07/2024] Remove deprecation warning after ~2 years. private let warnDeprecatedOnceImpl: Void = { queuedPrintError(""" warning: The `anyobject_protocol` rule is now deprecated and will be completely removed in a future release. diff --git a/Source/SwiftLintBuiltInRules/Rules/Lint/InertDeferRule.swift b/Source/SwiftLintBuiltInRules/Rules/Lint/InertDeferRule.swift index a2cbb4b0c..e5ae33fd6 100644 --- a/Source/SwiftLintBuiltInRules/Rules/Lint/InertDeferRule.swift +++ b/Source/SwiftLintBuiltInRules/Rules/Lint/InertDeferRule.swift @@ -1,5 +1,6 @@ import SwiftSyntax +// TODO: [12/23/2024] Remove deprecation warning after ~2 years. private let warnDeprecatedOnceImpl: Void = { queuedPrintError(""" warning: The `\(InertDeferRule.description.identifier)` rule is now deprecated and will be \ diff --git a/Source/SwiftLintBuiltInRules/Rules/Lint/UnusedCaptureListRule.swift b/Source/SwiftLintBuiltInRules/Rules/Lint/UnusedCaptureListRule.swift index 744ff8097..edbf474bf 100644 --- a/Source/SwiftLintBuiltInRules/Rules/Lint/UnusedCaptureListRule.swift +++ b/Source/SwiftLintBuiltInRules/Rules/Lint/UnusedCaptureListRule.swift @@ -1,5 +1,6 @@ import SwiftSyntax +// TODO: [12/22/2024] Remove deprecation warning after ~2 years. private let warnDeprecatedOnceImpl: Void = { queuedPrintError(""" warning: The `\(UnusedCaptureListRule.description.identifier)` rule is now deprecated and will be completely \ diff --git a/Source/swiftlint/Commands/Analyze.swift b/Source/swiftlint/Commands/Analyze.swift index 88df6a72c..dd9a799a1 100644 --- a/Source/swiftlint/Commands/Analyze.swift +++ b/Source/swiftlint/Commands/Analyze.swift @@ -21,6 +21,7 @@ extension SwiftLint { func run() async throws { let allPaths: [String] if let path { + // TODO: [06/14/2024] Remove deprecation warning after ~2 years. queuedPrintError(""" warning: The --path option is deprecated. Pass the path(s) to analyze last to the swiftlint command. """) diff --git a/Source/swiftlint/Commands/Lint.swift b/Source/swiftlint/Commands/Lint.swift index c38a379de..48167409a 100644 --- a/Source/swiftlint/Commands/Lint.swift +++ b/Source/swiftlint/Commands/Lint.swift @@ -25,6 +25,7 @@ extension SwiftLint { func run() async throws { let allPaths: [String] if let path { + // TODO: [06/14/2024] Remove deprecation warning after ~2 years. queuedPrintError(""" warning: The --path option is deprecated. Pass the path(s) to lint last to the swiftlint command. """) diff --git a/Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift b/Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift index 164aa0c7c..d361fd519 100644 --- a/Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift +++ b/Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift @@ -27,6 +27,7 @@ enum LintOrAnalyzeMode { struct LintOrAnalyzeCommand { static func run(_ options: LintOrAnalyzeOptions) async throws { if options.inProcessSourcekit { + // TODO: [08/11/2024] Remove deprecation warning after ~2 years. queuedPrintError( """ warning: The --in-process-sourcekit option is deprecated. \