rspec/rules/S1939/description.adoc
2021-01-27 13:42:22 +01:00

9 lines
372 B
Plaintext

An ``++extends++`` or ``++implements++`` list entry is redundant if:
* It is ``++Object++`` - all classes extend ``++Object++`` implicitly.
* It is ``++int++`` for an ``++enum++``
* It is listed multiple times.
* It is a superclass of another listed extension.
Such redundant declarations should be removed because they needlessly clutter the code and can be confusing.