rspec/rules/S108/kotlin/rule.adoc
2023-06-15 19:03:19 +02:00

33 lines
515 B
Plaintext

:example: noncompliant.adoc
== Why is this an issue?
include::../description.adoc[]
=== Exceptions
The rule ignores:
* code blocks that contain comments
* `while` loops
[source,kotlin]
----
while (order.processNext()); // Compliant by exception
----
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[]