requireNewlineBeforeSingleStatementsInIf

Requires newline before single if statements

Type: Boolean

Value: true

Example

"requireNewlineBeforeSingleStatementsInIf": true
Valid
if (x)
   doX();

if (x)
   doX();
else
   doY();

if (x)
   doX();
else if (v)
   doV();
else
   doY();
Invalid
if (x) doX();

if (x) doX();
else doY();

if (x) doX();
else if (v) doV();
else doY();
Rule source
Test source