rubocop-cargosense 3.1.0 → 5.0.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/config/rubocop-performance.yml +1 -1
- data/config/rubocop-rails.yml +1 -1
- data/config/rubocop-rake.yml +1 -1
- data/config/rubocop-rspec.yml +1 -1
- data/lib/rubocop/cargosense/plugin.rb +30 -0
- data/lib/rubocop/cargosense.rb +4 -5
- data/lib/rubocop-cargosense.rb +1 -5
- metadata +46 -25
- data/lib/rubocop/cargosense/inject.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a2d54c2678ac20ccb034aadb177502419dd2713e1fb0b04ebe08c909b70756d
|
4
|
+
data.tar.gz: 864c7885e5456bfde5b4d67d12d9aee93aff61e5964fc07345275546502f3976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc7737213907109e1b2075df2a9bcba9a36fbadbbafd8339a66fad020ece4f632b848ae73f8b66349e5583529589b304fb490642a04bd142eb23c062c895893b
|
7
|
+
data.tar.gz: 752e90c4805452b230f5173b2235821743972db52fd267b959446e15dfb6a1143ef288143efd7521fbc10cd9d577067b0560aac8248e113786378d8a62cf2baa
|
data/config/rubocop-rails.yml
CHANGED
data/config/rubocop-rake.yml
CHANGED
data/config/rubocop-rspec.yml
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "lint_roller"
|
4
|
+
|
5
|
+
module RuboCop
|
6
|
+
module CargoSense
|
7
|
+
class Plugin < LintRoller::Plugin
|
8
|
+
def about
|
9
|
+
LintRoller::About.new(
|
10
|
+
name: NAME,
|
11
|
+
version: VERSION,
|
12
|
+
homepage: HOMEPAGE,
|
13
|
+
description: DESCRIPTION
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
def rules(_context)
|
18
|
+
LintRoller::Rules.new(
|
19
|
+
type: :path,
|
20
|
+
config_format: :rubocop,
|
21
|
+
value: Pathname.new(__dir__).join("../../../config/default.yml")
|
22
|
+
)
|
23
|
+
end
|
24
|
+
|
25
|
+
def supported?(context)
|
26
|
+
context.engine == :rubocop
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/rubocop/cargosense.rb
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
|
3
3
|
module RuboCop
|
4
4
|
module CargoSense
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
private_constant :CONFIG_DEFAULT, :PROJECT_ROOT
|
5
|
+
NAME = "rubocop-cargosense"
|
6
|
+
VERSION = "5.0.0"
|
7
|
+
HOMEPAGE = "https://github.com/CargoSense/rubocop-cargosense"
|
8
|
+
DESCRIPTION = "Reusable RuboCop configuration for CargoSense's Ruby projects."
|
10
9
|
end
|
11
10
|
end
|
data/lib/rubocop-cargosense.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "rubocop"
|
4
|
-
require "rubocop-performance"
|
5
|
-
require "rubocop-rake"
|
6
4
|
|
7
5
|
require_relative "rubocop/cargosense"
|
8
|
-
require_relative "rubocop/cargosense/
|
9
|
-
|
10
|
-
RuboCop::CargoSense::Inject.defaults!
|
6
|
+
require_relative "rubocop/cargosense/plugin"
|
metadata
CHANGED
@@ -1,29 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-cargosense
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CargoSense
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lint_roller
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rubocop
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
33
|
+
version: '1.72'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 1.72.2
|
20
37
|
type: :runtime
|
21
38
|
prerelease: false
|
22
39
|
version_requirements: !ruby/object:Gem::Requirement
|
23
40
|
requirements:
|
24
41
|
- - "~>"
|
25
42
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
43
|
+
version: '1.72'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.72.2
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: rubocop-capybara
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,62 +84,62 @@ dependencies:
|
|
64
84
|
requirements:
|
65
85
|
- - "~>"
|
66
86
|
- !ruby/object:Gem::Version
|
67
|
-
version: '1.
|
87
|
+
version: '1.24'
|
68
88
|
type: :runtime
|
69
89
|
prerelease: false
|
70
90
|
version_requirements: !ruby/object:Gem::Requirement
|
71
91
|
requirements:
|
72
92
|
- - "~>"
|
73
93
|
- !ruby/object:Gem::Version
|
74
|
-
version: '1.
|
94
|
+
version: '1.24'
|
75
95
|
- !ruby/object:Gem::Dependency
|
76
96
|
name: rubocop-rails
|
77
97
|
requirement: !ruby/object:Gem::Requirement
|
78
98
|
requirements:
|
79
99
|
- - "~>"
|
80
100
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2.
|
101
|
+
version: '2.30'
|
82
102
|
type: :runtime
|
83
103
|
prerelease: false
|
84
104
|
version_requirements: !ruby/object:Gem::Requirement
|
85
105
|
requirements:
|
86
106
|
- - "~>"
|
87
107
|
- !ruby/object:Gem::Version
|
88
|
-
version: '2.
|
108
|
+
version: '2.30'
|
89
109
|
- !ruby/object:Gem::Dependency
|
90
110
|
name: rubocop-rake
|
91
111
|
requirement: !ruby/object:Gem::Requirement
|
92
112
|
requirements:
|
93
113
|
- - "~>"
|
94
114
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0.
|
115
|
+
version: '0.7'
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 0.7.1
|
96
119
|
type: :runtime
|
97
120
|
prerelease: false
|
98
121
|
version_requirements: !ruby/object:Gem::Requirement
|
99
122
|
requirements:
|
100
123
|
- - "~>"
|
101
124
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
125
|
+
version: '0.7'
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 0.7.1
|
103
129
|
- !ruby/object:Gem::Dependency
|
104
130
|
name: rubocop-rspec
|
105
131
|
requirement: !ruby/object:Gem::Requirement
|
106
132
|
requirements:
|
107
133
|
- - "~>"
|
108
134
|
- !ruby/object:Gem::Version
|
109
|
-
version: '3.
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 3.0.1
|
135
|
+
version: '3.5'
|
113
136
|
type: :runtime
|
114
137
|
prerelease: false
|
115
138
|
version_requirements: !ruby/object:Gem::Requirement
|
116
139
|
requirements:
|
117
140
|
- - "~>"
|
118
141
|
- !ruby/object:Gem::Version
|
119
|
-
version: '3.
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: 3.0.1
|
142
|
+
version: '3.5'
|
123
143
|
- !ruby/object:Gem::Dependency
|
124
144
|
name: rubocop-rspec_rails
|
125
145
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,16 +179,17 @@ files:
|
|
159
179
|
- config/rubocop.yml
|
160
180
|
- lib/rubocop-cargosense.rb
|
161
181
|
- lib/rubocop/cargosense.rb
|
162
|
-
- lib/rubocop/cargosense/
|
182
|
+
- lib/rubocop/cargosense/plugin.rb
|
163
183
|
homepage: https://github.com/CargoSense/rubocop-cargosense
|
164
184
|
licenses:
|
165
185
|
- MIT
|
166
186
|
metadata:
|
167
187
|
bug_tracker_uri: https://github.com/CargoSense/rubocop-cargosense/issues
|
168
188
|
changelog_uri: https://github.com/CargoSense/rubocop-cargosense/releases
|
189
|
+
default_lint_roller_plugin: RuboCop::CargoSense::Plugin
|
169
190
|
rubygems_mfa_required: 'true'
|
170
|
-
source_code_uri: https://github.com/CargoSense/rubocop-cargosense/tree/
|
171
|
-
post_install_message:
|
191
|
+
source_code_uri: https://github.com/CargoSense/rubocop-cargosense/tree/v5.0.0
|
192
|
+
post_install_message:
|
172
193
|
rdoc_options: []
|
173
194
|
require_paths:
|
174
195
|
- lib
|
@@ -176,15 +197,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
197
|
requirements:
|
177
198
|
- - ">="
|
178
199
|
- !ruby/object:Gem::Version
|
179
|
-
version: '3.
|
200
|
+
version: '3.3'
|
180
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
202
|
requirements:
|
182
203
|
- - ">="
|
183
204
|
- !ruby/object:Gem::Version
|
184
205
|
version: '0'
|
185
206
|
requirements: []
|
186
|
-
rubygems_version: 3.
|
187
|
-
signing_key:
|
207
|
+
rubygems_version: 3.5.22
|
208
|
+
signing_key:
|
188
209
|
specification_version: 4
|
189
210
|
summary: Reusable RuboCop configuration for CargoSense's Ruby projects.
|
190
211
|
test_files: []
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RuboCop
|
4
|
-
module CargoSense
|
5
|
-
module Inject
|
6
|
-
def self.defaults!
|
7
|
-
path = CONFIG_DEFAULT.to_s
|
8
|
-
hash = ConfigLoader.load_file(path)
|
9
|
-
config = Config.new(hash, path).tap(&:make_excludes_absolute)
|
10
|
-
puts "configuration from #{path}" if ConfigLoader.debug?
|
11
|
-
config = ConfigLoader.merge_with_default(config, path, unset_nil: false)
|
12
|
-
ConfigLoader.instance_variable_set(:@default_configuration, config)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|