codeclimate 0.85.26 → 0.85.29

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: 5854cc7e71a871525f9b73eb22c8a386b5c6c3e0
4
- data.tar.gz: 8f09ab442d948a8c32ab70fd0173ec9bae2435a6
2
+ SHA256:
3
+ metadata.gz: d51ecb6c8346e33100989e76e5e0bc6d47e04ba78c929713fbbd745f8c47ad6e
4
+ data.tar.gz: aba53f1d5523c77189e25ceb4f3dc50fe7a7ecac5d282f4f394176d768c7753d
5
5
  SHA512:
6
- metadata.gz: fe22fcc89933f7b2d6ae9d2186c1c6e5ca7379641e715bf6e52b1378c54ecda7c10d318a88122c9de9b0a8b23c7eb4df2552b949a89af3951d1e3ae46599743a
7
- data.tar.gz: 092e75cd097aa0fb2e8154fa8e546e3adfb7a2add792825c65e42dd73b5f4ac9709647add731263326d12acf17151b81f29176707c1af8453877665e12ef7c31
6
+ metadata.gz: e0b064b5b43ff970c043a3bf4082c2b8ca1d9c68c8c4ed0244223fd815ad9097a7faf0e88039fc347ae06fd74adadaee5b6a2f1ce1ddfe1493bd74fbc6c6bd31
7
+ data.tar.gz: 18ac42775e7c884f63c3bd78847a4365ff452e6fc46c4b55c79149689898cac109245b2e24d1f420038c9d1b61d04221f79510206bf07058dfefb4b7983c4fb3
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
@@ -26,6 +26,7 @@ module CC
26
26
  IPAddr.new("fd00::/8"),
27
27
  IPAddr.new("127.0.0.1"),
28
28
  IPAddr.new("0:0:0:0:0:0:0:1"),
29
+ IPAddr.new("169.254.0.0/16"),
29
30
  ].freeze
30
31
 
31
32
  def run
@@ -65,7 +66,7 @@ module CC
65
66
  write_file(target_path, resp.body)
66
67
  say("Wrote #{url} to #{target_path}")
67
68
  else
68
- raise FetchError, "Failed fetching #{url}: code=#{resp.code} body=#{resp.body}"
69
+ raise FetchError, "Failed fetching #{url}: code=#{resp.code}"
69
70
  end
70
71
  end
71
72
 
@@ -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.26
4
+ version: 0.85.29
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-12-09 00:00:00.000000000 Z
11
+ date: 2022-06-09 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