Below tools should be installed on your Mac
xcode-select --install
brew cask uninstall oclint
brew tap oclint/formulae
brew install oclint
sudo gem install xcpretty
sudo gem install slather
brew install sonar-scanner
brew install swiftlint
- Install all dependencies from above
- Configure
sh Mac/SampleProject/sonar-project.properties
according to your project - Run server
sh Mac//SonarQubeBundle/Server/bin/macosx-universal-64/sonar.sh
- Run script
sh Mac/SampleProject/run-sonar-swift.sh
You can replace SampleProject with your own project after understanding the flow