rspec/rules/S1230/rule.adoc

15 lines
419 B
Plaintext
Raw Normal View History

== Why is this an issue?
The == and != operators do type coercion before comparing. This is bad because it causes ' \t\r\n' == 0 to be true. This can mask type errors. It is best to not use == and != and to always use the more reliable === and !== operators instead.
2022-01-25 18:36:46 +01:00
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== duplicates: S1440
2022-01-25 18:36:46 +01:00
endif::env-github,rspecator-view[]