ergomentum_rubocop 0.15.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default_gem.yml +2 -0
- data/config/default_rails.yml +14 -0
- data/config/default_shared.yml +37 -10
- data/ergomentum_rubocop.gemspec +9 -8
- data/lib/ergomentum_rubocop/version.rb +1 -1
- metadata +46 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56a6a6ed198ef06640ce56820016d3b5ad982c9e7cb8c69b06dedb0a702f07b8
|
4
|
+
data.tar.gz: ff89e18c762606654f58b4ebdc6d230dcd640428cd5b84b0b1e438b0c4968ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b322502225b4c11809897567461ede963766bfd2dd86b151fcdb936d3904d86b34628aa228d9ff207b1c825fe33da3664a5318f210f2500ec54059a8b3817f2f
|
7
|
+
data.tar.gz: 17d423325efb207430c779d200d9c497a6228a82f60c36a492b6700cf5d0f6393f6b2d69f49607478c01d0bde63bd0a04aa71002a46d1fa3023582491167d1b7
|
data/config/default_gem.yml
CHANGED
data/config/default_rails.yml
CHANGED
@@ -88,6 +88,18 @@ Rails/RootPathnameMethods: # new in 2.16
|
|
88
88
|
Enabled: true
|
89
89
|
Rails/RootPublicPath: # new in 2.15
|
90
90
|
Enabled: true
|
91
|
+
RSpecRails/AvoidSetupHook: # new in 2.4
|
92
|
+
Enabled: true
|
93
|
+
RSpecRails/HaveHttpStatus: # new in 2.12
|
94
|
+
Enabled: true
|
95
|
+
RSpecRails/InferredSpecType: # new in 2.14
|
96
|
+
Enabled: true
|
97
|
+
RSpecRails/MinitestAssertions: # new in 2.17
|
98
|
+
Enabled: true
|
99
|
+
RSpecRails/NegationBeValid: # new in 2.23
|
100
|
+
Enabled: true
|
101
|
+
RSpecRails/TravelAround: # new in 2.19
|
102
|
+
Enabled: true
|
91
103
|
Rails/SelectMap: # new in 2.21
|
92
104
|
Enabled: true
|
93
105
|
Rails/ShortI18n:
|
@@ -122,3 +134,5 @@ Rails/WhereNot:
|
|
122
134
|
Enabled: true
|
123
135
|
Rails/WhereNotWithMultipleConditions: # new in 2.17
|
124
136
|
Enabled: true
|
137
|
+
Rails/WhereRange: # new in 2.25
|
138
|
+
Enabled: true
|
data/config/default_shared.yml
CHANGED
@@ -9,6 +9,8 @@ AllCops:
|
|
9
9
|
Exclude:
|
10
10
|
- vendor/**/*
|
11
11
|
- node_modules/**/*
|
12
|
+
- bin/*
|
13
|
+
- db/schema.rb
|
12
14
|
Capybara/ClickLinkOrButtonStyle: # new in 2.19
|
13
15
|
Enabled: true
|
14
16
|
Capybara/MatchStyle: # new in 2.17
|
@@ -21,6 +23,8 @@ Capybara/SpecificFinders: # new in 2.13
|
|
21
23
|
Enabled: true
|
22
24
|
Capybara/SpecificMatcher: # new in 2.12
|
23
25
|
Enabled: true
|
26
|
+
Capybara/RedundantWithinFind: # new in 2.20
|
27
|
+
Enabled: true
|
24
28
|
Capybara/RSpec/HaveSelector: # new in 2.19
|
25
29
|
Enabled: true
|
26
30
|
Capybara/RSpec/PredicateMatcher: # new in 2.19
|
@@ -29,6 +33,8 @@ FactoryBot/AssociationStyle: # new in 2.23
|
|
29
33
|
Enabled: true
|
30
34
|
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
31
35
|
Enabled: true
|
36
|
+
FactoryBot/ExcessiveCreateList: # new in 2.25
|
37
|
+
Enabled: true
|
32
38
|
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
33
39
|
Enabled: true
|
34
40
|
FactoryBot/FactoryNameStyle: # new in 2.16
|
@@ -77,6 +83,8 @@ Lint/ConstantOverwrittenInRescue: # new in 1.31
|
|
77
83
|
Enabled: true
|
78
84
|
Lint/DeprecatedConstants: # (new in 1.8)
|
79
85
|
Enabled: true
|
86
|
+
Lint/DuplicateSetElement: # new in 1.67
|
87
|
+
Enabled: true
|
80
88
|
Lint/DuplicateBranch: # (new in 1.3)
|
81
89
|
Enabled: true
|
82
90
|
Lint/DuplicateMagicComment: # new in 1.37
|
@@ -115,6 +123,8 @@ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
|
115
123
|
Enabled: true
|
116
124
|
Lint/NumberedParameterAssignment: # (new in 1.9)
|
117
125
|
Enabled: true
|
126
|
+
Lint/UselessNumericOperation: # new in 1.66
|
127
|
+
Enabled: true
|
118
128
|
Lint/OrAssignmentToConstant: # (new in 1.9)
|
119
129
|
Enabled: true
|
120
130
|
Lint/RedundantDirGlobSort: # (new in 1.8)
|
@@ -144,6 +154,7 @@ Metrics/BlockLength:
|
|
144
154
|
- spec/**/*
|
145
155
|
- config/routes.rb
|
146
156
|
- "*.gemspec"
|
157
|
+
- config/environments/*.rb
|
147
158
|
Metrics/ClassLength:
|
148
159
|
Enabled: false
|
149
160
|
Metrics/CollectionLiteralLength: # new in 1.47
|
@@ -219,18 +230,28 @@ RSpec/DuplicatedMetadata: # new in 2.16
|
|
219
230
|
Enabled: true
|
220
231
|
RSpec/EmptyMetadata: # new in 2.24
|
221
232
|
Enabled: true
|
233
|
+
RSpec/EmptyOutput: # new in 2.29
|
234
|
+
Enabled: true
|
222
235
|
RSpec/Eq: # new in 2.24
|
223
236
|
Enabled: true
|
237
|
+
RSpec/ExampleLength:
|
238
|
+
Max: 200
|
224
239
|
RSpec/ExcessiveDocstringSpacing: # new in 2.5
|
225
240
|
Enabled: true
|
226
241
|
RSpec/IdenticalEqualityAssertion: # new in 2.4
|
227
242
|
Enabled: true
|
228
243
|
RSpec/IndexedLet: # new in 2.20
|
229
244
|
Enabled: true
|
245
|
+
RSpec/IsExpectedSpecify: # new in 2.27
|
246
|
+
Enabled: true
|
230
247
|
RSpec/MatchArray: # new in 2.19
|
231
248
|
Enabled: true
|
232
249
|
RSpec/MetadataStyle: # new in 2.24
|
233
250
|
Enabled: true
|
251
|
+
RSpec/MultipleExpectations:
|
252
|
+
Max: 2
|
253
|
+
RSpec/NestedGroups:
|
254
|
+
Max: 8
|
234
255
|
RSpec/NoExpectationExample: # new in 2.13
|
235
256
|
Enabled: true
|
236
257
|
RSpec/PendingWithoutReason: # new in 2.16
|
@@ -239,6 +260,10 @@ RSpec/ReceiveMessages: # new in 2.23
|
|
239
260
|
Enabled: true
|
240
261
|
RSpec/RedundantAround: # new in 2.19
|
241
262
|
Enabled: true
|
263
|
+
RSpec/RedundantPredicateMatcher: # new in 2.26
|
264
|
+
Enabled: true
|
265
|
+
RSpec/RemoveConst: # new in 2.26
|
266
|
+
Enabled: true
|
242
267
|
RSpec/SkipBlockInsideExample: # new in 2.19
|
243
268
|
Enabled: true
|
244
269
|
RSpec/SortMetadata: # new in 2.14
|
@@ -247,21 +272,15 @@ RSpec/SpecFilePathFormat: # new in 2.24
|
|
247
272
|
Enabled: true
|
248
273
|
RSpec/SpecFilePathSuffix: # new in 2.24
|
249
274
|
Enabled: true
|
275
|
+
RSpec/StringAsInstanceDoubleConstant: # new in 3.1
|
276
|
+
Enabled: true
|
250
277
|
RSpec/SubjectDeclaration: # new in 2.5
|
251
278
|
Enabled: true
|
252
279
|
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
253
280
|
Enabled: true
|
254
|
-
RSpec/
|
281
|
+
RSpec/RepeatedSubjectCall: # new in 2.27
|
255
282
|
Enabled: true
|
256
|
-
RSpec/
|
257
|
-
Enabled: true
|
258
|
-
RSpec/Rails/InferredSpecType: # new in 2.14
|
259
|
-
Enabled: true
|
260
|
-
RSpec/Rails/MinitestAssertions: # new in 2.17
|
261
|
-
Enabled: true
|
262
|
-
RSpec/Rails/NegationBeValid: # new in 2.23
|
263
|
-
Enabled: true
|
264
|
-
RSpec/Rails/TravelAround: # new in 2.19
|
283
|
+
RSpec/UndescriptiveLiteralsDescription: # new in 2.29
|
265
284
|
Enabled: true
|
266
285
|
Security/CompoundHash: # new in 1.28
|
267
286
|
Enabled: true
|
@@ -326,6 +345,8 @@ Style/MagicCommentFormat: # new in 1.35
|
|
326
345
|
Enabled: true
|
327
346
|
Style/MapCompactWithConditionalBlock: # new in 1.30
|
328
347
|
Enabled: true
|
348
|
+
Style/MapIntoArray: # new in 1.63
|
349
|
+
Enabled: true
|
329
350
|
Style/MapToHash: # new in 1.24
|
330
351
|
Enabled: true
|
331
352
|
Style/MapToSet: # new in 1.42
|
@@ -382,6 +403,8 @@ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
|
382
403
|
Enabled: true
|
383
404
|
Style/RedundantInitialize: # new in 1.27
|
384
405
|
Enabled: true
|
406
|
+
Style/RedundantInterpolationUnfreeze: # new in 1.66
|
407
|
+
Enabled: true
|
385
408
|
Style/RedundantLineContinuation: # new in 1.49
|
386
409
|
Enabled: true
|
387
410
|
Style/RedundantRegexpArgument: # new in 1.53
|
@@ -396,6 +419,8 @@ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
396
419
|
Enabled: true
|
397
420
|
Style/SelectByRegexp: # new in 1.22
|
398
421
|
Enabled: true
|
422
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
423
|
+
Enabled: true
|
399
424
|
Style/SingleLineDoEndBlock: # new in 1.57
|
400
425
|
Enabled: true
|
401
426
|
Style/StringChars: # (new in 1.12)
|
@@ -409,6 +434,8 @@ Style/StringLiteralsInInterpolation:
|
|
409
434
|
SupportedStyles:
|
410
435
|
- single_quotes
|
411
436
|
- double_quotes
|
437
|
+
Style/SuperArguments: # new in 1.64
|
438
|
+
Enabled: true
|
412
439
|
Style/SuperWithArgsParentheses: # new in 1.58
|
413
440
|
Enabled: true
|
414
441
|
Style/SwapValues: # (new in 1.1)
|
data/ergomentum_rubocop.gemspec
CHANGED
@@ -17,19 +17,20 @@ 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.3.5"
|
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"
|
27
|
-
spec.add_dependency "rubocop-capybara"
|
28
|
-
spec.add_dependency "rubocop-factory_bot"
|
29
|
-
spec.add_dependency "rubocop-performance"
|
30
|
-
spec.add_dependency "rubocop-rails"
|
31
|
-
spec.add_dependency "rubocop-rake"
|
32
|
-
spec.add_dependency "rubocop-rspec"
|
26
|
+
spec.add_dependency "rubocop"
|
27
|
+
spec.add_dependency "rubocop-capybara"
|
28
|
+
spec.add_dependency "rubocop-factory_bot"
|
29
|
+
spec.add_dependency "rubocop-performance"
|
30
|
+
spec.add_dependency "rubocop-rails"
|
31
|
+
spec.add_dependency "rubocop-rake"
|
32
|
+
spec.add_dependency "rubocop-rspec"
|
33
|
+
spec.add_dependency "rubocop-rspec_rails"
|
33
34
|
|
34
35
|
spec.metadata["rubygems_mfa_required"] = "true"
|
35
36
|
end
|
metadata
CHANGED
@@ -1,113 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ergomentum_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ERGOMENTUM
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
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: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
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: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-factory_bot
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
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: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-performance
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
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: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
89
|
+
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec_rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
description: 'Rubocop style checking for ERGOMENTUM projects.
|
112
126
|
|
113
127
|
'
|
@@ -141,14 +155,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
155
|
requirements:
|
142
156
|
- - ">="
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version: 3.
|
158
|
+
version: 3.3.5
|
145
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
160
|
requirements:
|
147
161
|
- - ">="
|
148
162
|
- !ruby/object:Gem::Version
|
149
163
|
version: '0'
|
150
164
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
165
|
+
rubygems_version: 3.5.22
|
152
166
|
signing_key:
|
153
167
|
specification_version: 4
|
154
168
|
summary: ERGOMENTUM Rubocop definitions
|