Steps to reproduce:
- Have a piece of Go code with a
return
inside anif
. - Have a statement after the
if
block.
Expected results:
- The rule go:S1763 does not fire on the statement after the
if
block.
Actual results:
- NOK: The rule go:S1763 does fire on the statement after the
if
block.
Versions used:
- SonarQube 7.9.2 Community Edition
- SonarGo 1.6.0