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

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

The newest version!

Shared coding conventions make it possible for a team to efficiently collaborate. This rule makes it mandatory to place a close curly brace at the beginning of a line.

Noncompliant Code Example

if(condition) {
  doSomething();} 

Compliant Solution

if(condition) {
  doSomething();
} 

Exceptions

When blocks are inlined (open and close curly braces on the same line), no issue is triggered.

if(condition) {doSomething();} 




© 2015 - 2025 Weber Informatics LLC | Privacy Policy