Skip to content

Files

Latest commit

 

History

History
18 lines (11 loc) · 454 Bytes

SpaceAfterFor.md

File metadata and controls

18 lines (11 loc) · 454 Bytes

Pattern: Malformed space after for

Issue: -

Description

Checks that there is exactly one space (blank) after the for keyword and before the opening parenthesis.

Examples of violations:

for(name in names) { }                  // violation
for  (int i=0; i < 10; i++) { }         // violation

Further Reading