A public declaration that callers can see carries no /** */ or /// comment

tx0/java:public-member-without-docstrictwarningstyle/documentationdepth fastmaintainability

What it finds

What a public member promises is part of the API; without a documentation comment, callers learn it from the code, and the code can change.

Reported is a public class, interface, enum, record, method, constructor or field of a public top-level type, or of a public type nested in one, without a /** */ or /// comment before it. Methods marked @Override inherit their documentation and are left alone.

From the rule's source, undocumented_public_api.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:public-member-without-doc" = "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:public-member-without-doc] reason="..."

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