
org.sonar.plugins.csharp.S1109.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonarlint-omnisharp-plugin Show documentation
Show all versions of sonarlint-omnisharp-plugin Show documentation
Code Analyzer based on Omnisharp
Why is this an issue?
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