I was assigned to use SonarQube for code quality. But while I\'m downloading it\'s plugin to Eclipse I understood it is deprecated and new one is SonarLint.
You can install SonarLint as described by Sumit Singh.
Then you can link your project to a sonarqube server as described here
After that just make a change and save it. Sonarlint will automatically analyze the project for you. Cause analyzing is enabled by default (as far as i know)