A declaration is marked deprecated by the annotation or by the documentation tag, but not by both

tx0/java:deprecation-without-doc-tagstrictwarningstyle/documentationdepth fastmaintainability

What it finds

@Deprecated tells the compiler and tools to warn; the @deprecated tag in the documentation tells readers why and what to use instead. One without the other leaves either the warning or the explanation out.

Reported is a declaration with a documentation comment that has the annotation but not the tag, or the tag but not the annotation.

From the rule's source, deprecation_without_doc_tag.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/java:deprecation-without-doc-tag" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/java:deprecation-without-doc-tag] reason="..."

tx0 explain tx0/java:deprecation-without-doc-tag shows the same in the terminal. Found a false positive? Report it.