A sonar plugin deploying a rule against java 'var' usage
Put the plugin jar in /opt/sonarqube/extensions/plugins/
then restart SonarQube.
In the Rules
tab, you should find the No Var
rule:
Now you can enable it on the quality profiles of your choice.