1- Run:
brew install sonar
brew install sonar-scanner
Add to bash_profile
nano ~/.bash_profile
And paste:
export SONAR_VERSION=4.6.2.2472_1
export SONAR_HOME="/usr/local/Cellar/sonar-scanner/${SONAR_VERSION}/libexec"
export SONAR="${SONAR_HOME}/bin"
export PATH="${SONAR}:${PATH}"
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.sonarqube.plist
http://localhost:9000