sonar-go
sonar-go copied to clipboard
Rule S122: Statements should be on separate lines
Implements RSPEC-122
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 yes that should be the case, note however that this is not yet implemented.