rewind-ruby-style 1.0.2 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rubocop.yml +211 -203
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea689ba087dd5478a036c1241077a0131f6decbdab9fb902110f33131401f0f1
|
4
|
+
data.tar.gz: 1eadf7487a905a92271cea16dbeb1cb7271f44b4bc95c79e739e4a98e81596a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0d168eb5895445804de8a322ae904e8cfa9a2bf5d823bc97efc0e090ce2d940b62a84dd515bf9bb069ddfd6d1d379e028a4ab0e9339d1c3e6469bc3b3a474b0
|
7
|
+
data.tar.gz: 4b19babe13627732e35ed846f66a25d0bbe46038c14f6f02f80d8f831b3dfe2f62719a037565bc31d6acaf912cb94cf88c6c9af0c4a597f7f18ace571fdf37db
|
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,127 @@ 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
97
|
EnforcedStyle: nested
|
98
98
|
SupportedStyles:
|
99
|
-
|
100
|
-
|
99
|
+
- nested
|
100
|
+
- compact
|
101
101
|
|
102
102
|
Style/ClassCheck:
|
103
103
|
EnforcedStyle: is_a?
|
104
104
|
SupportedStyles:
|
105
|
-
|
106
|
-
|
105
|
+
- is_a?
|
106
|
+
- kind_of?
|
107
107
|
|
108
108
|
Style/CommandLiteral:
|
109
109
|
EnforcedStyle: percent_x
|
110
110
|
SupportedStyles:
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
- backticks
|
112
|
+
- percent_x
|
113
|
+
- mixed
|
114
114
|
AllowInnerBackticks: false
|
115
115
|
|
116
116
|
Style/CommentAnnotation:
|
117
117
|
Keywords:
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
118
|
+
- TODO
|
119
|
+
- FIXME
|
120
|
+
- OPTIMIZE
|
121
|
+
- HACK
|
122
|
+
- REVIEW
|
123
123
|
|
124
124
|
Style/ConditionalAssignment:
|
125
125
|
EnforcedStyle: assign_to_condition
|
126
126
|
SupportedStyles:
|
127
|
-
|
128
|
-
|
127
|
+
- assign_to_condition
|
128
|
+
- assign_inside_condition
|
129
129
|
SingleLineConditionsOnly: true
|
130
130
|
|
131
131
|
Layout/DotPosition:
|
132
132
|
EnforcedStyle: leading
|
133
133
|
SupportedStyles:
|
134
|
-
|
135
|
-
|
134
|
+
- leading
|
135
|
+
- trailing
|
136
136
|
|
137
137
|
Style/EmptyElse:
|
138
138
|
EnforcedStyle: both
|
139
139
|
SupportedStyles:
|
140
|
-
|
141
|
-
|
142
|
-
|
140
|
+
- empty
|
141
|
+
- nil
|
142
|
+
- both
|
143
143
|
|
144
144
|
Layout/EmptyLineBetweenDefs:
|
145
145
|
AllowAdjacentOneLineDefs: false
|
@@ -147,22 +147,22 @@ Layout/EmptyLineBetweenDefs:
|
|
147
147
|
Layout/EmptyLinesAroundBlockBody:
|
148
148
|
EnforcedStyle: no_empty_lines
|
149
149
|
SupportedStyles:
|
150
|
-
|
151
|
-
|
150
|
+
- empty_lines
|
151
|
+
- no_empty_lines
|
152
152
|
|
153
153
|
Layout/EmptyLinesAroundClassBody:
|
154
154
|
EnforcedStyle: no_empty_lines
|
155
155
|
SupportedStyles:
|
156
|
-
|
157
|
-
|
158
|
-
|
156
|
+
- empty_lines
|
157
|
+
- empty_lines_except_namespace
|
158
|
+
- no_empty_lines
|
159
159
|
|
160
160
|
Layout/EmptyLinesAroundModuleBody:
|
161
161
|
EnforcedStyle: no_empty_lines
|
162
162
|
SupportedStyles:
|
163
|
-
|
164
|
-
|
165
|
-
|
163
|
+
- empty_lines
|
164
|
+
- empty_lines_except_namespace
|
165
|
+
- no_empty_lines
|
166
166
|
|
167
167
|
Layout/ExtraSpacing:
|
168
168
|
AllowForAlignment: true
|
@@ -177,23 +177,23 @@ Naming/FileName:
|
|
177
177
|
Layout/FirstArgumentIndentation:
|
178
178
|
EnforcedStyle: consistent
|
179
179
|
SupportedStyles:
|
180
|
-
|
181
|
-
|
182
|
-
|
180
|
+
- consistent
|
181
|
+
- special_for_inner_method_call
|
182
|
+
- special_for_inner_method_call_in_parentheses
|
183
183
|
IndentationWidth:
|
184
184
|
|
185
185
|
Style/For:
|
186
186
|
EnforcedStyle: each
|
187
187
|
SupportedStyles:
|
188
|
-
|
189
|
-
|
188
|
+
- for
|
189
|
+
- each
|
190
190
|
|
191
191
|
Style/FormatString:
|
192
192
|
EnforcedStyle: format
|
193
193
|
SupportedStyles:
|
194
|
-
|
195
|
-
|
196
|
-
|
194
|
+
- format
|
195
|
+
- sprintf
|
196
|
+
- percent
|
197
197
|
|
198
198
|
Style/FrozenStringLiteralComment:
|
199
199
|
Details: >-
|
@@ -211,18 +211,18 @@ Style/GlobalVars:
|
|
211
211
|
Style/HashSyntax:
|
212
212
|
EnforcedStyle: ruby19
|
213
213
|
SupportedStyles:
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
214
|
+
- ruby19
|
215
|
+
- hash_rockets
|
216
|
+
- no_mixed_keys
|
217
|
+
- ruby19_no_mixed_keys
|
218
218
|
UseHashRocketsWithSymbolValues: false
|
219
219
|
PreferHashRocketsForNonAlnumEndingSymbols: false
|
220
220
|
|
221
221
|
Layout/IndentationConsistency:
|
222
222
|
EnforcedStyle: normal
|
223
223
|
SupportedStyles:
|
224
|
-
|
225
|
-
|
224
|
+
- normal
|
225
|
+
- rails
|
226
226
|
|
227
227
|
Layout/IndentationWidth:
|
228
228
|
Width: 2
|
@@ -230,9 +230,9 @@ Layout/IndentationWidth:
|
|
230
230
|
Layout/FirstArrayElementIndentation:
|
231
231
|
EnforcedStyle: consistent
|
232
232
|
SupportedStyles:
|
233
|
-
|
234
|
-
|
235
|
-
|
233
|
+
- special_inside_parentheses
|
234
|
+
- consistent
|
235
|
+
- align_brackets
|
236
236
|
IndentationWidth:
|
237
237
|
|
238
238
|
Layout/AssignmentIndentation:
|
@@ -241,23 +241,23 @@ Layout/AssignmentIndentation:
|
|
241
241
|
Layout/FirstHashElementIndentation:
|
242
242
|
EnforcedStyle: consistent
|
243
243
|
SupportedStyles:
|
244
|
-
|
245
|
-
|
246
|
-
|
244
|
+
- special_inside_parentheses
|
245
|
+
- consistent
|
246
|
+
- align_braces
|
247
247
|
IndentationWidth:
|
248
248
|
|
249
249
|
Style/LambdaCall:
|
250
250
|
EnforcedStyle: call
|
251
251
|
SupportedStyles:
|
252
|
-
|
253
|
-
|
252
|
+
- call
|
253
|
+
- braces
|
254
254
|
|
255
255
|
Style/Next:
|
256
256
|
EnforcedStyle: skip_modifier_ifs
|
257
257
|
MinBodyLength: 3
|
258
258
|
SupportedStyles:
|
259
|
-
|
260
|
-
|
259
|
+
- skip_modifier_ifs
|
260
|
+
- always
|
261
261
|
|
262
262
|
Style/NonNilCheck:
|
263
263
|
IncludeSemanticChanges: false
|
@@ -266,69 +266,74 @@ Style/MethodCallWithArgsParentheses:
|
|
266
266
|
Enabled: true
|
267
267
|
IgnoreMacros: true
|
268
268
|
IgnoredMethods:
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
269
|
+
- require
|
270
|
+
- require_relative
|
271
|
+
- require_dependency
|
272
|
+
- yield
|
273
|
+
- raise
|
274
|
+
- puts
|
275
275
|
Exclude:
|
276
|
-
|
276
|
+
- Gemfile
|
277
|
+
- Gemfile.*
|
278
|
+
- "**/**/Gemfile"
|
279
|
+
- "**/**/Gemfile.*"
|
280
|
+
- "*.gemspec"
|
281
|
+
- "**/**/*.gemspec"
|
277
282
|
|
278
283
|
Style/MethodDefParentheses:
|
279
284
|
EnforcedStyle: require_parentheses
|
280
285
|
SupportedStyles:
|
281
|
-
|
282
|
-
|
283
|
-
|
286
|
+
- require_parentheses
|
287
|
+
- require_no_parentheses
|
288
|
+
- require_no_parentheses_except_multiline
|
284
289
|
|
285
290
|
Naming/MethodName:
|
286
291
|
EnforcedStyle: snake_case
|
287
292
|
SupportedStyles:
|
288
|
-
|
289
|
-
|
293
|
+
- snake_case
|
294
|
+
- camelCase
|
290
295
|
|
291
296
|
Layout/MultilineArrayBraceLayout:
|
292
297
|
EnforcedStyle: symmetrical
|
293
298
|
SupportedStyles:
|
294
|
-
|
295
|
-
|
296
|
-
|
299
|
+
- symmetrical
|
300
|
+
- new_line
|
301
|
+
- same_line
|
297
302
|
|
298
303
|
Layout/MultilineHashBraceLayout:
|
299
304
|
EnforcedStyle: symmetrical
|
300
305
|
SupportedStyles:
|
301
|
-
|
302
|
-
|
303
|
-
|
306
|
+
- symmetrical
|
307
|
+
- new_line
|
308
|
+
- same_line
|
304
309
|
|
305
310
|
Layout/MultilineMethodCallBraceLayout:
|
306
311
|
EnforcedStyle: symmetrical
|
307
312
|
SupportedStyles:
|
308
|
-
|
309
|
-
|
310
|
-
|
313
|
+
- symmetrical
|
314
|
+
- new_line
|
315
|
+
- same_line
|
311
316
|
|
312
317
|
Layout/MultilineMethodCallIndentation:
|
313
318
|
EnforcedStyle: indented
|
314
319
|
SupportedStyles:
|
315
|
-
|
316
|
-
|
317
|
-
|
320
|
+
- aligned
|
321
|
+
- indented
|
322
|
+
- indented_relative_to_receiver
|
318
323
|
IndentationWidth: 2
|
319
324
|
|
320
325
|
Layout/MultilineMethodDefinitionBraceLayout:
|
321
326
|
EnforcedStyle: symmetrical
|
322
327
|
SupportedStyles:
|
323
|
-
|
324
|
-
|
325
|
-
|
328
|
+
- symmetrical
|
329
|
+
- new_line
|
330
|
+
- same_line
|
326
331
|
|
327
332
|
Style/NumericLiteralPrefix:
|
328
333
|
EnforcedOctalStyle: zero_only
|
329
334
|
SupportedOctalStyles:
|
330
|
-
|
331
|
-
|
335
|
+
- zero_with_o
|
336
|
+
- zero_only
|
332
337
|
|
333
338
|
Style/ParenthesesAroundCondition:
|
334
339
|
AllowSafeAssignment: true
|
@@ -336,30 +341,30 @@ Style/ParenthesesAroundCondition:
|
|
336
341
|
Style/PercentQLiterals:
|
337
342
|
EnforcedStyle: lower_case_q
|
338
343
|
SupportedStyles:
|
339
|
-
|
340
|
-
|
344
|
+
- lower_case_q
|
345
|
+
- upper_case_q
|
341
346
|
|
342
347
|
Naming/PredicateName:
|
343
348
|
NamePrefix:
|
344
|
-
|
349
|
+
- is_
|
345
350
|
ForbiddenPrefixes:
|
346
|
-
|
351
|
+
- is_
|
347
352
|
AllowedMethods:
|
348
|
-
|
353
|
+
- is_a?
|
349
354
|
Exclude:
|
350
|
-
|
355
|
+
- "spec/**/*"
|
351
356
|
|
352
357
|
Style/PreferredHashMethods:
|
353
358
|
EnforcedStyle: short
|
354
359
|
SupportedStyles:
|
355
|
-
|
356
|
-
|
360
|
+
- short
|
361
|
+
- verbose
|
357
362
|
|
358
363
|
Style/RaiseArgs:
|
359
364
|
EnforcedStyle: exploded
|
360
365
|
SupportedStyles:
|
361
|
-
|
362
|
-
|
366
|
+
- compact
|
367
|
+
- exploded
|
363
368
|
|
364
369
|
Style/RedundantReturn:
|
365
370
|
AllowMultipleReturnValues: false
|
@@ -367,9 +372,9 @@ Style/RedundantReturn:
|
|
367
372
|
Style/RegexpLiteral:
|
368
373
|
EnforcedStyle: mixed
|
369
374
|
SupportedStyles:
|
370
|
-
|
371
|
-
|
372
|
-
|
375
|
+
- slashes
|
376
|
+
- percent_r
|
377
|
+
- mixed
|
373
378
|
AllowInnerSlashes: false
|
374
379
|
|
375
380
|
Style/SafeNavigation:
|
@@ -385,9 +390,9 @@ Style/Semicolon:
|
|
385
390
|
Style/SignalException:
|
386
391
|
EnforcedStyle: only_raise
|
387
392
|
SupportedStyles:
|
388
|
-
|
389
|
-
|
390
|
-
|
393
|
+
- only_raise
|
394
|
+
- only_fail
|
395
|
+
- semantic
|
391
396
|
|
392
397
|
Style/SingleLineMethods:
|
393
398
|
AllowIfMethodIsEmpty: true
|
@@ -398,32 +403,32 @@ Layout/SpaceBeforeFirstArg:
|
|
398
403
|
Style/SpecialGlobalVars:
|
399
404
|
EnforcedStyle: use_english_names
|
400
405
|
SupportedStyles:
|
401
|
-
|
402
|
-
|
406
|
+
- use_perl_names
|
407
|
+
- use_english_names
|
403
408
|
|
404
409
|
Style/StabbyLambdaParentheses:
|
405
410
|
EnforcedStyle: require_parentheses
|
406
411
|
SupportedStyles:
|
407
|
-
|
408
|
-
|
412
|
+
- require_parentheses
|
413
|
+
- require_no_parentheses
|
409
414
|
|
410
415
|
Style/StringLiteralsInInterpolation:
|
411
416
|
EnforcedStyle: single_quotes
|
412
417
|
SupportedStyles:
|
413
|
-
|
414
|
-
|
418
|
+
- single_quotes
|
419
|
+
- double_quotes
|
415
420
|
|
416
421
|
Layout/SpaceAroundBlockParameters:
|
417
422
|
EnforcedStyleInsidePipes: no_space
|
418
423
|
SupportedStylesInsidePipes:
|
419
|
-
|
420
|
-
|
424
|
+
- space
|
425
|
+
- no_space
|
421
426
|
|
422
427
|
Layout/SpaceAroundEqualsInParameterDefault:
|
423
428
|
EnforcedStyle: space
|
424
429
|
SupportedStyles:
|
425
|
-
|
426
|
-
|
430
|
+
- space
|
431
|
+
- no_space
|
427
432
|
|
428
433
|
Layout/SpaceAroundOperators:
|
429
434
|
AllowForAlignment: true
|
@@ -432,14 +437,14 @@ Layout/SpaceBeforeBlockBraces:
|
|
432
437
|
EnforcedStyle: space
|
433
438
|
EnforcedStyleForEmptyBraces: space
|
434
439
|
SupportedStyles:
|
435
|
-
|
436
|
-
|
440
|
+
- space
|
441
|
+
- no_space
|
437
442
|
|
438
443
|
Layout/SpaceInsideBlockBraces:
|
439
444
|
EnforcedStyle: space
|
440
445
|
SupportedStyles:
|
441
|
-
|
442
|
-
|
446
|
+
- space
|
447
|
+
- no_space
|
443
448
|
EnforcedStyleForEmptyBraces: no_space
|
444
449
|
SpaceBeforeBlockParameters: true
|
445
450
|
|
@@ -447,33 +452,33 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
447
452
|
EnforcedStyle: space
|
448
453
|
EnforcedStyleForEmptyBraces: no_space
|
449
454
|
SupportedStyles:
|
450
|
-
|
451
|
-
|
452
|
-
|
455
|
+
- space
|
456
|
+
- no_space
|
457
|
+
- compact
|
453
458
|
|
454
459
|
Layout/SpaceInsideStringInterpolation:
|
455
460
|
EnforcedStyle: no_space
|
456
461
|
SupportedStyles:
|
457
|
-
|
458
|
-
|
462
|
+
- space
|
463
|
+
- no_space
|
459
464
|
|
460
465
|
Style/SymbolProc:
|
461
466
|
IgnoredMethods:
|
462
|
-
|
463
|
-
|
467
|
+
- respond_to
|
468
|
+
- define_method
|
464
469
|
|
465
470
|
Style/TernaryParentheses:
|
466
471
|
EnforcedStyle: require_no_parentheses
|
467
472
|
SupportedStyles:
|
468
|
-
|
469
|
-
|
473
|
+
- require_parentheses
|
474
|
+
- require_no_parentheses
|
470
475
|
AllowSafeAssignment: true
|
471
476
|
|
472
477
|
Layout/TrailingEmptyLines:
|
473
478
|
EnforcedStyle: final_newline
|
474
479
|
SupportedStyles:
|
475
|
-
|
476
|
-
|
480
|
+
- final_newline
|
481
|
+
- final_blank_line
|
477
482
|
|
478
483
|
Style/TrivialAccessors:
|
479
484
|
ExactNameMatch: true
|
@@ -481,29 +486,29 @@ Style/TrivialAccessors:
|
|
481
486
|
AllowDSLWriters: false
|
482
487
|
IgnoreClassMethods: false
|
483
488
|
AllowedMethods:
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
489
|
+
- to_ary
|
490
|
+
- to_a
|
491
|
+
- to_c
|
492
|
+
- to_enum
|
493
|
+
- to_h
|
494
|
+
- to_hash
|
495
|
+
- to_i
|
496
|
+
- to_int
|
497
|
+
- to_io
|
498
|
+
- to_open
|
499
|
+
- to_path
|
500
|
+
- to_proc
|
501
|
+
- to_r
|
502
|
+
- to_regexp
|
503
|
+
- to_str
|
504
|
+
- to_s
|
505
|
+
- to_sym
|
501
506
|
|
502
507
|
Naming/VariableName:
|
503
508
|
EnforcedStyle: snake_case
|
504
509
|
SupportedStyles:
|
505
|
-
|
506
|
-
|
510
|
+
- snake_case
|
511
|
+
- camelCase
|
507
512
|
|
508
513
|
Style/WhileUntilModifier:
|
509
514
|
Enabled: true
|
@@ -516,11 +521,11 @@ Layout/LineLength:
|
|
516
521
|
AllowHeredoc: true
|
517
522
|
AllowURI: true
|
518
523
|
URISchemes:
|
519
|
-
|
520
|
-
|
524
|
+
- http
|
525
|
+
- https
|
521
526
|
IgnoreCopDirectives: false
|
522
527
|
IgnoredPatterns:
|
523
|
-
|
528
|
+
- '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
|
524
529
|
|
525
530
|
Metrics/ParameterLists:
|
526
531
|
Max: 5
|
@@ -529,28 +534,28 @@ Metrics/ParameterLists:
|
|
529
534
|
Layout/BlockAlignment:
|
530
535
|
EnforcedStyleAlignWith: either
|
531
536
|
SupportedStylesAlignWith:
|
532
|
-
|
533
|
-
|
534
|
-
|
537
|
+
- either
|
538
|
+
- start_of_block
|
539
|
+
- start_of_line
|
535
540
|
|
536
541
|
Layout/EndAlignment:
|
537
542
|
EnforcedStyleAlignWith: variable
|
538
543
|
SupportedStylesAlignWith:
|
539
|
-
|
540
|
-
|
541
|
-
|
544
|
+
- keyword
|
545
|
+
- variable
|
546
|
+
- start_of_line
|
542
547
|
|
543
548
|
Layout/DefEndAlignment:
|
544
549
|
EnforcedStyleAlignWith: start_of_line
|
545
550
|
SupportedStylesAlignWith:
|
546
|
-
|
547
|
-
|
551
|
+
- start_of_line
|
552
|
+
- def
|
548
553
|
|
549
554
|
Lint/InheritException:
|
550
555
|
EnforcedStyle: runtime_error
|
551
556
|
SupportedStyles:
|
552
|
-
|
553
|
-
|
557
|
+
- runtime_error
|
558
|
+
- standard_error
|
554
559
|
|
555
560
|
Lint/UnusedBlockArgument:
|
556
561
|
IgnoreEmptyBlocks: true
|
@@ -899,7 +904,8 @@ Lint/ImplicitStringConcatenation:
|
|
899
904
|
better be represented as a single string literal.
|
900
905
|
|
901
906
|
Lint/IneffectiveAccessModifier:
|
902
|
-
Description:
|
907
|
+
Description:
|
908
|
+
Checks for attempts to use `private` or `protected` to set the visibility
|
903
909
|
of a class method, which does not work.
|
904
910
|
|
905
911
|
Lint/LiteralAsCondition:
|
@@ -909,14 +915,16 @@ Lint/LiteralInInterpolation:
|
|
909
915
|
Enabled: true
|
910
916
|
|
911
917
|
Lint/Loop:
|
912
|
-
Description:
|
918
|
+
Description:
|
919
|
+
Use Kernel#loop with break rather than begin/end/until or begin/end/while
|
913
920
|
for post-loop tests.
|
914
921
|
|
915
922
|
Lint/NestedMethodDefinition:
|
916
923
|
Enabled: true
|
917
924
|
|
918
925
|
Lint/NextWithoutAccumulator:
|
919
|
-
Description:
|
926
|
+
Description:
|
927
|
+
Do not omit the accumulator when calling `next` in a `reduce`/`inject`
|
920
928
|
block.
|
921
929
|
|
922
930
|
Lint/NonLocalExitFromIterator:
|
@@ -1008,11 +1016,11 @@ Style/TrailingBodyOnModule:
|
|
1008
1016
|
Enabled: true
|
1009
1017
|
|
1010
1018
|
Style/TrailingCommaInArrayLiteral:
|
1011
|
-
EnforcedStyleForMultiline:
|
1019
|
+
EnforcedStyleForMultiline: no_comma
|
1012
1020
|
Enabled: true
|
1013
1021
|
|
1014
1022
|
Style/TrailingCommaInHashLiteral:
|
1015
|
-
EnforcedStyleForMultiline:
|
1023
|
+
EnforcedStyleForMultiline: no_comma
|
1016
1024
|
Enabled: true
|
1017
1025
|
|
1018
1026
|
Layout/SpaceInsideReferenceBrackets:
|
@@ -1027,4 +1035,4 @@ Lint/OrderedMagicComments:
|
|
1027
1035
|
Enabled: true
|
1028
1036
|
|
1029
1037
|
Lint/DeprecatedOpenSSLConstant:
|
1030
|
-
Enabled: true
|
1038
|
+
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.7
|
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,8 +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.
|
47
|
-
github_repo: ssh://github.com/rewindio/ruby-style-configs
|
46
|
+
source_code_uri: https://github.com/rewindio/ruby-style-configs/tree/v1.0.7
|
48
47
|
post_install_message:
|
49
48
|
rdoc_options: []
|
50
49
|
require_paths:
|