For better readability, do not put more than one statement on a single line.
foo(); bar() // Noncompliant
foo() bar()
Control flow statements with a single nested statement are ignored.
if condition { doSomething() } // Compliant