把sonarQube安裝好後再下載sonar scanner完成後 把要掃描的原碼丟進sonar scanner內進行掃描 ![](https://hackmd.io/_uploads/rkXQdNedn.png) 先到你的網頁/ip/:9000 ![](https://hackmd.io/_uploads/B1LLdVlun.png) 自訂自己要的項目 ![](https://hackmd.io/_uploads/ByZjd4xO3.png) 輸入專案名子 ![](https://hackmd.io/_uploads/Sy6xY4gdh.png) 然後產生一個token ![](https://hackmd.io/_uploads/S1T7YNe_2.png) 選擇自己的系統資料類型複製下面的程式碼 ![](https://hackmd.io/_uploads/Skl2tVgu3.png) 記得要先把檔案放進sonar scanner的資料夾內 在程式碼前面加上./bin/按下執行 就會開始跑掃描 完成後就可以回去網頁看報告 ![](https://hackmd.io/_uploads/SkZO54x_2.png) 也可以點進去看細項 ![](https://hackmd.io/_uploads/HkVFc4ed2.png)