问题
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.
But as so far I couldn't find any good documentation to how to use SonarLint. How to check java project using that. I only got touch with Youtube videos. But sadly they are really really unclear to me.
If can direct me to a good place to gain clear knowledge on this I'll be really grateful to you.
回答1:
You can install SonarLint from the Eclipse Marketplace and read the official SonarLint documentation
回答2:
If you want to analyze a complete project with the Sonar Lint plugin, you can trick the plugin by searching all Java files with a text editor and replacing "package" with " package". This will cause SVN or git changes. Open the "Sonar Lint Report" view and run the analysis on the "Current project". Afterwards, revert all your SVN changes. Do not run the analysis again as the Sonar Lint Plugin only analyzes changed files.
I found this helpful when I had no project on the Sonar server available.
回答3:
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)
来源:https://stackoverflow.com/questions/34939992/how-to-use-sonarlint-in-eclipse