Pattern: Use of space after !
Issue: -
Checks that there are no whitespace characters directly after the not (!
) operator.
def negatedValue = ! value //violation
if (! items.empty()) { println "not empty" } //violation
Pattern: Use of space after !
Issue: -
Checks that there are no whitespace characters directly after the not (!
) operator.
def negatedValue = ! value //violation
if (! items.empty()) { println "not empty" } //violation