shoulda-matchers 3.1.3 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/.hound/ruby.yml +336 -316
  3. data/.python-version +1 -0
  4. data/.rubocop.yml +3 -1
  5. data/.travis.yml +7 -6
  6. data/Appraisals +76 -44
  7. data/CONTRIBUTING.md +137 -66
  8. data/Gemfile +5 -5
  9. data/Gemfile.lock +30 -35
  10. data/MAINTAINING.md +250 -0
  11. data/MIT-LICENSE +1 -1
  12. data/NEWS.md +176 -4
  13. data/README.md +138 -200
  14. data/Rakefile +7 -0
  15. data/bin/setup +190 -0
  16. data/doc_config/yard/templates/default/fulldoc/html/css/global.css +4 -0
  17. data/doc_config/yard/templates/default/fulldoc/html/full_list.erb +0 -6
  18. data/doc_config/yard/templates/default/fulldoc/html/js/app.js +0 -17
  19. data/doc_config/yard/templates/default/fulldoc/html/setup.rb +27 -0
  20. data/gemfiles/4.2.gemfile +21 -20
  21. data/gemfiles/4.2.gemfile.lock +143 -140
  22. data/gemfiles/5.0.gemfile +37 -0
  23. data/gemfiles/5.0.gemfile.lock +238 -0
  24. data/gemfiles/5.1.gemfile +38 -0
  25. data/gemfiles/5.1.gemfile.lock +254 -0
  26. data/gemfiles/5.2.gemfile +40 -0
  27. data/gemfiles/5.2.gemfile.lock +273 -0
  28. data/lib/shoulda/matchers/action_controller/callback_matcher.rb +18 -6
  29. data/lib/shoulda/matchers/action_controller/permit_matcher.rb +6 -1
  30. data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +1 -1
  31. data/lib/shoulda/matchers/action_controller/route_matcher.rb +87 -27
  32. data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +1 -0
  33. data/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb +0 -4
  34. data/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb +5 -0
  35. data/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb +5 -0
  36. data/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +26 -11
  37. data/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb +39 -4
  38. data/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb +116 -47
  39. data/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb +127 -38
  40. data/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +55 -37
  41. data/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +30 -1
  42. data/lib/shoulda/matchers/active_model/validation_matcher.rb +11 -4
  43. data/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb +11 -6
  44. data/lib/shoulda/matchers/active_record.rb +3 -0
  45. data/lib/shoulda/matchers/active_record/association_matcher.rb +172 -22
  46. data/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb +1 -1
  47. data/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb +11 -6
  48. data/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb +46 -0
  49. data/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb +51 -0
  50. data/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb +268 -38
  51. data/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +1 -1
  52. data/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb +111 -0
  53. data/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb +207 -79
  54. data/lib/shoulda/matchers/doublespeak/object_double.rb +5 -1
  55. data/lib/shoulda/matchers/independent/delegate_method_matcher.rb +100 -21
  56. data/lib/shoulda/matchers/rails_shim.rb +133 -52
  57. data/lib/shoulda/matchers/routing.rb +2 -2
  58. data/lib/shoulda/matchers/util.rb +23 -1
  59. data/lib/shoulda/matchers/util/word_wrap.rb +6 -2
  60. data/lib/shoulda/matchers/version.rb +1 -1
  61. data/script/install_gems_in_all_appraisals +3 -1
  62. data/script/run_all_tests +3 -1
  63. data/script/supported_ruby_versions +7 -0
  64. data/script/update_gem_in_all_appraisals +3 -1
  65. data/script/update_gems_in_all_appraisals +3 -1
  66. data/shoulda-matchers.gemspec +3 -3
  67. data/spec/acceptance/independent_matchers_spec.rb +2 -2
  68. data/spec/acceptance/multiple_libraries_integration_spec.rb +1 -1
  69. data/spec/acceptance/rails_integration_spec.rb +2 -2
  70. data/spec/spec_helper.rb +2 -3
  71. data/spec/support/acceptance/helpers.rb +2 -0
  72. data/spec/support/acceptance/helpers/command_helpers.rb +17 -4
  73. data/spec/support/acceptance/helpers/rails_migration_helpers.rb +21 -0
  74. data/spec/support/acceptance/helpers/step_helpers.rb +1 -1
  75. data/spec/support/tests/current_bundle.rb +3 -9
  76. data/spec/support/tests/filesystem.rb +2 -2
  77. data/spec/support/unit/attribute.rb +0 -2
  78. data/spec/support/unit/capture.rb +9 -3
  79. data/spec/support/unit/helpers/action_pack_versions.rb +22 -0
  80. data/spec/support/unit/helpers/active_model_versions.rb +4 -0
  81. data/spec/support/unit/helpers/active_record_versions.rb +22 -2
  82. data/spec/support/unit/helpers/active_resource_builder.rb +2 -2
  83. data/spec/support/unit/helpers/controller_builder.rb +1 -1
  84. data/spec/support/unit/helpers/message_helpers.rb +19 -0
  85. data/spec/support/unit/helpers/rails_versions.rb +14 -0
  86. data/spec/support/unit/matchers/fail_with_message_matcher.rb +7 -5
  87. data/spec/support/unit/matchers/print_warning_including.rb +21 -13
  88. data/spec/support/unit/model_creation_strategies/active_record.rb +1 -1
  89. data/spec/support/unit/model_creators/active_record.rb +0 -1
  90. data/spec/support/unit/model_creators/basic.rb +7 -2
  91. data/spec/support/unit/rails_application.rb +25 -0
  92. data/spec/support/unit/record_validating_confirmation_builder.rb +5 -2
  93. data/spec/support/unit/validation_matcher_scenario.rb +0 -2
  94. data/spec/unit/shoulda/matchers/action_controller/callback_matcher_spec.rb +18 -18
  95. data/spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb +33 -5
  96. data/spec/unit/shoulda/matchers/action_controller/render_template_matcher_spec.rb +1 -1
  97. data/spec/unit/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +80 -78
  98. data/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb +7 -9
  99. data/spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb +28 -4
  100. data/spec/unit/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +19 -1
  101. data/spec/unit/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +27 -4
  102. data/spec/unit/shoulda/matchers/active_model/validate_exclusion_of_matcher_spec.rb +62 -5
  103. data/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb +52 -18
  104. data/spec/unit/shoulda/matchers/active_model/validate_length_of_matcher_spec.rb +51 -4
  105. data/spec/unit/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +99 -71
  106. data/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +41 -15
  107. data/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb +445 -15
  108. data/spec/unit/shoulda/matchers/active_record/define_enum_for_matcher_spec.rb +615 -93
  109. data/spec/unit/shoulda/matchers/active_record/have_secure_token_matcher_spec.rb +169 -0
  110. data/spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb +167 -97
  111. data/spec/unit/shoulda/matchers/doublespeak/world_spec.rb +2 -4
  112. data/spec/unit/shoulda/matchers/independent/delegate_method_matcher_spec.rb +152 -19
  113. data/spec/unit/shoulda/matchers/routing/route_matcher_spec.rb +258 -94
  114. data/spec/unit_spec_helper.rb +9 -1
  115. data/zeus.json +1 -1
  116. metadata +31 -16
  117. data/gemfiles/4.0.0.gemfile +0 -38
  118. data/gemfiles/4.0.0.gemfile.lock +0 -223
  119. data/gemfiles/4.0.1.gemfile +0 -38
  120. data/gemfiles/4.0.1.gemfile.lock +0 -225
  121. data/gemfiles/4.1.gemfile +0 -38
  122. data/gemfiles/4.1.gemfile.lock +0 -220
  123. data/script/SUPPORTED_VERSIONS +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53f6d57668b2c4f65787cf1eea63889b83ae9d3201d9dbe84603b051faddf0e6
4
- data.tar.gz: 87cceafbe6b98f156f95bb458580ed8f2ee77b4b989f99b57142e43fb7d0d44b
3
+ metadata.gz: e3638e6c8356a1c93b6e33b3b0dfcab34c5a5d3646567e3c91f553c490f93d52
4
+ data.tar.gz: 10afc07f98e5609023024ad215cd14bdbd51a25a9c628a8ee9375c6d644e6d32
5
5
  SHA512:
6
- metadata.gz: de3671526d4a72ad816c3e4628e5ac9412bc6a858f7dcf42028d0f24480675ef835d4b2313ecf9b5fedb628cf60354206fdb2f16d7663c975efa6cab29479dd0
7
- data.tar.gz: 916de2f2ecf31d9f44390708acb91ef033b67bc020eb464512a81f4bbe2e4f7ca8edd49ff2610079e47ec0ef5ce601ef553b81d7eacb0645d280b99901eab7d7
6
+ metadata.gz: ad1528def76b90a6dfdabc272b32a62393717a4e2ce386fb7b859a2a0a43bb5d92521a446ba9da26fe7a8a5e7451869e9f9840f57cde202e78ef67493823d7d2
7
+ data.tar.gz: 5ee29e5681bf5e788ee9ba85d1e7f29eb77fe538b92f82b8477f42cc317c6d2d3db3072a73a531f02f18f6710bb189478d0bc855f7cfbbb56bafe293a4d43cce
@@ -8,35 +8,58 @@ AllCops:
8
8
  - "db/**/*"
9
9
  DisplayCopNames: false
10
10
  StyleGuideCopsOnly: false
11
- Rails:
11
+ Naming/AccessorMethodName:
12
+ Description: Check the naming of accessor methods for get_/set_.
13
+ Enabled: false
14
+ Naming/AsciiIdentifiers:
15
+ Description: Use only ascii symbols in identifiers.
16
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
17
+ Enabled: false
18
+ Naming/BinaryOperatorParameterName:
19
+ Description: When defining binary operators, name the argument other.
20
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
21
+ Enabled: false
22
+ Naming/ClassAndModuleCamelCase:
23
+ Description: Use CamelCase for classes and modules.
24
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
12
25
  Enabled: true
13
- Style/AccessModifierIndentation:
14
- Description: Check indentation of private/protected visibility modifiers.
15
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
26
+ Naming/ConstantName:
27
+ Description: Constants should use SCREAMING_SNAKE_CASE.
28
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
16
29
  Enabled: true
17
- EnforcedStyle: indent
30
+ Naming/FileName:
31
+ Description: Use snake_case for source file names.
32
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
33
+ Enabled: false
34
+ Exclude: []
35
+ Naming/MethodName:
36
+ Description: Use the configured style when naming methods.
37
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
38
+ Enabled: true
39
+ EnforcedStyle: snake_case
18
40
  SupportedStyles:
19
- - outdent
20
- - indent
21
- Style/AlignHash:
22
- Description: Align the elements of a hash literal if they span more than one line.
41
+ - snake_case
42
+ - camelCase
43
+ Naming/PredicateName:
44
+ Description: Check the names of predicate methods.
45
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
23
46
  Enabled: true
24
- EnforcedHashRocketStyle: key
25
- EnforcedColonStyle: key
26
- EnforcedLastArgumentHashStyle: always_inspect
27
- SupportedLastArgumentHashStyles:
28
- - always_inspect
29
- - always_ignore
30
- - ignore_implicit
31
- - ignore_explicit
32
- Style/AlignParameters:
33
- Description: Align the parameters of a method call if they span more than one line.
34
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
47
+ NamePrefix:
48
+ - is_
49
+ - has_
50
+ - have_
51
+ NamePrefixBlacklist:
52
+ - is_
53
+ Naming/VariableName:
54
+ Description: Use the configured style when naming variables.
55
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
35
56
  Enabled: true
36
- EnforcedStyle: with_first_parameter
57
+ EnforcedStyle: snake_case
37
58
  SupportedStyles:
38
- - with_first_parameter
39
- - with_fixed_indentation
59
+ - snake_case
60
+ - camelCase
61
+ Rails:
62
+ Enabled: true
40
63
  Style/AndOr:
41
64
  Description: Use &&/|| instead of and/or.
42
65
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
@@ -61,15 +84,6 @@ Style/BracesAroundHashParameters:
61
84
  - braces
62
85
  - no_braces
63
86
  - context_dependent
64
- Style/CaseIndentation:
65
- Description: Indentation of when in a case/when/[else/]end.
66
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
67
- Enabled: true
68
- EnforcedStyle: case
69
- SupportedStyles:
70
- - case
71
- - end
72
- IndentOneStep: false
73
87
  Style/ClassAndModuleChildren:
74
88
  Description: Checks style of children classes and modules.
75
89
  Enabled: false
@@ -106,61 +120,15 @@ Style/CommentAnnotation:
106
120
  - OPTIMIZE
107
121
  - HACK
108
122
  - REVIEW
109
- Style/DotPosition:
110
- Description: Checks the position of the dot in multi-line method calls.
111
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
112
- Enabled: true
113
- EnforcedStyle: trailing
114
- SupportedStyles:
115
- - leading
116
- - trailing
117
- Style/EmptyLineBetweenDefs:
118
- Description: Use empty lines between defs.
119
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
120
- Enabled: true
121
- AllowAdjacentOneLineDefs: false
122
- Style/EmptyLinesAroundBlockBody:
123
- Description: Keeps track of empty lines around block bodies.
124
- Enabled: true
125
- EnforcedStyle: no_empty_lines
126
- SupportedStyles:
127
- - empty_lines
128
- - no_empty_lines
129
- Style/EmptyLinesAroundClassBody:
130
- Description: Keeps track of empty lines around class bodies.
131
- Enabled: true
132
- EnforcedStyle: no_empty_lines
133
- SupportedStyles:
134
- - empty_lines
135
- - no_empty_lines
136
- Style/EmptyLinesAroundModuleBody:
137
- Description: Keeps track of empty lines around module bodies.
138
- Enabled: true
139
- EnforcedStyle: no_empty_lines
140
- SupportedStyles:
141
- - empty_lines
142
- - no_empty_lines
143
123
  Style/Encoding:
144
124
  Description: Use UTF-8 as the source file encoding.
145
125
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
146
126
  Enabled: false
147
- EnforcedStyle: always
148
- SupportedStyles:
149
- - when_needed
150
- - always
151
- Style/FileName:
152
- Description: Use snake_case for source file names.
153
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
127
+ Style/FrozenStringLiteralComment:
128
+ Description: >-
129
+ Add the frozen_string_literal comment to the top of files
130
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
154
131
  Enabled: false
155
- Exclude: []
156
- Style/FirstParameterIndentation:
157
- Description: Checks the indentation of the first parameter in a method call.
158
- Enabled: true
159
- EnforcedStyle: special_for_inner_method_call_in_parentheses
160
- SupportedStyles:
161
- - consistent
162
- - special_for_inner_method_call
163
- - special_for_inner_method_call_in_parentheses
164
132
  Style/For:
165
133
  Description: Checks use of for or each in multiline loops.
166
134
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
@@ -201,19 +169,6 @@ Style/IfUnlessModifier:
201
169
  Description: Favor modifier if/unless usage when you have a single-line body.
202
170
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
203
171
  Enabled: false
204
- MaxLineLength: 80
205
- Style/IndentationWidth:
206
- Description: Use 2 spaces for indentation.
207
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
208
- Enabled: true
209
- Width: 2
210
- Style/IndentHash:
211
- Description: Checks the indentation of the first key in a hash literal.
212
- Enabled: true
213
- EnforcedStyle: special_inside_parentheses
214
- SupportedStyles:
215
- - special_inside_parentheses
216
- - consistent
217
172
  Style/LambdaCall:
218
173
  Description: Use lambda.call(...) instead of lambda.(...).
219
174
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
@@ -244,29 +199,6 @@ Style/MethodDefParentheses:
244
199
  SupportedStyles:
245
200
  - require_parentheses
246
201
  - require_no_parentheses
247
- Style/MethodName:
248
- Description: Use the configured style when naming methods.
249
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
250
- Enabled: true
251
- EnforcedStyle: snake_case
252
- SupportedStyles:
253
- - snake_case
254
- - camelCase
255
- Style/MultilineMethodCallIndentation:
256
- Description: Checks indentation of method calls with the dot operator
257
- that span more than one line.
258
- Enabled: true
259
- EnforcedStyle: indented
260
- SupportedStyles:
261
- - aligned
262
- - indented
263
- Style/MultilineOperationIndentation:
264
- Description: Checks indentation of binary operations that span more than one line.
265
- Enabled: true
266
- EnforcedStyle: indented
267
- SupportedStyles:
268
- - aligned
269
- - indented
270
202
  Style/NumericLiterals:
271
203
  Description: Add underscores to large numeric literals to improve their readability.
272
204
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
@@ -300,16 +232,6 @@ Style/PercentQLiterals:
300
232
  SupportedStyles:
301
233
  - lower_case_q
302
234
  - upper_case_q
303
- Style/PredicateName:
304
- Description: Check the names of predicate methods.
305
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
306
- Enabled: true
307
- NamePrefix:
308
- - is_
309
- - has_
310
- - have_
311
- NamePrefixBlacklist:
312
- - is_
313
235
  Style/RaiseArgs:
314
236
  Description: Checks the arguments passed to raise/fail.
315
237
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
@@ -375,69 +297,23 @@ Style/StringLiteralsInInterpolation:
375
297
  SupportedStyles:
376
298
  - single_quotes
377
299
  - double_quotes
378
- Style/SpaceAroundBlockParameters:
379
- Description: Checks the spacing inside and after block parameters pipes.
380
- Enabled: true
381
- EnforcedStyleInsidePipes: no_space
382
- Style/SpaceAroundEqualsInParameterDefault:
383
- Description: Checks that the equals signs in parameter default assignments have
384
- or don't have surrounding space depending on configuration.
385
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
386
- Enabled: true
387
- EnforcedStyle: space
388
- SupportedStyles:
389
- - space
390
- - no_space
391
- Style/SpaceBeforeBlockBraces:
392
- Description: Checks that the left block brace has or doesn't have space before it.
393
- Enabled: true
394
- EnforcedStyle: space
395
- SupportedStyles:
396
- - space
397
- - no_space
398
- Style/SpaceInsideBlockBraces:
399
- Description: Checks that block braces have or don't have surrounding space. For
400
- blocks taking parameters, checks that the left brace has or doesn't have trailing
401
- space.
402
- Enabled: true
403
- EnforcedStyle: space
404
- SupportedStyles:
405
- - space
406
- - no_space
407
- EnforcedStyleForEmptyBraces: no_space
408
- SpaceBeforeBlockParameters: true
409
- Style/SpaceInsideHashLiteralBraces:
410
- Description: Use spaces inside hash literal braces - or don't.
411
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
412
- Enabled: true
413
- EnforcedStyle: space
414
- EnforcedStyleForEmptyBraces: no_space
415
- SupportedStyles:
416
- - space
417
- - no_space
418
300
  Style/SymbolProc:
419
301
  Description: Use symbols as procs instead of blocks when possible.
420
302
  Enabled: true
421
303
  IgnoredMethods:
422
304
  - respond_to
423
- Style/TrailingBlankLines:
424
- Description: Checks trailing blank lines and final newline.
425
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
305
+ Style/TrailingCommaInArrayLiteral:
426
306
  Enabled: true
427
- EnforcedStyle: final_newline
428
- SupportedStyles:
429
- - final_newline
430
- - final_blank_line
431
- Style/TrailingCommaInLiteral:
432
- Description: Checks for trailing comma in parameter lists and literals.
433
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
307
+ Style/TrailingCommaInHashLiteral:
434
308
  Enabled: true
435
- EnforcedStyleForMultiline: comma
436
309
  Style/TrailingCommaInArguments:
437
310
  Description: Checks for trailing comma in parameter lists and literals.
438
311
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
439
312
  Enabled: true
440
313
  EnforcedStyleForMultiline: comma
314
+ SupportedStylesForMultiline:
315
+ - comma
316
+ - no_comma
441
317
  Style/TrivialAccessors:
442
318
  Description: Prefer attr_* methods to trivial readers/writers.
443
319
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
@@ -463,19 +339,10 @@ Style/TrivialAccessors:
463
339
  - to_str
464
340
  - to_s
465
341
  - to_sym
466
- Style/VariableName:
467
- Description: Use the configured style when naming variables.
468
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
469
- Enabled: true
470
- EnforcedStyle: snake_case
471
- SupportedStyles:
472
- - snake_case
473
- - camelCase
474
342
  Style/WhileUntilModifier:
475
343
  Description: Favor modifier while/until usage when you have a single-line body.
476
344
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
477
345
  Enabled: false
478
- MaxLineLength: 80
479
346
  Style/WordArray:
480
347
  Description: Use %w or %W for arrays of words.
481
348
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
@@ -487,6 +354,9 @@ Metrics/AbcSize:
487
354
  conditions.
488
355
  Enabled: true
489
356
  Max: 15
357
+ Metrics/BlockLength:
358
+ Exclude:
359
+ - "spec/**/*"
490
360
  Metrics/BlockNesting:
491
361
  Description: Avoid excessive block nesting
492
362
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
@@ -535,14 +405,20 @@ Lint/AssignmentInCondition:
535
405
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
536
406
  Enabled: false
537
407
  AllowSafeAssignment: true
538
- Lint/EndAlignment:
408
+ Layout/EndAlignment:
539
409
  Description: Align ends correctly.
540
410
  Enabled: true
541
411
  EnforcedStyleAlignWith: keyword
542
- Lint/DefEndAlignment:
412
+ SupportedStylesAlignWith:
413
+ - keyword
414
+ - variable
415
+ Layout/DefEndAlignment:
543
416
  Description: Align ends corresponding to defs correctly.
544
417
  Enabled: true
545
418
  EnforcedStyleAlignWith: start_of_line
419
+ SupportedStylesAlignWith:
420
+ - start_of_line
421
+ - def
546
422
  Rails/ActionFilter:
547
423
  Description: Enforces consistent use of action filter methods.
548
424
  Enabled: true
@@ -593,20 +469,10 @@ Style/SymbolArray:
593
469
  Description: Use %i or %I for arrays of symbols.
594
470
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
595
471
  Enabled: false
596
- Style/ExtraSpacing:
597
- Description: Do not use unnecessary spacing.
598
- Enabled: true
599
- Style/AccessorMethodName:
600
- Description: Check the naming of accessor methods for get_/set_.
601
- Enabled: false
602
472
  Style/Alias:
603
473
  Description: Use alias_method instead of alias.
604
474
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
605
475
  Enabled: false
606
- Style/AlignArray:
607
- Description: Align the elements of an array literal if they span more than one line.
608
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
609
- Enabled: true
610
476
  Style/ArrayJoin:
611
477
  Description: Use Array#join instead of Array#*.
612
478
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
@@ -615,10 +481,6 @@ Style/AsciiComments:
615
481
  Description: Use only ascii symbols in comments.
616
482
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
617
483
  Enabled: false
618
- Style/AsciiIdentifiers:
619
- Description: Use only ascii symbols in identifiers.
620
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
621
- Enabled: false
622
484
  Style/Attr:
623
485
  Description: Checks for uses of Module#attr.
624
486
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
@@ -631,9 +493,6 @@ Style/BlockComments:
631
493
  Description: Do not use block comments.
632
494
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
633
495
  Enabled: true
634
- Style/BlockEndNewline:
635
- Description: Put end statement of multiline block on its own line.
636
- Enabled: true
637
496
  Style/BlockDelimiters:
638
497
  Description: Avoid using {...} for multi-line blocks (multiline chaining is always
639
498
  ugly). Prefer {...} over do...end for single-line blocks.
@@ -647,10 +506,6 @@ Style/CharacterLiteral:
647
506
  Description: Checks for uses of character literals.
648
507
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
649
508
  Enabled: false
650
- Style/ClassAndModuleCamelCase:
651
- Description: Use CamelCase for classes and modules.
652
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
653
- Enabled: true
654
509
  Style/ClassMethods:
655
510
  Description: Use self when defining module/class methods.
656
511
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-singletons
@@ -663,13 +518,6 @@ Style/ColonMethodCall:
663
518
  Description: 'Do not use :: for method call.'
664
519
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
665
520
  Enabled: false
666
- Style/CommentIndentation:
667
- Description: Indentation of comments.
668
- Enabled: true
669
- Style/ConstantName:
670
- Description: Constants should use SCREAMING_SNAKE_CASE.
671
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
672
- Enabled: true
673
521
  Style/DefWithParentheses:
674
522
  Description: Use def with parentheses when there are arguments.
675
523
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
@@ -684,21 +532,9 @@ Style/DoubleNegation:
684
532
  Style/EachWithObject:
685
533
  Description: Prefer `each_with_object` over `inject` or `reduce`.
686
534
  Enabled: false
687
- Style/ElseAlignment:
688
- Description: Align elses and elsifs correctly.
689
- Enabled: true
690
535
  Style/EmptyElse:
691
536
  Description: Avoid empty else-clauses.
692
537
  Enabled: true
693
- Style/EmptyLines:
694
- Description: Don't use several empty lines in a row.
695
- Enabled: true
696
- Style/EmptyLinesAroundAccessModifier:
697
- Description: Keep blank lines around access modifiers.
698
- Enabled: true
699
- Style/EmptyLinesAroundMethodBody:
700
- Description: Keeps track of empty lines around method bodies.
701
- Enabled: true
702
538
  Style/EmptyLiteral:
703
539
  Description: Prefer literals to Array.new/Hash.new/String.new.
704
540
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
@@ -707,10 +543,6 @@ Style/EndBlock:
707
543
  Description: Avoid the use of END blocks.
708
544
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
709
545
  Enabled: true
710
- Style/EndOfLine:
711
- Description: Use Unix-style line endings.
712
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
713
- Enabled: true
714
546
  Style/EvenOdd:
715
547
  Description: Favor the use of Fixnum#even? && Fixnum#odd?
716
548
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
@@ -723,12 +555,6 @@ Style/IfWithSemicolon:
723
555
  Description: Do not use if x; .... Use the ternary operator instead.
724
556
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
725
557
  Enabled: false
726
- Style/IndentationConsistency:
727
- Description: Keep indentation straight.
728
- Enabled: true
729
- Style/IndentArray:
730
- Description: Checks the indentation of the first element in an array literal.
731
- Enabled: true
732
558
  Style/InfiniteLoop:
733
559
  Description: Use Kernel#loop for infinite loops.
734
560
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
@@ -737,10 +563,6 @@ Style/Lambda:
737
563
  Description: Use the new lambda literal syntax for single-line blocks.
738
564
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
739
565
  Enabled: false
740
- Style/LeadingCommentSpace:
741
- Description: Comments should start with a space.
742
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
743
- Enabled: true
744
566
  Style/LineEndConcatenation:
745
567
  Description: Use \ instead of + or << to concatenate two string literals at line
746
568
  end.
@@ -753,9 +575,6 @@ Style/ModuleFunction:
753
575
  Description: Checks for usage of `extend self` in modules.
754
576
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
755
577
  Enabled: false
756
- Style/MultilineBlockLayout:
757
- Description: Ensures newlines after multiline block do statements.
758
- Enabled: true
759
578
  Style/MultilineIfThen:
760
579
  Description: Do not use then for multi-line if/unless.
761
580
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
@@ -788,14 +607,14 @@ Style/OneLineConditional:
788
607
  Description: Favor the ternary operator(?:) over if/then/else/end constructs.
789
608
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
790
609
  Enabled: false
791
- Style/OpMethod:
792
- Description: When defining binary operators, name the argument other.
793
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
794
- Enabled: false
795
610
  Style/PerlBackrefs:
796
611
  Description: Avoid Perl-style regex back references.
797
612
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
798
613
  Enabled: false
614
+ Style/PreferredHashMethods:
615
+ Description: Checks for use of deprecated Hash methods.
616
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
617
+ Enabled: false
799
618
  Style/Proc:
800
619
  Description: Use proc instead of Proc.new.
801
620
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
@@ -821,106 +640,311 @@ Style/SelfAssignment:
821
640
  used.
822
641
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
823
642
  Enabled: false
824
- Style/SpaceBeforeFirstArg:
643
+ Style/SpecialGlobalVars:
644
+ Description: Avoid Perl-style global variables.
645
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
646
+ Enabled: false
647
+ Style/StructInheritance:
648
+ Description: Checks for inheritance from Struct.new.
649
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
650
+ Enabled: true
651
+ Style/UnlessElse:
652
+ Description: Do not use unless with else. Rewrite these with the positive case first.
653
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
654
+ Enabled: true
655
+ Style/UnneededCapitalW:
656
+ Description: Checks for %W when interpolation is not needed.
657
+ Enabled: true
658
+ Style/UnneededPercentQ:
659
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
660
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
661
+ Enabled: true
662
+ Style/CommandLiteral:
663
+ Description: Checks for %x when `` would do.
664
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
665
+ Enabled: true
666
+ Style/VariableInterpolation:
667
+ Description: Don't interpolate global, instance and class variables directly in
668
+ strings.
669
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
670
+ Enabled: false
671
+ Style/WhenThen:
672
+ Description: Use when x then ... for one-line cases.
673
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
674
+ Enabled: false
675
+ Style/WhileUntilDo:
676
+ Description: Checks for redundant do after while or until.
677
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
678
+ Enabled: true
679
+ Layout/AccessModifierIndentation:
680
+ Description: Check indentation of private/protected visibility modifiers.
681
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
682
+ Enabled: true
683
+ EnforcedStyle: indent
684
+ SupportedStyles:
685
+ - outdent
686
+ - indent
687
+ Layout/AlignHash:
688
+ Description: Align the elements of a hash literal if they span more than one line.
689
+ Enabled: true
690
+ EnforcedHashRocketStyle: key
691
+ EnforcedColonStyle: key
692
+ EnforcedLastArgumentHashStyle: always_inspect
693
+ SupportedLastArgumentHashStyles:
694
+ - always_inspect
695
+ - always_ignore
696
+ - ignore_implicit
697
+ - ignore_explicit
698
+ Layout/AlignParameters:
699
+ Description: Align the parameters of a method call if they span more than one line.
700
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
701
+ Enabled: true
702
+ EnforcedStyle: with_first_parameter
703
+ SupportedStyles:
704
+ - with_first_parameter
705
+ - with_fixed_indentation
706
+ Layout/CaseIndentation:
707
+ Description: Indentation of when in a case/when/[else/]end.
708
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
709
+ Enabled: true
710
+ EnforcedStyle: case
711
+ SupportedStyles:
712
+ - case
713
+ - end
714
+ IndentOneStep: false
715
+ Layout/CommentIndentation:
716
+ Description: Indentation of comments.
717
+ Enabled: true
718
+ Layout/DotPosition:
719
+ Description: Checks the position of the dot in multi-line method calls.
720
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
721
+ Enabled: true
722
+ EnforcedStyle: trailing
723
+ SupportedStyles:
724
+ - leading
725
+ - trailing
726
+ Layout/EmptyLineBetweenDefs:
727
+ Description: Use empty lines between defs.
728
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
729
+ Enabled: true
730
+ AllowAdjacentOneLineDefs: false
731
+ Layout/EmptyLinesAroundBlockBody:
732
+ Description: Keeps track of empty lines around block bodies.
733
+ Enabled: true
734
+ EnforcedStyle: no_empty_lines
735
+ SupportedStyles:
736
+ - empty_lines
737
+ - no_empty_lines
738
+ Layout/EmptyLinesAroundClassBody:
739
+ Description: Keeps track of empty lines around class bodies.
740
+ Enabled: true
741
+ EnforcedStyle: no_empty_lines
742
+ SupportedStyles:
743
+ - empty_lines
744
+ - no_empty_lines
745
+ Layout/EmptyLinesAroundModuleBody:
746
+ Description: Keeps track of empty lines around module bodies.
747
+ Enabled: true
748
+ EnforcedStyle: no_empty_lines
749
+ SupportedStyles:
750
+ - empty_lines
751
+ - no_empty_lines
752
+ Layout/FirstParameterIndentation:
753
+ Description: Checks the indentation of the first parameter in a method call.
754
+ Enabled: true
755
+ EnforcedStyle: special_for_inner_method_call_in_parentheses
756
+ SupportedStyles:
757
+ - consistent
758
+ - special_for_inner_method_call
759
+ - special_for_inner_method_call_in_parentheses
760
+ Layout/IndentationWidth:
761
+ Description: Use 2 spaces for indentation.
762
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
763
+ Enabled: true
764
+ Width: 2
765
+ Layout/IndentHash:
766
+ Description: Checks the indentation of the first key in a hash literal.
767
+ Enabled: true
768
+ EnforcedStyle: special_inside_parentheses
769
+ SupportedStyles:
770
+ - special_inside_parentheses
771
+ - consistent
772
+ Layout/MultilineMethodCallIndentation:
773
+ Description: Checks indentation of method calls with the dot operator
774
+ that span more than one line.
775
+ Enabled: true
776
+ EnforcedStyle: indented
777
+ SupportedStyles:
778
+ - aligned
779
+ - indented
780
+ Layout/MultilineOperationIndentation:
781
+ Description: Checks indentation of binary operations that span more than one line.
782
+ Enabled: true
783
+ EnforcedStyle: indented
784
+ SupportedStyles:
785
+ - aligned
786
+ - indented
787
+ Layout/SpaceAroundBlockParameters:
788
+ Description: Checks the spacing inside and after block parameters pipes.
789
+ Enabled: true
790
+ EnforcedStyleInsidePipes: no_space
791
+ SupportedStylesInsidePipes:
792
+ - space
793
+ - no_space
794
+ Layout/SpaceAroundEqualsInParameterDefault:
795
+ Description: Checks that the equals signs in parameter default assignments have
796
+ or don't have surrounding space depending on configuration.
797
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
798
+ Enabled: true
799
+ EnforcedStyle: space
800
+ SupportedStyles:
801
+ - space
802
+ - no_space
803
+ Layout/SpaceBeforeBlockBraces:
804
+ Description: Checks that the left block brace has or doesn't have space before it.
805
+ Enabled: true
806
+ EnforcedStyle: space
807
+ SupportedStyles:
808
+ - space
809
+ - no_space
810
+ Layout/SpaceBeforeFirstArg:
811
+ Description: Put a space between a method name and the first argument in a method
812
+ call without parentheses.
813
+ Enabled: true
814
+ Layout/SpaceInsideBlockBraces:
815
+ Description: Checks that block braces have or don't have surrounding space. For
816
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
817
+ space.
818
+ Enabled: true
819
+ EnforcedStyle: space
820
+ SupportedStyles:
821
+ - space
822
+ - no_space
823
+ EnforcedStyleForEmptyBraces: no_space
824
+ SpaceBeforeBlockParameters: true
825
+ Layout/SpaceInsideHashLiteralBraces:
826
+ Description: Use spaces inside hash literal braces - or don't.
827
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
828
+ Enabled: true
829
+ EnforcedStyle: space
830
+ EnforcedStyleForEmptyBraces: no_space
831
+ SupportedStyles:
832
+ - space
833
+ - no_space
834
+ Layout/TrailingBlankLines:
835
+ Description: Checks trailing blank lines and final newline.
836
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
837
+ Enabled: true
838
+ EnforcedStyle: final_newline
839
+ SupportedStyles:
840
+ - final_newline
841
+ - final_blank_line
842
+ Layout/ExtraSpacing:
843
+ Description: Do not use unnecessary spacing.
844
+ Enabled: true
845
+ Layout/AlignArray:
846
+ Description: Align the elements of an array literal if they span more than one line.
847
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
848
+ Enabled: true
849
+ Layout/BlockEndNewline:
850
+ Description: Put end statement of multiline block on its own line.
851
+ Enabled: true
852
+ Layout/CommentIndentation:
853
+ Description: Indentation of comments.
854
+ Enabled: true
855
+ Layout/ElseAlignment:
856
+ Description: Align elses and elsifs correctly.
857
+ Enabled: true
858
+ Layout/EmptyLines:
859
+ Description: Don't use several empty lines in a row.
860
+ Enabled: true
861
+ Layout/EmptyLinesAroundAccessModifier:
862
+ Description: Keep blank lines around access modifiers.
863
+ Enabled: true
864
+ Layout/EmptyLinesAroundMethodBody:
865
+ Description: Keeps track of empty lines around method bodies.
866
+ Enabled: true
867
+ Layout/EndOfLine:
868
+ Description: Use Unix-style line endings.
869
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
870
+ Enabled: true
871
+ Layout/IndentationConsistency:
872
+ Description: Keep indentation straight.
873
+ Enabled: true
874
+ Layout/IndentArray:
875
+ Description: Checks the indentation of the first element in an array literal.
876
+ Enabled: true
877
+ Layout/LeadingCommentSpace:
878
+ Description: Comments should start with a space.
879
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
880
+ Enabled: true
881
+ Layout/MultilineBlockLayout:
882
+ Description: Ensures newlines after multiline block do statements.
883
+ Enabled: true
884
+ Layout/SpaceBeforeFirstArg:
825
885
  Description: Checks that exactly one space is used between a method name and the
826
886
  first argument for method calls without parentheses.
827
887
  Enabled: true
828
- Style/SpaceAfterColon:
888
+ Layout/SpaceAfterColon:
829
889
  Description: Use spaces after colons.
830
890
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
831
891
  Enabled: true
832
- Style/SpaceAfterComma:
892
+ Layout/SpaceAfterComma:
833
893
  Description: Use spaces after commas.
834
894
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
835
895
  Enabled: true
836
- Style/SpaceAroundKeyword:
896
+ Layout/SpaceAroundKeyword:
837
897
  Description: Use spaces after if/elsif/unless/while/until/case/when.
838
898
  Enabled: true
839
- Style/SpaceAfterMethodName:
899
+ Layout/SpaceAfterMethodName:
840
900
  Description: Do not put a space between a method name and the opening parenthesis
841
901
  in a method definition.
842
902
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
843
903
  Enabled: true
844
- Style/SpaceAfterNot:
904
+ Layout/SpaceAfterNot:
845
905
  Description: Tracks redundant space after the ! operator.
846
906
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
847
907
  Enabled: true
848
- Style/SpaceAfterSemicolon:
908
+ Layout/SpaceAfterSemicolon:
849
909
  Description: Use spaces after semicolons.
850
910
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
851
911
  Enabled: true
852
- Style/SpaceBeforeComma:
912
+ Layout/SpaceBeforeComma:
853
913
  Description: No spaces before commas.
854
914
  Enabled: true
855
- Style/SpaceBeforeComment:
915
+ Layout/SpaceBeforeComment:
856
916
  Description: Checks for missing space between code and a comment on the same line.
857
917
  Enabled: true
858
- Style/SpaceBeforeSemicolon:
918
+ Layout/SpaceBeforeSemicolon:
859
919
  Description: No spaces before semicolons.
860
920
  Enabled: true
861
- Style/SpaceAroundOperators:
921
+ Layout/SpaceAroundOperators:
862
922
  Description: Use spaces around operators.
863
923
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
864
924
  Enabled: true
865
- Style/SpaceAroundKeyword:
925
+ Layout/SpaceAroundKeyword:
866
926
  Description: Put a space before the modifier keyword.
867
927
  Enabled: true
868
- Style/SpaceInsideBrackets:
869
- Description: No spaces after [ or before ].
870
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
871
- Enabled: true
872
- Style/SpaceInsideParens:
928
+ #Layout/SpaceInsideBrackets:
929
+ #Description: No spaces after [ or before ].
930
+ #StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
931
+ #Enabled: true
932
+ Layout/SpaceInsideParens:
873
933
  Description: No spaces after ( or before ).
874
934
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
875
935
  Enabled: true
876
- Style/SpaceInsideRangeLiteral:
936
+ Layout/SpaceInsideRangeLiteral:
877
937
  Description: No spaces inside range literals.
878
938
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
879
939
  Enabled: true
880
- Style/SpecialGlobalVars:
881
- Description: Avoid Perl-style global variables.
882
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
883
- Enabled: false
884
- Style/StructInheritance:
885
- Description: Checks for inheritance from Struct.new.
886
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
887
- Enabled: true
888
- Style/Tab:
940
+ Layout/Tab:
889
941
  Description: No hard tabs.
890
942
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
891
943
  Enabled: true
892
- Style/TrailingWhitespace:
944
+ Layout/TrailingWhitespace:
893
945
  Description: Avoid trailing whitespace.
894
946
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
895
947
  Enabled: true
896
- Style/UnlessElse:
897
- Description: Do not use unless with else. Rewrite these with the positive case first.
898
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
899
- Enabled: true
900
- Style/UnneededCapitalW:
901
- Description: Checks for %W when interpolation is not needed.
902
- Enabled: true
903
- Style/UnneededPercentQ:
904
- Description: Checks for %q/%Q when single quotes or double quotes would do.
905
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
906
- Enabled: true
907
- Style/CommandLiteral:
908
- Description: Checks for %x when `` would do.
909
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
910
- Enabled: true
911
- Style/VariableInterpolation:
912
- Description: Don't interpolate global, instance and class variables directly in
913
- strings.
914
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
915
- Enabled: false
916
- Style/WhenThen:
917
- Description: Use when x then ... for one-line cases.
918
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
919
- Enabled: false
920
- Style/WhileUntilDo:
921
- Description: Checks for redundant do after while or until.
922
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
923
- Enabled: true
924
948
  Lint/AmbiguousOperator:
925
949
  Description: Checks for ambiguous operators in the first argument of a method invocation
926
950
  without parentheses.
@@ -930,10 +954,10 @@ Lint/AmbiguousRegexpLiteral:
930
954
  Description: Checks for ambiguous regexp literals in the first argument of a method
931
955
  invocation without parenthesis.
932
956
  Enabled: false
933
- Lint/BlockAlignment:
957
+ Layout/BlockAlignment:
934
958
  Description: Align block ends correctly.
935
959
  Enabled: true
936
- Lint/ConditionPosition:
960
+ Layout/ConditionPosition:
937
961
  Description: Checks for condition placed in a confusing position relative to the
938
962
  keyword.
939
963
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
@@ -967,13 +991,9 @@ Lint/HandleExceptions:
967
991
  Description: Don't suppress exception.
968
992
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
969
993
  Enabled: false
970
- Lint/InvalidCharacterLiteral:
971
- Description: Checks for invalid character literals with a non-escaped whitespace
972
- character.
973
- Enabled: false
974
- Lint/LiteralInCondition:
975
- Description: Checks of literals used in conditions.
976
- Enabled: false
994
+ #Lint/LiteralInCondition:
995
+ #Description: Checks of literals used in conditions.
996
+ #Enabled: false
977
997
  Lint/LiteralInInterpolation:
978
998
  Description: Checks for literals used in interpolation.
979
999
  Enabled: false