Add expiring TODO comments on deprecation warnings

This commit is contained in:
Danny Mösch 2023-05-08 09:47:25 +02:00
parent 9e15e37255
commit 1fa8e484c4
6 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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 \

View File

@ -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 \

View File

@ -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.
""")

View File

@ -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.
""")

View File

@ -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. \