rubocop_config 0.48.1.1 → 0.49.1.1

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