europeana-blacklight 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7b94c7f2c04be45a5c0792ad5c9a7498db5088ee
4
+ data.tar.gz: ac370d780f5021a234472a363fb20cdff1772795
5
+ SHA512:
6
+ metadata.gz: 9a034bcd4a46751f0ff3df982102b26f14fad05775a33d3ea84cd36eaa599622c32165d2c41271c66817c1090db3f649b19a663f6c64b40c41f44f97ac959588
7
+ data.tar.gz: 6a8c73ac776856f531c85418c521a7c2bab5a1a8a7be2826a680a8cdb09e415221aa21a3055f8efba678ba5db080df0526d5e9876eef9153dd648abf537cf80f
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.hound.yml ADDED
@@ -0,0 +1,10 @@
1
+ coffeescript:
2
+ enabled: false
3
+ haml:
4
+ enabled: false
5
+ javascript:
6
+ enabled: false
7
+ scss:
8
+ enabled: false
9
+ ruby:
10
+ config_file: .ruby-style.yml
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --require spec_helper
3
+ --format documentation
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: ./.ruby-style.yml
data/.ruby-style.yml ADDED
@@ -0,0 +1,1056 @@
1
+ AllCops:
2
+ Include:
3
+ - "**/*.rake"
4
+ - "**/Gemfile"
5
+ - "**/Rakefile"
6
+ Exclude:
7
+ - "vendor/**/*"
8
+ - "db/**/*"
9
+ RunRailsCops: true
10
+ DisplayCopNames: false
11
+ StyleGuideCopsOnly: false
12
+ Style/AccessModifierIndentation:
13
+ Description: Check indentation of private/protected visibility modifiers.
14
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
15
+ Enabled: true
16
+ EnforcedStyle: indent
17
+ SupportedStyles:
18
+ - outdent
19
+ - indent
20
+ Style/AlignHash:
21
+ Description: Align the elements of a hash literal if they span more than one line.
22
+ Enabled: true
23
+ EnforcedHashRocketStyle: key
24
+ EnforcedColonStyle: key
25
+ EnforcedLastArgumentHashStyle: always_inspect
26
+ SupportedLastArgumentHashStyles:
27
+ - always_inspect
28
+ - always_ignore
29
+ - ignore_implicit
30
+ - ignore_explicit
31
+ Style/AlignParameters:
32
+ Description: Align the parameters of a method call if they span more than one line.
33
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
34
+ Enabled: true
35
+ EnforcedStyle: with_first_parameter
36
+ SupportedStyles:
37
+ - with_first_parameter
38
+ - with_fixed_indentation
39
+ Style/AndOr:
40
+ Description: Use &&/|| instead of and/or.
41
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
42
+ Enabled: true
43
+ EnforcedStyle: always
44
+ SupportedStyles:
45
+ - always
46
+ - conditionals
47
+ Style/BarePercentLiterals:
48
+ Description: Checks if usage of %() or %Q() matches configuration.
49
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
50
+ Enabled: true
51
+ EnforcedStyle: bare_percent
52
+ SupportedStyles:
53
+ - percent_q
54
+ - bare_percent
55
+ Style/BracesAroundHashParameters:
56
+ Description: Enforce braces style around hash parameters.
57
+ Enabled: true
58
+ EnforcedStyle: no_braces
59
+ SupportedStyles:
60
+ - braces
61
+ - no_braces
62
+ - context_dependent
63
+ Style/CaseIndentation:
64
+ Description: Indentation of when in a case/when/[else/]end.
65
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
66
+ Enabled: true
67
+ IndentWhenRelativeTo: case
68
+ SupportedStyles:
69
+ - case
70
+ - end
71
+ IndentOneStep: false
72
+ Style/ClassAndModuleChildren:
73
+ Description: Checks style of children classes and modules.
74
+ Enabled: false
75
+ EnforcedStyle: nested
76
+ SupportedStyles:
77
+ - nested
78
+ - compact
79
+ Style/ClassCheck:
80
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
81
+ Enabled: true
82
+ EnforcedStyle: is_a?
83
+ SupportedStyles:
84
+ - is_a?
85
+ - kind_of?
86
+ Style/CollectionMethods:
87
+ Description: Preferred collection methods.
88
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
89
+ Enabled: true
90
+ PreferredMethods:
91
+ collect: map
92
+ collect!: map!
93
+ inject: reduce
94
+ detect: find
95
+ find_all: select
96
+ find: detect
97
+ Style/CommentAnnotation:
98
+ Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
99
+ REVIEW).
100
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
101
+ Enabled: false
102
+ Keywords:
103
+ - TODO
104
+ - FIXME
105
+ - OPTIMIZE
106
+ - HACK
107
+ - REVIEW
108
+ Style/DotPosition:
109
+ Description: Checks the position of the dot in multi-line method calls.
110
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
111
+ Enabled: true
112
+ EnforcedStyle: trailing
113
+ SupportedStyles:
114
+ - leading
115
+ - trailing
116
+ Style/EmptyLineBetweenDefs:
117
+ Description: Use empty lines between defs.
118
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
119
+ Enabled: true
120
+ AllowAdjacentOneLineDefs: false
121
+ Style/EmptyLinesAroundBlockBody:
122
+ Description: Keeps track of empty lines around block bodies.
123
+ Enabled: true
124
+ EnforcedStyle: no_empty_lines
125
+ SupportedStyles:
126
+ - empty_lines
127
+ - no_empty_lines
128
+ Style/EmptyLinesAroundClassBody:
129
+ Description: Keeps track of empty lines around class bodies.
130
+ Enabled: true
131
+ EnforcedStyle: no_empty_lines
132
+ SupportedStyles:
133
+ - empty_lines
134
+ - no_empty_lines
135
+ Style/EmptyLinesAroundModuleBody:
136
+ Description: Keeps track of empty lines around module bodies.
137
+ Enabled: true
138
+ EnforcedStyle: no_empty_lines
139
+ SupportedStyles:
140
+ - empty_lines
141
+ - no_empty_lines
142
+ Style/Encoding:
143
+ Description: Use UTF-8 as the source file encoding.
144
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
145
+ Enabled: false
146
+ EnforcedStyle: always
147
+ SupportedStyles:
148
+ - when_needed
149
+ - always
150
+ Style/FileName:
151
+ Description: Use snake_case for source file names.
152
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
153
+ Enabled: false
154
+ Exclude: []
155
+ Style/FirstParameterIndentation:
156
+ Description: Checks the indentation of the first parameter in a method call.
157
+ Enabled: true
158
+ EnforcedStyle: special_for_inner_method_call_in_parentheses
159
+ SupportedStyles:
160
+ - consistent
161
+ - special_for_inner_method_call
162
+ - special_for_inner_method_call_in_parentheses
163
+ Style/For:
164
+ Description: Checks use of for or each in multiline loops.
165
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
166
+ Enabled: true
167
+ EnforcedStyle: each
168
+ SupportedStyles:
169
+ - for
170
+ - each
171
+ Style/FormatString:
172
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
173
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
174
+ Enabled: false
175
+ EnforcedStyle: format
176
+ SupportedStyles:
177
+ - format
178
+ - sprintf
179
+ - percent
180
+ Style/GlobalVars:
181
+ Description: Do not introduce global variables.
182
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
183
+ Enabled: false
184
+ AllowedVariables: []
185
+ Style/GuardClause:
186
+ Description: Check for conditionals that can be replaced with guard clauses
187
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
188
+ Enabled: false
189
+ MinBodyLength: 1
190
+ Style/HashSyntax:
191
+ Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a =>
192
+ 1, :b => 2 }.'
193
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
194
+ Enabled: true
195
+ EnforcedStyle: ruby19
196
+ SupportedStyles:
197
+ - ruby19
198
+ - hash_rockets
199
+ Style/IfUnlessModifier:
200
+ Description: Favor modifier if/unless usage when you have a single-line body.
201
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
202
+ Enabled: false
203
+ MaxLineLength: 80
204
+ Style/IndentationWidth:
205
+ Description: Use 2 spaces for indentation.
206
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
207
+ Enabled: true
208
+ Width: 2
209
+ Style/IndentHash:
210
+ Description: Checks the indentation of the first key in a hash literal.
211
+ Enabled: true
212
+ EnforcedStyle: special_inside_parentheses
213
+ SupportedStyles:
214
+ - special_inside_parentheses
215
+ - consistent
216
+ Style/LambdaCall:
217
+ Description: Use lambda.call(...) instead of lambda.(...).
218
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
219
+ Enabled: false
220
+ EnforcedStyle: call
221
+ SupportedStyles:
222
+ - call
223
+ - braces
224
+ Style/Next:
225
+ Description: Use `next` to skip iteration instead of a condition at the end.
226
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
227
+ Enabled: false
228
+ EnforcedStyle: skip_modifier_ifs
229
+ MinBodyLength: 3
230
+ SupportedStyles:
231
+ - skip_modifier_ifs
232
+ - always
233
+ Style/NonNilCheck:
234
+ Description: Checks for redundant nil checks.
235
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
236
+ Enabled: true
237
+ IncludeSemanticChanges: false
238
+ Style/MethodDefParentheses:
239
+ Description: Checks if the method definitions have or don't have parentheses.
240
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
241
+ Enabled: true
242
+ EnforcedStyle: require_parentheses
243
+ SupportedStyles:
244
+ - require_parentheses
245
+ - require_no_parentheses
246
+ Style/MethodName:
247
+ Description: Use the configured style when naming methods.
248
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
249
+ Enabled: true
250
+ EnforcedStyle: snake_case
251
+ SupportedStyles:
252
+ - snake_case
253
+ - camelCase
254
+ Style/MultilineOperationIndentation:
255
+ Description: Checks indentation of binary operations that span more than one line.
256
+ Enabled: true
257
+ EnforcedStyle: indented
258
+ SupportedStyles:
259
+ - aligned
260
+ - indented
261
+ Style/NumericLiterals:
262
+ Description: Add underscores to large numeric literals to improve their readability.
263
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
264
+ Enabled: false
265
+ MinDigits: 5
266
+ Style/ParenthesesAroundCondition:
267
+ Description: Don't use parentheses around the condition of an if/unless/while.
268
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
269
+ Enabled: true
270
+ AllowSafeAssignment: true
271
+ Style/PercentLiteralDelimiters:
272
+ Description: Use `%`-literal delimiters consistently
273
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
274
+ Enabled: false
275
+ PreferredDelimiters:
276
+ "%": "()"
277
+ "%i": "()"
278
+ "%q": "()"
279
+ "%Q": "()"
280
+ "%r": "{}"
281
+ "%s": "()"
282
+ "%w": "()"
283
+ "%W": "()"
284
+ "%x": "()"
285
+ Style/PercentQLiterals:
286
+ Description: Checks if uses of %Q/%q match the configured preference.
287
+ Enabled: true
288
+ EnforcedStyle: lower_case_q
289
+ SupportedStyles:
290
+ - lower_case_q
291
+ - upper_case_q
292
+ Style/PredicateName:
293
+ Description: Check the names of predicate methods.
294
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
295
+ Enabled: true
296
+ NamePrefix:
297
+ - is_
298
+ - has_
299
+ - have_
300
+ NamePrefixBlacklist:
301
+ - is_
302
+ Style/RaiseArgs:
303
+ Description: Checks the arguments passed to raise/fail.
304
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
305
+ Enabled: false
306
+ EnforcedStyle: exploded
307
+ SupportedStyles:
308
+ - compact
309
+ - exploded
310
+ Style/RedundantReturn:
311
+ Description: Don't use return where it's not required.
312
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
313
+ Enabled: true
314
+ AllowMultipleReturnValues: false
315
+ Style/RegexpLiteral:
316
+ Description: Use %r for regular expressions matching more than `MaxSlashes` '/'
317
+ characters. Use %r only for regular expressions matching more than `MaxSlashes`
318
+ '/' character.
319
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
320
+ Enabled: false
321
+ MaxSlashes: 1
322
+ Style/Semicolon:
323
+ Description: Don't use semicolons to terminate expressions.
324
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
325
+ Enabled: true
326
+ AllowAsExpressionSeparator: false
327
+ Style/SignalException:
328
+ Description: Checks for proper usage of fail and raise.
329
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
330
+ Enabled: false
331
+ EnforcedStyle: semantic
332
+ SupportedStyles:
333
+ - only_raise
334
+ - only_fail
335
+ - semantic
336
+ Style/SingleLineBlockParams:
337
+ Description: Enforces the names of some block params.
338
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
339
+ Enabled: false
340
+ Methods:
341
+ - reduce:
342
+ - a
343
+ - e
344
+ - inject:
345
+ - a
346
+ - e
347
+ Style/SingleLineMethods:
348
+ Description: Avoid single-line methods.
349
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
350
+ Enabled: false
351
+ AllowIfMethodIsEmpty: true
352
+ Style/StringLiterals:
353
+ Description: Checks if uses of quotes match the configured preference.
354
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
355
+ Enabled: true
356
+ EnforcedStyle: single_quotes
357
+ SupportedStyles:
358
+ - single_quotes
359
+ - double_quotes
360
+ Style/StringLiteralsInInterpolation:
361
+ Description: Checks if uses of quotes inside expressions in interpolated strings
362
+ match the configured preference.
363
+ Enabled: true
364
+ EnforcedStyle: single_quotes
365
+ SupportedStyles:
366
+ - single_quotes
367
+ - double_quotes
368
+ Style/SpaceAroundBlockParameters:
369
+ Description: Checks the spacing inside and after block parameters pipes.
370
+ Enabled: true
371
+ EnforcedStyleInsidePipes: no_space
372
+ SupportedStyles:
373
+ - space
374
+ - no_space
375
+ Style/SpaceAroundEqualsInParameterDefault:
376
+ Description: Checks that the equals signs in parameter default assignments have
377
+ or don't have surrounding space depending on configuration.
378
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
379
+ Enabled: true
380
+ EnforcedStyle: space
381
+ SupportedStyles:
382
+ - space
383
+ - no_space
384
+ Style/SpaceBeforeBlockBraces:
385
+ Description: Checks that the left block brace has or doesn't have space before it.
386
+ Enabled: true
387
+ EnforcedStyle: space
388
+ SupportedStyles:
389
+ - space
390
+ - no_space
391
+ Style/SpaceInsideBlockBraces:
392
+ Description: Checks that block braces have or don't have surrounding space. For
393
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
394
+ space.
395
+ Enabled: true
396
+ EnforcedStyle: space
397
+ SupportedStyles:
398
+ - space
399
+ - no_space
400
+ EnforcedStyleForEmptyBraces: no_space
401
+ SpaceBeforeBlockParameters: true
402
+ Style/SpaceInsideHashLiteralBraces:
403
+ Description: Use spaces inside hash literal braces - or don't.
404
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
405
+ Enabled: true
406
+ EnforcedStyle: space
407
+ EnforcedStyleForEmptyBraces: no_space
408
+ SupportedStyles:
409
+ - space
410
+ - no_space
411
+ Style/SymbolProc:
412
+ Description: Use symbols as procs instead of blocks when possible.
413
+ Enabled: true
414
+ IgnoredMethods:
415
+ - respond_to
416
+ Style/TrailingBlankLines:
417
+ Description: Checks trailing blank lines and final newline.
418
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
419
+ Enabled: true
420
+ EnforcedStyle: final_newline
421
+ SupportedStyles:
422
+ - final_newline
423
+ - final_blank_line
424
+ Style/TrailingComma:
425
+ Description: Checks for trailing comma in parameter lists and literals.
426
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
427
+ Enabled: false
428
+ EnforcedStyleForMultiline: no_comma
429
+ SupportedStyles:
430
+ - comma
431
+ - no_comma
432
+ Style/TrivialAccessors:
433
+ Description: Prefer attr_* methods to trivial readers/writers.
434
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
435
+ Enabled: false
436
+ ExactNameMatch: false
437
+ AllowPredicates: false
438
+ AllowDSLWriters: false
439
+ Whitelist:
440
+ - to_ary
441
+ - to_a
442
+ - to_c
443
+ - to_enum
444
+ - to_h
445
+ - to_hash
446
+ - to_i
447
+ - to_int
448
+ - to_io
449
+ - to_open
450
+ - to_path
451
+ - to_proc
452
+ - to_r
453
+ - to_regexp
454
+ - to_str
455
+ - to_s
456
+ - to_sym
457
+ Style/VariableName:
458
+ Description: Use the configured style when naming variables.
459
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
460
+ Enabled: true
461
+ EnforcedStyle: snake_case
462
+ SupportedStyles:
463
+ - snake_case
464
+ - camelCase
465
+ Style/WhileUntilModifier:
466
+ Description: Favor modifier while/until usage when you have a single-line body.
467
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
468
+ Enabled: false
469
+ MaxLineLength: 80
470
+ Style/WordArray:
471
+ Description: Use %w or %W for arrays of words.
472
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
473
+ Enabled: false
474
+ MinSize: 0
475
+ WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
476
+ Metrics/AbcSize:
477
+ Description: A calculated magnitude based on number of assignments, branches, and
478
+ conditions.
479
+ Enabled: true
480
+ Max: 15
481
+ Metrics/BlockNesting:
482
+ Description: Avoid excessive block nesting
483
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
484
+ Enabled: true
485
+ Max: 3
486
+ Metrics/ClassLength:
487
+ Description: Avoid classes longer than 100 lines of code.
488
+ Enabled: false
489
+ CountComments: false
490
+ Max: 100
491
+ Metrics/CyclomaticComplexity:
492
+ Description: A complexity metric that is strongly correlated to the number of test
493
+ cases needed to validate a method.
494
+ Enabled: true
495
+ Max: 6
496
+ Metrics/LineLength:
497
+ Description: Limit lines to 80 characters.
498
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
499
+ Enabled: true
500
+ Max: 80
501
+ AllowURI: true
502
+ URISchemes:
503
+ - http
504
+ - https
505
+ Exclude:
506
+ - "spec/**/*"
507
+ Metrics/MethodLength:
508
+ Description: Avoid methods longer than 10 lines of code.
509
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
510
+ Enabled: true
511
+ CountComments: true
512
+ Max: 10
513
+ Exclude:
514
+ - "spec/**/*"
515
+ Metrics/ParameterLists:
516
+ Description: Avoid long parameter lists.
517
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
518
+ Enabled: true
519
+ Max: 5
520
+ CountKeywordArgs: true
521
+ Metrics/PerceivedComplexity:
522
+ Description: A complexity metric geared towards measuring complexity for a human
523
+ reader.
524
+ Enabled: true
525
+ Max: 7
526
+ Lint/AssignmentInCondition:
527
+ Description: Don't use assignment in conditions.
528
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
529
+ Enabled: false
530
+ AllowSafeAssignment: true
531
+ Lint/EndAlignment:
532
+ Description: Align ends correctly.
533
+ Enabled: true
534
+ AlignWith: keyword
535
+ SupportedStyles:
536
+ - keyword
537
+ - variable
538
+ Lint/DefEndAlignment:
539
+ Description: Align ends corresponding to defs correctly.
540
+ Enabled: true
541
+ AlignWith: start_of_line
542
+ SupportedStyles:
543
+ - start_of_line
544
+ - def
545
+ Rails/ActionFilter:
546
+ Description: Enforces consistent use of action filter methods.
547
+ Enabled: true
548
+ EnforcedStyle: action
549
+ SupportedStyles:
550
+ - action
551
+ - filter
552
+ Include:
553
+ - app/controllers/**/*.rb
554
+ Rails/DefaultScope:
555
+ Description: Checks if the argument passed to default_scope is a block.
556
+ Enabled: true
557
+ Include:
558
+ - app/models/**/*.rb
559
+ Rails/HasAndBelongsToMany:
560
+ Description: Prefer has_many :through to has_and_belongs_to_many.
561
+ Enabled: true
562
+ Include:
563
+ - app/models/**/*.rb
564
+ Rails/Output:
565
+ Description: Checks for calls to puts, print, etc.
566
+ Enabled: true
567
+ Include:
568
+ - app/**/*.rb
569
+ - config/**/*.rb
570
+ - db/**/*.rb
571
+ - lib/**/*.rb
572
+ Rails/ReadWriteAttribute:
573
+ Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
574
+ Enabled: true
575
+ Include:
576
+ - app/models/**/*.rb
577
+ Rails/ScopeArgs:
578
+ Description: Checks the arguments of ActiveRecord scopes.
579
+ Enabled: true
580
+ Include:
581
+ - app/models/**/*.rb
582
+ Rails/Validation:
583
+ Description: Use validates :attribute, hash of validations.
584
+ Enabled: true
585
+ Include:
586
+ - app/models/**/*.rb
587
+ Style/InlineComment:
588
+ Description: Avoid inline comments.
589
+ Enabled: false
590
+ Style/MethodCalledOnDoEndBlock:
591
+ Description: Avoid chaining a method call on a do...end block.
592
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
593
+ Enabled: false
594
+ Style/SymbolArray:
595
+ Description: Use %i or %I for arrays of symbols.
596
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
597
+ Enabled: false
598
+ Style/ExtraSpacing:
599
+ Description: Do not use unnecessary spacing.
600
+ Enabled: true
601
+ Style/AccessorMethodName:
602
+ Description: Check the naming of accessor methods for get_/set_.
603
+ Enabled: false
604
+ Style/Alias:
605
+ Description: Use alias_method instead of alias.
606
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
607
+ Enabled: false
608
+ Style/AlignArray:
609
+ Description: Align the elements of an array literal if they span more than one line.
610
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
611
+ Enabled: true
612
+ Style/ArrayJoin:
613
+ Description: Use Array#join instead of Array#*.
614
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
615
+ Enabled: false
616
+ Style/AsciiComments:
617
+ Description: Use only ascii symbols in comments.
618
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
619
+ Enabled: false
620
+ Style/AsciiIdentifiers:
621
+ Description: Use only ascii symbols in identifiers.
622
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
623
+ Enabled: false
624
+ Style/Attr:
625
+ Description: Checks for uses of Module#attr.
626
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
627
+ Enabled: false
628
+ Style/BeginBlock:
629
+ Description: Avoid the use of BEGIN blocks.
630
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
631
+ Enabled: true
632
+ Style/BlockComments:
633
+ Description: Do not use block comments.
634
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
635
+ Enabled: true
636
+ Style/BlockEndNewline:
637
+ Description: Put end statement of multiline block on its own line.
638
+ Enabled: true
639
+ Style/Blocks:
640
+ Description: Avoid using {...} for multi-line blocks (multiline chaining is always
641
+ ugly). Prefer {...} over do...end for single-line blocks.
642
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
643
+ Enabled: true
644
+ Style/CaseEquality:
645
+ Description: Avoid explicit use of the case equality operator(===).
646
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
647
+ Enabled: false
648
+ Style/CharacterLiteral:
649
+ Description: Checks for uses of character literals.
650
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
651
+ Enabled: false
652
+ Style/ClassAndModuleCamelCase:
653
+ Description: Use CamelCase for classes and modules.
654
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
655
+ Enabled: true
656
+ Style/ClassMethods:
657
+ Description: Use self when defining module/class methods.
658
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-singletons
659
+ Enabled: true
660
+ Style/ClassVars:
661
+ Description: Avoid the use of class variables.
662
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
663
+ Enabled: false
664
+ Style/ColonMethodCall:
665
+ Description: 'Do not use :: for method call.'
666
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
667
+ Enabled: false
668
+ Style/CommentIndentation:
669
+ Description: Indentation of comments.
670
+ Enabled: true
671
+ Style/ConstantName:
672
+ Description: Constants should use SCREAMING_SNAKE_CASE.
673
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
674
+ Enabled: true
675
+ Style/DefWithParentheses:
676
+ Description: Use def with parentheses when there are arguments.
677
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
678
+ Enabled: true
679
+ Style/DeprecatedHashMethods:
680
+ Description: Checks for use of deprecated Hash methods.
681
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
682
+ Enabled: false
683
+ Style/Documentation:
684
+ Description: Document classes and non-namespace modules.
685
+ Enabled: false
686
+ Style/DoubleNegation:
687
+ Description: Checks for uses of double negation (!!).
688
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
689
+ Enabled: false
690
+ Style/EachWithObject:
691
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
692
+ Enabled: false
693
+ Style/ElseAlignment:
694
+ Description: Align elses and elsifs correctly.
695
+ Enabled: true
696
+ Style/EmptyElse:
697
+ Description: Avoid empty else-clauses.
698
+ Enabled: true
699
+ Style/EmptyLines:
700
+ Description: Don't use several empty lines in a row.
701
+ Enabled: true
702
+ Style/EmptyLinesAroundAccessModifier:
703
+ Description: Keep blank lines around access modifiers.
704
+ Enabled: true
705
+ Style/EmptyLinesAroundMethodBody:
706
+ Description: Keeps track of empty lines around method bodies.
707
+ Enabled: true
708
+ Style/EmptyLiteral:
709
+ Description: Prefer literals to Array.new/Hash.new/String.new.
710
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
711
+ Enabled: false
712
+ Style/EndBlock:
713
+ Description: Avoid the use of END blocks.
714
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
715
+ Enabled: true
716
+ Style/EndOfLine:
717
+ Description: Use Unix-style line endings.
718
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
719
+ Enabled: true
720
+ Style/EvenOdd:
721
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
722
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
723
+ Enabled: false
724
+ Style/FlipFlop:
725
+ Description: Checks for flip flops
726
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
727
+ Enabled: false
728
+ Style/IfWithSemicolon:
729
+ Description: Do not use if x; .... Use the ternary operator instead.
730
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
731
+ Enabled: false
732
+ Style/IndentationConsistency:
733
+ Description: Keep indentation straight.
734
+ Enabled: true
735
+ Style/IndentArray:
736
+ Description: Checks the indentation of the first element in an array literal.
737
+ Enabled: true
738
+ Style/InfiniteLoop:
739
+ Description: Use Kernel#loop for infinite loops.
740
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
741
+ Enabled: true
742
+ Style/Lambda:
743
+ Description: Use the new lambda literal syntax for single-line blocks.
744
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
745
+ Enabled: false
746
+ Style/LeadingCommentSpace:
747
+ Description: Comments should start with a space.
748
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
749
+ Enabled: true
750
+ Style/LineEndConcatenation:
751
+ Description: Use \ instead of + or << to concatenate two string literals at line
752
+ end.
753
+ Enabled: false
754
+ Style/MethodCallParentheses:
755
+ Description: Do not use parentheses for method calls with no arguments.
756
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
757
+ Enabled: true
758
+ Style/ModuleFunction:
759
+ Description: Checks for usage of `extend self` in modules.
760
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
761
+ Enabled: false
762
+ Style/MultilineBlockChain:
763
+ Description: Avoid multi-line chains of blocks.
764
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
765
+ Enabled: true
766
+ Style/MultilineBlockLayout:
767
+ Description: Ensures newlines after multiline block do statements.
768
+ Enabled: true
769
+ Style/MultilineIfThen:
770
+ Description: Do not use then for multi-line if/unless.
771
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
772
+ Enabled: true
773
+ Style/MultilineTernaryOperator:
774
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
775
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
776
+ Enabled: true
777
+ Style/NegatedIf:
778
+ Description: Favor unless over if for negative conditions (or control flow or).
779
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
780
+ Enabled: false
781
+ Style/NegatedWhile:
782
+ Description: Favor until over while for negative conditions.
783
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
784
+ Enabled: false
785
+ Style/NestedTernaryOperator:
786
+ Description: Use one expression per branch in a ternary operator.
787
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
788
+ Enabled: true
789
+ Style/NilComparison:
790
+ Description: Prefer x.nil? to x == nil.
791
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
792
+ Enabled: false
793
+ Style/Not:
794
+ Description: Use ! instead of not.
795
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
796
+ Enabled: false
797
+ Style/OneLineConditional:
798
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
799
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
800
+ Enabled: false
801
+ Style/OpMethod:
802
+ Description: When defining binary operators, name the argument other.
803
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
804
+ Enabled: false
805
+ Style/PerlBackrefs:
806
+ Description: Avoid Perl-style regex back references.
807
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
808
+ Enabled: false
809
+ Style/Proc:
810
+ Description: Use proc instead of Proc.new.
811
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
812
+ Enabled: false
813
+ Style/RedundantBegin:
814
+ Description: Don't use begin blocks when they are not needed.
815
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
816
+ Enabled: true
817
+ Style/RedundantException:
818
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
819
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
820
+ Enabled: true
821
+ Style/RedundantSelf:
822
+ Description: Don't use self where it's not needed.
823
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
824
+ Enabled: true
825
+ Style/RescueModifier:
826
+ Description: Avoid using rescue in its modifier form.
827
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
828
+ Enabled: true
829
+ Style/SelfAssignment:
830
+ Description: Checks for places where self-assignment shorthand should have been
831
+ used.
832
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
833
+ Enabled: false
834
+ Style/SingleSpaceBeforeFirstArg:
835
+ Description: Checks that exactly one space is used between a method name and the
836
+ first argument for method calls without parentheses.
837
+ Enabled: true
838
+ Style/SpaceAfterColon:
839
+ Description: Use spaces after colons.
840
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
841
+ Enabled: true
842
+ Style/SpaceAfterComma:
843
+ Description: Use spaces after commas.
844
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
845
+ Enabled: true
846
+ Style/SpaceAfterControlKeyword:
847
+ Description: Use spaces after if/elsif/unless/while/until/case/when.
848
+ Enabled: true
849
+ Style/SpaceAfterMethodName:
850
+ Description: Do not put a space between a method name and the opening parenthesis
851
+ in a method definition.
852
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
853
+ Enabled: true
854
+ Style/SpaceAfterNot:
855
+ Description: Tracks redundant space after the ! operator.
856
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
857
+ Enabled: true
858
+ Style/SpaceAfterSemicolon:
859
+ Description: Use spaces after semicolons.
860
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
861
+ Enabled: true
862
+ Style/SpaceBeforeComma:
863
+ Description: No spaces before commas.
864
+ Enabled: true
865
+ Style/SpaceBeforeComment:
866
+ Description: Checks for missing space between code and a comment on the same line.
867
+ Enabled: true
868
+ Style/SpaceBeforeSemicolon:
869
+ Description: No spaces before semicolons.
870
+ Enabled: true
871
+ Style/SpaceAroundOperators:
872
+ Description: Use spaces around operators.
873
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
874
+ Enabled: true
875
+ Style/SpaceBeforeModifierKeyword:
876
+ Description: Put a space before the modifier keyword.
877
+ Enabled: true
878
+ Style/SpaceInsideBrackets:
879
+ Description: No spaces after [ or before ].
880
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
881
+ Enabled: true
882
+ Style/SpaceInsideParens:
883
+ Description: No spaces after ( or before ).
884
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
885
+ Enabled: true
886
+ Style/SpaceInsideRangeLiteral:
887
+ Description: No spaces inside range literals.
888
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
889
+ Enabled: true
890
+ Style/SpecialGlobalVars:
891
+ Description: Avoid Perl-style global variables.
892
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
893
+ Enabled: false
894
+ Style/StructInheritance:
895
+ Description: Checks for inheritance from Struct.new.
896
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
897
+ Enabled: true
898
+ Style/Tab:
899
+ Description: No hard tabs.
900
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
901
+ Enabled: true
902
+ Style/TrailingWhitespace:
903
+ Description: Avoid trailing whitespace.
904
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
905
+ Enabled: true
906
+ Style/UnlessElse:
907
+ Description: Do not use unless with else. Rewrite these with the positive case first.
908
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
909
+ Enabled: true
910
+ Style/UnneededCapitalW:
911
+ Description: Checks for %W when interpolation is not needed.
912
+ Enabled: true
913
+ Style/UnneededPercentQ:
914
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
915
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
916
+ Enabled: true
917
+ Style/UnneededPercentX:
918
+ Description: Checks for %x when `` would do.
919
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
920
+ Enabled: true
921
+ Style/VariableInterpolation:
922
+ Description: Don't interpolate global, instance and class variables directly in
923
+ strings.
924
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
925
+ Enabled: false
926
+ Style/WhenThen:
927
+ Description: Use when x then ... for one-line cases.
928
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
929
+ Enabled: false
930
+ Style/WhileUntilDo:
931
+ Description: Checks for redundant do after while or until.
932
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
933
+ Enabled: true
934
+ Lint/AmbiguousOperator:
935
+ Description: Checks for ambiguous operators in the first argument of a method invocation
936
+ without parentheses.
937
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
938
+ Enabled: false
939
+ Lint/AmbiguousRegexpLiteral:
940
+ Description: Checks for ambiguous regexp literals in the first argument of a method
941
+ invocation without parenthesis.
942
+ Enabled: false
943
+ Lint/BlockAlignment:
944
+ Description: Align block ends correctly.
945
+ Enabled: true
946
+ Lint/ConditionPosition:
947
+ Description: Checks for condition placed in a confusing position relative to the
948
+ keyword.
949
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
950
+ Enabled: false
951
+ Lint/Debugger:
952
+ Description: Check for debugger calls.
953
+ Enabled: true
954
+ Lint/DeprecatedClassMethods:
955
+ Description: Check for deprecated class method calls.
956
+ Enabled: false
957
+ Lint/DuplicateMethods:
958
+ Description: Check for duplicate methods calls.
959
+ Enabled: true
960
+ Lint/ElseLayout:
961
+ Description: Check for odd code arrangement in an else block.
962
+ Enabled: false
963
+ Lint/EmptyEnsure:
964
+ Description: Checks for empty ensure block.
965
+ Enabled: true
966
+ Lint/EmptyInterpolation:
967
+ Description: Checks for empty string interpolation.
968
+ Enabled: true
969
+ Lint/EndInMethod:
970
+ Description: END blocks should not be placed inside method definitions.
971
+ Enabled: true
972
+ Lint/EnsureReturn:
973
+ Description: Do not use return in an ensure block.
974
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
975
+ Enabled: true
976
+ Lint/Eval:
977
+ Description: The use of eval represents a serious security risk.
978
+ Enabled: true
979
+ Lint/HandleExceptions:
980
+ Description: Don't suppress exception.
981
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
982
+ Enabled: false
983
+ Lint/InvalidCharacterLiteral:
984
+ Description: Checks for invalid character literals with a non-escaped whitespace
985
+ character.
986
+ Enabled: false
987
+ Lint/LiteralInCondition:
988
+ Description: Checks of literals used in conditions.
989
+ Enabled: false
990
+ Lint/LiteralInInterpolation:
991
+ Description: Checks for literals used in interpolation.
992
+ Enabled: false
993
+ Lint/Loop:
994
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
995
+ for post-loop tests.
996
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
997
+ Enabled: false
998
+ Lint/ParenthesesAsGroupedExpression:
999
+ Description: Checks for method calls with a space before the opening parenthesis.
1000
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
1001
+ Enabled: false
1002
+ Lint/RequireParentheses:
1003
+ Description: Use parentheses in the method call to avoid confusion about precedence.
1004
+ Enabled: false
1005
+ Lint/RescueException:
1006
+ Description: Avoid rescuing the Exception class.
1007
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
1008
+ Enabled: true
1009
+ Lint/ShadowingOuterLocalVariable:
1010
+ Description: Do not use the same name as outer local variable for block arguments
1011
+ or block local variables.
1012
+ Enabled: true
1013
+ Lint/SpaceBeforeFirstArg:
1014
+ Description: Put a space between a method name and the first argument in a method
1015
+ call without parentheses.
1016
+ Enabled: true
1017
+ Lint/StringConversionInInterpolation:
1018
+ Description: Checks for Object#to_s usage in string interpolation.
1019
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
1020
+ Enabled: true
1021
+ Lint/UnderscorePrefixedVariableName:
1022
+ Description: Do not use prefix `_` for a variable that is used.
1023
+ Enabled: false
1024
+ Lint/UnusedBlockArgument:
1025
+ Description: Checks for unused block arguments.
1026
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1027
+ Enabled: true
1028
+ Lint/UnusedMethodArgument:
1029
+ Description: Checks for unused method arguments.
1030
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1031
+ Enabled: true
1032
+ Lint/UnreachableCode:
1033
+ Description: Unreachable code.
1034
+ Enabled: true
1035
+ Lint/UselessAccessModifier:
1036
+ Description: Checks for useless access modifiers.
1037
+ Enabled: true
1038
+ Lint/UselessAssignment:
1039
+ Description: Checks for useless assignment to a local variable.
1040
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1041
+ Enabled: true
1042
+ Lint/UselessComparison:
1043
+ Description: Checks for comparison of something with itself.
1044
+ Enabled: true
1045
+ Lint/UselessElseWithoutRescue:
1046
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
1047
+ Enabled: true
1048
+ Lint/UselessSetterCall:
1049
+ Description: Checks for useless setter call to a local variable.
1050
+ Enabled: true
1051
+ Lint/Void:
1052
+ Description: Possible use of operator/literal/variable in void context.
1053
+ Enabled: false
1054
+ Rails/Delegate:
1055
+ Description: Prefer delegate method for delegations.
1056
+ Enabled: false