rspec/rules/S2436/rule.adoc

13 lines
333 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
A method or class with too many type parameters has likely aggregated too many responsibilities and should be split.
== Noncompliant Code Example
With the default parameter value of 2:
2020-06-30 12:48:07 +02:00
----
<S, T, U, V> void foo() {} // Noncompliant; not really readable
<String, Integer, Object, String>foo(); // especially on invocations
----