For better readability, do not put more than one statement on a single line.

## Noncompliant Code Example

    if(someCondition) doSomething();

## Compliant Solution

    if(someCondition) {
      doSomething();
    }

## Exceptions

Anonymous functions containing a single statement are ignored.

    onEvent(function() { doSomething(); });               // Compliant
    onEvent(function(p) { doSomething(); return p %2 ;}); // Noncompliant