fog-cloudatcost 0.2.3 → 0.4.0

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