rspec/rules/S2094/swift/rule.adoc

11 lines
372 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
There is no good excuse for an empty class. If it's being used simply as a common extension point, it should be replaced with a ``++protocol++``. If it was stubbed in as a placeholder for future development it should be fleshed-out. In any other case, it should be eliminated.
2020-06-30 12:48:07 +02:00
include::../noncompliant.adoc[]
== Compliant Solution
----
public protocol Nothing {
}
----