Shared coding conventions make it possible to collaborate efficiently. This rule makes it mandatory to place the open curly brace at the beginning of a line.
function myMethod() { // Noncompliant
if(something) { // Noncompliant
executeTask();
} else { //Noncompliant
doSomethingElse();
}
}
function myMethod()
{
if(something)
{
executeTask();
} else
{
doSomethingElse();
}
}