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

2 lines
355 B
Plaintext

Overriding a method just to call the same method from the super class without performing any other actions is useless and misleading. The only time this is justified is in ``++final++`` overriding methods, where the effect is to lock in the parent class behavior. This rule ignores such overrides of ``++equals++``, ``++hashCode++`` and ``++toString++``.