require "formula" class Jslint4java < Formula homepage "http://code.google.com/p/jslint4java/" url "https://jslint4java.googlecode.com/files/jslint4java-2.0.5-dist.zip" sha1 "30a75ce48b64d2c8f0b2b86e20c0d98e6441827d" def install doc.install Dir["docs/*"] libexec.install Dir["*.jar"] bin.write_jar_script Dir[libexec/"jslint4java*.jar"].first, "jslint4java" end test do path = testpath/"test.js" path.write <<-EOS.undent var i = 0; var j = 1 // no semicolon EOS output = shell_output("#{bin}/jslint4java #{path}", 1) assert output.include?("2:10:Expected ';' and instead saw '(end)'") end end e='hidden' name='id' value='72dc48ea4d7e97c9dd3a9f469698ed77bcbdedbe'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/validate-commit-msg.js
blob: 665135a73671adb3334662f2d84154d08f023e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105