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

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

There is a newer version: 10.2.0.105762
Show newest version

Why is this an issue?

The information that an enumeration type is actually an enumeration or a set of flags should not be duplicated in its name.

Noncompliant code example

enum FooFlags // Noncompliant
{
    Foo = 1
    Bar = 2
    Baz = 4
}

Compliant solution

enum Foo
{
    Foo = 1
    Bar = 2
    Baz = 4
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy