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

org.sonar.plugins.csharp.S1659.html Maven / Gradle / Ivy

Why is this an issue?

Declaring multiple variable on one line is difficult to read.

Noncompliant code example

class MyClass
{
  private int a, b; // Noncompliant

  public void Method()
  {
    int c, d; // Noncompliant
  }
}

Compliant solution

class MyClass
{
  private int a;
  private int b;

  public void Method()
  {
    int c;
    int d;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy