rspec/rules/S1118/howtofix.adoc

5 lines
202 B
Plaintext
Raw Normal View History

2023-10-18 10:16:10 +02:00
== How to fix it
To prevent the class from being instantiated, you should define a non-public constructor.
This will prevent the compiler from implicitly generating a public parameterless constructor.