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