simplycop 1.13.5 → 1.13.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,36 +4,99 @@ require:
4
4
  Performance/AncestorsInclude:
5
5
  Enabled: true
6
6
 
7
+ Performance/ArraySemiInfiniteRangeSlice:
8
+ Enabled: false
9
+
7
10
  Performance/BigDecimalWithNumericArgument:
8
11
  Enabled: true
9
12
 
13
+ Performance/BindCall:
14
+ Enabled: true
15
+
10
16
  Performance/BlockGivenWithExplicitBlock:
11
17
  Enabled: true
12
18
 
19
+ Performance/Caller:
20
+ Enabled: true
21
+
22
+ Performance/CaseWhenSplat:
23
+ Enabled: false
24
+
13
25
  Performance/Casecmp:
14
26
  Enabled: true
15
27
 
28
+ Performance/ChainArrayAllocation:
29
+ Enabled: false
30
+
16
31
  Performance/CollectionLiteralInLoop:
17
32
  Enabled: true
18
33
 
34
+ Performance/CompareWithBlock:
35
+ Enabled: true
36
+
19
37
  Performance/ConcurrentMonotonicTime:
20
38
  Enabled: true
21
39
 
22
40
  Performance/ConstantRegexp:
23
41
  Enabled: true
24
42
 
43
+ Performance/Count:
44
+ Enabled: true
45
+
46
+ Performance/DeletePrefix:
47
+ Enabled: true
48
+
49
+ Performance/DeleteSuffix:
50
+ Enabled: true
51
+
52
+ Performance/Detect:
53
+ Enabled: true
54
+
55
+ Performance/DoubleStartEndWith:
56
+ Enabled: true
57
+
58
+ Performance/EndWith:
59
+ Enabled: true
60
+
61
+ Performance/FixedSize:
62
+ Enabled: true
63
+
64
+ Performance/FlatMap:
65
+ Enabled: true
66
+
67
+ Performance/InefficientHashSearch:
68
+ Enabled: true
69
+
70
+ Performance/IoReadlines:
71
+ Enabled: true
72
+
25
73
  Performance/MapCompact: # Filter_map removes [false]
26
74
  Enabled: false
27
75
 
76
+ Performance/MapMethodChain:
77
+ Enabled: true
78
+
28
79
  Performance/MethodObjectAsBlock:
29
80
  Enabled: true
30
81
 
82
+ Performance/OpenStruct:
83
+ Enabled: false
84
+
85
+ Performance/RangeInclude:
86
+ Enabled: true
87
+
31
88
  Performance/RedundantBlockCall: # Causes conflicting warnings with normal rubocop enabled
32
89
  Enabled: false
33
90
 
34
91
  Performance/RedundantEqualityComparisonBlock:
35
92
  Enabled: true
36
93
 
94
+ Performance/RedundantMatch:
95
+ Enabled: true
96
+
97
+ Performance/RedundantMerge:
98
+ Enabled: true
99
+
37
100
  Performance/RedundantSortBlock:
38
101
  Enabled: true
39
102
 
@@ -43,20 +106,47 @@ Performance/RedundantSplitRegexpArgument:
43
106
  Performance/RedundantStringChars:
44
107
  Enabled: true
45
108
 
109
+ Performance/RegexpMatch:
110
+ Enabled: true
111
+
112
+ Performance/ReverseEach:
113
+ Enabled: true
114
+
46
115
  Performance/ReverseFirst:
47
116
  Enabled: true
48
117
 
118
+ Performance/SelectMap:
119
+ Enabled: false
120
+
121
+ Performance/Size:
122
+ Enabled: true
123
+
49
124
  Performance/SortReverse:
50
125
  Enabled: true
51
126
 
52
127
  Performance/Squeeze:
53
128
  Enabled: true
54
129
 
130
+ Performance/StartWith:
131
+ Enabled: true
132
+
55
133
  Performance/StringIdentifierArgument:
56
134
  Enabled: true
57
135
 
58
136
  Performance/StringInclude:
59
137
  Enabled: true
60
138
 
139
+ Performance/StringReplacement:
140
+ Enabled: true
141
+
61
142
  Performance/Sum:
62
143
  Enabled: true
144
+
145
+ Performance/TimesMap:
146
+ Enabled: true
147
+
148
+ Performance/UnfreezeString:
149
+ Enabled: true
150
+
151
+ Performance/UriDefaultParser:
152
+ Enabled: true
data/.simplycop_rspec.yml CHANGED
@@ -1,60 +1,205 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
 
4
+ RSpec/AlignLeftLetBrace:
5
+ Enabled: false
6
+
7
+ RSpec/AlignRightLetBrace:
8
+ Enabled: false
9
+
10
+ RSpec/AnyInstance:
11
+ Enabled: true
12
+
13
+ RSpec/AroundBlock:
14
+ Enabled: true
15
+
16
+ RSpec/Be:
17
+ Enabled: true
18
+
19
+ RSpec/BeEmpty:
20
+ Enabled: true
21
+
4
22
  RSpec/BeEq:
5
23
  Enabled: true
6
24
 
7
- RSpec/BeforeAfterAll:
8
- Enabled: false
25
+ RSpec/BeEql:
26
+ Enabled: true
9
27
 
10
28
  RSpec/BeNil:
11
29
  Enabled: true
12
30
 
31
+ RSpec/BeforeAfterAll:
32
+ Enabled: false
33
+
13
34
  RSpec/ChangeByZero:
14
35
  Enabled: true
15
36
 
16
37
  RSpec/ClassCheck:
17
38
  Enabled: true
18
39
 
40
+ RSpec/ContainExactly:
41
+ Enabled: true
42
+
43
+ RSpec/ContextMethod:
44
+ Enabled: true
45
+
46
+ RSpec/ContextWording:
47
+ Enabled: true
48
+ Prefixes:
49
+ - for
50
+ - if
51
+ - unless
52
+ - when
53
+ - while
54
+ - with
55
+ - without
56
+
19
57
  RSpec/DescribeClass:
20
58
  Enabled: false
21
59
 
22
60
  RSpec/DescribeMethod:
23
61
  Enabled: false
24
62
 
63
+ RSpec/DescribeSymbol:
64
+ Enabled: true
65
+
25
66
  RSpec/DescribedClass:
26
67
  Enabled: false
27
68
 
69
+ RSpec/DescribedClassModuleWrapping:
70
+ Enabled: false
71
+
72
+ RSpec/Dialect:
73
+ Enabled: false
74
+
28
75
  RSpec/DuplicatedMetadata:
29
76
  Enabled: true
30
77
 
78
+ RSpec/EmptyExampleGroup:
79
+ Enabled: true
80
+
81
+ RSpec/EmptyHook:
82
+ Enabled: true
83
+
84
+ RSpec/EmptyLineAfterExample:
85
+ Enabled: true
86
+
87
+ RSpec/EmptyLineAfterExampleGroup:
88
+ Enabled: true
89
+
90
+ RSpec/EmptyLineAfterFinalLet:
91
+ Enabled: true
92
+
93
+ RSpec/EmptyLineAfterHook:
94
+ Enabled: true
95
+
96
+ RSpec/EmptyLineAfterSubject:
97
+ Enabled: true
98
+
31
99
  RSpec/ExampleLength:
32
100
  Enabled: false
33
101
 
102
+ RSpec/ExampleWithoutDescription:
103
+ Enabled: true
104
+
105
+ RSpec/ExampleWording:
106
+ Enabled: true
107
+
34
108
  RSpec/ExcessiveDocstringSpacing:
35
109
  Enabled: true
36
110
 
111
+ RSpec/ExpectActual:
112
+ Enabled: true
113
+
114
+ RSpec/ExpectChange:
115
+ Enabled: true
116
+
117
+ RSpec/ExpectInHook:
118
+ Enabled: true
119
+
37
120
  RSpec/ExpectOutput:
38
121
  Enabled: false
39
122
 
40
123
  RSpec/FilePath:
41
124
  Enabled: false
42
125
 
126
+ RSpec/Focus:
127
+ Enabled: true
128
+
129
+ RSpec/HookArgument:
130
+ Enabled: true
131
+
132
+ RSpec/HooksBeforeExamples:
133
+ Enabled: true
134
+
43
135
  RSpec/IdenticalEqualityAssertion:
44
136
  Enabled: true
45
137
 
138
+ RSpec/ImplicitBlockExpectation:
139
+ Enabled: true
140
+
141
+ RSpec/ImplicitExpect:
142
+ Enabled: true
143
+
144
+ RSpec/ImplicitSubject:
145
+ Enabled: true
146
+
147
+ # Currently pending (as of 2.16) but causes multiple fails on Rater and Chopin
148
+ # and possibly controversial/unpopular so keep disabled pending discussion
149
+ RSpec/IndexedLet:
150
+ Enabled: false
151
+
152
+ RSpec/InstanceSpy:
153
+ Enabled: true
154
+
46
155
  RSpec/InstanceVariable:
47
156
  Enabled: false
48
157
 
158
+ RSpec/ItBehavesLike:
159
+ Enabled: true
160
+
161
+ RSpec/IteratedExpectation:
162
+ Enabled: true
163
+
164
+ RSpec/LeadingSubject:
165
+ Enabled: true
166
+
167
+ RSpec/LeakyConstantDeclaration:
168
+ Enabled: true
169
+
170
+ RSpec/LetBeforeExamples:
171
+ Enabled: true
172
+
173
+ RSpec/LetSetup:
174
+ Enabled: true
175
+
176
+ RSpec/MatchArray:
177
+ Enabled: false
178
+
179
+ RSpec/MessageChain:
180
+ Enabled: true
181
+
49
182
  RSpec/MessageSpies:
50
183
  Enabled: false
51
184
 
185
+ RSpec/MissingExampleGroupArgument:
186
+ Enabled: true
187
+
188
+ RSpec/MultipleDescribes:
189
+ Enabled: true
190
+
52
191
  RSpec/MultipleExpectations:
53
192
  Enabled: false
54
193
 
55
194
  RSpec/MultipleMemoizedHelpers:
56
195
  Enabled: false
57
196
 
197
+ RSpec/MultipleSubjects:
198
+ Enabled: true
199
+
200
+ RSpec/NamedSubject:
201
+ Enabled: true
202
+
58
203
  RSpec/NestedGroups:
59
204
  Enabled: true
60
205
  Max: 4
@@ -65,41 +210,113 @@ RSpec/NoExpectationExample:
65
210
  RSpec/NotToNot:
66
211
  Enabled: false
67
212
 
68
- RSpec/ScatteredSetup:
213
+ RSpec/OverwritingSetup:
214
+ Enabled: true
215
+
216
+ RSpec/Pending:
69
217
  Enabled: false
70
218
 
71
- RSpec/StubbedMock:
219
+ # Bug https://github.com/rubocop/rubocop-rspec/issues/1521
220
+ RSpec/PendingWithoutReason:
221
+ Enabled: false
222
+
223
+ RSpec/PredicateMatcher:
224
+ Enabled: true
225
+
226
+ RSpec/ReceiveCounts:
227
+ Enabled: true
228
+
229
+ RSpec/ReceiveMessages:
230
+ Enabled: true
231
+
232
+ RSpec/ReceiveNever:
233
+ Enabled: true
234
+
235
+ RSpec/RedundantAround:
236
+ Enabled: true
237
+
238
+ RSpec/RepeatedDescription:
239
+ Enabled: true
240
+
241
+ RSpec/RepeatedExample:
242
+ Enabled: true
243
+
244
+ RSpec/RepeatedExampleGroupBody:
245
+ Enabled: true
246
+
247
+ RSpec/RepeatedExampleGroupDescription:
248
+ Enabled: true
249
+
250
+ RSpec/RepeatedIncludeExample:
251
+ Enabled: true
252
+
253
+ RSpec/ReturnFromStub:
254
+ Enabled: true
255
+
256
+ RSpec/ScatteredLet:
257
+ Enabled: true
258
+
259
+ RSpec/ScatteredSetup:
72
260
  Enabled: false
73
261
 
262
+ RSpec/SharedContext:
263
+ Enabled: true
264
+
265
+ RSpec/SharedExamples:
266
+ Enabled: true
267
+
268
+ RSpec/SingleArgumentMessageChain:
269
+ Enabled: true
270
+
271
+ RSpec/SkipBlockInsideExample:
272
+ Enabled: true
273
+
74
274
  RSpec/SortMetadata:
75
275
  Enabled: true
76
276
 
77
- # Bug https://github.com/rubocop/rubocop-rspec/issues/1521
78
- RSpec/PendingWithoutReason:
277
+ RSpec/StubbedMock:
79
278
  Enabled: false
80
279
 
81
- RSpec/SubjectDeclaration: # new in 2.5
280
+ RSpec/SubjectDeclaration:
82
281
  Enabled: true
83
282
 
84
- RSpec/Rails/AvoidSetupHook: # new in 2.4
283
+ RSpec/SubjectStub:
85
284
  Enabled: true
86
285
 
87
- RSpec/Rails/HaveHttpStatus:
286
+ RSpec/UnspecifiedException:
88
287
  Enabled: true
89
288
 
90
- RSpec/Rails/InferredSpecType:
289
+ RSpec/VariableDefinition:
91
290
  Enabled: true
92
291
 
93
292
  RSpec/VerifiedDoubleReference:
94
293
  Enabled: true
95
294
 
96
- # Capybara
295
+ RSpec/VerifiedDoubles:
296
+ Enabled: true
297
+
298
+ RSpec/VoidExpect:
299
+ Enabled: true
300
+
301
+ RSpec/Yield:
302
+ Enabled: true
303
+
304
+ # Rspec/Capybara
97
305
 
98
306
  RSpec/Capybara:
99
307
  Enabled: true
100
308
  Include:
101
309
  - spec/integration/*.rb
102
310
 
311
+ Capybara/CurrentPathExpectation:
312
+ Enabled: true
313
+
314
+ Capybara/FeatureMethods:
315
+ Enabled: true
316
+
317
+ Capybara/MatchStyle:
318
+ Enabled: true
319
+
103
320
  Capybara/NegationMatcher:
104
321
  Enabled: true
105
322
 
@@ -112,7 +329,10 @@ Capybara/SpecificFinders:
112
329
  Capybara/SpecificMatcher:
113
330
  Enabled: true
114
331
 
115
- # FactoryBot
332
+ # RSpec/FactoryBot
333
+
334
+ FactoryBot/AttributeDefinedStatically:
335
+ Enabled: true
116
336
 
117
337
  FactoryBot/ConsistentParenthesesStyle:
118
338
  Enabled: true
@@ -120,9 +340,35 @@ FactoryBot/ConsistentParenthesesStyle:
120
340
  FactoryBot/CreateList:
121
341
  Enabled: false
122
342
 
343
+ FactoryBot/FactoryClassName:
344
+ Enabled: true
345
+
123
346
  FactoryBot/FactoryNameStyle:
124
347
  Enabled: true
125
348
 
126
349
  # Prefer explicit factorybot call
127
350
  FactoryBot/SyntaxMethods:
128
- Enabled: false
351
+ Enabled: false
352
+
353
+ # Rspec/Rails
354
+
355
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
356
+ Enabled: true
357
+
358
+ RSpec/Rails/HaveHttpStatus:
359
+ Enabled: true
360
+
361
+ RSpec/Rails/HttpStatus:
362
+ Enabled: true
363
+
364
+ RSpec/Rails/InferredSpecType:
365
+ Enabled: true
366
+
367
+ RSpec/Rails/MinitestAssertions:
368
+ Enabled: true
369
+
370
+ RSpec/Rails/NegationBeValid:
371
+ Enabled: true
372
+
373
+ RSpec/Rails/TravelAround:
374
+ Enabled: true
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.13.5'
10
+ VERSION = '1.13.8'
11
11
  end
data/simplycop.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'rubocop', '1.56.0'
20
+ spec.add_dependency 'rubocop', '1.56.2'
21
21
  spec.add_dependency 'rubocop-performance', '1.19.0'
22
22
  spec.add_dependency 'rubocop-rails', '2.20.2'
23
23
  spec.add_dependency 'rubocop-rspec', '2.23.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.5
4
+ version: 1.13.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.56.0
19
+ version: 1.56.2
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.56.0
26
+ version: 1.56.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement