38 lines
580 B
Plaintext
38 lines
580 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
return ((3)) # Noncompliant
|
|
return ((x + 1)) # Noncompliant
|
|
x = ((y / 2)) + 1 # Noncompliant
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
return 3
|
|
return (3)
|
|
return x + 1
|
|
return (x + 1)
|
|
x = y / 2 + 1
|
|
x = (y / 2) + 1
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../highlighting.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|