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

org.sonar.l10n.squidjava.rules.squid.LeftCurlyBraceStartLineCheck.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 left curly braces at the beginning of lines of code.

The following code snippet illustrates this rule:

public void myMethod
{                                               // Compliant
  if(something)
  {                                             // Compliant
    executeTask();
  } else {                                      // Non-Compliant
    doSomethingElse();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy