I’m using some 10.0 of SonarQube with SonarScanner for C/C++ sources, and quite likely Java would be same.
It nags about bad indentation in a piece of code like the following:
if (...) { ...; }
else
-> if (...) { ...; }
else ...
Just assuming that you can reproduce it in any current version, I wonder,
if the special case of equally-indented-if following next line after else,
could be excepted from this rule.
Except for that special case, the indentation rule is just fine.
PS: in case you cannot reproduce it easily, just discard this comment.