S1939 — Inheritance list should not be redundant

Language
C#
Type
Code smell
Severity
Minor
Tags
clumsy

Why is this an issue?

An inheritance list entry is redundant if:

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

↑ Back to top