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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e4ab0e968f3876d0ce517e56e4f4d4f85d4a512148d76eddc3b90afb27b030e
4
- data.tar.gz: 1222c65a574b4aeab13b5372a4e2fc0c4c3af89e6f611dcfd82a41879343e198
3
+ metadata.gz: 8d5368b75099f59a900d7c2b9805ea045e3dc0e8150612b4a455d0aa4bf661fe
4
+ data.tar.gz: 96200ba4b7ee03b2781ad4b3bb8c202eab19a54600ec135d2d422cde96caef1f
5
5
  SHA512:
6
- metadata.gz: 173c89e6a3c9eb6b022b90ccc0d28c49b44331d42617e082d5fcd1380e0c2b2ad834250608a87556c9dd5e664d770009d1499a77fa002ad4270740b1069f2b44
7
- data.tar.gz: 924a0d9ed141df769723ed76ab30aae9625da0f1890ab75125c94f74ca1fa9e0cb6c31b0b4f8c74d0418031890c07f6f4dad1eadedbc1424e314fff32c16bc0f
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: false
153
+ Enabled: true
160
154
 
161
155
  Layout/EmptyLinesAroundAttributeAccessor:
162
- Enabled: false
156
+ Enabled: true
163
157
 
164
158
  Layout/IndentationStyle:
165
- Enabled: false
159
+ Enabled: true
166
160
 
167
161
  Layout/SpaceAroundMethodCallOperator:
168
- Enabled: false
162
+ Enabled: true
169
163
 
170
164
  Lint/BinaryOperatorWithIdenticalOperands:
171
- Enabled: false
165
+ Enabled: true
172
166
 
173
167
  Lint/ConstantDefinitionInBlock:
174
- Enabled: false
168
+ Enabled: true
175
169
 
176
170
  Lint/DeprecatedOpenSSLConstant:
177
- Enabled: false
171
+ Enabled: true
178
172
 
179
173
  Lint/DuplicateElsifCondition:
180
- Enabled: false
174
+ Enabled: true
181
175
 
182
176
  Lint/DuplicateRequire:
183
- Enabled: false
177
+ Enabled: true
184
178
 
185
179
  Lint/DuplicateRescueException:
186
- Enabled: false
180
+ Enabled: true
187
181
 
188
182
  Lint/EmptyConditionalBody:
189
- Enabled: false
183
+ Enabled: true
190
184
 
191
185
  Lint/EmptyFile:
192
- Enabled: false
186
+ Enabled: true
193
187
 
194
188
  Lint/FloatComparison:
195
- Enabled: false
189
+ Enabled: true
196
190
 
197
191
  Lint/HashCompareByIdentity:
198
- Enabled: false
192
+ Enabled: true
199
193
 
200
194
  Lint/IdentityComparison:
201
- Enabled: false
195
+ Enabled: true
202
196
 
203
197
  Lint/MissingSuper:
204
- Enabled: false
198
+ Enabled: true
205
199
 
206
200
  Lint/MixedRegexpCaptureTypes:
207
- Enabled: false
201
+ Enabled: true
208
202
 
209
203
  Lint/OutOfRangeRegexpRef:
210
- Enabled: false
204
+ Enabled: true
211
205
 
212
206
  Lint/RedundantSafeNavigation:
213
- Enabled: false
207
+ Enabled: true
214
208
 
215
209
  Lint/SelfAssignment:
216
- Enabled: false
210
+ Enabled: true
217
211
 
218
212
  Lint/TopLevelReturnWithArgument:
219
- Enabled: false
213
+ Enabled: true
220
214
 
221
215
  Lint/TrailingCommaInAttributeDeclaration:
222
- Enabled: false
216
+ Enabled: true
223
217
 
224
218
  Lint/UnreachableLoop:
225
- Enabled: false
219
+ Enabled: true
226
220
 
227
221
  Lint/UselessMethodDefinition:
228
- Enabled: false
222
+ Enabled: true
229
223
 
230
224
  Lint/UselessTimes:
231
- Enabled: false
225
+ Enabled: true
232
226
 
233
227
  Rails/ArelStar:
234
- Enabled: false
228
+ Enabled: true
235
229
 
236
230
  Rails/Pick:
237
- Enabled: false
231
+ Enabled: true
238
232
 
239
233
  Rails/RedundantForeignKey:
240
- Enabled: false
234
+ Enabled: true
241
235
 
242
236
  RSpec/Capybara/CurrentPathExpectation:
243
- Enabled: false
237
+ Enabled: true
244
238
 
245
239
  RSpec/Capybara/FeatureMethods:
246
- Enabled: false
240
+ Enabled: true
247
241
 
248
242
  RSpec/Capybara/VisibilityMatcher:
249
- Enabled: false
243
+ Enabled: true
250
244
 
251
245
  RSpec/EmptyHook:
252
- Enabled: false
246
+ Enabled: true
253
247
 
254
248
  RSpec/FactoryBot/AttributeDefinedStatically:
255
- Enabled: false
249
+ Enabled: true
256
250
 
257
251
  RSpec/FactoryBot/CreateList:
258
- Enabled: false
252
+ Enabled: true
259
253
 
260
254
  RSpec/FactoryBot/FactoryClassName:
261
- Enabled: false
255
+ Enabled: true
262
256
 
263
257
  RSpec/MultipleMemoizedHelpers:
264
- Enabled: false
258
+ Enabled: true
265
259
 
266
260
  RSpec/NotToNot:
267
- Enabled: false
261
+ Enabled: true
268
262
 
269
263
  RSpec/Rails/HttpStatus:
270
- Enabled: false
264
+ Enabled: true
271
265
 
272
266
  RSpec/RepeatedIncludeExample:
273
- Enabled: false
267
+ Enabled: true
274
268
 
275
269
  RSpec/StubbedMock:
276
- Enabled: false
270
+ Enabled: true
277
271
 
278
272
  RSpec/VariableDefinition:
279
- Enabled: false
273
+ Enabled: true
280
274
 
281
275
  RSpec/VariableName:
282
- Enabled: false
276
+ Enabled: true
283
277
 
284
278
  Style/AccessorGrouping:
285
- Enabled: false
279
+ Enabled: true
286
280
 
287
281
  Style/BisectedAttrAccessor:
288
- Enabled: false
282
+ Enabled: true
289
283
 
290
284
  Style/CaseLikeIf:
291
- Enabled: false
285
+ Enabled: true
292
286
 
293
287
  Style/CombinableLoops:
294
- Enabled: false
288
+ Enabled: true
295
289
 
296
290
  Style/ExponentialNotation:
297
- Enabled: false
291
+ Enabled: true
298
292
 
299
293
  Style/GlobalStdStream:
300
- Enabled: false
294
+ Enabled: true
301
295
 
302
296
  Style/HashAsLastArrayItem:
303
- Enabled: false
297
+ Enabled: true
304
298
 
305
299
  Style/HashLikeCase:
306
- Enabled: false
300
+ Enabled: true
307
301
 
308
302
  Style/KeywordParametersOrder:
309
- Enabled: false
303
+ Enabled: true
310
304
 
311
305
  Style/OptionalBooleanParameter:
312
- Enabled: false
306
+ Enabled: true
313
307
 
314
308
  Style/RedundantAssignment:
315
- Enabled: false
309
+ Enabled: true
316
310
 
317
311
  Style/RedundantRegexpCharacterClass:
318
- Enabled: false
312
+ Enabled: true
319
313
 
320
314
  Style/RedundantRegexpEscape:
321
- Enabled: false
315
+ Enabled: true
322
316
 
323
317
  Style/RedundantSelfAssignment:
324
- Enabled: false
318
+ Enabled: true
325
319
 
326
320
  Style/SingleArgumentDig:
327
- Enabled: false
321
+ Enabled: true
328
322
 
329
323
  Style/SlicingWithRange:
330
- Enabled: false
324
+ Enabled: true
331
325
 
332
326
  Style/SoleNestedConditional:
333
- Enabled: false
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzcaterRubocop
4
- VERSION = "4.0.0"
4
+ VERSION = "5.0.0"
5
5
  end
@@ -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(\:\:)/.freeze # rubocop:disable Style/RedundantFreeze
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.0.0
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-04-19 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler