ezcater_rubocop 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -1
- data/conf/rubocop.yml +59 -69
- data/lib/ezcater_rubocop/version.rb +1 -1
- data/lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d5368b75099f59a900d7c2b9805ea045e3dc0e8150612b4a455d0aa4bf661fe
|
4
|
+
data.tar.gz: 96200ba4b7ee03b2781ad4b3bb8c202eab19a54600ec135d2d422cde96caef1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc5992ee8b6cb9facd94ef7fa312271352d405f6617375cb2fa9eae60e76f5d74930bc2aff46218a934268558fbc3374e46730d16209fdc3f68d6cd3c98f7879
|
7
|
+
data.tar.gz: 6d240eca17afb70b3072dfb92f50773bb48c9d207ce316cd0223a56b04ac6ff5d0196784387a524063c976e10d1d1270ae0ad7eddd248e384dc6a31b893eed59
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,9 @@ This gem is moving onto its own [Semantic Versioning](https://semver.org/) schem
|
|
6
6
|
|
7
7
|
Prior to v1.0.0 this gem was versioned based on the `MAJOR`.`MINOR` version of RuboCop. The first release of the ezcater_rubocop gem was `v0.49.0`.
|
8
8
|
|
9
|
+
## 5.0.0
|
10
|
+
- Enable all added cops since 0.8. There are a lot of new cops now, be sure to use `--regenerate-todo` if you're on a large project that can't be updated easily.
|
11
|
+
|
9
12
|
## 4.0.0
|
10
13
|
|
11
14
|
- Add the [rubcop-graphql](https://github.com/DmitryTsepelev/rubocop-graphql) helpers and enable
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ezcater_rubocop
|
1
|
+
# ezcater_rubocop [![CircleCI](https://circleci.com/gh/ezcater/ezcater_rubocop/tree/main.svg?style=svg)](https://circleci.com/gh/ezcater/ezcater_rubocop/tree/main)
|
2
2
|
|
3
3
|
ezCater custom cops and shared RuboCop configuration.
|
4
4
|
|
@@ -72,6 +72,11 @@ running rubocop.
|
|
72
72
|
|
73
73
|
This gem is using [Semantic Versioning](https://semver.org/). All version bumps should increment using `MAJOR.MINOR.PATCH` based on changes.
|
74
74
|
|
75
|
+
When adding a new cop, please enable the cop and release a new major version. This allows us to
|
76
|
+
constantly roll out improvements without clients having their suite break unknowingly. When a
|
77
|
+
breaking change is released, users can opt to use `--regenerate-todo` to update their TODO file. Do
|
78
|
+
not add cops with `enabled: false` unless you want that cop to always be disabled.
|
79
|
+
|
75
80
|
## Custom Cops
|
76
81
|
|
77
82
|
1. [RailsConfiguration](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rails_configuration.rb) - Enforce use of `Rails.configuration` instead of `Rails.application.config`.
|
data/conf/rubocop.yml
CHANGED
@@ -148,191 +148,183 @@ Style/TrailingCommaInArrayLiteral:
|
|
148
148
|
Style/TrailingCommaInHashLiteral:
|
149
149
|
EnforcedStyleForMultiline: consistent_comma
|
150
150
|
|
151
|
-
### New Cops
|
152
151
|
|
153
|
-
# Cops are now introduced in a "pending" state and must be explicitly
|
154
|
-
# enabled or disabled. New cops are not enabled by default until the
|
155
|
-
# next major release.
|
156
|
-
|
157
|
-
# New cops introduced between 0.81.0 and 1.16.0
|
158
152
|
Layout/BeginEndAlignment:
|
159
|
-
Enabled:
|
153
|
+
Enabled: true
|
160
154
|
|
161
155
|
Layout/EmptyLinesAroundAttributeAccessor:
|
162
|
-
Enabled:
|
156
|
+
Enabled: true
|
163
157
|
|
164
158
|
Layout/IndentationStyle:
|
165
|
-
Enabled:
|
159
|
+
Enabled: true
|
166
160
|
|
167
161
|
Layout/SpaceAroundMethodCallOperator:
|
168
|
-
Enabled:
|
162
|
+
Enabled: true
|
169
163
|
|
170
164
|
Lint/BinaryOperatorWithIdenticalOperands:
|
171
|
-
Enabled:
|
165
|
+
Enabled: true
|
172
166
|
|
173
167
|
Lint/ConstantDefinitionInBlock:
|
174
|
-
Enabled:
|
168
|
+
Enabled: true
|
175
169
|
|
176
170
|
Lint/DeprecatedOpenSSLConstant:
|
177
|
-
Enabled:
|
171
|
+
Enabled: true
|
178
172
|
|
179
173
|
Lint/DuplicateElsifCondition:
|
180
|
-
Enabled:
|
174
|
+
Enabled: true
|
181
175
|
|
182
176
|
Lint/DuplicateRequire:
|
183
|
-
Enabled:
|
177
|
+
Enabled: true
|
184
178
|
|
185
179
|
Lint/DuplicateRescueException:
|
186
|
-
Enabled:
|
180
|
+
Enabled: true
|
187
181
|
|
188
182
|
Lint/EmptyConditionalBody:
|
189
|
-
Enabled:
|
183
|
+
Enabled: true
|
190
184
|
|
191
185
|
Lint/EmptyFile:
|
192
|
-
Enabled:
|
186
|
+
Enabled: true
|
193
187
|
|
194
188
|
Lint/FloatComparison:
|
195
|
-
Enabled:
|
189
|
+
Enabled: true
|
196
190
|
|
197
191
|
Lint/HashCompareByIdentity:
|
198
|
-
Enabled:
|
192
|
+
Enabled: true
|
199
193
|
|
200
194
|
Lint/IdentityComparison:
|
201
|
-
Enabled:
|
195
|
+
Enabled: true
|
202
196
|
|
203
197
|
Lint/MissingSuper:
|
204
|
-
Enabled:
|
198
|
+
Enabled: true
|
205
199
|
|
206
200
|
Lint/MixedRegexpCaptureTypes:
|
207
|
-
Enabled:
|
201
|
+
Enabled: true
|
208
202
|
|
209
203
|
Lint/OutOfRangeRegexpRef:
|
210
|
-
Enabled:
|
204
|
+
Enabled: true
|
211
205
|
|
212
206
|
Lint/RedundantSafeNavigation:
|
213
|
-
Enabled:
|
207
|
+
Enabled: true
|
214
208
|
|
215
209
|
Lint/SelfAssignment:
|
216
|
-
Enabled:
|
210
|
+
Enabled: true
|
217
211
|
|
218
212
|
Lint/TopLevelReturnWithArgument:
|
219
|
-
Enabled:
|
213
|
+
Enabled: true
|
220
214
|
|
221
215
|
Lint/TrailingCommaInAttributeDeclaration:
|
222
|
-
Enabled:
|
216
|
+
Enabled: true
|
223
217
|
|
224
218
|
Lint/UnreachableLoop:
|
225
|
-
Enabled:
|
219
|
+
Enabled: true
|
226
220
|
|
227
221
|
Lint/UselessMethodDefinition:
|
228
|
-
Enabled:
|
222
|
+
Enabled: true
|
229
223
|
|
230
224
|
Lint/UselessTimes:
|
231
|
-
Enabled:
|
225
|
+
Enabled: true
|
232
226
|
|
233
227
|
Rails/ArelStar:
|
234
|
-
Enabled:
|
228
|
+
Enabled: true
|
235
229
|
|
236
230
|
Rails/Pick:
|
237
|
-
Enabled:
|
231
|
+
Enabled: true
|
238
232
|
|
239
233
|
Rails/RedundantForeignKey:
|
240
|
-
Enabled:
|
234
|
+
Enabled: true
|
241
235
|
|
242
236
|
RSpec/Capybara/CurrentPathExpectation:
|
243
|
-
Enabled:
|
237
|
+
Enabled: true
|
244
238
|
|
245
239
|
RSpec/Capybara/FeatureMethods:
|
246
|
-
Enabled:
|
240
|
+
Enabled: true
|
247
241
|
|
248
242
|
RSpec/Capybara/VisibilityMatcher:
|
249
|
-
Enabled:
|
243
|
+
Enabled: true
|
250
244
|
|
251
245
|
RSpec/EmptyHook:
|
252
|
-
Enabled:
|
246
|
+
Enabled: true
|
253
247
|
|
254
248
|
RSpec/FactoryBot/AttributeDefinedStatically:
|
255
|
-
Enabled:
|
249
|
+
Enabled: true
|
256
250
|
|
257
251
|
RSpec/FactoryBot/CreateList:
|
258
|
-
Enabled:
|
252
|
+
Enabled: true
|
259
253
|
|
260
254
|
RSpec/FactoryBot/FactoryClassName:
|
261
|
-
Enabled:
|
255
|
+
Enabled: true
|
262
256
|
|
263
257
|
RSpec/MultipleMemoizedHelpers:
|
264
|
-
Enabled:
|
258
|
+
Enabled: true
|
265
259
|
|
266
260
|
RSpec/NotToNot:
|
267
|
-
Enabled:
|
261
|
+
Enabled: true
|
268
262
|
|
269
263
|
RSpec/Rails/HttpStatus:
|
270
|
-
Enabled:
|
264
|
+
Enabled: true
|
271
265
|
|
272
266
|
RSpec/RepeatedIncludeExample:
|
273
|
-
Enabled:
|
267
|
+
Enabled: true
|
274
268
|
|
275
269
|
RSpec/StubbedMock:
|
276
|
-
Enabled:
|
270
|
+
Enabled: true
|
277
271
|
|
278
272
|
RSpec/VariableDefinition:
|
279
|
-
Enabled:
|
273
|
+
Enabled: true
|
280
274
|
|
281
275
|
RSpec/VariableName:
|
282
|
-
Enabled:
|
276
|
+
Enabled: true
|
283
277
|
|
284
278
|
Style/AccessorGrouping:
|
285
|
-
Enabled:
|
279
|
+
Enabled: true
|
286
280
|
|
287
281
|
Style/BisectedAttrAccessor:
|
288
|
-
Enabled:
|
282
|
+
Enabled: true
|
289
283
|
|
290
284
|
Style/CaseLikeIf:
|
291
|
-
Enabled:
|
285
|
+
Enabled: true
|
292
286
|
|
293
287
|
Style/CombinableLoops:
|
294
|
-
Enabled:
|
288
|
+
Enabled: true
|
295
289
|
|
296
290
|
Style/ExponentialNotation:
|
297
|
-
Enabled:
|
291
|
+
Enabled: true
|
298
292
|
|
299
293
|
Style/GlobalStdStream:
|
300
|
-
Enabled:
|
294
|
+
Enabled: true
|
301
295
|
|
302
296
|
Style/HashAsLastArrayItem:
|
303
|
-
Enabled:
|
297
|
+
Enabled: true
|
304
298
|
|
305
299
|
Style/HashLikeCase:
|
306
|
-
Enabled:
|
300
|
+
Enabled: true
|
307
301
|
|
308
302
|
Style/KeywordParametersOrder:
|
309
|
-
Enabled:
|
303
|
+
Enabled: true
|
310
304
|
|
311
305
|
Style/OptionalBooleanParameter:
|
312
|
-
Enabled:
|
306
|
+
Enabled: true
|
313
307
|
|
314
308
|
Style/RedundantAssignment:
|
315
|
-
Enabled:
|
309
|
+
Enabled: true
|
316
310
|
|
317
311
|
Style/RedundantRegexpCharacterClass:
|
318
|
-
Enabled:
|
312
|
+
Enabled: true
|
319
313
|
|
320
314
|
Style/RedundantRegexpEscape:
|
321
|
-
Enabled:
|
315
|
+
Enabled: true
|
322
316
|
|
323
317
|
Style/RedundantSelfAssignment:
|
324
|
-
Enabled:
|
318
|
+
Enabled: true
|
325
319
|
|
326
320
|
Style/SingleArgumentDig:
|
327
|
-
Enabled:
|
321
|
+
Enabled: true
|
328
322
|
|
329
323
|
Style/SlicingWithRange:
|
330
|
-
Enabled:
|
324
|
+
Enabled: true
|
331
325
|
|
332
326
|
Style/SoleNestedConditional:
|
333
|
-
Enabled:
|
334
|
-
|
335
|
-
#### New cops in v0.81
|
327
|
+
Enabled: true
|
336
328
|
|
337
329
|
Lint/RaiseException:
|
338
330
|
Enabled: true
|
@@ -340,8 +332,6 @@ Lint/RaiseException:
|
|
340
332
|
Lint/StructNewOverride:
|
341
333
|
Enabled: true
|
342
334
|
|
343
|
-
#### New cops in v0.80
|
344
|
-
|
345
335
|
Style/HashEachMethods:
|
346
336
|
Enabled: true
|
347
337
|
|
@@ -36,7 +36,7 @@ module RuboCop
|
|
36
36
|
end.flatten + %w(its focus skip)).freeze
|
37
37
|
|
38
38
|
SELF_DOT_REGEXP = /\Aself\./.freeze # rubocop:disable Style/RedundantFreeze
|
39
|
-
COLON_COLON_REGEXP = /\A(
|
39
|
+
COLON_COLON_REGEXP = /\A(::)/.freeze # rubocop:disable Style/RedundantFreeze
|
40
40
|
|
41
41
|
SELF_DOT_MSG = 'Use ".<class method>" instead of "self.<class method>" for example group description.'
|
42
42
|
COLON_COLON_MSG = 'Use ".<class method>" instead of "::<class method>" for example group description.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezcater_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ezCater, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|