Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 865 Bytes
class SonarScanner < Formula
desc "Launcher to analyze a project with SonarQube"
homepage "https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner"
url "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873.zip"
sha256 "c1903a3f4cb8ad4f0eeaf8e478b667fbe9eb6ec595db558486761404b88d0b2d"
head "https://github.com/SonarSource/sonar-scanner-cli.git"
bottle :unneeded
def install
rm_rf Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.install libexec/"bin/sonar-scanner"
etc.install libexec/"conf/sonar-scanner.properties"
ln_s etc/"sonar-scanner.properties", libexec/"conf/sonar-scanner.properties"
bin.env_script_all_files libexec/"bin/", :SONAR_SCANNER_HOME => libexec
end
test do
assert_match version.to_s, shell_output("#{bin}/sonar-scanner --version")
end
end
You can’t perform that action at this time.