Help---eclipse marletplace
搜索sonar
点击安装
一直next
安装过程中如果出现下面的错误
打开Window—preferences --- install/update
把用红框圈住的选项前面的勾取消 apply and close
重复安装操作即可
使用
-----------------------------------------------------------------------------------------------------------------
在sonarqube平台新建项目
右键项目—sonarLint—bind to sonarQube or sonarCloud
选择sonarQube ---next
填写sonarqube server 的url ---next
选择username+password ---next
填写 username 与 password (默认账号密码是admin admin)
一直next 最后finish ---add
选择项目
填入sonarqube平台的key
Finish
Window – show view – other --- sonarLint on-the-fly
随便打开一个文件,就会实时显示提示