Skip to content

Instantly share code, notes, and snippets.

@up1
Created September 28, 2026 09:23
Show Gist options
  • Select an option

  • Save up1/cacd3cbb78e0cd8dc652cf22320b1e11 to your computer and use it in GitHub Desktop.

Select an option

Save up1/cacd3cbb78e0cd8dc652cf22320b1e11 to your computer and use it in GitHub Desktop.
SonarQube CLI
# ติดตั้งบน MacOS
$brew install sonarqube-cli
# ตรวจสอบ
$sonar -v
1.8.0
# ทำการ auth ไปยัง SonarQube server ได้ทั้ง on-cloud และ on-prem ที่ติดตั้งเอง
$sonar auth login
# ทำการ scan ระบบงาน
$sonar analyze
$sonar analyze secret
# ทำการ scan แต่ละไฟล์ได้เลย
$sonar analyze --file src/auth.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment