All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.java.rules.squid.LeftCurlyBraceEndLineCheck.html Maven / Gradle / Ivy

There is a newer version: 8.9.0.37768
Show newest version

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