warder 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warder/coffee_lint_runner.rb +4 -2
- data/lib/warder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c517f0218b6da1d2e630821743464d8189b8ed3
|
4
|
+
data.tar.gz: 1fa74a10d1ccb85997aed8eccd0b13497cbc25eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09ecec2361551e410eefb61e6f3ef9de3a6d92f05e213830ac630769b6433204519fe7983f54243437b5a51acdfc61f30d470bd28a7bdb8a01c13b6c6510fc5e
|
7
|
+
data.tar.gz: 06b39ee496ee24ea2fe853de2201ed2ada89f18358db575cc825cfde24e9b8628b4b1106ca858c564fd09f1998e832077e3f9d6e95f5e223aa8a87cbd142a4b8
|
@@ -30,8 +30,10 @@ module Warder
|
|
30
30
|
lint_results
|
31
31
|
end
|
32
32
|
|
33
|
-
def number_of_issues(
|
34
|
-
|
33
|
+
def number_of_issues(lines)
|
34
|
+
lines.split("\n").count do |line|
|
35
|
+
self.class::FAILURE_REGEXP.match(line) ? 1 : 0
|
36
|
+
end
|
35
37
|
end
|
36
38
|
end
|
37
39
|
end
|
data/lib/warder/version.rb
CHANGED