An abstract class declares no abstract member

tx0/kotlin:abstract-class-without-abstract-memberstrictwarningmaintainability/designdepth fastsmell

What it finds

An abstract class with only concrete members cannot be created, though nothing in it is left for subclasses to fill in. It is either meant to be open, or a member lost its abstract. Classes that extend or implement another type are left out, as they may inherit abstract members.

From the rule's source, abstract_without_abstract.rs.

Example from the rule's tests
abstract class Helper {tx0 reports: Helper is abstract but declares no abstract member    fun help() = 1} abstract class Shape {    abstract fun area(): Double} abstract class Screen : View() {    fun draw() {}}
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/kotlin:abstract-class-without-abstract-member" = "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/kotlin:abstract-class-without-abstract-member] reason="..."

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