codeclimate 0.85.22 → 0.85.26

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: dec954c1477d7524ac59bb5f317af30a868c52c353d66b8c57c3c1be58f9239d
4
- data.tar.gz: f6149c9ca4f3414ac8b63047bddd6a32ea6144905a61fa6e5748252aa5487ed4
2
+ SHA1:
3
+ metadata.gz: 5854cc7e71a871525f9b73eb22c8a386b5c6c3e0
4
+ data.tar.gz: 8f09ab442d948a8c32ab70fd0173ec9bae2435a6
5
5
  SHA512:
6
- metadata.gz: 7d1c9237c1a8bb5eea7b0d25b3fc6faa7d6377301d4fddc365acbfc0aa27007120c9a71da8120a041d27dc2782867da492c9d15ad26ab01bf840321fe75dad45
7
- data.tar.gz: 70b6e2262c037333d0c05dbc1e48cb193eead5ae2793025a48f2b375c0c1f6687377d8739b13c450f92b0332dfe899f8640443dbbb30b8934ea28b824ea836f6
6
+ metadata.gz: fe22fcc89933f7b2d6ae9d2186c1c6e5ca7379641e715bf6e52b1378c54ecda7c10d318a88122c9de9b0a8b23c7eb4df2552b949a89af3951d1e3ae46599743a
7
+ data.tar.gz: 092e75cd097aa0fb2e8154fa8e546e3adfb7a2add792825c65e42dd73b5f4ac9709647add731263326d12acf17151b81f29176707c1af8453877665e12ef7c31
data/bin/release CHANGED
@@ -19,8 +19,11 @@ git reset --hard origin/master
19
19
  printf "RELEASE %s\n" "$version"
20
20
  bundle check || bundle install
21
21
 
22
- printf "The stdout will eventually hang with no message."
23
- printf "It is waiting for TFA code input, type it in and hit enter!"
22
+ printf "############################################################################"
23
+ printf "# The stdout will eventually hang with no message. #"
24
+ printf "# It is waiting for RubyGems TFA code input, type it in and hit enter! #"
25
+ printf "############################################################################"
26
+ printf "\n\n"
24
27
  rake release
25
28
 
26
29
  docker build --rm --tag codeclimate/codeclimate .
data/config/engines.yml CHANGED
@@ -11,6 +11,10 @@ bandit:
11
11
  channels:
12
12
  stable: codeclimate/codeclimate-bandit
13
13
  description: A tool designed to find common security issues in Python code.
14
+ black:
15
+ channels:
16
+ stable: codeclimate/codeclimate-black
17
+ description: black is a tool to check your Python code is formatted in accordance with black style guide.
14
18
  brakeman:
15
19
  channels:
16
20
  stable: codeclimate/codeclimate-brakeman
@@ -193,6 +197,7 @@ requiresafe:
193
197
  rubocop:
194
198
  channels:
195
199
  stable: codeclimate/codeclimate-rubocop
200
+ beta: codeclimate/codeclimate-rubocop:beta
196
201
  cache-support: codeclimate/codeclimate-rubocop:cache-support
197
202
  rubocop-0-42: codeclimate/codeclimate-rubocop:rubocop-0-42
198
203
  rubocop-0-46: codeclimate/codeclimate-rubocop:rubocop-0-46
@@ -242,6 +247,18 @@ rubocop:
242
247
  rubocop-0-92: codeclimate/codeclimate-rubocop:rubocop-0-92
243
248
  rubocop-1-7-0: codeclimate/codeclimate-rubocop:rubocop-1-7-0
244
249
  rubocop-1-8-1: codeclimate/codeclimate-rubocop:rubocop-1-8-1
250
+ rubocop-1-9-1: codeclimate/codeclimate-rubocop:rubocop-1-9-1
251
+ rubocop-1-10-0: codeclimate/codeclimate-rubocop:rubocop-1-10-0
252
+ rubocop-1-11-0: codeclimate/codeclimate-rubocop:rubocop-1-11-0
253
+ rubocop-1-12-0: codeclimate/codeclimate-rubocop:rubocop-1-12-0
254
+ rubocop-1-12-1: codeclimate/codeclimate-rubocop:rubocop-1-12-1
255
+ rubocop-1-18-2: codeclimate/codeclimate-rubocop:rubocop-1-18-2
256
+ rubocop-1-18-3: codeclimate/codeclimate-rubocop:rubocop-1-18-3
257
+ rubocop-1-20-0: codeclimate/codeclimate-rubocop:rubocop-1-20-0
258
+ rubocop-1-21-0: codeclimate/codeclimate-rubocop:rubocop-1-21-0
259
+ rubocop-1-22-2: codeclimate/codeclimate-rubocop:rubocop-1-22-2
260
+ rubocop-1-22-3: codeclimate/codeclimate-rubocop:rubocop-1-22-3
261
+ rubocop-1-23-0: codeclimate/codeclimate-rubocop:rubocop-1-23-0
245
262
  description: A Ruby static code analyzer, based on the community Ruby style guide.
246
263
  rubymotion:
247
264
  channels:
@@ -297,6 +314,7 @@ structure:
297
314
  description: Performs structural checks on code.
298
315
  stylelint:
299
316
  channels:
317
+ beta: codeclimate/codeclimate-stylelint:beta
300
318
  stable: codeclimate/codeclimate-stylelint
301
319
  description: A mighty, modern CSS linter.
302
320
  swiftlint:
@@ -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,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.85.22
4
+ version: 0.85.26
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-01-22 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 5.1.3
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '5.2'
19
+ version: 5.2.3
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 5.1.3
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '5.2'
26
+ version: 5.2.3
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: tty-spinner
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -102,22 +96,22 @@ dependencies:
102
96
  name: rainbow
103
97
  requirement: !ruby/object:Gem::Requirement
104
98
  requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- version: 2.0.0
108
99
  - - "~>"
109
100
  - !ruby/object:Gem::Version
110
101
  version: '2.0'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 2.0.0
111
105
  type: :runtime
112
106
  prerelease: false
113
107
  version_requirements: !ruby/object:Gem::Requirement
114
108
  requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 2.0.0
118
109
  - - "~>"
119
110
  - !ruby/object:Gem::Version
120
111
  version: '2.0'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 2.0.0
121
115
  - !ruby/object:Gem::Dependency
122
116
  name: redcarpet
123
117
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +142,8 @@ dependencies:
148
142
  version: '2.3'
149
143
  description: Code Climate command line tool
150
144
  email: hello@codeclimate.com
151
- executables: []
145
+ executables:
146
+ - codeclimate
152
147
  extensions: []
153
148
  extra_rdoc_files: []
154
149
  files:
@@ -255,7 +250,7 @@ homepage: https://codeclimate.com
255
250
  licenses:
256
251
  - AGPL
257
252
  metadata: {}
258
- post_install_message:
253
+ post_install_message:
259
254
  rdoc_options: []
260
255
  require_paths:
261
256
  - lib
@@ -263,15 +258,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
258
  requirements:
264
259
  - - "~>"
265
260
  - !ruby/object:Gem::Version
266
- version: '2.5'
261
+ version: '2.6'
267
262
  required_rubygems_version: !ruby/object:Gem::Requirement
268
263
  requirements:
269
264
  - - ">="
270
265
  - !ruby/object:Gem::Version
271
266
  version: '0'
272
267
  requirements: []
273
- rubygems_version: 3.0.3
274
- signing_key:
268
+ rubyforge_project:
269
+ rubygems_version: 2.6.13
270
+ signing_key:
275
271
  specification_version: 4
276
272
  summary: Code Climate CLI
277
273
  test_files: []