rspec/rules/S121/kotlin/rule.adoc

37 lines
518 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,kotlin]
----
if (condition) // Noncompliant
executeSomething()
----
=== Compliant solution
[source,kotlin]
----
if (condition) {
executeSomething()
}
----
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[]