rspec/rules/S108/kotlin/rule.adoc

33 lines
515 B
Plaintext
Raw Normal View History

2023-06-15 19:03:19 +02:00
:example: noncompliant.adoc
== Why is this an issue?
2020-06-30 10:16:44 +02:00
include::../description.adoc[]
=== Exceptions
2020-06-30 10:16:44 +02:00
2023-06-15 19:03:19 +02:00
The rule ignores:
2021-02-02 15:02:10 +01:00
2023-06-15 19:03:19 +02:00
* code blocks that contain comments
* `while` loops
2023-06-15 19:03:19 +02:00
[source,kotlin]
2020-06-30 10:16:44 +02:00
----
2023-06-15 19:03:19 +02:00
while (order.processNext()); // Compliant by exception
2020-06-30 10:16:44 +02:00
----
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[]