The name of an abstract class does not match the naming pattern

tx0/java:abstract-class-namingstrictwarningstyle/namingdepth faststyle

What it finds

Some teams mark abstract classes by name, as AbstractParser or BaseHandler, so that the name says a class cannot be instantiated.

Reported is an abstract class whose name does not match the parameter pattern.

From the rule's source, abstract_class_naming.rs.

Example from the rule's tests
abstract class Shape {tx0 reports: does not match  abstract double area();}abstract class AbstractShape {  abstract double area();}abstract class BaseHandler {  abstract void handle();}
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

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:abstract-class-naming" = "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:abstract-class-naming] reason="..."

tx0 explain tx0/java:abstract-class-naming shows the same in the terminal. Found a false positive? Report it.