aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJosh Hagins2015-02-25 15:57:07 -0500
committerMike McQuaid2015-02-25 22:05:06 +0000
commitdc66898c88252d851ccc079f1f6ba6ecbc9f5458 (patch)
tree8574a9ad156d5c25a934e4c1f73013972ac55770 /Library/Formula
parentc5709064d4c66de739481b9ca9f37ea8cfc9f719 (diff)
downloadhomebrew-dc66898c88252d851ccc079f1f6ba6ecbc9f5458.tar.bz2
checkstyle 6.3
Closes #37197. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/checkstyle.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/checkstyle.rb b/Library/Formula/checkstyle.rb
index ed3aaf64b..0e13a8033 100644
--- a/Library/Formula/checkstyle.rb
+++ b/Library/Formula/checkstyle.rb
@@ -1,9 +1,7 @@
-require "formula"
-
class Checkstyle < Formula
homepage "http://checkstyle.sourceforge.net/"
- url "https://downloads.sourceforge.net/project/checkstyle/checkstyle/6.2/checkstyle-6.2-bin.tar.gz"
- sha1 "5b92798c55cbc8cf87f1435a2fc64e04d50a6648"
+ url "https://downloads.sourceforge.net/project/checkstyle/checkstyle/6.3/checkstyle-6.3-bin.tar.gz"
+ sha1 "13cc70785a4208f854677726ede5518997122224"
def install
libexec.install "checkstyle-#{version}-all.jar"
@@ -14,7 +12,7 @@ class Checkstyle < Formula
path = testpath/"foo.java"
path.write "public class Foo{ }\n"
- output = `#{bin}/checkstyle -c /sun_checks.xml -r #{path}`
+ output = `#{bin}/checkstyle -c /sun_checks.xml #{path}`
errors = output.split("\n").select { |line| line.start_with?(path) }
assert errors.include?("#{path}:1:17: '{' is not preceded with whitespace.")
assert_equal errors.size, $?.exitstatus