The lines of a text block are indented with tabs on some lines and spaces on others, so the indentation Java strips is not what it looks like

tx0/java:mixed-text-block-indentrecommendedwarningreliability/logicdepth fastbug

What it finds

Java strips from every line of a text block the indentation all its lines share, counting characters: a tab and a space count the same. When some lines are indented with tabs and others with spaces, the string keeps indentation the editor did not show, or loses some it showed.

Reported is a text block where one line starts with a tab and another with a space.

From the rule's source, mixed_text_block_indent.rs.

Turn it on, off or suppress it

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

tx0.toml
[rules]
"tx0/java:mixed-text-block-indent" = "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:mixed-text-block-indent] reason="..."

tx0 explain tx0/java:mixed-text-block-indent shows the same in the terminal. Found a false positive? Report it.