
org.sonar.plugins.csharp.S1939.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?
An inheritance list entry is redundant if:
- It is
Object
- all classes extend Object
implicitly.
- It is
int
for an enum
- It is a base class of another listed inheritance.
Such redundant declarations should be removed because they needlessly clutter the code and can be confusing.
Noncompliant code example
public class MyClass : Object // Noncompliant
enum MyEnum : int // Noncompliant
Compliant solution
public class MyClass
enum MyEnum
© 2015 - 2025 Weber Informatics LLC | Privacy Policy