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
隨便打開一個文件,就會實時顯示提示