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.7.0/tailor-0.7.0.tar" sha256 "784cd82f056f8da6b0290d7fc5a05dee915275d56d65dc168f9ed222329cfc30" 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