codeclimate 0.70.1 → 0.70.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43b8eb568945ac597a2ea87cfac26adb2d1dd25e
|
|
4
|
+
data.tar.gz: 843918da3dfd781e466b097008ece5294fd2fc57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff46232dc6b0213e5bf56bef57b3618942a8b8701b48878386084a196075f489fc4eb714f7c32635c7e155b60f5d97ea0f48b13530c0a1c173084741dbebbd3d
|
|
7
|
+
data.tar.gz: 3e5c48f0699df438f5160aeb628f630a364cab60796802054b00cda39c911a7107fb267d2b4829fefb92a639776341333e0ac6649f294d73e76f628156f00eeb
|
|
@@ -6,24 +6,24 @@ module CC
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def started(engine, _details)
|
|
9
|
-
increment(engine.name, "started")
|
|
9
|
+
increment(engine.name, engine.channel, "started")
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def finished(engine, _details, result)
|
|
13
|
-
timing(engine.name, "time", result.duration)
|
|
14
|
-
increment(engine.name, "finished")
|
|
13
|
+
timing(engine.name, engine.channel, "time", result.duration)
|
|
14
|
+
increment(engine.name, engine.channel, "finished")
|
|
15
15
|
|
|
16
16
|
if result.timed_out?
|
|
17
|
-
timing(engine.name, "time", result.duration)
|
|
18
|
-
increment(engine.name, "result.error")
|
|
19
|
-
increment(engine.name, "result.error.timeout")
|
|
17
|
+
timing(engine.name, engine.channel, "time", result.duration)
|
|
18
|
+
increment(engine.name, engine.channel, "result.error")
|
|
19
|
+
increment(engine.name, engine.channel, "result.error.timeout")
|
|
20
20
|
elsif result.maximum_output_exceeded?
|
|
21
|
-
increment(engine.name, "result.error")
|
|
22
|
-
increment(engine.name, "result.error.output_exceeded")
|
|
21
|
+
increment(engine.name, engine.channel, "result.error")
|
|
22
|
+
increment(engine.name, engine.channel, "result.error.output_exceeded")
|
|
23
23
|
elsif result.exit_status.nonzero?
|
|
24
|
-
increment(engine.name, "result.error")
|
|
24
|
+
increment(engine.name, engine.channel, "result.error")
|
|
25
25
|
else
|
|
26
|
-
increment(engine.name, "result.success")
|
|
26
|
+
increment(engine.name, engine.channel, "result.success")
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -31,14 +31,14 @@ module CC
|
|
|
31
31
|
|
|
32
32
|
attr_reader :statsd
|
|
33
33
|
|
|
34
|
-
def increment(name, metric)
|
|
34
|
+
def increment(name, channel, metric)
|
|
35
35
|
statsd.increment("engines.#{metric}")
|
|
36
|
-
statsd.increment("engines.names.#{name}.#{metric}")
|
|
36
|
+
statsd.increment("engines.names.#{name}.#{channel}.#{metric}")
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
def timing(name, metric, ms)
|
|
39
|
+
def timing(name, channel, metric, ms)
|
|
40
40
|
statsd.timing("engines.#{metric}", ms)
|
|
41
|
-
statsd.timing("engines.names.#{name}.#{metric}", ms)
|
|
41
|
+
statsd.timing("engines.names.#{name}.#{channel}.#{metric}", ms)
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
end
|
|
@@ -46,7 +46,7 @@ module CC
|
|
|
46
46
|
validate_key_type("config", [String, Hash])
|
|
47
47
|
validate_key_type("exclude_patterns", Array)
|
|
48
48
|
if legacy?
|
|
49
|
-
|
|
49
|
+
validate_exclude_paths
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
validate_checks
|
|
@@ -77,6 +77,13 @@ module CC
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
def validate_exclude_paths
|
|
81
|
+
validate_key_type("exclude_paths", [Array, String])
|
|
82
|
+
if data.key?("exclude_paths")
|
|
83
|
+
warnings << "'exclude_paths' has been deprecated, please use 'exclude_patterns' instead"
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
80
87
|
def validate_exclude_fingerprints
|
|
81
88
|
validate_key_type("exclude_fingerprints", Array)
|
|
82
89
|
if data.key?("exclude_fingerprints")
|
|
@@ -15,7 +15,7 @@ module CC
|
|
|
15
15
|
validate_checks
|
|
16
16
|
validate_exclude_pattern("exclude_patterns")
|
|
17
17
|
|
|
18
|
-
warn_unrecognized_keys(%w[prepare plugins exclude_patterns version])
|
|
18
|
+
warn_unrecognized_keys(%w[checks prepare plugins exclude_patterns version])
|
|
19
19
|
rescue ::JSON::ParserError => ex
|
|
20
20
|
errors << "Unable to parse: #{ex.message}"
|
|
21
21
|
end
|
|
@@ -24,7 +24,7 @@ module CC
|
|
|
24
24
|
validate_exclude_pattern("exclude_paths", legacy: true)
|
|
25
25
|
|
|
26
26
|
deprecated_key_warnings
|
|
27
|
-
warn_unrecognized_keys(%w[prepare engines plugins ratings languages exclude_paths exclude_patterns version])
|
|
27
|
+
warn_unrecognized_keys(%w[checks prepare engines plugins ratings languages exclude_paths exclude_patterns version])
|
|
28
28
|
rescue Psych::SyntaxError => ex
|
|
29
29
|
errors << "Unable to parse: #{ex.message}"
|
|
30
30
|
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.70.
|
|
4
|
+
version: 0.70.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code Climate
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|