rspec/rules/S122/go/rule.adoc

23 lines
286 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
foo(); bar() // Noncompliant
----
== Compliant Solution
----
foo()
bar()
----
== Exceptions
Control flow statements with a single nested statement are ignored.
----
if condition { doSomething() } // Compliant
----