sonar-go icon indicating copy to clipboard operation
sonar-go copied to clipboard

Rule S122: Statements should be on separate lines

Open alban-auzeill opened this issue 6 years ago • 2 comments

Implements RSPEC-122

alban-auzeill avatar Feb 27 '18 13:02 alban-auzeill

If I understand correctly. The example below should consider as noncompliant right?

if cond { return x }

And this should consider as noncompliant also:

// statements
a(); b(); c()

wingyplus avatar May 23 '19 07:05 wingyplus

@wingyplus yes that should be the case, note however that this is not yet implemented.

saberduck avatar May 23 '19 13:05 saberduck