Skip to content

Files

Latest commit

 

History

History
19 lines (11 loc) · 423 Bytes

SpaceAfterNotOperator.md

File metadata and controls

19 lines (11 loc) · 423 Bytes

Pattern: Use of space after !

Issue: -

Description

Checks that there are no whitespace characters directly after the not (!) operator.

Examples

def negatedValue = ! value //violation

if (! items.empty()) { println "not empty" } //violation

Further Reading