SonarLint 插件离线安装包:org.sonarlint.eclipse.site-3.6.0.201806071228-RELEASE.zip
下载地址:https://bintray.com/sonarsource/SonarLint-for-Eclipse/releases
第一步:
第二步:
第三步:点击next后发现特别慢时,可以把“Contact all update sites during install to find required software”(寻找指定的软件前先访问所有更新站点)前面的勾去掉,
安装成功
打开sonarQube servers(需要安装sonarQube)
第一步:new-->server connection
第二部:
分析整个项目
右击需要扫描的项目,选择sonarLint->Bind to a sonarQube project
分析指定类:
右击需要类,选择sonarLint->analyze