rspec/rules/S1438/swift/rule.adoc
2022-02-04 16:28:24 +00:00

31 lines
500 B
Plaintext

In Swift, the semicolon (``++;++``) is optional as a statement separator, but omitting semicolons can be confusing.
== Noncompliant Code Example
[source,swift]
----
var x = 1
----
== Compliant Solution
[source,swift]
----
var x = 1;
----
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[]