class Tailor < Formula desc "Cross-platform static analyzer and linter for Swift" homepage "https://tailor.sh" url "https://github.com/sleekbyte/tailor/releases/download/v0.9.1/tailor-0.9.1.tar" sha256 "6dff0e5ce1badaaa4b3440332a06e9a883a9e81535fca5e84f4e6e04eab1f1e7" bottle :unneeded depends_on :java => "1.8+" def install libexec.install Dir["*"] bin.install_symlink libexec/"bin/tailor" man1.install libexec/"tailor.1" end test do (testpath/"Test.swift").write "import Foundation\n" system "#{bin}/tailor", testpath/"Test.swift" end end