跳转到内容

useDeprecatedReason

此内容尚不支持你的语言。

Diagnostic Category: lint/nursery/useDeprecatedReason

Since: v1.9.0

Sources:

Require specifying the reason argument when using @deprecated directive

This rule checks the parameter of @deprecated directive for the use of reason argument, suggesting user to add it in case the argument is missing.

query {
member @deprecated
}
query {
member @deprecated(reason: "Why?")
}