codeclimate 0.18.4 → 0.18.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cc/analyzer/engine_output.rb +2 -10
- 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: 8116389e470e296f7f98174b3b6d3eb7186faabc
|
4
|
+
data.tar.gz: f1c2696bcbc2c25841bff50d0e30444bef331643
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a6ec5214ffabae7de2923a5c372120b4bfd2ad000e525c25f270b702fc8c3b19e5b59804b8bc28e057305ca4a4672ea5e52544bc915a8edeb35c12e8003791
|
7
|
+
data.tar.gz: c1f973ad6fb3ffea6a41259608542c703e687735529b9e2b1c7bf6e859a310b5e4aa4095acc4323b0fa9df64e8f374760535def7c9987686a54f5be429a21330
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CC
|
2
2
|
module Analyzer
|
3
3
|
class EngineOutput
|
4
|
-
delegate :blank?, to: :
|
4
|
+
delegate :blank?, to: :raw_output
|
5
5
|
delegate :to_json, to: :as_issue
|
6
6
|
|
7
7
|
def initialize(raw_output)
|
@@ -23,18 +23,10 @@ module CC
|
|
23
23
|
attr_accessor :raw_output
|
24
24
|
|
25
25
|
def parsed_output
|
26
|
-
JSON.parse(
|
26
|
+
JSON.parse(raw_output)
|
27
27
|
rescue JSON::ParserError
|
28
28
|
nil
|
29
29
|
end
|
30
|
-
|
31
|
-
# Docker can put start-of-text characters when logging,
|
32
|
-
# which show up as issues. Remove them here if they are at either end
|
33
|
-
# of the output and then check blankness.
|
34
|
-
# https://github.com/docker/docker/issues/7375
|
35
|
-
def chomped_output
|
36
|
-
@chomped_output ||= raw_output.chomp("\u0002")
|
37
|
-
end
|
38
30
|
end
|
39
31
|
end
|
40
32
|
end
|