rubocop-vendor 0.12.0 → 0.12.1

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: 3c809c5b9a7d9b2d126f055b5e497fde38c3b753da4dd75e951b177abf61749e
4
+ data.tar.gz: d815df554dc91c1e56dda01e92aab3fd704a78f47ecece6f1ea8615be18aede8
5
5
  SHA512:
6
- metadata.gz: 9b9fd407aace500ee8a51d024e476213cc4a525d2f18f413059ba32c76d418d79407c1d421550de51ebcda4543b7396a42b9e95a73497a39c4e4a5f0e8ac2104
7
- data.tar.gz: 45aa5f974f41e6e8ce97f58366ca5c98e981861edf5aaac45f3653abe03a9b1d80c6e8f1b2ed74a6c06b6454f5bcb3c7ed98b6417fa868663e09db154d499926
6
+ metadata.gz: 4719406e2c8b304e04b7058d3791eaef770f905cbc006772d80aa4e204cf05236d457309e75686cac53165c041f14eccfa6321c80d8d24b248ccebefe6a93b7d
7
+ data.tar.gz: e279095669e96d455fb54ec11285f2f1aa1c5aa0b7d9f10131ea23f9f07440fd03b8d0a10d0abfa5517e2c00a40dcc3218ba592f5f5b15aa6efb9cedd52fe635
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.1'
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.1
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: 2023-08-02 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.