From 522b253ff1669797a089be9d6ab3dcf5d949b32d Mon Sep 17 00:00:00 2001 From: adam-moss Date: Wed, 16 Nov 2016 06:21:19 +0000 Subject: [PATCH] sonarlint 2.0 (new formula) (#6948) --- Formula/homebrew/core/sonarlint.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/homebrew/core/sonarlint.rb diff --git a/Formula/homebrew/core/sonarlint.rb b/Formula/homebrew/core/sonarlint.rb new file mode 100644 index 0000000000..cdfb800cc2 --- /dev/null +++ b/Formula/homebrew/core/sonarlint.rb @@ -0,0 +1,22 @@ +class Sonarlint < Formula + desc "provides pre-commit feedback on quality issues injected into code." + homepage "http://www.sonarlint.org/commandline/index.html" + url "https://bintray.com/sonarsource/Distribution/download_file?file_path=sonarlint-cli%2Fsonarlint-cli-2.0.zip" + sha256 "dafbaba032330f898e0f750f80ac212260cf825070dced1c2376c07c9d34c007" + + bottle :unneeded + + depends_on :java => "1.8+" + + def install + rm_f Dir["bin/*.bat"] + + libexec.install Dir["*"] + + bin.write_exec_script libexec/"bin/sonarlint" + end + + test do + system "#{bin}/sonarlint", "--version" + end +end