wonder-ruby-style 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: c14580338e3144081e57e452a8f6dc05be0df2a8
4
- data.tar.gz: 9d7ee03483bf17a4f3a4de37f3bc081d5c5b68f0
3
+ metadata.gz: eeb619575371445408dc00002ffdc376f2356d52
4
+ data.tar.gz: 1b54de6d537e71572a4203f4467f6c166750269b
5
5
  SHA512:
6
- metadata.gz: 3c480bcec4334606a9266d93e725ec006133c6974c83bc137807372b9185620992b023fe79c4c5685b664a1990a5dd4da779c6b4be5ce4c9e80a68225bae471b
7
- data.tar.gz: 59986ed7457b157e5f622f02d88f4c12509171b614097e04c3a0a51f86663c055ccb0971fea02ec986d426e8b314da75f17d67ada99651a5008b8cd72fa4c480
6
+ metadata.gz: b6099629750428d80c87824f71d9209723b3accfcb8deffe047c9b8b0527c9bfb879e951c3a15ea76c67d4860b68e40b4c4c208616bd16445539bcd09018ea19
7
+ data.tar.gz: 397ed6b7821b2a0b3b0311d62bd08ca6d23aca46d671dde59144a8a1d5a3292eaf0e2b09c71de5fed61d4fcd390f739b26e93688db057a198ef9b5f4430d5a78
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Wonder-Ruby-Style
2
2
 
3
- WonderRubyStyle é uma gem que facilita o compartilhamento de configurações do Rubocop entre os projetos de Ruby.
3
+ > WonderRubyStyle é uma gem que facilita o compartilhamento de configurações do Rubocop entre os projetos de Ruby.
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/wonder-ruby-style.svg)](https://badge.fury.io/rb/wonder-ruby-style)
4
6
 
5
7
  ## Instalação
6
8
 
@@ -31,7 +33,7 @@ Crie um arquivo `.rubocop.yml` com as seguintes diretivas:
31
33
  ```yaml
32
34
  inherit_gem:
33
35
  wonder-ruby-style:
34
- - default.yml
36
+ - default.yml # ou presets/VERSAO_RUBOCOP
35
37
  ```
36
38
 
37
39
  E então execute:
@@ -50,13 +52,13 @@ prepare:
50
52
  - url: "https://raw.githubusercontent.com/wondersistemas/wonder-ruby-style/master/.rubocop.yml"
51
53
  path: ".rubocop.yml"
52
54
 
53
- # necessário também alterar a versão do rubocop para 0.49.1
55
+ # necessário também alterar a versão do rubocop para a versão utilizada
54
56
  engines:
55
57
  rubocop:
56
58
  enabled: true
57
- channel: rubocop-0-49-1
59
+ channel: rubocop-0-50-0
58
60
  ```
59
61
 
60
- O serviço então irá baixar e reescrever o arquivo `.rubocop.yml` com o conteúdo da url.
62
+ O serviço então irá baixar e reescrever o arquivo `.rubocop.yml` com o conteúdo da url, antes de executar a verificação.
61
63
 
62
- Não é necessário incluir a gem rubocop nas dependências da sua aplicação.
64
+ Não é necessário incluir a gem rubocop nas dependências da sua aplicação, apenas se você deseja forçar uma versão específica da gem.
@@ -1,7 +1,7 @@
1
1
  module Wonder
2
2
  module Ruby
3
3
  module Style
4
- VERSION = '0.0.4'.freeze
4
+ VERSION = '0.0.5'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,1183 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ Include:
5
+ - Rakefile
6
+ - lib/**/*.rake
7
+ DisabledByDefault: true
8
+ TargetRubyVersion: 2.4
9
+ Exclude:
10
+ - '*.gemspec'
11
+ - 'coverage/**/*'
12
+ - 'log/**/*'
13
+ - 'spec/fixtures/**/*'
14
+ - 'tmp/**/*'
15
+ - 'vendor/**/*'
16
+ - 'lib/**/*.rb'
17
+
18
+ #################### Lint ################################
19
+
20
+ Lint/AmbiguousOperator:
21
+ Description: >-
22
+ Checks for ambiguous operators in the first argument of a
23
+ method invocation without parentheses.
24
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
25
+ Enabled: true
26
+
27
+ Lint/AmbiguousRegexpLiteral:
28
+ Description: >-
29
+ Checks for ambiguous regexp literals in the first argument of
30
+ a method invocation without parenthesis.
31
+ Enabled: true
32
+
33
+ Lint/AssignmentInCondition:
34
+ Description: "Don't use assignment in conditions."
35
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
36
+ Enabled: true
37
+
38
+ Lint/BlockAlignment:
39
+ Description: 'Align block ends correctly.'
40
+ Enabled: true
41
+
42
+ Lint/CircularArgumentReference:
43
+ Description: "Don't refer to the keyword argument in the default value."
44
+ Enabled: true
45
+
46
+ Lint/ConditionPosition:
47
+ Description: >-
48
+ Checks for condition placed in a confusing position relative to
49
+ the keyword.
50
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
51
+ Enabled: true
52
+
53
+ Lint/Debugger:
54
+ Description: 'Check for debugger calls.'
55
+ Enabled: true
56
+
57
+ Lint/DefEndAlignment:
58
+ Description: 'Align ends corresponding to defs correctly.'
59
+ Enabled: true
60
+
61
+ Lint/DeprecatedClassMethods:
62
+ Description: 'Check for deprecated class method calls.'
63
+ Enabled: true
64
+
65
+ Lint/DuplicateMethods:
66
+ Description: 'Check for duplicate methods calls.'
67
+ Enabled: true
68
+
69
+ Lint/EachWithObjectArgument:
70
+ Description: 'Check for immutable argument given to each_with_object.'
71
+ Enabled: true
72
+
73
+ Lint/ElseLayout:
74
+ Description: 'Check for odd code arrangement in an else block.'
75
+ Enabled: true
76
+
77
+ Lint/EmptyEnsure:
78
+ Description: 'Checks for empty ensure block.'
79
+ Enabled: true
80
+
81
+ Lint/EmptyInterpolation:
82
+ Description: 'Checks for empty string interpolation.'
83
+ Enabled: true
84
+
85
+ Lint/EndAlignment:
86
+ Description: 'Align ends correctly.'
87
+ Enabled: true
88
+
89
+ Lint/EndInMethod:
90
+ Description: 'END blocks should not be placed inside method definitions.'
91
+ Enabled: true
92
+
93
+ Lint/EnsureReturn:
94
+ Description: 'Do not use return in an ensure block.'
95
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
96
+ Enabled: true
97
+
98
+ Security/Eval:
99
+ Description: 'The use of eval represents a serious security risk.'
100
+ Enabled: true
101
+
102
+ Lint/FormatParameterMismatch:
103
+ Description: 'The number of parameters to format/sprint must match the fields.'
104
+ Enabled: true
105
+
106
+ Lint/HandleExceptions:
107
+ Description: "Don't suppress exception."
108
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
109
+ Enabled: true
110
+
111
+ Lint/LiteralAsCondition:
112
+ Description: 'Checks of literals used in conditions.'
113
+ Enabled: true
114
+
115
+ Lint/LiteralInInterpolation:
116
+ Description: 'Checks for literals used in interpolation.'
117
+ Enabled: true
118
+
119
+ Lint/Loop:
120
+ Description: >-
121
+ Use Kernel#loop with break rather than begin/end/until or
122
+ begin/end/while for post-loop tests.
123
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
124
+ Enabled: true
125
+
126
+ Lint/NestedMethodDefinition:
127
+ Description: 'Do not use nested method definitions.'
128
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
129
+ Enabled: true
130
+
131
+ Lint/NonLocalExitFromIterator:
132
+ Description: 'Do not use return in iterator to cause non-local exit.'
133
+ Enabled: true
134
+
135
+ Lint/ParenthesesAsGroupedExpression:
136
+ Description: >-
137
+ Checks for method calls with a space before the opening
138
+ parenthesis.
139
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
140
+ Enabled: true
141
+
142
+ Lint/RequireParentheses:
143
+ Description: >-
144
+ Use parentheses in the method call to avoid confusion
145
+ about precedence.
146
+ Enabled: true
147
+
148
+ Lint/RescueException:
149
+ Description: 'Avoid rescuing the Exception class.'
150
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
151
+ Enabled: true
152
+
153
+ Lint/ShadowingOuterLocalVariable:
154
+ Description: >-
155
+ Do not use the same name as outer local variable
156
+ for block arguments or block local variables.
157
+ Enabled: true
158
+
159
+ Lint/StringConversionInInterpolation:
160
+ Description: 'Checks for Object#to_s usage in string interpolation.'
161
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
162
+ Enabled: true
163
+
164
+ Lint/UnderscorePrefixedVariableName:
165
+ Description: 'Do not use prefix `_` for a variable that is used.'
166
+ Enabled: true
167
+
168
+ Lint/UnneededDisable:
169
+ Description: >-
170
+ Checks for rubocop:disable comments that can be removed.
171
+ Note: this cop is not disabled when disabling all cops.
172
+ It must be explicitly disabled.
173
+ Enabled: true
174
+
175
+ Lint/UnusedBlockArgument:
176
+ Description: 'Checks for unused block arguments.'
177
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
178
+ Enabled: true
179
+
180
+ Lint/UnusedMethodArgument:
181
+ Description: 'Checks for unused method arguments.'
182
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
183
+ Enabled: true
184
+
185
+ Lint/UnreachableCode:
186
+ Description: 'Unreachable code.'
187
+ Enabled: true
188
+
189
+ Lint/UselessAccessModifier:
190
+ Description: 'Checks for useless access modifiers.'
191
+ Enabled: true
192
+
193
+ Lint/UselessAssignment:
194
+ Description: 'Checks for useless assignment to a local variable.'
195
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
196
+ Enabled: true
197
+
198
+ Lint/UselessComparison:
199
+ Description: 'Checks for comparison of something with itself.'
200
+ Enabled: true
201
+
202
+ Lint/UselessElseWithoutRescue:
203
+ Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
204
+ Enabled: true
205
+
206
+ Lint/UselessSetterCall:
207
+ Description: 'Checks for useless setter call to a local variable.'
208
+ Enabled: true
209
+
210
+ Lint/Void:
211
+ Description: 'Possible use of operator/literal/variable in void context.'
212
+ Enabled: true
213
+
214
+ ###################### Metrics ####################################
215
+
216
+ Metrics/BlockNesting:
217
+ Description: 'Avoid excessive block nesting'
218
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
219
+ Enabled: true
220
+ Max: 4
221
+ Exclude:
222
+ - 'Rakefile'
223
+ - '**/*.rake'
224
+ - 'spec/**/*.rb'
225
+
226
+ Metrics/ClassLength:
227
+ Description: 'Avoid classes longer than 250 lines of code.'
228
+ Enabled: true
229
+ Max: 250
230
+
231
+ Metrics/CyclomaticComplexity:
232
+ Description: >-
233
+ A complexity metric that is strongly correlated to the number
234
+ of test cases needed to validate a method.
235
+ Enabled: true
236
+
237
+ Metrics/LineLength:
238
+ Description: 'Limit lines to 80 characters.'
239
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
240
+ Enabled: false
241
+
242
+ Metrics/MethodLength:
243
+ Description: 'Avoid methods longer than 30 lines of code.'
244
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
245
+ Enabled: true
246
+ Max: 30
247
+
248
+ Metrics/ModuleLength:
249
+ Description: 'Avoid modules longer than 250 lines of code.'
250
+ Enabled: true
251
+ Max: 250
252
+ Exclude:
253
+ - 'spec/**/*.rb'
254
+
255
+ Metrics/ParameterLists:
256
+ Description: 'Avoid parameter lists longer than three or four parameters.'
257
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
258
+ Enabled: true
259
+
260
+ Metrics/PerceivedComplexity:
261
+ Description: >-
262
+ A complexity metric geared towards measuring complexity for a
263
+ human reader.
264
+ Enabled: false
265
+
266
+ ##################### Performance #############################
267
+
268
+ Performance/Count:
269
+ Description: >-
270
+ Use `count` instead of `select...size`, `reject...size`,
271
+ `select...count`, `reject...count`, `select...length`,
272
+ and `reject...length`.
273
+ Enabled: true
274
+
275
+ Performance/Detect:
276
+ Description: >-
277
+ Use `detect` instead of `select.first`, `find_all.first`,
278
+ `select.last`, and `find_all.last`.
279
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
280
+ Enabled: true
281
+
282
+ Performance/FlatMap:
283
+ Description: >-
284
+ Use `Enumerable#flat_map`
285
+ instead of `Enumerable#map...Array#flatten(1)`
286
+ or `Enumberable#collect..Array#flatten(1)`
287
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
288
+ Enabled: true
289
+ EnabledForFlattenWithoutParams: true
290
+ # If enabled, this cop will warn about usages of
291
+ # `flatten` being called without any parameters.
292
+ # This can be dangerous since `flat_map` will only flatten 1 level, and
293
+ # `flatten` without any parameters can flatten multiple levels.
294
+
295
+ Performance/ReverseEach:
296
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
297
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
298
+ Enabled: true
299
+
300
+ Performance/Sample:
301
+ Description: >-
302
+ Use `sample` instead of `shuffle.first`,
303
+ `shuffle.last`, and `shuffle[Fixnum]`.
304
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
305
+ Enabled: true
306
+
307
+ Performance/Size:
308
+ Description: >-
309
+ Use `size` instead of `count` for counting
310
+ the number of elements in `Array` and `Hash`.
311
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
312
+ Enabled: true
313
+
314
+ Performance/StringReplacement:
315
+ Description: >-
316
+ Use `tr` instead of `gsub` when you are replacing the same
317
+ number of characters. Use `delete` instead of `gsub` when
318
+ you are deleting characters.
319
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
320
+ Enabled: true
321
+
322
+ ##################### Rails ##################################
323
+
324
+ Rails/ActionFilter:
325
+ Description: 'Enforces consistent use of action filter methods.'
326
+ Enabled: true
327
+
328
+ Rails/Date:
329
+ Description: >-
330
+ Checks the correct usage of date aware methods,
331
+ such as Date.today, Date.current etc.
332
+ Enabled: true
333
+
334
+ Rails/Delegate:
335
+ Description: 'Prefer delegate method for delegations.'
336
+ Enabled: true
337
+
338
+ Rails/FindBy:
339
+ Description: 'Prefer find_by over where.first.'
340
+ Enabled: true
341
+
342
+ Rails/FindEach:
343
+ Description: 'Prefer all.find_each over all.find.'
344
+ Enabled: true
345
+
346
+ Rails/HasAndBelongsToMany:
347
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
348
+ Enabled: true
349
+
350
+ Rails/Output:
351
+ Description: 'Checks for calls to puts, print, etc.'
352
+ Enabled: true
353
+
354
+ Rails/ReadWriteAttribute:
355
+ Description: >-
356
+ Checks for read_attribute(:attr) and
357
+ write_attribute(:attr, val).
358
+ Enabled: true
359
+
360
+ Rails/ScopeArgs:
361
+ Description: 'Checks the arguments of ActiveRecord scopes.'
362
+ Enabled: true
363
+
364
+ Rails/TimeZone:
365
+ Description: 'Checks the correct usage of time zone aware methods.'
366
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
367
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
368
+ Enabled: true
369
+
370
+ Rails/Validation:
371
+ Description: 'Use validates :attribute, hash of validations.'
372
+ Enabled: true
373
+
374
+ ################## Style #################################
375
+
376
+ Layout/AccessModifierIndentation:
377
+ Description: Check indentation of private/protected visibility modifiers.
378
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
379
+ Enabled: true
380
+
381
+ Naming/AccessorMethodName:
382
+ Description: Check the naming of accessor methods for get_/set_.
383
+ Enabled: true
384
+
385
+ Style/Alias:
386
+ Description: 'Use alias_method instead of alias.'
387
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
388
+ Enabled: true
389
+
390
+ Layout/AlignArray:
391
+ Description: >-
392
+ Align the elements of an array literal if they span more than
393
+ one line.
394
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
395
+ Enabled: true
396
+
397
+ Layout/AlignHash:
398
+ Description: >-
399
+ Align the elements of a hash literal if they span more than
400
+ one line.
401
+ Enabled: true
402
+
403
+ Layout/AlignParameters:
404
+ Description: >-
405
+ Align the parameters of a method call if they span more
406
+ than one line.
407
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
408
+ Enabled: true
409
+
410
+ Style/AndOr:
411
+ Description: 'Use &&/|| instead of and/or.'
412
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
413
+ Enabled: true
414
+
415
+ Style/ArrayJoin:
416
+ Description: 'Use Array#join instead of Array#*.'
417
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
418
+ Enabled: true
419
+
420
+ Style/AsciiComments:
421
+ Description: 'Use only ascii symbols in comments.'
422
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
423
+ Enabled: false
424
+
425
+ Naming/AsciiIdentifiers:
426
+ Description: 'Use only ascii symbols in identifiers.'
427
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
428
+ Enabled: true
429
+
430
+ Style/Attr:
431
+ Description: 'Checks for uses of Module#attr.'
432
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
433
+ Enabled: true
434
+
435
+ Style/BeginBlock:
436
+ Description: 'Avoid the use of BEGIN blocks.'
437
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
438
+ Enabled: true
439
+
440
+ Style/BarePercentLiterals:
441
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
442
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
443
+ Enabled: true
444
+
445
+ Style/BlockComments:
446
+ Description: 'Do not use block comments.'
447
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
448
+ Enabled: true
449
+
450
+ Layout/BlockEndNewline:
451
+ Description: 'Put end statement of multiline block on its own line.'
452
+ Enabled: true
453
+
454
+ Style/BlockDelimiters:
455
+ Description: >-
456
+ Avoid using {...} for multi-line blocks (multiline chaining is
457
+ always ugly).
458
+ Prefer {...} over do...end for single-line blocks.
459
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
460
+ Enabled: true
461
+
462
+ Style/BracesAroundHashParameters:
463
+ Description: 'Enforce braces style around hash parameters.'
464
+ Enabled: true
465
+
466
+ Style/CaseEquality:
467
+ Description: 'Avoid explicit use of the case equality operator(===).'
468
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
469
+ Enabled: true
470
+
471
+ Layout/CaseIndentation:
472
+ Description: 'Indentation of when in a case/when/[else/]end.'
473
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
474
+ Enabled: true
475
+
476
+ Style/CharacterLiteral:
477
+ Description: 'Checks for uses of character literals.'
478
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
479
+ Enabled: true
480
+
481
+ Naming/ClassAndModuleCamelCase:
482
+ Description: 'Use CamelCase for classes and modules.'
483
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
484
+ Enabled: true
485
+
486
+ Style/ClassAndModuleChildren:
487
+ Description: 'Checks style of children classes and modules.'
488
+ Enabled: false
489
+
490
+ Style/ClassCheck:
491
+ Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
492
+ Enabled: true
493
+
494
+ Style/ClassMethods:
495
+ Description: 'Use self when defining module/class methods.'
496
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
497
+ Enabled: true
498
+
499
+ Style/ClassVars:
500
+ Description: 'Avoid the use of class variables.'
501
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
502
+ Enabled: false
503
+
504
+ Layout/ClosingParenthesisIndentation:
505
+ Description: 'Checks the indentation of hanging closing parentheses.'
506
+ Enabled: true
507
+
508
+ Style/ColonMethodCall:
509
+ Description: 'Do not use :: for method call.'
510
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
511
+ Enabled: true
512
+
513
+ Style/CommandLiteral:
514
+ Description: 'Use `` or %x around command literals.'
515
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
516
+ Enabled: true
517
+
518
+ Style/CommentAnnotation:
519
+ Description: 'Checks formatting of annotation comments.'
520
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
521
+ Enabled: true
522
+
523
+ Layout/CommentIndentation:
524
+ Description: 'Indentation of comments.'
525
+ Enabled: true
526
+
527
+ Naming/ConstantName:
528
+ Description: 'Constants should use SCREAMING_SNAKE_CASE.'
529
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
530
+ Enabled: true
531
+
532
+ Style/DefWithParentheses:
533
+ Description: 'Use def with parentheses when there are arguments.'
534
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
535
+ Enabled: true
536
+
537
+ Style/PreferredHashMethods:
538
+ Description: 'Checks for use of deprecated Hash methods.'
539
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
540
+ Enabled: true
541
+
542
+ Style/Documentation:
543
+ Description: 'Document classes and non-namespace modules.'
544
+ Enabled: false
545
+
546
+ Layout/DotPosition:
547
+ Description: 'Checks the position of the dot in multi-line method calls.'
548
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
549
+ Enabled: true
550
+
551
+ Style/DoubleNegation:
552
+ Description: 'Checks for uses of double negation (!!).'
553
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
554
+ Enabled: true
555
+
556
+ Style/EachWithObject:
557
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
558
+ Enabled: true
559
+
560
+ Layout/ElseAlignment:
561
+ Description: 'Align elses and elsifs correctly.'
562
+ Enabled: true
563
+
564
+ Style/EmptyElse:
565
+ Description: 'Avoid empty else-clauses.'
566
+ Enabled: true
567
+
568
+ Layout/EmptyLineBetweenDefs:
569
+ Description: 'Use empty lines between defs.'
570
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
571
+ Enabled: true
572
+
573
+ Layout/EmptyLines:
574
+ Description: "Don't use several empty lines in a row."
575
+ Enabled: true
576
+
577
+ Layout/EmptyLinesAroundAccessModifier:
578
+ Description: "Keep blank lines around access modifiers."
579
+ Enabled: true
580
+
581
+ Layout/EmptyLinesAroundBlockBody:
582
+ Description: "Keeps track of empty lines around block bodies."
583
+ Enabled: true
584
+
585
+ Layout/EmptyLinesAroundClassBody:
586
+ Description: "Keeps track of empty lines around class bodies."
587
+ Enabled: true
588
+
589
+ Layout/EmptyLinesAroundModuleBody:
590
+ Description: "Keeps track of empty lines around module bodies."
591
+ Enabled: true
592
+
593
+ Layout/EmptyLinesAroundMethodBody:
594
+ Description: "Keeps track of empty lines around method bodies."
595
+ Enabled: true
596
+
597
+ Style/EmptyLiteral:
598
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
599
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
600
+ Enabled: true
601
+
602
+ Style/EndBlock:
603
+ Description: 'Avoid the use of END blocks.'
604
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
605
+ Enabled: true
606
+
607
+ Layout/EndOfLine:
608
+ Description: 'Use Unix-style line endings.'
609
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
610
+ Enabled: true
611
+
612
+ Style/EvenOdd:
613
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
614
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
615
+ Enabled: true
616
+
617
+ Layout/ExtraSpacing:
618
+ Description: 'Do not use unnecessary spacing.'
619
+ Enabled: true
620
+
621
+ Naming/FileName:
622
+ Description: 'Use snake_case for source file names.'
623
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
624
+ Enabled: true
625
+
626
+ Layout/InitialIndentation:
627
+ Description: >-
628
+ Checks the indentation of the first non-blank non-comment line in a file.
629
+ Enabled: true
630
+
631
+ Layout/FirstParameterIndentation:
632
+ Description: 'Checks the indentation of the first parameter in a method call.'
633
+ Enabled: true
634
+
635
+ Style/FlipFlop:
636
+ Description: 'Checks for flip flops'
637
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
638
+ Enabled: true
639
+
640
+ Style/For:
641
+ Description: 'Checks use of for or each in multiline loops.'
642
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
643
+ Enabled: true
644
+
645
+ Style/FormatString:
646
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
647
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
648
+ Enabled: true
649
+
650
+ Style/GlobalVars:
651
+ Description: 'Do not introduce global variables.'
652
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
653
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
654
+ Enabled: true
655
+
656
+ Style/HashSyntax:
657
+ Description: >-
658
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
659
+ { :a => 1, :b => 2 }.
660
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
661
+ Enabled: true
662
+
663
+ Style/IfUnlessModifier:
664
+ Description: >-
665
+ Favor modifier if/unless usage when you have a
666
+ single-line body.
667
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
668
+ Enabled: true
669
+
670
+ Style/IfWithSemicolon:
671
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
672
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
673
+ Enabled: true
674
+
675
+ Layout/IndentationConsistency:
676
+ Description: 'Keep indentation straight.'
677
+ Enabled: true
678
+
679
+ Layout/IndentationWidth:
680
+ Description: 'Use 2 spaces for indentation.'
681
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
682
+ Enabled: true
683
+
684
+ Layout/IndentArray:
685
+ Description: >-
686
+ Checks the indentation of the first element in an array
687
+ literal.
688
+ Enabled: true
689
+
690
+ Layout/IndentHash:
691
+ Description: 'Checks the indentation of the first key in a hash literal.'
692
+ Enabled: true
693
+
694
+ Style/InfiniteLoop:
695
+ Description: 'Use Kernel#loop for infinite loops.'
696
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
697
+ Enabled: true
698
+
699
+ Style/Lambda:
700
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
701
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
702
+ Enabled: false
703
+
704
+ Style/LambdaCall:
705
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
706
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
707
+ Enabled: true
708
+
709
+ Layout/LeadingCommentSpace:
710
+ Description: 'Comments should start with a space.'
711
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
712
+ Enabled: true
713
+
714
+ Style/LineEndConcatenation:
715
+ Description: >-
716
+ Use \ instead of + or << to concatenate two string literals at
717
+ line end.
718
+ Enabled: true
719
+
720
+ Style/MethodCallWithoutArgsParentheses:
721
+ Description: 'Do not use parentheses for method calls with no arguments.'
722
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
723
+ Enabled: true
724
+
725
+ Style/MethodDefParentheses:
726
+ Description: >-
727
+ Checks if the method definitions have or don't have
728
+ parentheses.
729
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
730
+ Enabled: true
731
+
732
+ Naming/MethodName:
733
+ Description: 'Use the configured style when naming methods.'
734
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
735
+ Enabled: true
736
+
737
+ Style/ModuleFunction:
738
+ Description: 'Checks for usage of `extend self` in modules.'
739
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
740
+ Enabled: true
741
+
742
+ Style/MultilineBlockChain:
743
+ Description: 'Avoid multi-line chains of blocks.'
744
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
745
+ Enabled: true
746
+
747
+ Layout/MultilineBlockLayout:
748
+ Description: 'Ensures newlines after multiline block do statements.'
749
+ Enabled: true
750
+
751
+ Style/MultilineIfThen:
752
+ Description: 'Do not use then for multi-line if/unless.'
753
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
754
+ Enabled: true
755
+
756
+ Layout/MultilineOperationIndentation:
757
+ Description: >-
758
+ Checks indentation of binary operations that span more than
759
+ one line.
760
+ Enabled: true
761
+
762
+ Style/NegatedIf:
763
+ Description: >-
764
+ Favor unless over if for negative conditions
765
+ (or control flow or).
766
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
767
+ Enabled: true
768
+
769
+ Style/NegatedWhile:
770
+ Description: 'Favor until over while for negative conditions.'
771
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
772
+ Enabled: true
773
+
774
+ Style/NestedTernaryOperator:
775
+ Description: 'Use one expression per branch in a ternary operator.'
776
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
777
+ Enabled: false
778
+
779
+ Style/Next:
780
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
781
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
782
+ Enabled: true
783
+
784
+ Style/NilComparison:
785
+ Description: 'Prefer x.nil? to x == nil.'
786
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
787
+ Enabled: true
788
+
789
+ Style/NonNilCheck:
790
+ Description: 'Checks for redundant nil checks.'
791
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
792
+ Enabled: true
793
+
794
+ Style/Not:
795
+ Description: 'Use ! instead of not.'
796
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
797
+ Enabled: true
798
+
799
+ Style/NumericLiterals:
800
+ Description: >-
801
+ Add underscores to large numeric literals to improve their
802
+ readability.
803
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
804
+ Enabled: true
805
+
806
+ Style/OneLineConditional:
807
+ Description: >-
808
+ Favor the ternary operator(?:) over
809
+ if/then/else/end constructs.
810
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
811
+ Enabled: true
812
+
813
+ Naming/BinaryOperatorParameterName:
814
+ Description: 'When defining binary operators, name the argument other.'
815
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
816
+ Enabled: false
817
+
818
+ Style/OptionalArguments:
819
+ Description: >-
820
+ Checks for optional arguments that do not appear at the end
821
+ of the argument list
822
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
823
+ Enabled: true
824
+
825
+ Style/ParallelAssignment:
826
+ Description: >-
827
+ Check for simple usages of parallel assignment.
828
+ It will only warn when the number of variables
829
+ matches on both sides of the assignment.
830
+ This also provides performance benefits
831
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
832
+ Enabled: true
833
+
834
+ Style/ParenthesesAroundCondition:
835
+ Description: >-
836
+ Don't use parentheses around the condition of an
837
+ if/unless/while.
838
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
839
+ Enabled: true
840
+
841
+ Style/PercentLiteralDelimiters:
842
+ Description: 'Use `%`-literal delimiters consistently'
843
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
844
+ Enabled: true
845
+
846
+ Style/PercentQLiterals:
847
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
848
+ Enabled: true
849
+
850
+ Style/PerlBackrefs:
851
+ Description: 'Avoid Perl-style regex back references.'
852
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
853
+ Enabled: true
854
+
855
+ Naming/PredicateName:
856
+ Description: 'Check the names of predicate methods.'
857
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
858
+ Enabled: true
859
+
860
+ Style/Proc:
861
+ Description: 'Use proc instead of Proc.new.'
862
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
863
+ Enabled: true
864
+
865
+ Style/RaiseArgs:
866
+ Description: 'Checks the arguments passed to raise/fail.'
867
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
868
+ Enabled: true
869
+
870
+ Style/RedundantBegin:
871
+ Description: "Don't use begin blocks when they are not needed."
872
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
873
+ Enabled: true
874
+
875
+ Style/RedundantException:
876
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
877
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
878
+ Enabled: true
879
+
880
+ Style/RedundantReturn:
881
+ Description: "Don't use return where it's not required."
882
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
883
+ Enabled: true
884
+
885
+ Style/RedundantSelf:
886
+ Description: "Don't use self where it's not needed."
887
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
888
+ Enabled: true
889
+
890
+ Style/RegexpLiteral:
891
+ Description: 'Use / or %r around regular expressions.'
892
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
893
+ Enabled: true
894
+
895
+ Layout/RescueEnsureAlignment:
896
+ Description: 'Align rescues and ensures correctly.'
897
+ Enabled: true
898
+
899
+ Style/RescueModifier:
900
+ Description: 'Avoid using rescue in its modifier form.'
901
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
902
+ Enabled: true
903
+
904
+ Style/SelfAssignment:
905
+ Description: >-
906
+ Checks for places where self-assignment shorthand should have
907
+ been used.
908
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
909
+ Enabled: true
910
+
911
+ Style/Semicolon:
912
+ Description: "Don't use semicolons to terminate expressions."
913
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
914
+ Enabled: true
915
+
916
+ Style/SignalException:
917
+ Description: 'Checks for proper usage of fail and raise.'
918
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
919
+ Enabled: true
920
+
921
+ Style/SingleLineBlockParams:
922
+ Description: 'Enforces the names of some block params.'
923
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
924
+ Enabled: true
925
+
926
+ Style/SingleLineMethods:
927
+ Description: 'Avoid single-line methods.'
928
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
929
+ Enabled: true
930
+
931
+ Layout/SpaceBeforeFirstArg:
932
+ Description: >-
933
+ Checks that exactly one space is used between a method name
934
+ and the first argument for method calls without parentheses.
935
+ Enabled: true
936
+
937
+ Layout/SpaceAfterColon:
938
+ Description: 'Use spaces after colons.'
939
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
940
+ Enabled: true
941
+
942
+ Layout/SpaceAfterComma:
943
+ Description: 'Use spaces after commas.'
944
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
945
+ Enabled: true
946
+
947
+ Layout/SpaceAroundKeyword:
948
+ Description: 'Use spaces around keywords.'
949
+ Enabled: true
950
+
951
+ Layout/SpaceAfterMethodName:
952
+ Description: >-
953
+ Do not put a space between a method name and the opening
954
+ parenthesis in a method definition.
955
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
956
+ Enabled: true
957
+
958
+ Layout/SpaceAfterNot:
959
+ Description: Tracks redundant space after the ! operator.
960
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
961
+ Enabled: true
962
+
963
+ Layout/SpaceAfterSemicolon:
964
+ Description: 'Use spaces after semicolons.'
965
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
966
+ Enabled: true
967
+
968
+ Layout/SpaceBeforeBlockBraces:
969
+ Description: >-
970
+ Checks that the left block brace has or doesn't have space
971
+ before it.
972
+ Enabled: true
973
+
974
+ Layout/SpaceBeforeComma:
975
+ Description: 'No spaces before commas.'
976
+ Enabled: true
977
+
978
+ Layout/SpaceBeforeComment:
979
+ Description: >-
980
+ Checks for missing space between code and a comment on the
981
+ same line.
982
+ Enabled: true
983
+
984
+ Layout/SpaceBeforeSemicolon:
985
+ Description: 'No spaces before semicolons.'
986
+ Enabled: true
987
+
988
+ Layout/SpaceInsideBlockBraces:
989
+ Description: >-
990
+ Checks that block braces have or don't have surrounding space.
991
+ For blocks taking parameters, checks that the left brace has
992
+ or doesn't have trailing space.
993
+ Enabled: true
994
+
995
+ Layout/SpaceAroundBlockParameters:
996
+ Description: 'Checks the spacing inside and after block parameters pipes.'
997
+ Enabled: true
998
+
999
+ Layout/SpaceAroundEqualsInParameterDefault:
1000
+ Description: >-
1001
+ Checks that the equals signs in parameter default assignments
1002
+ have or don't have surrounding space depending on
1003
+ configuration.
1004
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
1005
+ Enabled: true
1006
+
1007
+ Layout/SpaceAroundOperators:
1008
+ Description: 'Use a single space around operators.'
1009
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1010
+ Enabled: true
1011
+
1012
+ Layout/SpaceInsideBrackets:
1013
+ Description: 'No spaces after [ or before ].'
1014
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1015
+ Enabled: true
1016
+
1017
+ Layout/SpaceInsideHashLiteralBraces:
1018
+ Description: "Use spaces inside hash literal braces - or don't."
1019
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1020
+ Enabled: true
1021
+
1022
+ Layout/SpaceInsideParens:
1023
+ Description: 'No spaces after ( or before ).'
1024
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1025
+ Enabled: true
1026
+
1027
+ Layout/SpaceInsideRangeLiteral:
1028
+ Description: 'No spaces inside range literals.'
1029
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1030
+ Enabled: true
1031
+
1032
+ Layout/SpaceInsideStringInterpolation:
1033
+ Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1034
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1035
+ Enabled: true
1036
+
1037
+ Style/SpecialGlobalVars:
1038
+ Description: 'Avoid Perl-style global variables.'
1039
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
1040
+ Enabled: true
1041
+
1042
+ Style/StringLiterals:
1043
+ Description: 'Checks if uses of quotes match the configured preference.'
1044
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
1045
+ Enabled: true
1046
+
1047
+ Style/StringLiteralsInInterpolation:
1048
+ Description: >-
1049
+ Checks if uses of quotes inside expressions in interpolated
1050
+ strings match the configured preference.
1051
+ Enabled: true
1052
+
1053
+ Style/StructInheritance:
1054
+ Description: 'Checks for inheritance from Struct.new.'
1055
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1056
+ Enabled: true
1057
+
1058
+ Style/SymbolLiteral:
1059
+ Description: 'Use plain symbols instead of string symbols when possible.'
1060
+ Enabled: true
1061
+
1062
+ Style/SymbolProc:
1063
+ Description: 'Use symbols as procs instead of blocks when possible.'
1064
+ Enabled: true
1065
+
1066
+ Layout/Tab:
1067
+ Description: 'No hard tabs.'
1068
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1069
+ Enabled: true
1070
+
1071
+ Layout/TrailingBlankLines:
1072
+ Description: 'Checks trailing blank lines and final newline.'
1073
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1074
+ Enabled: true
1075
+
1076
+ Style/TrailingCommaInArguments:
1077
+ Description: 'Checks for trailing comma in parameter lists.'
1078
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1079
+ Enabled: true
1080
+
1081
+ Style/TrailingCommaInLiteral:
1082
+ Description: 'Checks for trailing comma in literals.'
1083
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1084
+ Enabled: true
1085
+
1086
+ Layout/TrailingWhitespace:
1087
+ Description: 'Avoid trailing whitespace.'
1088
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1089
+ Enabled: true
1090
+
1091
+ Style/TrivialAccessors:
1092
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
1093
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1094
+ Enabled: true
1095
+
1096
+ Style/UnlessElse:
1097
+ Description: >-
1098
+ Do not use unless with else. Rewrite these with the positive
1099
+ case first.
1100
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1101
+ Enabled: true
1102
+
1103
+ Style/UnneededCapitalW:
1104
+ Description: 'Checks for %W when interpolation is not needed.'
1105
+ Enabled: true
1106
+
1107
+ Style/UnneededPercentQ:
1108
+ Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1109
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1110
+ Enabled: true
1111
+
1112
+ Style/TrailingUnderscoreVariable:
1113
+ Description: >-
1114
+ Checks for the usage of unneeded trailing underscores at the
1115
+ end of parallel variable assignment.
1116
+ Enabled: true
1117
+
1118
+ Style/VariableInterpolation:
1119
+ Description: >-
1120
+ Don't interpolate global, instance and class variables
1121
+ directly in strings.
1122
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1123
+ Enabled: false
1124
+
1125
+ Naming/VariableName:
1126
+ Description: 'Use the configured style when naming variables.'
1127
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1128
+ Enabled: true
1129
+
1130
+ Style/WhenThen:
1131
+ Description: 'Use when x then ... for one-line cases.'
1132
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1133
+ Enabled: true
1134
+
1135
+ Style/WhileUntilDo:
1136
+ Description: 'Checks for redundant do after while or until.'
1137
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1138
+ Enabled: true
1139
+
1140
+ Style/WhileUntilModifier:
1141
+ Description: >-
1142
+ Favor modifier while/until usage when you have a
1143
+ single-line body.
1144
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1145
+ Enabled: true
1146
+
1147
+ Style/WordArray:
1148
+ Description: 'Use %w or %W for arrays of words.'
1149
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1150
+ Enabled: true
1151
+
1152
+ Bundler/OrderedGems:
1153
+ Enabled: true
1154
+
1155
+ RSpec/AnyInstance:
1156
+ Enabled: false
1157
+
1158
+ RSpec/DescribedClass:
1159
+ EnforcedStyle: explicit
1160
+
1161
+ RSpec/ExampleLength:
1162
+ Enabled: false
1163
+
1164
+ RSpec/HookArgument:
1165
+ EnforcedStyle: each
1166
+
1167
+ RSpec/MultipleExpectations:
1168
+ Enabled: false
1169
+
1170
+ RSpec/ImplicitExpect:
1171
+ EnforcedStyle: should
1172
+
1173
+ RSpec/MessageSpies:
1174
+ EnforcedStyle: receive
1175
+
1176
+ RSpec/NestedGroups:
1177
+ Enabled: false
1178
+
1179
+ RSpec/NotToNot:
1180
+ EnforcedStyle: to_not
1181
+
1182
+ RSpec/VerifiedDoubles:
1183
+ Enabled: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wonder-ruby-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wonder Sistemas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -86,6 +86,7 @@ files:
86
86
  - lib/wonder/ruby/style/version.rb
87
87
  - presets/.rubocop.yml
88
88
  - presets/0.50.0.yml
89
+ - presets/0.51.0.yml
89
90
  - wonder-ruby-style.gemspec
90
91
  homepage: http://www.wonder.com.br
91
92
  licenses: []