taylor 0.1.1 (new formula)
A tool to measure Swift code metrics. It includes ExcessiveClassLength, ExcessiveMethodLength, TooManyMethods, CyclomaticComplexity, NestedBlockDepth, NPathComplexity, ExcessiveParameterList. It can be used to display warnings in Xcode and to create reports for Jenkins and other CI platforms. Closes Homebrew/homebrew#47460. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
873d692c1b
commit
e532a7153f
1 changed files with 26 additions and 0 deletions
26
Formula/taylor.rb
Normal file
26
Formula/taylor.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
class Taylor < Formula
|
||||
desc "Measure Swift code metrics and get reports in Xcode and Jenkins."
|
||||
homepage "https://github.com/yopeso/Taylor/"
|
||||
url "https://github.com/yopeso/Taylor/archive/0.1.1.tar.gz"
|
||||
sha256 "0fd11aeed6d99bf76dbad9359d706db4ff62450f7903474771c36fd6c5e6f0a7"
|
||||
head "https://github.com/yopeso/Taylor.git"
|
||||
|
||||
depends_on :xcode => ["7.2", :build]
|
||||
|
||||
def install
|
||||
system "make", "install_homebrew", "PREFIX=#{prefix}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"Test.swift").write <<-EOS.undent
|
||||
import Foundation
|
||||
|
||||
struct Test {
|
||||
func doNothing(){
|
||||
|
||||
}
|
||||
}
|
||||
EOS
|
||||
system "#{bin}/taylor", "-p", testpath
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue