hissain / sonarqube-bundle

This project contains bundles (sonar server, sonar scanner, plugin, property file, sample apps) for configuring SonarQube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift Prerequisites

Dependencies

Below tools should be installed on your Mac

xcode-select

xcode-select --install

OCLint

brew cask uninstall oclint
brew tap oclint/formulae
brew install oclint

xcpretty

sudo gem install xcpretty

slather

sudo gem install slather

sonar-scanner

brew install sonar-scanner

swiftlint

brew install swiftlint

Swift Run Script

  1. Install all dependencies from above
  2. Configure sh Mac/SampleProject/sonar-project.properties according to your project
  3. Run server sh Mac//SonarQubeBundle/Server/bin/macosx-universal-64/sonar.sh
  4. Run script sh Mac/SampleProject/run-sonar-swift.sh

You can replace SampleProject with your own project after understanding the flow

Output

SonarQube Summary

SonarQube Details

About

This project contains bundles (sonar server, sonar scanner, plugin, property file, sample apps) for configuring SonarQube


Languages

Language:Shell 53.1%Language:HTML 34.6%Language:Swift 6.2%Language:Batchfile 5.9%Language:Ruby 0.3%