codeclimate 0.85.24 → 0.85.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 13a52571994502f65ac3c7897b2219fe00b8d1006a7211111a404380108f3402
4
- data.tar.gz: e911519f85f0cd60f5b1af7222118cdb230618d0245d5e6c16566bb987f62ce8
2
+ SHA1:
3
+ metadata.gz: 01870cd03d7d8504aea09707be81b826d8167e5c
4
+ data.tar.gz: 53c86f92d63a86ae5662df20c238676bc993430e
5
5
  SHA512:
6
- metadata.gz: 3c4a2bd2e948e6d889debe47039f16dc0a71cf25aafcab8c77adffe9f353266692f3b84d4b7ad7e07e1669e263458c896d8f27b86ed75bd7a803e5a7885411cf
7
- data.tar.gz: f12b0295b6435a987ce5f6e35db166bde8d3934de4e3a19c930d6c1309cf234ee58a7ce4ee3e75fb0ffcdd0fcd78604c2da042b4f9ffaec94bc1d73cf835d2af
6
+ metadata.gz: a4f7617e2d41700e05961787d82db3002c1e47b976a44f779c32087bc3e68b60fde0969c6c549818408e2a8fe1f7afd3d0cf69ef6f22b15fc721491d474eca23
7
+ data.tar.gz: f21d3aa5e3f18b5dbd54ccbdfe0087c9be9f6f99392ff2cc860159e7f0e51de510125a11aaa168e2c8cf02e28e82a68a8bdacd3fbc81c2f9a3c4c68f90c34675
data/config/engines.yml CHANGED
@@ -247,6 +247,16 @@ rubocop:
247
247
  rubocop-1-7-0: codeclimate/codeclimate-rubocop:rubocop-1-7-0
248
248
  rubocop-1-8-1: codeclimate/codeclimate-rubocop:rubocop-1-8-1
249
249
  rubocop-1-9-1: codeclimate/codeclimate-rubocop:rubocop-1-9-1
250
+ rubocop-1-10-0: codeclimate/codeclimate-rubocop:rubocop-1-10-0
251
+ rubocop-1-11-0: codeclimate/codeclimate-rubocop:rubocop-1-11-0
252
+ rubocop-1-12-0: codeclimate/codeclimate-rubocop:rubocop-1-12-0
253
+ rubocop-1-12-1: codeclimate/codeclimate-rubocop:rubocop-1-12-1
254
+ rubocop-1-18-2: codeclimate/codeclimate-rubocop:rubocop-1-18-2
255
+ rubocop-1-18-3: codeclimate/codeclimate-rubocop:rubocop-1-18-3
256
+ rubocop-1-20-0: codeclimate/codeclimate-rubocop:rubocop-1-20-0
257
+ rubocop-1-21-0: codeclimate/codeclimate-rubocop:rubocop-1-21-0
258
+ rubocop-1-22-2: codeclimate/codeclimate-rubocop:rubocop-1-22-2
259
+ rubocop-1-22-3: codeclimate/codeclimate-rubocop:rubocop-1-22-3
250
260
  description: A Ruby static code analyzer, based on the community Ruby style guide.
251
261
  rubymotion:
252
262
  channels:
@@ -32,17 +32,17 @@ module CC
32
32
  @timed_out = timed_out
33
33
  end
34
34
 
35
- def self.skipped(ex)
35
+ def self.skipped(exception)
36
36
  new(
37
37
  exit_status: 0,
38
38
  skipped: true,
39
- stderr: ex.message,
39
+ stderr: exception.message,
40
40
  )
41
41
  end
42
42
 
43
- def merge_from_exception(ex)
43
+ def merge_from_exception(exception)
44
44
  self.exit_status = 99
45
- self.stderr = ex.message
45
+ self.stderr = exception.message
46
46
  self
47
47
  end
48
48
 
@@ -1,6 +1,4 @@
1
1
  require "posix/spawn"
2
- require "thread"
3
-
4
2
  require "cc/analyzer/container/result"
5
3
 
6
4
  module CC
@@ -209,11 +209,7 @@ module CC
209
209
  end
210
210
 
211
211
  def position_to_line(position)
212
- if position["line"]
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, nil, "-").result(binding)
367
+ ERB.new(template, trim_mode: "-").result(binding)
372
368
  end
373
369
 
374
370
  def project_name
@@ -16,8 +16,8 @@ module CC
16
16
  @remediation_points ||= object["remediation_points"]
17
17
  end
18
18
 
19
- def positive_integer?(x)
20
- x.is_a?(Integer) && x >= 0
19
+ def positive_integer?(points)
20
+ points.is_a?(Integer) && points >= 0
21
21
  end
22
22
  end
23
23
  end
@@ -34,11 +34,7 @@ module CC
34
34
  end
35
35
 
36
36
  def position_to_line(position)
37
- if position["line"]
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, ms)
43
- statsd.timing("engines.#{metric}", ms)
44
- statsd.timing("engines.names.#{engine.name}.#{metric}", ms)
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}", ms)
46
+ statsd.timing("engines.names.#{engine.name}.#{engine.channel}.#{metric}", millis)
47
47
  end
48
48
  end
49
49
  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.85.24
4
+ version: 0.85.25
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: 2021-05-03 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -96,22 +96,22 @@ dependencies:
96
96
  name: rainbow
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: 2.0.0
102
99
  - - "~>"
103
100
  - !ruby/object:Gem::Version
104
101
  version: '2.0'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 2.0.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: 2.0.0
112
109
  - - "~>"
113
110
  - !ruby/object:Gem::Version
114
111
  version: '2.0'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 2.0.0
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: redcarpet
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -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,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
258
  requirements:
259
259
  - - "~>"
260
260
  - !ruby/object:Gem::Version
261
- version: '2.5'
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.3
269
- signing_key:
268
+ rubyforge_project:
269
+ rubygems_version: 2.6.13
270
+ signing_key:
270
271
  specification_version: 4
271
272
  summary: Code Climate CLI
272
273
  test_files: []