rubocop-vendor 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubocop/vendor/plugin.rb +29 -0
- data/lib/rubocop/vendor/version.rb +1 -1
- data/lib/rubocop-vendor.rb +1 -2
- metadata +17 -3
- data/lib/rubocop/vendor/inject.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cc7a478e880b1f1bf1c6b2a9d66d96dea250d7b2d278d9dac7a72b99cf64f93
|
4
|
+
data.tar.gz: 5352bc939c529ffa46347166b3be2de0c0824a5cba52f2547d5c44e20607a757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f8a3e4a571521bcead3d43443b16ab329c4409be99dd264a133c3574c67aea352a83fe4a7f12f4040a89fc2c383d4e91b4a20d6ac539f83d590590b20eb21a4
|
7
|
+
data.tar.gz: 2308943cae7fb4222ef5c2baf440202f218e799163f6c88ab82a8b0132e37b9a7a3fa4c4752088be83a284200358e51962a8c8e31aaa5dc9b5fb22221b201eb9
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'lint_roller'
|
2
|
+
|
3
|
+
module RuboCop
|
4
|
+
module Vendor
|
5
|
+
# A plugin that integrates RuboCop Vendor with RuboCop's plugin system.
|
6
|
+
class Plugin < LintRoller::Plugin
|
7
|
+
def about
|
8
|
+
LintRoller::About.new(
|
9
|
+
name: 'rubocop-vendor',
|
10
|
+
version: VERSION,
|
11
|
+
homepage: 'https://github.com/wealthsimple/rubocop-vendor',
|
12
|
+
description: 'A collection of custom Wealthsimple specific RuboCop cops.',
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
def supported?(context)
|
17
|
+
context.engine == :rubocop
|
18
|
+
end
|
19
|
+
|
20
|
+
def rules(_context)
|
21
|
+
LintRoller::Rules.new(
|
22
|
+
type: :path,
|
23
|
+
config_format: :rubocop,
|
24
|
+
value: Pathname.new(__dir__).join('../../../config/default.yml'),
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/rubocop-vendor.rb
CHANGED
@@ -4,8 +4,7 @@ require 'rubocop'
|
|
4
4
|
|
5
5
|
require_relative 'rubocop/vendor'
|
6
6
|
require_relative 'rubocop/vendor/version'
|
7
|
-
require_relative 'rubocop/vendor/inject'
|
8
7
|
|
9
|
-
|
8
|
+
require_relative 'rubocop/vendor/plugin'
|
10
9
|
|
11
10
|
require_relative 'rubocop/cop/vendor_cops'
|
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.
|
4
|
+
version: 0.14.0
|
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:
|
13
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|
@@ -26,6 +26,20 @@ dependencies:
|
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: lint_roller
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
29
43
|
- !ruby/object:Gem::Dependency
|
30
44
|
name: git
|
31
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,7 +126,7 @@ files:
|
|
112
126
|
- lib/rubocop/cop/vendor/ws_sdk_path_injection.rb
|
113
127
|
- lib/rubocop/cop/vendor_cops.rb
|
114
128
|
- lib/rubocop/vendor.rb
|
115
|
-
- lib/rubocop/vendor/
|
129
|
+
- lib/rubocop/vendor/plugin.rb
|
116
130
|
- lib/rubocop/vendor/version.rb
|
117
131
|
homepage: https://github.com/wealthsimple/rubocop-vendor
|
118
132
|
licenses:
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RuboCop
|
4
|
-
module Vendor
|
5
|
-
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
6
|
-
# bit of our configuration.
|
7
|
-
module Inject
|
8
|
-
def self.defaults!
|
9
|
-
path = CONFIG_DEFAULT.to_s
|
10
|
-
hash = ConfigLoader.send(:load_yaml_configuration, path)
|
11
|
-
config = Config.new(hash, path)
|
12
|
-
puts "configuration from #{path}" if ConfigLoader.debug?
|
13
|
-
config = ConfigLoader.merge_with_default(config, path)
|
14
|
-
ConfigLoader.instance_variable_set(:@default_configuration, config)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|