ergomentum_rubocop 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -0
- data/config/default_shared.yml +82 -0
- data/ergomentum_rubocop.gemspec +5 -12
- data/lib/ergomentum_rubocop/version.rb +1 -1
- metadata +12 -110
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e373f1b82eb69d6522db12d3c4343d224800939a58a20bff5ac432d1cdd9243a
|
4
|
+
data.tar.gz: bcb69147bbee75af5781e3e25e0bfef5245bba68dadef427fba26f7116c2642a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 960280fcf6500efbab10707fadb1cdc1af3e05d7558fca296601ae30a534b97c755f3e91f1eccb08178098d19d3168df850c053e3a893e96223a717a3b27fad0
|
7
|
+
data.tar.gz: 2c31e24fc7891ea7b02410ce1d08244f0e54372c40c14cdcbfaac7a65b695c5293bc5a47234f9383b4ac1392ebb2b072851f460a71e626c925d87db5d87728d4
|
data/Gemfile
CHANGED
@@ -4,3 +4,11 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in omniauth-shipcloud.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem "byebug", "~> 11.1"
|
9
|
+
gem "rake", "~> 13.0"
|
10
|
+
gem "rspec", "~> 3.11"
|
11
|
+
gem "rspec_junit_formatter", "~> 0.5"
|
12
|
+
gem "simplecov", "~> 0.21"
|
13
|
+
gem "test-prof", "~> 1.0"
|
14
|
+
gem "webmock", "~> 3.14"
|
data/config/default_shared.yml
CHANGED
@@ -5,6 +5,10 @@ AllCops:
|
|
5
5
|
Exclude:
|
6
6
|
- vendor/**/*
|
7
7
|
- node_modules/**/*
|
8
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
9
|
+
Enabled: true
|
10
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
11
|
+
Enabled: true
|
8
12
|
Gemspec/RequireMFA: # new in 1.23
|
9
13
|
Enabled: true
|
10
14
|
Layout/DotPosition:
|
@@ -15,6 +19,10 @@ Layout/FirstHashElementLineBreak:
|
|
15
19
|
Enabled: true
|
16
20
|
Layout/FirstMethodArgumentLineBreak:
|
17
21
|
Enabled: true
|
22
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
23
|
+
Enabled: true
|
24
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
25
|
+
Enabled: true
|
18
26
|
Layout/LineLength:
|
19
27
|
Max: 120
|
20
28
|
Layout/MultilineMethodCallIndentation:
|
@@ -31,10 +39,16 @@ Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
|
31
39
|
Enabled: true
|
32
40
|
Lint/AmbiguousRange: # (new in 1.19)
|
33
41
|
Enabled: true
|
42
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
43
|
+
Enabled: true
|
34
44
|
Lint/DeprecatedConstants: # (new in 1.8)
|
35
45
|
Enabled: true
|
36
46
|
Lint/DuplicateBranch: # (new in 1.3)
|
37
47
|
Enabled: true
|
48
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
49
|
+
Enabled: true
|
50
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
51
|
+
Enabled: true
|
38
52
|
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
|
39
53
|
Enabled: true
|
40
54
|
Lint/EmptyBlock: # (new in 1.1)
|
@@ -47,6 +61,16 @@ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
|
47
61
|
Enabled: true
|
48
62
|
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
49
63
|
Enabled: true
|
64
|
+
Lint/MixedCaseRange: # new in 1.53
|
65
|
+
Enabled: true
|
66
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
67
|
+
Enabled: true
|
68
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
69
|
+
Enabled: true
|
70
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
71
|
+
Enabled: true
|
72
|
+
Lint/UselessRescue: # new in 1.43
|
73
|
+
Enabled: true
|
50
74
|
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
|
51
75
|
Enabled: true
|
52
76
|
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
@@ -84,6 +108,8 @@ Metrics/BlockLength:
|
|
84
108
|
- "*.gemspec"
|
85
109
|
Metrics/ClassLength:
|
86
110
|
Enabled: false
|
111
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
112
|
+
Enabled: true
|
87
113
|
Metrics/MethodLength:
|
88
114
|
Enabled: false
|
89
115
|
Metrics/ModuleLength:
|
@@ -117,6 +143,8 @@ Performance/ConstantRegexp: # (new in 1.9)
|
|
117
143
|
Enabled: true
|
118
144
|
Performance/MapCompact: # (new in 1.11)
|
119
145
|
Enabled: true
|
146
|
+
Performance/MapMethodChain: # new in 1.19
|
147
|
+
Enabled: true
|
120
148
|
Performance/MethodObjectAsBlock: # (new in 1.9)
|
121
149
|
Enabled: true
|
122
150
|
Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
|
@@ -145,6 +173,8 @@ Security/IoMethods: # new in 1.22
|
|
145
173
|
Enabled: true
|
146
174
|
Style/ArgumentsForwarding: # (new in 1.1)
|
147
175
|
Enabled: true
|
176
|
+
Style/ArrayIntersect: # new in 1.40
|
177
|
+
Enabled: true
|
148
178
|
Style/AsciiComments:
|
149
179
|
Enabled: false
|
150
180
|
Style/ClassAndModuleChildren:
|
@@ -156,16 +186,30 @@ Style/CollectionMethods:
|
|
156
186
|
Enabled: true
|
157
187
|
Style/CommentAnnotation:
|
158
188
|
Enabled: false
|
189
|
+
Style/ComparableClamp: # new in 1.44
|
190
|
+
Enabled: true
|
191
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
192
|
+
Enabled: true
|
193
|
+
Style/DataInheritance: # new in 1.49
|
194
|
+
Enabled: true
|
195
|
+
Style/DirEmpty: # new in 1.48
|
196
|
+
Enabled: true
|
159
197
|
Style/Documentation:
|
160
198
|
Enabled: false
|
161
199
|
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
162
200
|
Enabled: true
|
201
|
+
Style/EmptyHeredoc: # new in 1.32
|
202
|
+
Enabled: true
|
163
203
|
Style/EndlessMethod: # (new in 1.8)
|
164
204
|
Enabled: true
|
165
205
|
Style/EnvHome: # new in 1.29
|
166
206
|
Enabled: true
|
207
|
+
Style/ExactRegexpMatch: # new in 1.51
|
208
|
+
Enabled: true
|
167
209
|
Style/FetchEnvVar: # new in 1.28
|
168
210
|
Enabled: true
|
211
|
+
Style/FileEmpty: # new in 1.48
|
212
|
+
Enabled: true
|
169
213
|
Style/FileRead: # new in 1.24
|
170
214
|
Enabled: true
|
171
215
|
Style/FileWrite: # new in 1.24
|
@@ -182,8 +226,16 @@ Style/IfUnlessModifier:
|
|
182
226
|
Enabled: false
|
183
227
|
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
|
184
228
|
Enabled: true
|
229
|
+
Style/MagicCommentFormat: # new in 1.35
|
230
|
+
Enabled: true
|
231
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
232
|
+
Enabled: true
|
185
233
|
Style/MapToHash: # new in 1.24
|
186
234
|
Enabled: true
|
235
|
+
Style/MapToSet: # new in 1.42
|
236
|
+
Enabled: true
|
237
|
+
Style/MinMaxComparison: # new in 1.42
|
238
|
+
Enabled: true
|
187
239
|
Style/MultilineBlockChain:
|
188
240
|
Enabled: false
|
189
241
|
Style/MultilineInPatternThen: # (new in 1.16)
|
@@ -204,6 +256,8 @@ Style/ObjectThen: # new in 1.28
|
|
204
256
|
Enabled: true
|
205
257
|
Style/OpenStructUse: # new in 1.23
|
206
258
|
Enabled: true
|
259
|
+
Style/OperatorMethodCall: # new in 1.37
|
260
|
+
Enabled: true
|
207
261
|
Style/OptionHash:
|
208
262
|
Enabled: true
|
209
263
|
SuspiciousParamNames:
|
@@ -216,12 +270,38 @@ Style/QuotedSymbols: # (new in 1.16)
|
|
216
270
|
Enabled: true
|
217
271
|
Style/RedundantArgument: # (new in 1.4)
|
218
272
|
Enabled: true
|
273
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
274
|
+
Enabled: true
|
275
|
+
Style/RedundantConstantBase: # new in 1.40
|
276
|
+
Enabled: true
|
277
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
278
|
+
Enabled: true
|
279
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
280
|
+
Enabled: true
|
281
|
+
Style/RedundantEach: # new in 1.38
|
282
|
+
Enabled: true
|
283
|
+
Style/RedundantFilterChain: # new in 1.52
|
284
|
+
Enabled: true
|
285
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
286
|
+
Enabled: true
|
219
287
|
Style/RedundantInitialize: # new in 1.27
|
220
288
|
Enabled: true
|
289
|
+
Style/RedundantLineContinuation: # new in 1.49
|
290
|
+
Enabled: true
|
291
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
292
|
+
Enabled: true
|
293
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
294
|
+
Enabled: true
|
295
|
+
Style/RedundantStringEscape: # new in 1.37
|
296
|
+
Enabled: true
|
221
297
|
Style/RedundantSelfAssignmentBranch: # (new in 1.19)
|
222
298
|
Enabled: true
|
299
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
300
|
+
Enabled: true
|
223
301
|
Style/SelectByRegexp: # new in 1.22
|
224
302
|
Enabled: true
|
303
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
304
|
+
Enabled: true
|
225
305
|
Style/StringChars: # (new in 1.12)
|
226
306
|
Enabled: true
|
227
307
|
Style/StringLiterals:
|
@@ -258,3 +338,5 @@ Style/TrailingCommaInHashLiteral:
|
|
258
338
|
- no_comma
|
259
339
|
Style/TrivialAccessors:
|
260
340
|
Enabled: false
|
341
|
+
Style/YAMLFileRead: # new in 1.53
|
342
|
+
Enabled: true
|
data/ergomentum_rubocop.gemspec
CHANGED
@@ -17,24 +17,17 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = Dir.glob("{lib,config}/**/*") + %w[README.md Gemfile ergomentum_rubocop.gemspec]
|
18
18
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
-
spec.required_ruby_version = ">= 3.
|
20
|
+
spec.required_ruby_version = ">= 3.2.0"
|
21
21
|
|
22
22
|
spec.metadata["homepage_uri"] = spec.homepage
|
23
23
|
spec.metadata["source_code_uri"] = "https://github.com/ergomentum/ergomentum_rubocop/"
|
24
24
|
spec.metadata["changelog_uri"] = "https://github.com/ergomentum/ergomentum_rubocop/blob/main/CHANGELOG.md"
|
25
25
|
|
26
|
-
spec.add_dependency "rubocop", "~> 1.
|
27
|
-
spec.add_dependency "rubocop-performance", "~> 1.
|
28
|
-
spec.add_dependency "rubocop-rails", "~> 2.
|
26
|
+
spec.add_dependency "rubocop", "~> 1.57"
|
27
|
+
spec.add_dependency "rubocop-performance", "~> 1.19"
|
28
|
+
spec.add_dependency "rubocop-rails", "~> 2.22"
|
29
29
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
30
|
-
spec.add_dependency "rubocop-rspec", "~> 2.
|
30
|
+
spec.add_dependency "rubocop-rspec", "~> 2.25"
|
31
31
|
|
32
|
-
spec.add_development_dependency "byebug", "~> 11.1"
|
33
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
34
|
-
spec.add_development_dependency "rspec", "~> 3.11"
|
35
|
-
spec.add_development_dependency "rspec_junit_formatter", "~> 0.5"
|
36
|
-
spec.add_development_dependency "simplecov", "~> 0.21"
|
37
|
-
spec.add_development_dependency "test-prof", "~> 1.0"
|
38
|
-
spec.add_development_dependency "webmock", "~> 3.14"
|
39
32
|
spec.metadata["rubygems_mfa_required"] = "true"
|
40
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ergomentum_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ERGOMENTUM
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.57'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.57'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.19'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.19'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.22'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.22'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,112 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.25'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: byebug
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '11.1'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '11.1'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rake
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '13.0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '13.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '3.11'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '3.11'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec_junit_formatter
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.5'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0.5'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: simplecov
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.21'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.21'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: test-prof
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: webmock
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.14'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '3.14'
|
82
|
+
version: '2.25'
|
181
83
|
description: 'Rubocop style checking for ERGOMENTUM projects.
|
182
84
|
|
183
85
|
'
|
@@ -211,14 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
113
|
requirements:
|
212
114
|
- - ">="
|
213
115
|
- !ruby/object:Gem::Version
|
214
|
-
version: 3.
|
116
|
+
version: 3.2.0
|
215
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
118
|
requirements:
|
217
119
|
- - ">="
|
218
120
|
- !ruby/object:Gem::Version
|
219
121
|
version: '0'
|
220
122
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.4.10
|
222
124
|
signing_key:
|
223
125
|
specification_version: 4
|
224
126
|
summary: ERGOMENTUM Rubocop definitions
|