@if(!\App\Services\SonarService::isConfigured())
尚未設定 SonarQube。
1. 啟動:docker run -d --name sonarqube -p 9000:9000 sonarqube:community
2. 瀏覽 http://localhost:9000,建立 User Token
3. 在 .env 加入:
SONAR_URL=http://localhost:9000
SONAR_TOKEN=your_token
@else
SonarQube 已設定:{{ config('services.sonarqube.url') }}
@endif
SonarQube 會自動偵測專案語言並執行完整程式碼品質+安全分析。掃描時間依專案大小約 2–30 分鐘。