There was another issue with this rule, it reported two issues in the following case:
... some code ... } ... some code ...
Once because there was some code before the }, on the same line,
and once because there was some code after the }, one the same line.
This also has to be fixed.