kt-paperclip 6.2.2 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26488f18c8227a22bd86858d286924d003b61eb71dbc2353c1228fb11c04086f
4
- data.tar.gz: 4ce23288e0c3dd39d5b4456aa1d1b62333e07732f1bbbd44e744d03e34e35805
3
+ metadata.gz: b0c273bab6a78348400356b49b6a713a1119b599d79bfa87c0eefa5660636fd0
4
+ data.tar.gz: 46d706576d7f48a94e68c6cfbb6eedd7456df6f18a7f3e68b938649acbe69c6e
5
5
  SHA512:
6
- metadata.gz: e2163ee366029e841dadf6d99b2cc2bab5309181e9df67faf926f20ce6e4c6da7bf93062dfe581c9aa6d42873b0571549458505bc9be43fdffb9913e9eb718e0
7
- data.tar.gz: 46c31da4a29581501380c61b516498bf278fbc9dc7eab61a08122d21274079fc14f1e7cd43ea938547d59b9190b46683074364cc7660cddbe541efd6665334f2
6
+ metadata.gz: 924cf86607996af398c917feb50929ca1398a4749cb97dc707605f9d7f59773d407b3e7aafc05e590769df670ab7c555e2c0f5fc082c79dbecb6532b3280ac9e
7
+ data.tar.gz: 220f2c1f42cbf52e54c033da40e4f034d4771fb021b56eba3a8c5619e7ba41c01034ed3d8b84bcefd8339b936f9e5cf6f177e99788d02fe1cda3bedc74798ab7
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: Custom issue template
3
+ about: Describe this issue template's purpose here.
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
data/.hound.yml CHANGED
@@ -20,37 +20,62 @@ AllCops:
20
20
  - "db/schema.rb"
21
21
  - 'vendor/**/*'
22
22
  - 'gemfiles/vendor/**/*'
23
- Rails:
24
- Enabled: false
25
23
  DisplayCopNames: false
26
24
  StyleGuideCopsOnly: false
27
- Style/AccessModifierIndentation:
28
- Description: Check indentation of private/protected visibility modifiers.
29
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
25
+ Naming/AccessorMethodName:
26
+ Description: Check the naming of accessor methods for get_/set_.
27
+ Enabled: false
28
+ Naming/AsciiIdentifiers:
29
+ Description: Use only ascii symbols in identifiers.
30
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
31
+ Enabled: false
32
+ Naming/BinaryOperatorParameterName:
33
+ Description: When defining binary operators, name the argument other.
34
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
35
+ Enabled: false
36
+ Naming/ClassAndModuleCamelCase:
37
+ Description: Use CamelCase for classes and modules.
38
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
30
39
  Enabled: true
31
- EnforcedStyle: indent
40
+ Naming/ConstantName:
41
+ Description: Constants should use SCREAMING_SNAKE_CASE.
42
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
43
+ Enabled: true
44
+ Naming/FileName:
45
+ Description: Use snake_case for source file names.
46
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
47
+ Enabled: false
48
+ Exclude: []
49
+ Naming/MemoizedInstanceVariableName:
50
+ Enabled: false
51
+ Naming/MethodName:
52
+ Description: Use the configured style when naming methods.
53
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
54
+ Enabled: true
55
+ EnforcedStyle: snake_case
32
56
  SupportedStyles:
33
- - outdent
34
- - indent
35
- Style/AlignHash:
36
- Description: Align the elements of a hash literal if they span more than one line.
57
+ - snake_case
58
+ - camelCase
59
+ Naming/PredicateName:
60
+ Description: Check the names of predicate methods.
61
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
37
62
  Enabled: true
38
- EnforcedHashRocketStyle: key
39
- EnforcedColonStyle: key
40
- EnforcedLastArgumentHashStyle: always_inspect
41
- SupportedLastArgumentHashStyles:
42
- - always_inspect
43
- - always_ignore
44
- - ignore_implicit
45
- - ignore_explicit
46
- Style/AlignParameters:
47
- Description: Align the parameters of a method call if they span more than one line.
48
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
63
+ NamePrefix:
64
+ - is_
65
+ - has_
66
+ - have_
67
+ ForbiddenPrefixes:
68
+ - is_
69
+ Naming/VariableName:
70
+ Description: Use the configured style when naming variables.
71
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
49
72
  Enabled: true
50
- EnforcedStyle: with_first_parameter
73
+ EnforcedStyle: snake_case
51
74
  SupportedStyles:
52
- - with_first_parameter
53
- - with_fixed_indentation
75
+ - snake_case
76
+ - camelCase
77
+ Rails:
78
+ Enabled: true
54
79
  Style/AndOr:
55
80
  Description: Use &&/|| instead of and/or.
56
81
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
@@ -67,23 +92,6 @@ Style/BarePercentLiterals:
67
92
  SupportedStyles:
68
93
  - percent_q
69
94
  - bare_percent
70
- Style/BracesAroundHashParameters:
71
- Description: Enforce braces style around hash parameters.
72
- Enabled: true
73
- EnforcedStyle: no_braces
74
- SupportedStyles:
75
- - braces
76
- - no_braces
77
- - context_dependent
78
- Style/CaseIndentation:
79
- Description: Indentation of when in a case/when/[else/]end.
80
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
81
- Enabled: true
82
- EnforcedStyle: case
83
- SupportedStyles:
84
- - case
85
- - end
86
- IndentOneStep: false
87
95
  Style/ClassAndModuleChildren:
88
96
  Description: Checks style of children classes and modules.
89
97
  Enabled: false
@@ -105,9 +113,10 @@ Style/CollectionMethods:
105
113
  PreferredMethods:
106
114
  collect: map
107
115
  collect!: map!
108
- find: detect
116
+ inject: reduce
117
+ detect: find
109
118
  find_all: select
110
- reduce: inject
119
+ find: detect
111
120
  Style/CommentAnnotation:
112
121
  Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
113
122
  REVIEW).
@@ -119,57 +128,15 @@ Style/CommentAnnotation:
119
128
  - OPTIMIZE
120
129
  - HACK
121
130
  - REVIEW
122
- Style/DotPosition:
123
- Description: Checks the position of the dot in multi-line method calls.
124
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
125
- Enabled: true
126
- EnforcedStyle: trailing
127
- SupportedStyles:
128
- - leading
129
- - trailing
130
- Style/EmptyLineBetweenDefs:
131
- Description: Use empty lines between defs.
132
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
133
- Enabled: true
134
- AllowAdjacentOneLineDefs: false
135
- Style/EmptyLinesAroundBlockBody:
136
- Description: Keeps track of empty lines around block bodies.
137
- Enabled: true
138
- EnforcedStyle: no_empty_lines
139
- SupportedStyles:
140
- - empty_lines
141
- - no_empty_lines
142
- Style/EmptyLinesAroundClassBody:
143
- Description: Keeps track of empty lines around class bodies.
144
- Enabled: true
145
- EnforcedStyle: no_empty_lines
146
- SupportedStyles:
147
- - empty_lines
148
- - no_empty_lines
149
- Style/EmptyLinesAroundModuleBody:
150
- Description: Keeps track of empty lines around module bodies.
151
- Enabled: true
152
- EnforcedStyle: no_empty_lines
153
- SupportedStyles:
154
- - empty_lines
155
- - no_empty_lines
156
131
  Style/Encoding:
157
132
  Description: Use UTF-8 as the source file encoding.
158
133
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
159
134
  Enabled: false
160
- Style/FileName:
161
- Description: Use snake_case for source file names.
162
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
135
+ Style/FrozenStringLiteralComment:
136
+ Description: >-
137
+ Add the frozen_string_literal comment to the top of files
138
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
163
139
  Enabled: false
164
- Exclude: []
165
- Style/FirstParameterIndentation:
166
- Description: Checks the indentation of the first parameter in a method call.
167
- Enabled: true
168
- EnforcedStyle: consistent
169
- SupportedStyles:
170
- - consistent
171
- - special_for_inner_method_call
172
- - special_for_inner_method_call_in_parentheses
173
140
  Style/For:
174
141
  Description: Checks use of for or each in multiline loops.
175
142
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
@@ -206,23 +173,6 @@ Style/HashSyntax:
206
173
  SupportedStyles:
207
174
  - ruby19
208
175
  - hash_rockets
209
- Metrics/LineLength:
210
- Description: Favor modifier if/unless usage when you have a single-line body.
211
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
212
- Enabled: false
213
- Max: 80
214
- Style/IndentationWidth:
215
- Description: Use 2 spaces for indentation.
216
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
217
- Enabled: true
218
- Width: 2
219
- Style/IndentHash:
220
- Description: Checks the indentation of the first key in a hash literal.
221
- Enabled: true
222
- EnforcedStyle: special_inside_parentheses
223
- SupportedStyles:
224
- - special_inside_parentheses
225
- - consistent
226
176
  Style/LambdaCall:
227
177
  Description: Use lambda.call(...) instead of lambda.(...).
228
178
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
@@ -253,26 +203,13 @@ Style/MethodDefParentheses:
253
203
  SupportedStyles:
254
204
  - require_parentheses
255
205
  - require_no_parentheses
256
- Style/MethodName:
257
- Description: Use the configured style when naming methods.
258
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
259
- Enabled: true
260
- EnforcedStyle: snake_case
261
- SupportedStyles:
262
- - snake_case
263
- - camelCase
264
- Style/MultilineOperationIndentation:
265
- Description: Checks indentation of binary operations that span more than one line.
266
- Enabled: true
267
- EnforcedStyle: aligned
268
- SupportedStyles:
269
- - aligned
270
- - indented
271
206
  Style/NumericLiterals:
272
207
  Description: Add underscores to large numeric literals to improve their readability.
273
208
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
274
209
  Enabled: false
275
210
  MinDigits: 5
211
+ Style/NumericPredicate:
212
+ Enabled: false
276
213
  Style/ParenthesesAroundCondition:
277
214
  Description: Don't use parentheses around the condition of an if/unless/while.
278
215
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
@@ -299,16 +236,6 @@ Style/PercentQLiterals:
299
236
  SupportedStyles:
300
237
  - lower_case_q
301
238
  - upper_case_q
302
- Style/PredicateName:
303
- Description: Check the names of predicate methods.
304
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
305
- Enabled: true
306
- NamePrefix:
307
- - is_
308
- - has_
309
- - have_
310
- ForbiddenPrefixes:
311
- - is_
312
239
  Style/RaiseArgs:
313
240
  Description: Checks the arguments passed to raise/fail.
314
241
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
@@ -328,7 +255,6 @@ Style/RegexpLiteral:
328
255
  '/' character.
329
256
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
330
257
  Enabled: false
331
- MaxSlashes: 1
332
258
  Style/Semicolon:
333
259
  Description: Don't use semicolons to terminate expressions.
334
260
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
@@ -375,76 +301,23 @@ Style/StringLiteralsInInterpolation:
375
301
  SupportedStyles:
376
302
  - single_quotes
377
303
  - double_quotes
378
- Style/SpaceAroundBlockParameters:
379
- Description: Checks the spacing inside and after block parameters pipes.
380
- Enabled: true
381
- EnforcedStyleInsidePipes: no_space
382
- SupportedStyles:
383
- - space
384
- - no_space
385
- Style/SpaceAroundEqualsInParameterDefault:
386
- Description: Checks that the equals signs in parameter default assignments have
387
- or don't have surrounding space depending on configuration.
388
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
389
- Enabled: true
390
- EnforcedStyle: space
391
- SupportedStyles:
392
- - space
393
- - no_space
394
- Style/SpaceBeforeBlockBraces:
395
- Description: Checks that the left block brace has or doesn't have space before it.
396
- Enabled: true
397
- EnforcedStyle: space
398
- SupportedStyles:
399
- - space
400
- - no_space
401
- Style/SpaceInsideBlockBraces:
402
- Description: Checks that block braces have or don't have surrounding space. For
403
- blocks taking parameters, checks that the left brace has or doesn't have trailing
404
- space.
405
- Enabled: true
406
- EnforcedStyle: space
407
- SupportedStyles:
408
- - space
409
- - no_space
410
- EnforcedStyleForEmptyBraces: no_space
411
- SpaceBeforeBlockParameters: true
412
- Style/SpaceInsideHashLiteralBraces:
413
- Description: Use spaces inside hash literal braces - or don't.
414
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
415
- Enabled: true
416
- EnforcedStyle: space
417
- EnforcedStyleForEmptyBraces: no_space
418
- SupportedStyles:
419
- - space
420
- - no_space
421
304
  Style/SymbolProc:
422
305
  Description: Use symbols as procs instead of blocks when possible.
423
306
  Enabled: true
424
307
  IgnoredMethods:
425
308
  - respond_to
426
- Style/TrailingBlankLines:
427
- Description: Checks trailing blank lines and final newline.
428
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
429
- Enabled: true
430
- EnforcedStyle: final_newline
431
- SupportedStyles:
432
- - final_newline
433
- - final_blank_line
434
309
  Style/TrailingCommaInArrayLiteral:
435
- Description: Checks for trailing comma in parameter lists and literals.
436
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
437
- Enabled: false
438
- EnforcedStyleForMultiline: no_comma
439
- SupportedStyles:
440
- - comma
441
- - no_comma
310
+ EnforcedStyleForMultiline: comma
311
+ Enabled: true
442
312
  Style/TrailingCommaInHashLiteral:
313
+ EnforcedStyleForMultiline: comma
314
+ Enabled: true
315
+ Style/TrailingCommaInArguments:
443
316
  Description: Checks for trailing comma in parameter lists and literals.
444
317
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
445
- Enabled: false
446
- EnforcedStyleForMultiline: no_comma
447
- SupportedStyles:
318
+ Enabled: true
319
+ EnforcedStyleForMultiline: comma
320
+ SupportedStylesForMultiline:
448
321
  - comma
449
322
  - no_comma
450
323
  Style/TrivialAccessors:
@@ -472,14 +345,6 @@ Style/TrivialAccessors:
472
345
  - to_str
473
346
  - to_s
474
347
  - to_sym
475
- Style/VariableName:
476
- Description: Use the configured style when naming variables.
477
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
478
- Enabled: true
479
- EnforcedStyle: snake_case
480
- SupportedStyles:
481
- - snake_case
482
- - camelCase
483
348
  Style/WordArray:
484
349
  Description: Use %w or %W for arrays of words.
485
350
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
@@ -491,10 +356,13 @@ Metrics/AbcSize:
491
356
  conditions.
492
357
  Enabled: true
493
358
  Max: 15
359
+ Metrics/BlockLength:
360
+ Exclude:
361
+ - "spec/**/*"
494
362
  Metrics/BlockNesting:
495
363
  Description: Avoid excessive block nesting
496
364
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
497
- Enabled: false
365
+ Enabled: true
498
366
  Max: 3
499
367
  Metrics/ClassLength:
500
368
  Description: Avoid classes longer than 100 lines of code.
@@ -504,9 +372,9 @@ Metrics/ClassLength:
504
372
  Metrics/CyclomaticComplexity:
505
373
  Description: A complexity metric that is strongly correlated to the number of test
506
374
  cases needed to validate a method.
507
- Enabled: false
375
+ Enabled: true
508
376
  Max: 6
509
- Metrics/LineLength:
377
+ Layout/LineLength:
510
378
  Description: Limit lines to 120 characters.
511
379
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#120-character-limits
512
380
  Enabled: true
@@ -515,45 +383,49 @@ Metrics/LineLength:
515
383
  URISchemes:
516
384
  - http
517
385
  - https
386
+ Exclude:
387
+ - config/initializers/new_framework_defaults_6_0.rb
518
388
  Metrics/MethodLength:
519
- Description: Avoid methods longer than 10 lines of code.
389
+ Description: Avoid methods longer than 15 lines of code.
520
390
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
521
- Enabled: false
522
- CountComments: false
523
- Max: 10
391
+ Enabled: true
392
+ CountComments: true
393
+ Max: 15
394
+ Exclude:
395
+ - "spec/**/*"
524
396
  Metrics/ParameterLists:
525
- Description: Avoid parameter lists longer than three or four parameters.
397
+ Description: Avoid long parameter lists.
526
398
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
527
- Enabled: false
399
+ Enabled: true
528
400
  Max: 5
529
401
  CountKeywordArgs: true
530
402
  Metrics/PerceivedComplexity:
531
403
  Description: A complexity metric geared towards measuring complexity for a human
532
404
  reader.
533
- Enabled: false
405
+ Enabled: true
534
406
  Max: 7
535
407
  Lint/AssignmentInCondition:
536
408
  Description: Don't use assignment in conditions.
537
409
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
538
410
  Enabled: false
539
411
  AllowSafeAssignment: true
540
- Lint/EndAlignment:
412
+ Layout/EndAlignment:
541
413
  Description: Align ends correctly.
542
414
  Enabled: true
543
415
  EnforcedStyleAlignWith: keyword
544
- SupportedStyles:
416
+ SupportedStylesAlignWith:
545
417
  - keyword
546
418
  - variable
547
- Lint/DefEndAlignment:
419
+ Layout/DefEndAlignment:
548
420
  Description: Align ends corresponding to defs correctly.
549
421
  Enabled: true
550
422
  EnforcedStyleAlignWith: start_of_line
551
- SupportedStyles:
423
+ SupportedStylesAlignWith:
552
424
  - start_of_line
553
425
  - def
554
426
  Rails/ActionFilter:
555
427
  Description: Enforces consistent use of action filter methods.
556
- Enabled: false
428
+ Enabled: true
557
429
  EnforcedStyle: action
558
430
  SupportedStyles:
559
431
  - action
@@ -565,6 +437,8 @@ Rails/HasAndBelongsToMany:
565
437
  Enabled: true
566
438
  Include:
567
439
  - app/models/**/*.rb
440
+ Rails/HttpPositionalArguments:
441
+ Enabled: false
568
442
  Rails/Output:
569
443
  Description: Checks for calls to puts, print, etc.
570
444
  Enabled: true
@@ -599,20 +473,10 @@ Style/SymbolArray:
599
473
  Description: Use %i or %I for arrays of symbols.
600
474
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
601
475
  Enabled: false
602
- Style/ExtraSpacing:
603
- Description: Do not use unnecessary spacing.
604
- Enabled: true
605
- Style/AccessorMethodName:
606
- Description: Check the naming of accessor methods for get_/set_.
607
- Enabled: false
608
476
  Style/Alias:
609
477
  Description: Use alias_method instead of alias.
610
478
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
611
479
  Enabled: false
612
- Style/AlignArray:
613
- Description: Align the elements of an array literal if they span more than one line.
614
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
615
- Enabled: true
616
480
  Style/ArrayJoin:
617
481
  Description: Use Array#join instead of Array#*.
618
482
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
@@ -621,10 +485,6 @@ Style/AsciiComments:
621
485
  Description: Use only ascii symbols in comments.
622
486
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
623
487
  Enabled: false
624
- Style/AsciiIdentifiers:
625
- Description: Use only ascii symbols in identifiers.
626
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
627
- Enabled: false
628
488
  Style/Attr:
629
489
  Description: Checks for uses of Module#attr.
630
490
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
@@ -637,10 +497,7 @@ Style/BlockComments:
637
497
  Description: Do not use block comments.
638
498
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
639
499
  Enabled: true
640
- Style/BlockEndNewline:
641
- Description: Put end statement of multiline block on its own line.
642
- Enabled: true
643
- Style/Blocks:
500
+ Style/BlockDelimiters:
644
501
  Description: Avoid using {...} for multi-line blocks (multiline chaining is always
645
502
  ugly). Prefer {...} over do...end for single-line blocks.
646
503
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
@@ -653,10 +510,6 @@ Style/CharacterLiteral:
653
510
  Description: Checks for uses of character literals.
654
511
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
655
512
  Enabled: false
656
- Style/ClassAndModuleCamelCase:
657
- Description: Use CamelCase for classes and modules.
658
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
659
- Enabled: true
660
513
  Style/ClassMethods:
661
514
  Description: Use self when defining module/class methods.
662
515
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-singletons
@@ -669,13 +522,6 @@ Style/ColonMethodCall:
669
522
  Description: 'Do not use :: for method call.'
670
523
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
671
524
  Enabled: false
672
- Style/CommentIndentation:
673
- Description: Indentation of comments.
674
- Enabled: true
675
- Style/ConstantName:
676
- Description: Constants should use SCREAMING_SNAKE_CASE.
677
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
678
- Enabled: true
679
525
  Style/DefWithParentheses:
680
526
  Description: Use def with parentheses when there are arguments.
681
527
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
@@ -690,21 +536,9 @@ Style/DoubleNegation:
690
536
  Style/EachWithObject:
691
537
  Description: Prefer `each_with_object` over `inject` or `reduce`.
692
538
  Enabled: false
693
- Style/ElseAlignment:
694
- Description: Align elses and elsifs correctly.
695
- Enabled: true
696
539
  Style/EmptyElse:
697
540
  Description: Avoid empty else-clauses.
698
541
  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
542
  Style/EmptyLiteral:
709
543
  Description: Prefer literals to Array.new/Hash.new/String.new.
710
544
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
@@ -713,28 +547,17 @@ Style/EndBlock:
713
547
  Description: Avoid the use of END blocks.
714
548
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
715
549
  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
550
  Style/EvenOdd:
721
551
  Description: Favor the use of Fixnum#even? && Fixnum#odd?
722
552
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
723
553
  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
554
  Style/IfWithSemicolon:
729
555
  Description: Do not use if x; .... Use the ternary operator instead.
730
556
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
731
557
  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
558
+ Style/IfUnlessModifier:
559
+ Description: Favor modifier if/unless usage when you have a single-line body.
560
+ Enabled: false
738
561
  Style/InfiniteLoop:
739
562
  Description: Use Kernel#loop for infinite loops.
740
563
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
@@ -743,10 +566,6 @@ Style/Lambda:
743
566
  Description: Use the new lambda literal syntax for single-line blocks.
744
567
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
745
568
  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
569
  Style/LineEndConcatenation:
751
570
  Description: Use \ instead of + or << to concatenate two string literals at line
752
571
  end.
@@ -759,13 +578,6 @@ Style/ModuleFunction:
759
578
  Description: Checks for usage of `extend self` in modules.
760
579
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
761
580
  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
581
  Style/MultilineIfThen:
770
582
  Description: Do not use then for multi-line if/unless.
771
583
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
@@ -798,14 +610,14 @@ Style/OneLineConditional:
798
610
  Description: Favor the ternary operator(?:) over if/then/else/end constructs.
799
611
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
800
612
  Enabled: false
801
- Naming/BinaryOperatorParameterName:
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
613
  Style/PerlBackrefs:
806
614
  Description: Avoid Perl-style regex back references.
807
615
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
808
616
  Enabled: false
617
+ Style/PreferredHashMethods:
618
+ Description: Checks for use of deprecated Hash methods.
619
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
620
+ Enabled: false
809
621
  Style/Proc:
810
622
  Description: Use proc instead of Proc.new.
811
623
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
@@ -831,103 +643,305 @@ Style/SelfAssignment:
831
643
  used.
832
644
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
833
645
  Enabled: false
834
- Style/SpaceBeforeFirstArg:
646
+ Style/SpecialGlobalVars:
647
+ Description: Avoid Perl-style global variables.
648
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
649
+ Enabled: false
650
+ Style/StructInheritance:
651
+ Description: Checks for inheritance from Struct.new.
652
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
653
+ Enabled: true
654
+ Style/UnlessElse:
655
+ Description: Do not use unless with else. Rewrite these with the positive case first.
656
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
657
+ Enabled: true
658
+ Style/RedundantCapitalW:
659
+ Description: Checks for %W when interpolation is not needed.
660
+ Enabled: true
661
+ Style/RedundantPercentQ:
662
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
663
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
664
+ Enabled: true
665
+ Style/CommandLiteral:
666
+ Description: Checks for %x when `` would do.
667
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
668
+ Enabled: true
669
+ Style/VariableInterpolation:
670
+ Description: Don't interpolate global, instance and class variables directly in
671
+ strings.
672
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
673
+ Enabled: false
674
+ Style/WhenThen:
675
+ Description: Use when x then ... for one-line cases.
676
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
677
+ Enabled: false
678
+ Style/WhileUntilDo:
679
+ Description: Checks for redundant do after while or until.
680
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
681
+ Enabled: true
682
+ Layout/AccessModifierIndentation:
683
+ Description: Check indentation of private/protected visibility modifiers.
684
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
685
+ Enabled: true
686
+ EnforcedStyle: indent
687
+ SupportedStyles:
688
+ - outdent
689
+ - indent
690
+ Layout/HashAlignment:
691
+ Description: Align the elements of a hash literal if they span more than one line.
692
+ Enabled: true
693
+ EnforcedHashRocketStyle: key
694
+ EnforcedColonStyle: key
695
+ EnforcedLastArgumentHashStyle: always_inspect
696
+ SupportedLastArgumentHashStyles:
697
+ - always_inspect
698
+ - always_ignore
699
+ - ignore_implicit
700
+ - ignore_explicit
701
+ Layout/ParameterAlignment:
702
+ Description: Align the parameters of a method call if they span more than one line.
703
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
704
+ Enabled: true
705
+ EnforcedStyle: with_first_parameter
706
+ SupportedStyles:
707
+ - with_first_parameter
708
+ - with_fixed_indentation
709
+ Layout/CaseIndentation:
710
+ Description: Indentation of when in a case/when/[else/]end.
711
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
712
+ Enabled: true
713
+ EnforcedStyle: case
714
+ SupportedStyles:
715
+ - case
716
+ - end
717
+ IndentOneStep: false
718
+ Layout/CommentIndentation:
719
+ Description: Indentation of comments.
720
+ Enabled: true
721
+ Layout/DotPosition:
722
+ Description: Checks the position of the dot in multi-line method calls.
723
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
724
+ Enabled: true
725
+ EnforcedStyle: trailing
726
+ SupportedStyles:
727
+ - leading
728
+ - trailing
729
+ Layout/EmptyLineBetweenDefs:
730
+ Description: Use empty lines between defs.
731
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
732
+ Enabled: true
733
+ AllowAdjacentOneLineDefs: false
734
+ Layout/EmptyLinesAroundBlockBody:
735
+ Description: Keeps track of empty lines around block bodies.
736
+ Enabled: true
737
+ EnforcedStyle: no_empty_lines
738
+ SupportedStyles:
739
+ - empty_lines
740
+ - no_empty_lines
741
+ Layout/EmptyLinesAroundClassBody:
742
+ Description: Keeps track of empty lines around class bodies.
743
+ Enabled: true
744
+ EnforcedStyle: no_empty_lines
745
+ SupportedStyles:
746
+ - empty_lines
747
+ - no_empty_lines
748
+ Layout/EmptyLinesAroundModuleBody:
749
+ Description: Keeps track of empty lines around module bodies.
750
+ Enabled: true
751
+ EnforcedStyle: no_empty_lines
752
+ SupportedStyles:
753
+ - empty_lines
754
+ - no_empty_lines
755
+ Layout/FirstArgumentIndentation:
756
+ Description: Checks the indentation of the first parameter in a method call.
757
+ Enabled: true
758
+ EnforcedStyle: special_for_inner_method_call_in_parentheses
759
+ SupportedStyles:
760
+ - consistent
761
+ - special_for_inner_method_call
762
+ - special_for_inner_method_call_in_parentheses
763
+ Layout/IndentationWidth:
764
+ Description: Use 2 spaces for indentation.
765
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
766
+ Enabled: true
767
+ Width: 2
768
+ Layout/FirstHashElementIndentation:
769
+ Description: Checks the indentation of the first key in a hash literal.
770
+ Enabled: true
771
+ EnforcedStyle: special_inside_parentheses
772
+ SupportedStyles:
773
+ - special_inside_parentheses
774
+ - consistent
775
+ Layout/MultilineMethodCallIndentation:
776
+ Description: Checks indentation of method calls with the dot operator
777
+ that span more than one line.
778
+ Enabled: true
779
+ EnforcedStyle: indented
780
+ SupportedStyles:
781
+ - aligned
782
+ - indented
783
+ Layout/MultilineOperationIndentation:
784
+ Description: Checks indentation of binary operations that span more than one line.
785
+ Enabled: true
786
+ EnforcedStyle: indented
787
+ SupportedStyles:
788
+ - aligned
789
+ - indented
790
+ Layout/SpaceAroundBlockParameters:
791
+ Description: Checks the spacing inside and after block parameters pipes.
792
+ Enabled: true
793
+ EnforcedStyleInsidePipes: no_space
794
+ SupportedStylesInsidePipes:
795
+ - space
796
+ - no_space
797
+ Layout/SpaceAroundEqualsInParameterDefault:
798
+ Description: Checks that the equals signs in parameter default assignments have
799
+ or don't have surrounding space depending on configuration.
800
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
801
+ Enabled: true
802
+ EnforcedStyle: space
803
+ SupportedStyles:
804
+ - space
805
+ - no_space
806
+ Layout/SpaceBeforeBlockBraces:
807
+ Description: Checks that the left block brace has or doesn't have space before it.
808
+ Enabled: true
809
+ EnforcedStyle: space
810
+ SupportedStyles:
811
+ - space
812
+ - no_space
813
+ Layout/SpaceInsideBlockBraces:
814
+ Description: Checks that block braces have or don't have surrounding space. For
815
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
816
+ space.
817
+ Enabled: true
818
+ EnforcedStyle: space
819
+ SupportedStyles:
820
+ - space
821
+ - no_space
822
+ EnforcedStyleForEmptyBraces: no_space
823
+ SpaceBeforeBlockParameters: true
824
+ Layout/SpaceInsideArrayLiteralBrackets:
825
+ Description: No spaces after [ or before ].
826
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
827
+ Enabled: true
828
+ Layout/SpaceInsideReferenceBrackets:
829
+ Enabled: true
830
+ Layout/SpaceInsideHashLiteralBraces:
831
+ Description: Use spaces inside hash literal braces - or don't.
832
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
833
+ Enabled: true
834
+ EnforcedStyle: space
835
+ EnforcedStyleForEmptyBraces: no_space
836
+ SupportedStyles:
837
+ - space
838
+ - no_space
839
+ Layout/TrailingEmptyLines:
840
+ Description: Checks trailing blank lines and final newline.
841
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
842
+ Enabled: true
843
+ EnforcedStyle: final_newline
844
+ SupportedStyles:
845
+ - final_newline
846
+ - final_blank_line
847
+ Layout/ExtraSpacing:
848
+ Description: Do not use unnecessary spacing.
849
+ Enabled: true
850
+ Layout/ArrayAlignment:
851
+ Description: Align the elements of an array literal if they span more than one line.
852
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
853
+ Enabled: true
854
+ Layout/BlockEndNewline:
855
+ Description: Put end statement of multiline block on its own line.
856
+ Enabled: true
857
+ Layout/ElseAlignment:
858
+ Description: Align elses and elsifs correctly.
859
+ Enabled: true
860
+ Layout/EmptyLines:
861
+ Description: Don't use several empty lines in a row.
862
+ Enabled: true
863
+ Layout/EmptyLinesAroundAccessModifier:
864
+ Description: Keep blank lines around access modifiers.
865
+ Enabled: true
866
+ Exclude:
867
+ - "spec/factories.rb"
868
+ Layout/EmptyLinesAroundMethodBody:
869
+ Description: Keeps track of empty lines around method bodies.
870
+ Enabled: true
871
+ Layout/EndOfLine:
872
+ Description: Use Unix-style line endings.
873
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
874
+ Enabled: true
875
+ Layout/IndentationConsistency:
876
+ Description: Keep indentation straight.
877
+ Enabled: true
878
+ Layout/FirstArrayElementIndentation:
879
+ Description: Checks the indentation of the first element in an array literal.
880
+ Enabled: true
881
+ Layout/LeadingCommentSpace:
882
+ Description: Comments should start with a space.
883
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
884
+ Enabled: true
885
+ Layout/MultilineBlockLayout:
886
+ Description: Ensures newlines after multiline block do statements.
887
+ Enabled: true
888
+ Layout/SpaceBeforeFirstArg:
835
889
  Description: Checks that exactly one space is used between a method name and the
836
890
  first argument for method calls without parentheses.
837
891
  Enabled: true
838
- Style/SpaceAfterColon:
892
+ Layout/SpaceAfterColon:
839
893
  Description: Use spaces after colons.
840
894
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
841
895
  Enabled: true
842
- Style/SpaceAfterComma:
896
+ Layout/SpaceAfterComma:
843
897
  Description: Use spaces after commas.
844
898
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
845
899
  Enabled: true
846
- Style/SpaceAroundKeyword:
847
- Description: Use spaces after if/elsif/unless/while/until/case/when.
848
- Enabled: true
849
- Style/SpaceAfterMethodName:
900
+ Layout/SpaceAfterMethodName:
850
901
  Description: Do not put a space between a method name and the opening parenthesis
851
902
  in a method definition.
852
903
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
853
904
  Enabled: true
854
- Style/SpaceAfterNot:
905
+ Layout/SpaceAfterNot:
855
906
  Description: Tracks redundant space after the ! operator.
856
907
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
857
908
  Enabled: true
858
- Style/SpaceAfterSemicolon:
909
+ Layout/SpaceAfterSemicolon:
859
910
  Description: Use spaces after semicolons.
860
911
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
861
912
  Enabled: true
862
- Style/SpaceBeforeComma:
913
+ Layout/SpaceBeforeComma:
863
914
  Description: No spaces before commas.
864
915
  Enabled: true
865
- Style/SpaceBeforeComment:
916
+ Layout/SpaceBeforeComment:
866
917
  Description: Checks for missing space between code and a comment on the same line.
867
918
  Enabled: true
868
- Style/SpaceBeforeSemicolon:
919
+ Layout/SpaceBeforeSemicolon:
869
920
  Description: No spaces before semicolons.
870
921
  Enabled: true
871
- Style/SpaceAroundOperators:
922
+ Layout/SpaceAroundOperators:
872
923
  Description: Use spaces around operators.
873
924
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
874
925
  Enabled: true
875
- Style/SpaceInsideBrackets:
876
- Description: No spaces after [ or before ].
877
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
926
+ Layout/SpaceAroundKeyword:
927
+ Description: Put a space before the modifier keyword.
878
928
  Enabled: true
879
- Style/SpaceInsideParens:
929
+ Layout/SpaceInsideParens:
880
930
  Description: No spaces after ( or before ).
881
931
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
882
932
  Enabled: true
883
- Style/SpaceInsideRangeLiteral:
933
+ Layout/SpaceInsideRangeLiteral:
884
934
  Description: No spaces inside range literals.
885
935
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
886
936
  Enabled: true
887
- Style/SpecialGlobalVars:
888
- Description: Avoid Perl-style global variables.
889
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
890
- Enabled: false
891
- Style/StructInheritance:
892
- Description: Checks for inheritance from Struct.new.
893
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
894
- Enabled: true
895
- Style/Tab:
937
+ Layout/IndentationStyle:
896
938
  Description: No hard tabs.
897
939
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
898
940
  Enabled: true
899
- Style/TrailingWhitespace:
941
+ Layout/TrailingWhitespace:
900
942
  Description: Avoid trailing whitespace.
901
943
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
902
944
  Enabled: true
903
- Style/UnlessElse:
904
- Description: Do not use unless with else. Rewrite these with the positive case first.
905
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
906
- Enabled: true
907
- Style/RedundantCapitalW:
908
- Description: Checks for %W when interpolation is not needed.
909
- Enabled: true
910
- Style/RedundantPercentQ:
911
- Description: Checks for %q/%Q when single quotes or double quotes would do.
912
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
913
- Enabled: true
914
- Style/UnneededPercentX:
915
- Description: Checks for %x when `` would do.
916
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
917
- Enabled: true
918
- Style/VariableInterpolation:
919
- Description: Don't interpolate global, instance and class variables directly in
920
- strings.
921
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
922
- Enabled: false
923
- Style/WhenThen:
924
- Description: Use when x then ... for one-line cases.
925
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
926
- Enabled: false
927
- Style/WhileUntilDo:
928
- Description: Checks for redundant do after while or until.
929
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
930
- Enabled: true
931
945
  Lint/AmbiguousOperator:
932
946
  Description: Checks for ambiguous operators in the first argument of a method invocation
933
947
  without parentheses.
@@ -937,10 +951,10 @@ Lint/AmbiguousRegexpLiteral:
937
951
  Description: Checks for ambiguous regexp literals in the first argument of a method
938
952
  invocation without parenthesis.
939
953
  Enabled: false
940
- Lint/BlockAlignment:
954
+ Layout/BlockAlignment:
941
955
  Description: Align block ends correctly.
942
956
  Enabled: true
943
- Lint/ConditionPosition:
957
+ Layout/ConditionPosition:
944
958
  Description: Checks for condition placed in a confusing position relative to the
945
959
  keyword.
946
960
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
@@ -963,21 +977,19 @@ Lint/EmptyEnsure:
963
977
  Lint/EmptyInterpolation:
964
978
  Description: Checks for empty string interpolation.
965
979
  Enabled: true
966
- Lint/EndInMethod:
967
- Description: END blocks should not be placed inside method definitions.
968
- Enabled: true
969
980
  Lint/EnsureReturn:
970
981
  Description: Do not use return in an ensure block.
971
982
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
972
983
  Enabled: true
973
- Lint/Eval:
974
- Description: The use of eval represents a serious security risk.
975
- Enabled: true
984
+ Lint/FlipFlop:
985
+ Description: Checks for flip flops
986
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
987
+ Enabled: false
976
988
  Lint/SuppressedException:
977
989
  Description: Don't suppress exception.
978
990
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
979
991
  Enabled: false
980
- Lint/LiteralInCondition:
992
+ Lint/LiteralAsCondition:
981
993
  Description: Checks of literals used in conditions.
982
994
  Enabled: false
983
995
  Lint/LiteralInInterpolation:
@@ -1003,10 +1015,6 @@ Lint/ShadowingOuterLocalVariable:
1003
1015
  Description: Do not use the same name as outer local variable for block arguments
1004
1016
  or block local variables.
1005
1017
  Enabled: true
1006
- Lint/SpaceBeforeFirstArg:
1007
- Description: Put a space between a method name and the first argument in a method
1008
- call without parentheses.
1009
- Enabled: true
1010
1018
  Lint/RedundantStringCoercion:
1011
1019
  Description: Checks for Object#to_s usage in string interpolation.
1012
1020
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
@@ -1047,4 +1055,3 @@ Lint/Void:
1047
1055
  Rails/Delegate:
1048
1056
  Description: Prefer delegate method for delegations.
1049
1057
  Enabled: false
1050
-