whitelist_scope 0.1.1 → 0.1.2

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