Add expiring TODO comments on deprecation warnings
This commit is contained in:
parent
9e15e37255
commit
1fa8e484c4
|
@ -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.
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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.
|
||||
""")
|
||||
|
|
|
@ -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.
|
||||
""")
|
||||
|
|
|
@ -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. \
|
||||
|
|
Loading…
Reference in New Issue