rspec/rules/S1134/ruby/rule.adoc

30 lines
516 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,ruby]
----
def divide(numerator, denominator)
return numerator / denominator # FIXME denominator value might be 0
end
----
include::../see.adoc[]
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[]