rubocop-vendor 0.12.0 → 0.12.2

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
2
  SHA256:
3
- metadata.gz: 5e8a207496eb8ecac737af481053083a942d3ad3bbbdabe19c0786afbabff226
4
- data.tar.gz: 0636c9d456890e9ff0cbf0dd58844d9d84d0b9720c52f242d993a45d06d7562f
3
+ metadata.gz: 0f75f2d9359b745fe58cb30a7314ac94d01f6603efd77cfcd8fd653aeea1b115
4
+ data.tar.gz: 6207bdf6793f485c5ecb6b7a11d26d10d9344d5130d6449736525009a742c559
5
5
  SHA512:
6
- metadata.gz: 9b9fd407aace500ee8a51d024e476213cc4a525d2f18f413059ba32c76d418d79407c1d421550de51ebcda4543b7396a42b9e95a73497a39c4e4a5f0e8ac2104
7
- data.tar.gz: 45aa5f974f41e6e8ce97f58366ca5c98e981861edf5aaac45f3653abe03a9b1d80c6e8f1b2ed74a6c06b6454f5bcb3c7ed98b6417fa868663e09db154d499926
6
+ metadata.gz: 690945dcd9783af17dfec0e4b326ed8ca46612bb45c6a98a5b3aa7b67f8fe9f983c1cd2495e9491e8d3d9294c1eb37bf46cba0d6e2f8752dcd1e5d4be58a8833
7
+ data.tar.gz: bd5e907e32893aae0389412ff196eed02a58af2c63c0c30694155ef954ace00ed6cb6781a327af92c51fb725c09023ad39c3639894e868f39641a0d884900f75
data/config/default.yml CHANGED
@@ -1,4 +1,24 @@
1
- # This is the default configuration file.
1
+ ---
2
+ Vendor:
3
+ Enabled: true
4
+
5
+ Vendor/ActiveRecordConnectionExecute:
6
+ Enabled: true
7
+
8
+ Vendor/RecursiveOpenStructGem:
9
+ Description: 'Avoid using the `RecursiveOpenStruct` gem.'
10
+ Enabled: true
11
+ VersionAdded: '0.1.0'
12
+
13
+ Vendor/RecursiveOpenStructUse:
14
+ Description: 'Avoid using the `RecursiveOpenStruct` gem.'
15
+ Enabled: true
16
+ VersionAdded: '0.1.0'
17
+
18
+ Vendor/RollbarInsideRescue:
19
+ Description: 'Only call Rollbar when handling errors inside a `rescue` block.'
20
+ Enabled: true
21
+ VersionAdded: '0.1.0'
2
22
 
3
23
  Vendor/RollbarInterpolation:
4
24
  Description: 'Avoid interpolation to improve error grouping.'
@@ -19,3 +39,23 @@ Vendor/RollbarWithException:
19
39
  Description: 'Always pass exception parameter when calling `Rollbar.error` or `critical`.'
20
40
  Enabled: true
21
41
  VersionAdded: '0.1.0'
42
+
43
+ Vendor/SidekiqThrottledGem:
44
+ Description: 'Avoid using the `sidekiq-throttled` gem.'
45
+ Enabled: true
46
+ VersionAdded: '0.1.0'
47
+
48
+ Vendor/StrictDryStruct:
49
+ Description: 'Avoid using `Dry::Struct` without schema schema.strict'
50
+ Enabled: true
51
+ VersionAdded: '0.1.0'
52
+
53
+ Vendor/WsSdkPathArraySlash:
54
+ Description: 'Avoid using `ws_sdk` with path array with slash.'
55
+ Enabled: true
56
+ VersionAdded: '0.12.0'
57
+
58
+ Vendor/WsSdkPathInjection:
59
+ Description: 'Avoid using `ws_sdk` with path injection.'
60
+ Enabled: true
61
+ VersionAdded: '0.12.0'
@@ -45,7 +45,7 @@ module RuboCop
45
45
  def offending_range(node)
46
46
  range_between(
47
47
  node.children[0].loc.last_column + 1,
48
- node.children[3].loc.column
48
+ node.children[3].loc.column,
49
49
  )
50
50
  end
51
51
  end
@@ -38,7 +38,7 @@ module RuboCop
38
38
  return unless self.class.ws_sdk_supports_arrays?
39
39
 
40
40
  path, = ws_sdk_service_call?(node)
41
- return unless path && path.type != :array
41
+ return unless path.respond_to?(:type) && path.dstr_type?
42
42
 
43
43
  add_offense(path) do |corrector|
44
44
  correct_path(corrector, path)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Vendor
5
- VERSION = '0.12.0'
5
+ VERSION = '0.12.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-vendor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Cabello
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-08-01 00:00:00.000000000 Z
13
+ date: 2024-01-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 0.53.0
21
+ version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 0.53.0
28
+ version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: git
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +68,20 @@ dependencies:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: ws-style
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
71
85
  description: |2
72
86
  A collection of RuboCop cops to check for vendor integration
73
87
  in Ruby code.
@@ -124,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
138
  - !ruby/object:Gem::Version
125
139
  version: '0'
126
140
  requirements: []
127
- rubygems_version: 3.2.33
141
+ rubygems_version: 3.4.10
128
142
  signing_key:
129
143
  specification_version: 4
130
144
  summary: Automatic vendor integration checking tool for Ruby code.