rspec/rules/S2108/description.adoc

4 lines
207 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
Fields that are never updated will always return their default values and so they should be explicitly marked constant.
2021-02-02 15:02:10 +01:00
2020-06-30 12:48:07 +02:00
This rule applies to non-constant class fields which are not set within the codebase.