rspec/rules/S3699/comments-and-links.adoc

19 lines
530 B
Plaintext

=== on 22 Aug 2016, 11:24:49 Pierre-Yves Nicolas wrote:
What about using the result of the function for something else?
----
function foo() {}
bar(foo());
foo() + 42;
foo().bar(); // that one would throw a TypeError and should be caught with RSPEC-2259
----
=== on 22 Aug 2016, 15:10:43 Ann Campbell wrote:
\[~pierre-yves.nicolas] I've genericized the rule (altho not the code samples). See what you think.
cc [~yves.duboispelerin]
=== on 22 Aug 2016, 15:47:44 Pierre-Yves Nicolas wrote:
\[~ann.campbell.2] Looks good to me!