Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when the brace-style is not respecting the convention setup in parameter:
Using the parameter default (1tbs):
if (condition)
{ //Noncompliant
doSomething();
} //Noncompliant
else {
doSomethingElse();
}
if (condition) { //Compliant
doSomething();
} else { //Compliant
doSomethingElse();
}
functionWithObject(
{ //Compliant
g: "someValue"
}
);
if(condition) {doSomething();} //Compliant