Sharing some coding conventions is a key point to make it possible for a team to efficiently collaborate. This rule makes it mandatory to place open curly braces at the end of lines of code.

Noncompliant Code Example

if (condition)
{                                                      //Noncompliant
  doSomething();
}

Compliant Solution

if (condition) {                                   //Compliant
  doSomething();
}

Exceptions

Object literals appearing as arguments can start on their own line.

functionWithObject(
   {                                                 //Compliant
        g: "someValue"
   }
);