rspec/rules/S1067/swift/rule.adoc
Alban Auzeill 2c306d110e Fix code block ambiguity with old header style
Ensure blank line before list and clean the one leading space
2020-06-30 17:16:12 +02:00

16 lines
306 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
With the default threshold value 3
----
if ((condition1 && condition2) || (condition3 && condition4)) && condition5 { ... }
----
== Compliant Solution
----
if (myFirstCondition() || mySecondCondition()) && myLastCondition() { ... }
----