codeclimate 0.85.24 → 0.85.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/engines.yml +12 -4
- data/lib/cc/analyzer/container/result.rb +4 -4
- data/lib/cc/analyzer/container.rb +0 -2
- data/lib/cc/analyzer/formatters/html_formatter.rb +2 -6
- data/lib/cc/analyzer/issue_validations/remediation_points_validation.rb +2 -2
- data/lib/cc/analyzer/location_description.rb +1 -5
- data/lib/cc/analyzer/statsd_container_listener.rb +4 -4
- data/lib/cc/cli/prepare.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e09ed17ce9ec4365cae365db7bba58fe24249134eb4ceeb27c06f303a5bf9f5
|
4
|
+
data.tar.gz: b263fb932ae6baca90405bc6b3b073c925571816a9803fe024858389397e9fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e62725c2f9b8733053d406db3f8abfd77217b5bf800a78bb3e09966f18e05435a931a17d73ca4f10d79fd10da02477dbf0a7b5993af4d9c393fdc02c6d8249e4
|
7
|
+
data.tar.gz: 2e1903aeabc18f07f11c461f0d35c0857eaad4909bdd77d5c794e2e9e29415417069a247d9692619a47381ef7ffff7f3d4bd7fb5bac4f3c11e62c63983112101
|
data/config/engines.yml
CHANGED
@@ -114,10 +114,6 @@ foodcritic:
|
|
114
114
|
channels:
|
115
115
|
stable: codeclimate/codeclimate-foodcritic
|
116
116
|
description: Lint tool for Chef cookbooks.
|
117
|
-
git-legal:
|
118
|
-
channels:
|
119
|
-
stable: codeclimate/codeclimate-git-legal
|
120
|
-
description: License compliance and compatibility analysis.
|
121
117
|
gnu-complexity:
|
122
118
|
channels:
|
123
119
|
stable: codeclimate/codeclimate-gnu-complexity
|
@@ -197,6 +193,7 @@ requiresafe:
|
|
197
193
|
rubocop:
|
198
194
|
channels:
|
199
195
|
stable: codeclimate/codeclimate-rubocop
|
196
|
+
beta: codeclimate/codeclimate-rubocop:beta
|
200
197
|
cache-support: codeclimate/codeclimate-rubocop:cache-support
|
201
198
|
rubocop-0-42: codeclimate/codeclimate-rubocop:rubocop-0-42
|
202
199
|
rubocop-0-46: codeclimate/codeclimate-rubocop:rubocop-0-46
|
@@ -247,6 +244,17 @@ rubocop:
|
|
247
244
|
rubocop-1-7-0: codeclimate/codeclimate-rubocop:rubocop-1-7-0
|
248
245
|
rubocop-1-8-1: codeclimate/codeclimate-rubocop:rubocop-1-8-1
|
249
246
|
rubocop-1-9-1: codeclimate/codeclimate-rubocop:rubocop-1-9-1
|
247
|
+
rubocop-1-10-0: codeclimate/codeclimate-rubocop:rubocop-1-10-0
|
248
|
+
rubocop-1-11-0: codeclimate/codeclimate-rubocop:rubocop-1-11-0
|
249
|
+
rubocop-1-12-0: codeclimate/codeclimate-rubocop:rubocop-1-12-0
|
250
|
+
rubocop-1-12-1: codeclimate/codeclimate-rubocop:rubocop-1-12-1
|
251
|
+
rubocop-1-18-2: codeclimate/codeclimate-rubocop:rubocop-1-18-2
|
252
|
+
rubocop-1-18-3: codeclimate/codeclimate-rubocop:rubocop-1-18-3
|
253
|
+
rubocop-1-20-0: codeclimate/codeclimate-rubocop:rubocop-1-20-0
|
254
|
+
rubocop-1-21-0: codeclimate/codeclimate-rubocop:rubocop-1-21-0
|
255
|
+
rubocop-1-22-2: codeclimate/codeclimate-rubocop:rubocop-1-22-2
|
256
|
+
rubocop-1-22-3: codeclimate/codeclimate-rubocop:rubocop-1-22-3
|
257
|
+
rubocop-1-23-0: codeclimate/codeclimate-rubocop:rubocop-1-23-0
|
250
258
|
description: A Ruby static code analyzer, based on the community Ruby style guide.
|
251
259
|
rubymotion:
|
252
260
|
channels:
|
@@ -32,17 +32,17 @@ module CC
|
|
32
32
|
@timed_out = timed_out
|
33
33
|
end
|
34
34
|
|
35
|
-
def self.skipped(
|
35
|
+
def self.skipped(exception)
|
36
36
|
new(
|
37
37
|
exit_status: 0,
|
38
38
|
skipped: true,
|
39
|
-
stderr:
|
39
|
+
stderr: exception.message,
|
40
40
|
)
|
41
41
|
end
|
42
42
|
|
43
|
-
def merge_from_exception(
|
43
|
+
def merge_from_exception(exception)
|
44
44
|
self.exit_status = 99
|
45
|
-
self.stderr =
|
45
|
+
self.stderr = exception.message
|
46
46
|
self
|
47
47
|
end
|
48
48
|
|
@@ -209,11 +209,7 @@ module CC
|
|
209
209
|
end
|
210
210
|
|
211
211
|
def position_to_line(position)
|
212
|
-
|
213
|
-
position["line"]
|
214
|
-
else
|
215
|
-
@source_buffer.decompose_position(position["offset"]).first
|
216
|
-
end
|
212
|
+
position["line"] || @source_buffer.decompose_position(position["offset"]).first
|
217
213
|
end
|
218
214
|
end
|
219
215
|
|
@@ -368,7 +364,7 @@ module CC
|
|
368
364
|
|
369
365
|
def render
|
370
366
|
template = File.read(TEMPLATE_PATH)
|
371
|
-
ERB.new(template,
|
367
|
+
ERB.new(template, trim_mode: "-").result(binding)
|
372
368
|
end
|
373
369
|
|
374
370
|
def project_name
|
@@ -34,11 +34,7 @@ module CC
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def position_to_line(position)
|
37
|
-
|
38
|
-
position["line"]
|
39
|
-
else
|
40
|
-
@source_buffer.decompose_position(position["offset"]).first
|
41
|
-
end
|
37
|
+
position["line"] || @source_buffer.decompose_position(position["offset"]).first
|
42
38
|
end
|
43
39
|
end
|
44
40
|
end
|
@@ -39,11 +39,11 @@ module CC
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def timing(engine, metric,
|
43
|
-
statsd.timing("engines.#{metric}",
|
44
|
-
statsd.timing("engines.names.#{engine.name}.#{metric}",
|
42
|
+
def timing(engine, metric, millis)
|
43
|
+
statsd.timing("engines.#{metric}", millis)
|
44
|
+
statsd.timing("engines.names.#{engine.name}.#{metric}", millis)
|
45
45
|
if engine.respond_to?(:channel) && engine.channel
|
46
|
-
statsd.timing("engines.names.#{engine.name}.#{engine.channel}.#{metric}",
|
46
|
+
statsd.timing("engines.names.#{engine.name}.#{engine.channel}.#{metric}", millis)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
data/lib/cc/cli/prepare.rb
CHANGED
@@ -65,7 +65,7 @@ module CC
|
|
65
65
|
write_file(target_path, resp.body)
|
66
66
|
say("Wrote #{url} to #{target_path}")
|
67
67
|
else
|
68
|
-
raise FetchError, "Failed fetching #{url}: code=#{resp.code}
|
68
|
+
raise FetchError, "Failed fetching #{url}: code=#{resp.code}"
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
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.85.
|
4
|
+
version: 0.85.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -250,7 +250,7 @@ homepage: https://codeclimate.com
|
|
250
250
|
licenses:
|
251
251
|
- AGPL
|
252
252
|
metadata: {}
|
253
|
-
post_install_message:
|
253
|
+
post_install_message:
|
254
254
|
rdoc_options: []
|
255
255
|
require_paths:
|
256
256
|
- lib
|
@@ -258,15 +258,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
258
|
requirements:
|
259
259
|
- - "~>"
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: '2.
|
261
|
+
version: '2.6'
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
263
|
requirements:
|
264
264
|
- - ">="
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.0.
|
269
|
-
signing_key:
|
268
|
+
rubygems_version: 3.0.8
|
269
|
+
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Code Climate CLI
|
272
272
|
test_files: []
|