rspec/rules/S1145/ruby/rule.adoc

42 lines
529 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,ruby]
----
if true
doSomething()
end
...
if false
doSomethingElse()
end
----
=== Compliant solution
[source,ruby]
----
doSomething()
...
----
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[]