rspec/rules/S1121/java/rule.adoc

34 lines
680 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
include::../description.adoc[]
include::../noncompliant.adoc[]
include::../compliant.adoc[]
== Exceptions
2021-01-27 13:42:22 +01:00
Assignments in ``++while++`` statement conditions, and assignments enclosed in relational expressions are ignored.
2020-06-30 12:47:33 +02:00
----
BufferedReader br = new BufferedReader(/* ... */);
String line;
while ((line = br.readLine()) != null) {...}
----
Chained assignments, including compound assignments, are ignored.
2020-06-30 12:47:33 +02:00
----
int i = j = 0;
int k = (j += 1);
result = (bresult = new byte[len]);
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]