org.sonar.l10n.java.rules.squid.LeftCurlyBraceEndLineCheck.html Maven / Gradle / Ivy
Sharing some coding conventions is a key point to make it possible for a team to efficiently collaborate. This rule make it mandatory to place open curly braces at the end of lines of code.
Noncompliant Code Example
if(condition)
{
doSomething();
}
Compliant Solution
if(condition) {
doSomething();
}
Exceptions
When blocks are inlined (left and right curly braces on the same line), no issue is triggered.
if(condition) {doSomething();}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy