rspec/rules/S2998/rule.adoc

23 lines
532 B
Plaintext
Raw Normal View History

A statement without side effects, such as creating an object without assigning its reference to a variable, is useless, and must have been a mistake on the developer's part.
== See
* https://cwe.mitre.org/data/definitions/482[MITRE, CWE-482] - Comparing instead of Assigning
2022-01-25 18:36:46 +01:00
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]