rspec/rules/S2959/rule.adoc

21 lines
395 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
The semicolon (``++;++``) is optional as a statement separator except in traditional ``++for++`` loops and when several statements are combined on one line (which is a bad practice). For cleaner code, semicolons should be omitted.
2020-06-30 12:48:07 +02:00
=== Noncompliant code example
[source,text]
----
int a; // Noncompliant
----
=== Compliant solution
[source,text]
----
int a
----