rewind-ruby-style 1.0.3 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rubocop.yml +210 -205
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575437746c9aeb291b5032b0f74dcbf075661883988d449da71edc9326c73907
|
4
|
+
data.tar.gz: a1226fa479dfb5e64b2ed46b26c3133eb6dd5b88497cca2e29af423708e9d038
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e364464ea438b7d0fdd64275fc5987c05ae32c6ead7a15524b37c11c910261f7f5e44d0d2e7479fcdb8817f2ab11f4964ff558f1421e3d5e07e3d6b802759a0
|
7
|
+
data.tar.gz: 6b43d7bc481f2abda79fbaf91a47594dd42232a8fd7db9ac88cb10511da1082224f9059c693586d03496be02114b7643350ba9cefe354a7d6116112e5d2ee905
|
data/rubocop.yml
CHANGED
@@ -3,14 +3,14 @@ AllCops:
|
|
3
3
|
TargetRubyVersion: 2.6
|
4
4
|
StyleGuideBaseURL: https://github.com/rewindio/ruby-style-configs/
|
5
5
|
Exclude:
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
6
|
+
- ".ebextenstions/**/*"
|
7
|
+
- ".git/**/*"
|
8
|
+
- "bin/**/*"
|
9
|
+
- "certs/**/*"
|
10
|
+
- "db/**/*"
|
11
|
+
- "log/**/*"
|
12
|
+
- "tmp/**/*"
|
13
|
+
- "vendor/**/*"
|
14
14
|
DisabledByDefault: true
|
15
15
|
|
16
16
|
Lint/AssignmentInCondition:
|
@@ -19,127 +19,124 @@ Lint/AssignmentInCondition:
|
|
19
19
|
Layout/AccessModifierIndentation:
|
20
20
|
EnforcedStyle: indent
|
21
21
|
SupportedStyles:
|
22
|
-
|
23
|
-
|
22
|
+
- outdent
|
23
|
+
- indent
|
24
24
|
IndentationWidth:
|
25
25
|
|
26
26
|
Style/Alias:
|
27
27
|
EnforcedStyle: prefer_alias_method
|
28
28
|
SupportedStyles:
|
29
|
-
|
30
|
-
|
29
|
+
- prefer_alias
|
30
|
+
- prefer_alias_method
|
31
31
|
|
32
32
|
Layout/HashAlignment:
|
33
33
|
EnforcedHashRocketStyle: key
|
34
34
|
EnforcedColonStyle: key
|
35
35
|
EnforcedLastArgumentHashStyle: ignore_implicit
|
36
36
|
SupportedLastArgumentHashStyles:
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
- always_inspect
|
38
|
+
- always_ignore
|
39
|
+
- ignore_implicit
|
40
|
+
- ignore_explicit
|
41
41
|
|
42
42
|
Layout/ParameterAlignment:
|
43
43
|
EnforcedStyle: with_fixed_indentation
|
44
44
|
SupportedStyles:
|
45
|
-
|
46
|
-
|
45
|
+
- with_first_parameter
|
46
|
+
- with_fixed_indentation
|
47
47
|
IndentationWidth:
|
48
48
|
|
49
49
|
Style/AndOr:
|
50
50
|
EnforcedStyle: always
|
51
51
|
SupportedStyles:
|
52
|
-
|
53
|
-
|
52
|
+
- always
|
53
|
+
- conditionals
|
54
54
|
|
55
55
|
Style/BarePercentLiterals:
|
56
56
|
EnforcedStyle: bare_percent
|
57
57
|
SupportedStyles:
|
58
|
-
|
59
|
-
|
58
|
+
- percent_q
|
59
|
+
- bare_percent
|
60
60
|
|
61
61
|
Style/BlockDelimiters:
|
62
62
|
EnforcedStyle: line_count_based
|
63
63
|
SupportedStyles:
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
- line_count_based
|
65
|
+
- semantic
|
66
|
+
- braces_for_chaining
|
67
67
|
ProceduralMethods:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
68
|
+
- benchmark
|
69
|
+
- bm
|
70
|
+
- bmbm
|
71
|
+
- create
|
72
|
+
- each_with_object
|
73
|
+
- measure
|
74
|
+
- new
|
75
|
+
- realtime
|
76
|
+
- tap
|
77
|
+
- with_object
|
78
78
|
FunctionalMethods:
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
79
|
+
- let
|
80
|
+
- let!
|
81
|
+
- subject
|
82
|
+
- watch
|
83
83
|
IgnoredMethods:
|
84
|
-
|
85
|
-
|
86
|
-
|
84
|
+
- lambda
|
85
|
+
- proc
|
86
|
+
- it
|
87
87
|
|
88
88
|
Layout/CaseIndentation:
|
89
89
|
EnforcedStyle: end
|
90
90
|
SupportedStyles:
|
91
|
-
|
92
|
-
|
91
|
+
- case
|
92
|
+
- end
|
93
93
|
IndentOneStep: false
|
94
94
|
IndentationWidth:
|
95
95
|
|
96
96
|
Style/ClassAndModuleChildren:
|
97
|
-
|
98
|
-
SupportedStyles:
|
99
|
-
- nested
|
100
|
-
- compact
|
97
|
+
Enabled: false
|
101
98
|
|
102
99
|
Style/ClassCheck:
|
103
100
|
EnforcedStyle: is_a?
|
104
101
|
SupportedStyles:
|
105
|
-
|
106
|
-
|
102
|
+
- is_a?
|
103
|
+
- kind_of?
|
107
104
|
|
108
105
|
Style/CommandLiteral:
|
109
106
|
EnforcedStyle: percent_x
|
110
107
|
SupportedStyles:
|
111
|
-
|
112
|
-
|
113
|
-
|
108
|
+
- backticks
|
109
|
+
- percent_x
|
110
|
+
- mixed
|
114
111
|
AllowInnerBackticks: false
|
115
112
|
|
116
113
|
Style/CommentAnnotation:
|
117
114
|
Keywords:
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
115
|
+
- TODO
|
116
|
+
- FIXME
|
117
|
+
- OPTIMIZE
|
118
|
+
- HACK
|
119
|
+
- REVIEW
|
123
120
|
|
124
121
|
Style/ConditionalAssignment:
|
125
122
|
EnforcedStyle: assign_to_condition
|
126
123
|
SupportedStyles:
|
127
|
-
|
128
|
-
|
124
|
+
- assign_to_condition
|
125
|
+
- assign_inside_condition
|
129
126
|
SingleLineConditionsOnly: true
|
130
127
|
|
131
128
|
Layout/DotPosition:
|
132
129
|
EnforcedStyle: leading
|
133
130
|
SupportedStyles:
|
134
|
-
|
135
|
-
|
131
|
+
- leading
|
132
|
+
- trailing
|
136
133
|
|
137
134
|
Style/EmptyElse:
|
138
135
|
EnforcedStyle: both
|
139
136
|
SupportedStyles:
|
140
|
-
|
141
|
-
|
142
|
-
|
137
|
+
- empty
|
138
|
+
- nil
|
139
|
+
- both
|
143
140
|
|
144
141
|
Layout/EmptyLineBetweenDefs:
|
145
142
|
AllowAdjacentOneLineDefs: false
|
@@ -147,22 +144,22 @@ Layout/EmptyLineBetweenDefs:
|
|
147
144
|
Layout/EmptyLinesAroundBlockBody:
|
148
145
|
EnforcedStyle: no_empty_lines
|
149
146
|
SupportedStyles:
|
150
|
-
|
151
|
-
|
147
|
+
- empty_lines
|
148
|
+
- no_empty_lines
|
152
149
|
|
153
150
|
Layout/EmptyLinesAroundClassBody:
|
154
151
|
EnforcedStyle: no_empty_lines
|
155
152
|
SupportedStyles:
|
156
|
-
|
157
|
-
|
158
|
-
|
153
|
+
- empty_lines
|
154
|
+
- empty_lines_except_namespace
|
155
|
+
- no_empty_lines
|
159
156
|
|
160
157
|
Layout/EmptyLinesAroundModuleBody:
|
161
158
|
EnforcedStyle: no_empty_lines
|
162
159
|
SupportedStyles:
|
163
|
-
|
164
|
-
|
165
|
-
|
160
|
+
- empty_lines
|
161
|
+
- empty_lines_except_namespace
|
162
|
+
- no_empty_lines
|
166
163
|
|
167
164
|
Layout/ExtraSpacing:
|
168
165
|
AllowForAlignment: true
|
@@ -177,23 +174,23 @@ Naming/FileName:
|
|
177
174
|
Layout/FirstArgumentIndentation:
|
178
175
|
EnforcedStyle: consistent
|
179
176
|
SupportedStyles:
|
180
|
-
|
181
|
-
|
182
|
-
|
177
|
+
- consistent
|
178
|
+
- special_for_inner_method_call
|
179
|
+
- special_for_inner_method_call_in_parentheses
|
183
180
|
IndentationWidth:
|
184
181
|
|
185
182
|
Style/For:
|
186
183
|
EnforcedStyle: each
|
187
184
|
SupportedStyles:
|
188
|
-
|
189
|
-
|
185
|
+
- for
|
186
|
+
- each
|
190
187
|
|
191
188
|
Style/FormatString:
|
192
189
|
EnforcedStyle: format
|
193
190
|
SupportedStyles:
|
194
|
-
|
195
|
-
|
196
|
-
|
191
|
+
- format
|
192
|
+
- sprintf
|
193
|
+
- percent
|
197
194
|
|
198
195
|
Style/FrozenStringLiteralComment:
|
199
196
|
Details: >-
|
@@ -211,18 +208,18 @@ Style/GlobalVars:
|
|
211
208
|
Style/HashSyntax:
|
212
209
|
EnforcedStyle: ruby19
|
213
210
|
SupportedStyles:
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
211
|
+
- ruby19
|
212
|
+
- hash_rockets
|
213
|
+
- no_mixed_keys
|
214
|
+
- ruby19_no_mixed_keys
|
218
215
|
UseHashRocketsWithSymbolValues: false
|
219
216
|
PreferHashRocketsForNonAlnumEndingSymbols: false
|
220
217
|
|
221
218
|
Layout/IndentationConsistency:
|
222
219
|
EnforcedStyle: normal
|
223
220
|
SupportedStyles:
|
224
|
-
|
225
|
-
|
221
|
+
- normal
|
222
|
+
- rails
|
226
223
|
|
227
224
|
Layout/IndentationWidth:
|
228
225
|
Width: 2
|
@@ -230,9 +227,9 @@ Layout/IndentationWidth:
|
|
230
227
|
Layout/FirstArrayElementIndentation:
|
231
228
|
EnforcedStyle: consistent
|
232
229
|
SupportedStyles:
|
233
|
-
|
234
|
-
|
235
|
-
|
230
|
+
- special_inside_parentheses
|
231
|
+
- consistent
|
232
|
+
- align_brackets
|
236
233
|
IndentationWidth:
|
237
234
|
|
238
235
|
Layout/AssignmentIndentation:
|
@@ -241,23 +238,23 @@ Layout/AssignmentIndentation:
|
|
241
238
|
Layout/FirstHashElementIndentation:
|
242
239
|
EnforcedStyle: consistent
|
243
240
|
SupportedStyles:
|
244
|
-
|
245
|
-
|
246
|
-
|
241
|
+
- special_inside_parentheses
|
242
|
+
- consistent
|
243
|
+
- align_braces
|
247
244
|
IndentationWidth:
|
248
245
|
|
249
246
|
Style/LambdaCall:
|
250
247
|
EnforcedStyle: call
|
251
248
|
SupportedStyles:
|
252
|
-
|
253
|
-
|
249
|
+
- call
|
250
|
+
- braces
|
254
251
|
|
255
252
|
Style/Next:
|
256
253
|
EnforcedStyle: skip_modifier_ifs
|
257
254
|
MinBodyLength: 3
|
258
255
|
SupportedStyles:
|
259
|
-
|
260
|
-
|
256
|
+
- skip_modifier_ifs
|
257
|
+
- always
|
261
258
|
|
262
259
|
Style/NonNilCheck:
|
263
260
|
IncludeSemanticChanges: false
|
@@ -266,69 +263,74 @@ Style/MethodCallWithArgsParentheses:
|
|
266
263
|
Enabled: true
|
267
264
|
IgnoreMacros: true
|
268
265
|
IgnoredMethods:
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
266
|
+
- require
|
267
|
+
- require_relative
|
268
|
+
- require_dependency
|
269
|
+
- yield
|
270
|
+
- raise
|
271
|
+
- puts
|
275
272
|
Exclude:
|
276
|
-
|
273
|
+
- Gemfile
|
274
|
+
- Gemfile.*
|
275
|
+
- "**/**/Gemfile"
|
276
|
+
- "**/**/Gemfile.*"
|
277
|
+
- "*.gemspec"
|
278
|
+
- "**/**/*.gemspec"
|
277
279
|
|
278
280
|
Style/MethodDefParentheses:
|
279
281
|
EnforcedStyle: require_parentheses
|
280
282
|
SupportedStyles:
|
281
|
-
|
282
|
-
|
283
|
-
|
283
|
+
- require_parentheses
|
284
|
+
- require_no_parentheses
|
285
|
+
- require_no_parentheses_except_multiline
|
284
286
|
|
285
287
|
Naming/MethodName:
|
286
288
|
EnforcedStyle: snake_case
|
287
289
|
SupportedStyles:
|
288
|
-
|
289
|
-
|
290
|
+
- snake_case
|
291
|
+
- camelCase
|
290
292
|
|
291
293
|
Layout/MultilineArrayBraceLayout:
|
292
294
|
EnforcedStyle: symmetrical
|
293
295
|
SupportedStyles:
|
294
|
-
|
295
|
-
|
296
|
-
|
296
|
+
- symmetrical
|
297
|
+
- new_line
|
298
|
+
- same_line
|
297
299
|
|
298
300
|
Layout/MultilineHashBraceLayout:
|
299
301
|
EnforcedStyle: symmetrical
|
300
302
|
SupportedStyles:
|
301
|
-
|
302
|
-
|
303
|
-
|
303
|
+
- symmetrical
|
304
|
+
- new_line
|
305
|
+
- same_line
|
304
306
|
|
305
307
|
Layout/MultilineMethodCallBraceLayout:
|
306
308
|
EnforcedStyle: symmetrical
|
307
309
|
SupportedStyles:
|
308
|
-
|
309
|
-
|
310
|
-
|
310
|
+
- symmetrical
|
311
|
+
- new_line
|
312
|
+
- same_line
|
311
313
|
|
312
314
|
Layout/MultilineMethodCallIndentation:
|
313
315
|
EnforcedStyle: indented
|
314
316
|
SupportedStyles:
|
315
|
-
|
316
|
-
|
317
|
-
|
317
|
+
- aligned
|
318
|
+
- indented
|
319
|
+
- indented_relative_to_receiver
|
318
320
|
IndentationWidth: 2
|
319
321
|
|
320
322
|
Layout/MultilineMethodDefinitionBraceLayout:
|
321
323
|
EnforcedStyle: symmetrical
|
322
324
|
SupportedStyles:
|
323
|
-
|
324
|
-
|
325
|
-
|
325
|
+
- symmetrical
|
326
|
+
- new_line
|
327
|
+
- same_line
|
326
328
|
|
327
329
|
Style/NumericLiteralPrefix:
|
328
330
|
EnforcedOctalStyle: zero_only
|
329
331
|
SupportedOctalStyles:
|
330
|
-
|
331
|
-
|
332
|
+
- zero_with_o
|
333
|
+
- zero_only
|
332
334
|
|
333
335
|
Style/ParenthesesAroundCondition:
|
334
336
|
AllowSafeAssignment: true
|
@@ -336,30 +338,30 @@ Style/ParenthesesAroundCondition:
|
|
336
338
|
Style/PercentQLiterals:
|
337
339
|
EnforcedStyle: lower_case_q
|
338
340
|
SupportedStyles:
|
339
|
-
|
340
|
-
|
341
|
+
- lower_case_q
|
342
|
+
- upper_case_q
|
341
343
|
|
342
344
|
Naming/PredicateName:
|
343
345
|
NamePrefix:
|
344
|
-
|
346
|
+
- is_
|
345
347
|
ForbiddenPrefixes:
|
346
|
-
|
348
|
+
- is_
|
347
349
|
AllowedMethods:
|
348
|
-
|
350
|
+
- is_a?
|
349
351
|
Exclude:
|
350
|
-
|
352
|
+
- "spec/**/*"
|
351
353
|
|
352
354
|
Style/PreferredHashMethods:
|
353
355
|
EnforcedStyle: short
|
354
356
|
SupportedStyles:
|
355
|
-
|
356
|
-
|
357
|
+
- short
|
358
|
+
- verbose
|
357
359
|
|
358
360
|
Style/RaiseArgs:
|
359
361
|
EnforcedStyle: exploded
|
360
362
|
SupportedStyles:
|
361
|
-
|
362
|
-
|
363
|
+
- compact
|
364
|
+
- exploded
|
363
365
|
|
364
366
|
Style/RedundantReturn:
|
365
367
|
AllowMultipleReturnValues: false
|
@@ -367,9 +369,9 @@ Style/RedundantReturn:
|
|
367
369
|
Style/RegexpLiteral:
|
368
370
|
EnforcedStyle: mixed
|
369
371
|
SupportedStyles:
|
370
|
-
|
371
|
-
|
372
|
-
|
372
|
+
- slashes
|
373
|
+
- percent_r
|
374
|
+
- mixed
|
373
375
|
AllowInnerSlashes: false
|
374
376
|
|
375
377
|
Style/SafeNavigation:
|
@@ -385,9 +387,9 @@ Style/Semicolon:
|
|
385
387
|
Style/SignalException:
|
386
388
|
EnforcedStyle: only_raise
|
387
389
|
SupportedStyles:
|
388
|
-
|
389
|
-
|
390
|
-
|
390
|
+
- only_raise
|
391
|
+
- only_fail
|
392
|
+
- semantic
|
391
393
|
|
392
394
|
Style/SingleLineMethods:
|
393
395
|
AllowIfMethodIsEmpty: true
|
@@ -398,32 +400,32 @@ Layout/SpaceBeforeFirstArg:
|
|
398
400
|
Style/SpecialGlobalVars:
|
399
401
|
EnforcedStyle: use_english_names
|
400
402
|
SupportedStyles:
|
401
|
-
|
402
|
-
|
403
|
+
- use_perl_names
|
404
|
+
- use_english_names
|
403
405
|
|
404
406
|
Style/StabbyLambdaParentheses:
|
405
407
|
EnforcedStyle: require_parentheses
|
406
408
|
SupportedStyles:
|
407
|
-
|
408
|
-
|
409
|
+
- require_parentheses
|
410
|
+
- require_no_parentheses
|
409
411
|
|
410
412
|
Style/StringLiteralsInInterpolation:
|
411
413
|
EnforcedStyle: single_quotes
|
412
414
|
SupportedStyles:
|
413
|
-
|
414
|
-
|
415
|
+
- single_quotes
|
416
|
+
- double_quotes
|
415
417
|
|
416
418
|
Layout/SpaceAroundBlockParameters:
|
417
419
|
EnforcedStyleInsidePipes: no_space
|
418
420
|
SupportedStylesInsidePipes:
|
419
|
-
|
420
|
-
|
421
|
+
- space
|
422
|
+
- no_space
|
421
423
|
|
422
424
|
Layout/SpaceAroundEqualsInParameterDefault:
|
423
425
|
EnforcedStyle: space
|
424
426
|
SupportedStyles:
|
425
|
-
|
426
|
-
|
427
|
+
- space
|
428
|
+
- no_space
|
427
429
|
|
428
430
|
Layout/SpaceAroundOperators:
|
429
431
|
AllowForAlignment: true
|
@@ -432,14 +434,14 @@ Layout/SpaceBeforeBlockBraces:
|
|
432
434
|
EnforcedStyle: space
|
433
435
|
EnforcedStyleForEmptyBraces: space
|
434
436
|
SupportedStyles:
|
435
|
-
|
436
|
-
|
437
|
+
- space
|
438
|
+
- no_space
|
437
439
|
|
438
440
|
Layout/SpaceInsideBlockBraces:
|
439
441
|
EnforcedStyle: space
|
440
442
|
SupportedStyles:
|
441
|
-
|
442
|
-
|
443
|
+
- space
|
444
|
+
- no_space
|
443
445
|
EnforcedStyleForEmptyBraces: no_space
|
444
446
|
SpaceBeforeBlockParameters: true
|
445
447
|
|
@@ -447,33 +449,33 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
447
449
|
EnforcedStyle: space
|
448
450
|
EnforcedStyleForEmptyBraces: no_space
|
449
451
|
SupportedStyles:
|
450
|
-
|
451
|
-
|
452
|
-
|
452
|
+
- space
|
453
|
+
- no_space
|
454
|
+
- compact
|
453
455
|
|
454
456
|
Layout/SpaceInsideStringInterpolation:
|
455
457
|
EnforcedStyle: no_space
|
456
458
|
SupportedStyles:
|
457
|
-
|
458
|
-
|
459
|
+
- space
|
460
|
+
- no_space
|
459
461
|
|
460
462
|
Style/SymbolProc:
|
461
463
|
IgnoredMethods:
|
462
|
-
|
463
|
-
|
464
|
+
- respond_to
|
465
|
+
- define_method
|
464
466
|
|
465
467
|
Style/TernaryParentheses:
|
466
468
|
EnforcedStyle: require_no_parentheses
|
467
469
|
SupportedStyles:
|
468
|
-
|
469
|
-
|
470
|
+
- require_parentheses
|
471
|
+
- require_no_parentheses
|
470
472
|
AllowSafeAssignment: true
|
471
473
|
|
472
474
|
Layout/TrailingEmptyLines:
|
473
475
|
EnforcedStyle: final_newline
|
474
476
|
SupportedStyles:
|
475
|
-
|
476
|
-
|
477
|
+
- final_newline
|
478
|
+
- final_blank_line
|
477
479
|
|
478
480
|
Style/TrivialAccessors:
|
479
481
|
ExactNameMatch: true
|
@@ -481,29 +483,29 @@ Style/TrivialAccessors:
|
|
481
483
|
AllowDSLWriters: false
|
482
484
|
IgnoreClassMethods: false
|
483
485
|
AllowedMethods:
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
486
|
+
- to_ary
|
487
|
+
- to_a
|
488
|
+
- to_c
|
489
|
+
- to_enum
|
490
|
+
- to_h
|
491
|
+
- to_hash
|
492
|
+
- to_i
|
493
|
+
- to_int
|
494
|
+
- to_io
|
495
|
+
- to_open
|
496
|
+
- to_path
|
497
|
+
- to_proc
|
498
|
+
- to_r
|
499
|
+
- to_regexp
|
500
|
+
- to_str
|
501
|
+
- to_s
|
502
|
+
- to_sym
|
501
503
|
|
502
504
|
Naming/VariableName:
|
503
505
|
EnforcedStyle: snake_case
|
504
506
|
SupportedStyles:
|
505
|
-
|
506
|
-
|
507
|
+
- snake_case
|
508
|
+
- camelCase
|
507
509
|
|
508
510
|
Style/WhileUntilModifier:
|
509
511
|
Enabled: true
|
@@ -516,11 +518,11 @@ Layout/LineLength:
|
|
516
518
|
AllowHeredoc: true
|
517
519
|
AllowURI: true
|
518
520
|
URISchemes:
|
519
|
-
|
520
|
-
|
521
|
+
- http
|
522
|
+
- https
|
521
523
|
IgnoreCopDirectives: false
|
522
524
|
IgnoredPatterns:
|
523
|
-
|
525
|
+
- '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
|
524
526
|
|
525
527
|
Metrics/ParameterLists:
|
526
528
|
Max: 5
|
@@ -529,28 +531,28 @@ Metrics/ParameterLists:
|
|
529
531
|
Layout/BlockAlignment:
|
530
532
|
EnforcedStyleAlignWith: either
|
531
533
|
SupportedStylesAlignWith:
|
532
|
-
|
533
|
-
|
534
|
-
|
534
|
+
- either
|
535
|
+
- start_of_block
|
536
|
+
- start_of_line
|
535
537
|
|
536
538
|
Layout/EndAlignment:
|
537
539
|
EnforcedStyleAlignWith: variable
|
538
540
|
SupportedStylesAlignWith:
|
539
|
-
|
540
|
-
|
541
|
-
|
541
|
+
- keyword
|
542
|
+
- variable
|
543
|
+
- start_of_line
|
542
544
|
|
543
545
|
Layout/DefEndAlignment:
|
544
546
|
EnforcedStyleAlignWith: start_of_line
|
545
547
|
SupportedStylesAlignWith:
|
546
|
-
|
547
|
-
|
548
|
+
- start_of_line
|
549
|
+
- def
|
548
550
|
|
549
551
|
Lint/InheritException:
|
550
552
|
EnforcedStyle: runtime_error
|
551
553
|
SupportedStyles:
|
552
|
-
|
553
|
-
|
554
|
+
- runtime_error
|
555
|
+
- standard_error
|
554
556
|
|
555
557
|
Lint/UnusedBlockArgument:
|
556
558
|
IgnoreEmptyBlocks: true
|
@@ -899,7 +901,8 @@ Lint/ImplicitStringConcatenation:
|
|
899
901
|
better be represented as a single string literal.
|
900
902
|
|
901
903
|
Lint/IneffectiveAccessModifier:
|
902
|
-
Description:
|
904
|
+
Description:
|
905
|
+
Checks for attempts to use `private` or `protected` to set the visibility
|
903
906
|
of a class method, which does not work.
|
904
907
|
|
905
908
|
Lint/LiteralAsCondition:
|
@@ -909,14 +912,16 @@ Lint/LiteralInInterpolation:
|
|
909
912
|
Enabled: true
|
910
913
|
|
911
914
|
Lint/Loop:
|
912
|
-
Description:
|
915
|
+
Description:
|
916
|
+
Use Kernel#loop with break rather than begin/end/until or begin/end/while
|
913
917
|
for post-loop tests.
|
914
918
|
|
915
919
|
Lint/NestedMethodDefinition:
|
916
920
|
Enabled: true
|
917
921
|
|
918
922
|
Lint/NextWithoutAccumulator:
|
919
|
-
Description:
|
923
|
+
Description:
|
924
|
+
Do not omit the accumulator when calling `next` in a `reduce`/`inject`
|
920
925
|
block.
|
921
926
|
|
922
927
|
Lint/NonLocalExitFromIterator:
|
@@ -1008,11 +1013,11 @@ Style/TrailingBodyOnModule:
|
|
1008
1013
|
Enabled: true
|
1009
1014
|
|
1010
1015
|
Style/TrailingCommaInArrayLiteral:
|
1011
|
-
EnforcedStyleForMultiline:
|
1016
|
+
EnforcedStyleForMultiline: no_comma
|
1012
1017
|
Enabled: true
|
1013
1018
|
|
1014
1019
|
Style/TrailingCommaInHashLiteral:
|
1015
|
-
EnforcedStyleForMultiline:
|
1020
|
+
EnforcedStyleForMultiline: no_comma
|
1016
1021
|
Enabled: true
|
1017
1022
|
|
1018
1023
|
Layout/SpaceInsideReferenceBrackets:
|
@@ -1027,4 +1032,4 @@ Lint/OrderedMagicComments:
|
|
1027
1032
|
Enabled: true
|
1028
1033
|
|
1029
1034
|
Lint/DeprecatedOpenSSLConstant:
|
1030
|
-
Enabled: true
|
1035
|
+
Enabled: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rewind-ruby-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rewind Devops
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.85'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0.
|
22
|
+
version: '0.89'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.85'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0.
|
32
|
+
version: '0.89'
|
33
33
|
description: Gem containing the config files for style chekers that corresponds to
|
34
34
|
the implementation of the Rewind style guide for Ruby.
|
35
35
|
email: team@rewind.io
|
@@ -43,7 +43,7 @@ homepage: https://github.com/rewindio/ruby-style-configs/
|
|
43
43
|
licenses:
|
44
44
|
- MIT
|
45
45
|
metadata:
|
46
|
-
source_code_uri: https://github.com/rewindio/ruby-style-configs/tree/v1.0.
|
46
|
+
source_code_uri: https://github.com/rewindio/ruby-style-configs/tree/v1.0.8
|
47
47
|
post_install_message:
|
48
48
|
rdoc_options: []
|
49
49
|
require_paths:
|