codeclimate 0.85.25 → 0.85.28

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
- SHA1:
3
- metadata.gz: 01870cd03d7d8504aea09707be81b826d8167e5c
4
- data.tar.gz: 53c86f92d63a86ae5662df20c238676bc993430e
2
+ SHA256:
3
+ metadata.gz: 8ca0c15dd4895e2c738f0e08b7ae17c06ef8abeb0640761ab8ed9b35f3cd5bb2
4
+ data.tar.gz: 620605f5ffe39ed8b45edab7b38ed161888c25ed1a0875ce70e3e0fdcdbe6143
5
5
  SHA512:
6
- metadata.gz: a4f7617e2d41700e05961787d82db3002c1e47b976a44f779c32087bc3e68b60fde0969c6c549818408e2a8fe1f7afd3d0cf69ef6f22b15fc721491d474eca23
7
- data.tar.gz: f21d3aa5e3f18b5dbd54ccbdfe0087c9be9f6f99392ff2cc860159e7f0e51de510125a11aaa168e2c8cf02e28e82a68a8bdacd3fbc81c2f9a3c4c68f90c34675
6
+ metadata.gz: d5420f8af6589b01028db9c28edab19582d76866777e3087a99bc7d998212a81fd38f8d718d534123454c981636b3a86b8d54dbd7b2b186ac7677fa714363a11
7
+ data.tar.gz: 1b0925cf9eaa9484c0b64e260b6f03e169124832318cee43afa89ccc89a9ba6d0b8a5e70f1a73599eb9e999afe4b294ea6cbef42833dc39c51170d5ffd0e284c
data/config/engines.yml CHANGED
@@ -81,6 +81,7 @@ eslint:
81
81
  eslint-5: codeclimate/codeclimate-eslint:eslint-5
82
82
  eslint-6: codeclimate/codeclimate-eslint:eslint-6
83
83
  eslint-7: codeclimate/codeclimate-eslint:eslint-7
84
+ eslint-8: codeclimate/codeclimate-eslint:eslint-8
84
85
  description: A JavaScript/JSX linting utility.
85
86
  flog:
86
87
  channels:
@@ -114,10 +115,6 @@ foodcritic:
114
115
  channels:
115
116
  stable: codeclimate/codeclimate-foodcritic
116
117
  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
118
  gnu-complexity:
122
119
  channels:
123
120
  stable: codeclimate/codeclimate-gnu-complexity
@@ -197,6 +194,7 @@ requiresafe:
197
194
  rubocop:
198
195
  channels:
199
196
  stable: codeclimate/codeclimate-rubocop
197
+ beta: codeclimate/codeclimate-rubocop:beta
200
198
  cache-support: codeclimate/codeclimate-rubocop:cache-support
201
199
  rubocop-0-42: codeclimate/codeclimate-rubocop:rubocop-0-42
202
200
  rubocop-0-46: codeclimate/codeclimate-rubocop:rubocop-0-46
@@ -257,6 +255,7 @@ rubocop:
257
255
  rubocop-1-21-0: codeclimate/codeclimate-rubocop:rubocop-1-21-0
258
256
  rubocop-1-22-2: codeclimate/codeclimate-rubocop:rubocop-1-22-2
259
257
  rubocop-1-22-3: codeclimate/codeclimate-rubocop:rubocop-1-22-3
258
+ rubocop-1-23-0: codeclimate/codeclimate-rubocop:rubocop-1-23-0
260
259
  description: A Ruby static code analyzer, based on the community Ruby style guide.
261
260
  rubymotion:
262
261
  channels:
@@ -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} body=#{resp.body}"
68
+ raise FetchError, "Failed fetching #{url}: code=#{resp.code}"
69
69
  end
70
70
  end
71
71
 
@@ -34,6 +34,10 @@ module CC
34
34
  entries.each(&block)
35
35
  end
36
36
 
37
+ def paths
38
+ entries.map(&:path)
39
+ end
40
+
37
41
  def merge(other)
38
42
  Fetch.new(each.to_a | other.each.to_a)
39
43
  end
data/lib/cc/config.rb CHANGED
@@ -40,10 +40,12 @@ module CC
40
40
  end
41
41
 
42
42
  def self.build(data)
43
+ prepare = Prepare.from_data(data["prepare"])
44
+ base_excluded_patterns = data.fetch("exclude_patterns", DefaultAdapter::EXCLUDE_PATTERNS)
43
45
  new(
44
46
  engines: EngineSet.new(data.fetch("plugins", {})).engines,
45
- exclude_patterns: data.fetch("exclude_patterns", DefaultAdapter::EXCLUDE_PATTERNS),
46
- prepare: Prepare.from_data(data["prepare"]),
47
+ exclude_patterns: base_excluded_patterns + prepare.fetch.paths,
48
+ prepare: prepare,
47
49
  )
48
50
  end
49
51
 
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.25
4
+ version: 0.85.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -265,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubyforge_project:
269
- rubygems_version: 2.6.13
268
+ rubygems_version: 3.3.7
270
269
  signing_key:
271
270
  specification_version: 4
272
271
  summary: Code Climate CLI