codeclimate 0.18.2 → 0.18.3
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 +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1f5d0230d3505c837a5bcb016bff25b09446fa2
|
4
|
+
data.tar.gz: a2a8db84a62317f000cd438dc68c57e47d12aa2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87698911780b906b4900452561cf302ee1c3940e3590d6e7f6f70fe1ab146a499f9dd86e4f4cedc86bcf58848c7735d8d238f5220e971e98d78bae4327f6b911
|
7
|
+
data.tar.gz: ab5a2cb3c4556ea1a61ffec1c862a0f63dbcf6864248d3359b980114873fb1eb06e6387b7ce4dd87be084338e430d863034f40963cb2fa6a1b59b7a09530e3ab
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CC
|
2
2
|
module Analyzer
|
3
3
|
class EngineOutput
|
4
|
-
delegate :blank?, to: :
|
4
|
+
delegate :blank?, to: :chomped_output
|
5
5
|
delegate :to_json, to: :as_issue
|
6
6
|
|
7
7
|
def initialize(raw_output)
|
@@ -23,10 +23,18 @@ module CC
|
|
23
23
|
attr_accessor :raw_output
|
24
24
|
|
25
25
|
def parsed_output
|
26
|
-
JSON.parse(
|
26
|
+
JSON.parse(chomped_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
|
30
38
|
end
|
31
39
|
end
|
32
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|