It is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead.
if (!(a == 2)) { ... } // Noncompliant val b = !(i < 10) // Noncompliant
if (a != 2) { ... } val b = (i >= 10)