How to use SonarLint in Eclipse

前端 未结 3 1825
礼貌的吻别
礼貌的吻别 2021-02-03 22:02

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

相关标签:
3条回答
  • 2021-02-03 22:11

    You can install SonarLint from the Eclipse Marketplace and read the official SonarLint documentation

    0 讨论(0)
  • 2021-02-03 22:24

    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.

    0 讨论(0)
  • 2021-02-03 22:29

    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)

    0 讨论(0)
提交回复
热议问题