GoogleTruthUse¶
Issue ID GoogleTruthUse ·
Severity Warning ·
Category Correctness ·
Default off (opt-in)
Flags assertion calls into Google Truth (com.google.common.truth.Truth) when
the project has standardised on assertk. Off by default — turn it on
explicitly if you want to reject Truth in this codebase.
Why¶
Truth and assertk fill the same niche. A codebase that mixes both makes every new test a small style decision. Where the convention is assertk, this check enforces it.
Enabling¶
Example¶
Quick fix¶
Not provided. Replace the import manually — assertk.assertThat plus the
specific assertk.assertions.* calls you need.