rspec/rules/S108/kotlin/rule.adoc
2020-12-23 14:59:06 +01:00

13 lines
268 B
Plaintext

include::../description.adoc[]
include::../noncompliant.adoc[]
== Exceptions
When a block contains a comment, this block is not considered to be empty.
``while`` and unless loops are also exception to the rule.
----
while (order.processNext()); // Compliant
----