rspec/rules/S1815/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

24 lines
797 B
Plaintext

== Why is this an issue?
Protected methods that are never used by any of the classes in the same project are suspected to be dead code. Dead code is unnecessary, inoperative code that should be removed. Removing dead code makes maintenance easier by decreasing the size of the maintained code base, thereby making it easier to understand the program and preventing the introduction of bugs.
Unused protected methods are not considered dead code in the following cases:
* Protected methods which override a parent class method.
* Protected methods of an abstract class.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove the protected method "XXXX" because it doesn't seem to be used.
endif::env-github,rspecator-view[]