This rule exists as a check in clang tidy https://clang.llvm.org/extra/clang-tidy/checks/readability/else-after-return.html It would be beneficial to have it in Sonar as well.
The nature of this rule seems to make it relevant for many other programming languages as well.