assert is called, which the JVM skips unless assertions are enabled with -ea

tx0/kotlin:jvm-assert-callstrictwarningmaintainability/testsdepth fastsmell

What it finds

On the JVM, Kotlin's assert only runs when the program is started with -ea, which production setups rarely do. A check that matters is written with check or require. Test files are left out.

From the rule's source, assert_in_production.rs.

Example from the rule's tests
fun check(x: Int) {    assert(x > 0)tx0 reports: assert does nothing unless the JVM runs with -ea    require(x > 0)}
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:jvm-assert-call" = "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:jvm-assert-call] reason="..."

tx0 explain tx0/kotlin:jvm-assert-call shows the same in the terminal. Found a false positive? Report it.