devise_materialize 0.0.4.test2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +50 -0
  3. data/.rubocop.yml +859 -0
  4. data/.ruby-version +1 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +126 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +40 -0
  10. data/Rakefile +10 -0
  11. data/bin/console +11 -0
  12. data/bin/setup +8 -0
  13. data/circle.yml +0 -0
  14. data/devise_materialize.gemspec +41 -0
  15. data/lib/devise_materialize.rb +5 -0
  16. data/lib/devise_materialize/version.rb +4 -0
  17. data/lib/generators/devise_materialize/USAGE +5 -0
  18. data/lib/generators/devise_materialize/install_generator.rb +47 -0
  19. data/lib/generators/templates/.keep +0 -0
  20. data/lib/generators/templates/erb/default/confirmations/new.html.erb +0 -0
  21. data/lib/generators/templates/erb/default/mailer/confirmation_instructions.html.erb +0 -0
  22. data/lib/generators/templates/erb/default/mailer/password_change.html.erb +0 -0
  23. data/lib/generators/templates/erb/default/mailer/reset_password_instructions.html.erb +0 -0
  24. data/lib/generators/templates/erb/default/mailer/unlock_instructions.html.erb +0 -0
  25. data/lib/generators/templates/erb/default/passwords/edit.html.erb +0 -0
  26. data/lib/generators/templates/erb/default/passwords/new.html.erb +0 -0
  27. data/lib/generators/templates/erb/default/registrations/edit.html.erb +0 -0
  28. data/lib/generators/templates/erb/default/registrations/new.html.erb +0 -0
  29. data/lib/generators/templates/erb/default/sessions/new.html.erb +0 -0
  30. data/lib/generators/templates/erb/default/shared/_links.html.erb +0 -0
  31. data/lib/generators/templates/erb/default/unlocks/new.html.erb +0 -0
  32. data/lib/generators/templates/erb/simple_form/confirmations/new.html.erb +31 -0
  33. data/lib/generators/templates/erb/simple_form/mailer/confirmation_instructions.html.erb +37 -0
  34. data/lib/generators/templates/erb/simple_form/mailer/password_change.html.erb +39 -0
  35. data/lib/generators/templates/erb/simple_form/mailer/reset_password_instructions.html.erb +46 -0
  36. data/lib/generators/templates/erb/simple_form/mailer/unlock_instructions.html.erb +36 -0
  37. data/lib/generators/templates/erb/simple_form/passwords/edit.html.erb +0 -0
  38. data/lib/generators/templates/erb/simple_form/passwords/new.html.erb +0 -0
  39. data/lib/generators/templates/erb/simple_form/registrations/edit.html.erb +0 -0
  40. data/lib/generators/templates/erb/simple_form/registrations/new.html.erb +0 -0
  41. data/lib/generators/templates/erb/simple_form/sessions/new.html.erb +0 -0
  42. data/lib/generators/templates/erb/simple_form/shared/_links.html.erb +0 -0
  43. data/lib/generators/templates/erb/simple_form/unlocks/new.html.erb +0 -0
  44. data/lib/generators/templates/haml/default/confirmations/new.html.haml +0 -0
  45. data/lib/generators/templates/haml/default/mailer/confirmation_instructions.html.haml +0 -0
  46. data/lib/generators/templates/haml/default/mailer/password_change.html.haml +0 -0
  47. data/lib/generators/templates/haml/default/mailer/reset_password_instructions.html.haml +0 -0
  48. data/lib/generators/templates/haml/default/mailer/unlock_instructions.html.haml +0 -0
  49. data/lib/generators/templates/haml/default/passwords/edit.html.haml +0 -0
  50. data/lib/generators/templates/haml/default/passwords/new.html.haml +0 -0
  51. data/lib/generators/templates/haml/default/registrations/edit.html.haml +0 -0
  52. data/lib/generators/templates/haml/default/registrations/new.html.haml +0 -0
  53. data/lib/generators/templates/haml/default/sessions/new.html.haml +0 -0
  54. data/lib/generators/templates/haml/default/shared/_links.html.haml +0 -0
  55. data/lib/generators/templates/haml/default/unlocks/new.html.haml +0 -0
  56. data/lib/generators/templates/haml/simple_form/confirmations/new.html.haml +20 -0
  57. data/lib/generators/templates/haml/simple_form/mailer/confirmation_instructions.html.haml +30 -0
  58. data/lib/generators/templates/haml/simple_form/mailer/password_change.html.haml +31 -0
  59. data/lib/generators/templates/haml/simple_form/mailer/reset_password_instructions.html.haml +37 -0
  60. data/lib/generators/templates/haml/simple_form/mailer/unlock_instructions.html.haml +34 -0
  61. data/lib/generators/templates/haml/simple_form/passwords/edit.html.haml +16 -0
  62. data/lib/generators/templates/haml/simple_form/passwords/new.html.haml +12 -0
  63. data/lib/generators/templates/haml/simple_form/registrations/edit.html.haml +29 -0
  64. data/lib/generators/templates/haml/simple_form/registrations/new.html.haml +16 -0
  65. data/lib/generators/templates/haml/simple_form/sessions/new.html.haml +15 -0
  66. data/lib/generators/templates/haml/simple_form/shared/_links.html.haml +34 -0
  67. data/lib/generators/templates/haml/simple_form/unlocks/new.html.haml +12 -0
  68. data/lib/generators/templates/slim/default/confirmations/new.html.slim +0 -0
  69. data/lib/generators/templates/slim/default/mailer/confirmation_instructions.html.slim +0 -0
  70. data/lib/generators/templates/slim/default/mailer/password_change.html.slim +0 -0
  71. data/lib/generators/templates/slim/default/mailer/reset_password_instructions.html.slim +0 -0
  72. data/lib/generators/templates/slim/default/mailer/unlock_instructions.html.slim +0 -0
  73. data/lib/generators/templates/slim/default/passwords/edit.html.slim +0 -0
  74. data/lib/generators/templates/slim/default/passwords/new.html.slim +0 -0
  75. data/lib/generators/templates/slim/default/registrations/edit.html.slim +0 -0
  76. data/lib/generators/templates/slim/default/registrations/new.html.slim +0 -0
  77. data/lib/generators/templates/slim/default/sessions/new.html.slim +0 -0
  78. data/lib/generators/templates/slim/default/shared/_links.html.slim +0 -0
  79. data/lib/generators/templates/slim/default/unlocks/new.html.slim +0 -0
  80. data/lib/generators/templates/slim/simple_form/confirmations/new.html.slim +0 -0
  81. data/lib/generators/templates/slim/simple_form/mailer/confirmation_instructions.html.slim +0 -0
  82. data/lib/generators/templates/slim/simple_form/mailer/password_change.html.slim +0 -0
  83. data/lib/generators/templates/slim/simple_form/mailer/reset_password_instructions.html.slim +0 -0
  84. data/lib/generators/templates/slim/simple_form/mailer/unlock_instructions.html.slim +0 -0
  85. data/lib/generators/templates/slim/simple_form/passwords/edit.html.slim +0 -0
  86. data/lib/generators/templates/slim/simple_form/passwords/new.html.slim +0 -0
  87. data/lib/generators/templates/slim/simple_form/registrations/edit.html.slim +0 -0
  88. data/lib/generators/templates/slim/simple_form/registrations/new.html.slim +0 -0
  89. data/lib/generators/templates/slim/simple_form/sessions/new.html.slim +0 -0
  90. data/lib/generators/templates/slim/simple_form/shared/_links.html.slim +0 -0
  91. data/lib/generators/templates/slim/simple_form/unlocks/new.html.slim +0 -0
  92. metadata +206 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0cebc54915e08dca13a09ae73ba9d048c7b17de6
4
+ data.tar.gz: 5f729c0fde8409cb7e0a8d6f4f9a732bf55eb2db
5
+ SHA512:
6
+ metadata.gz: dfcf899fe6e4017dffa9dd5b75fb2f2d1556fe7662e42d45bf113357b18401dd3f94bf8a6702f2cbf9b3432dc5b514c9515834805a797bd1ab4d1dfbdcfb7fcd
7
+ data.tar.gz: abd96ed8a8369acd04e1d0853b01b81e5bb2974b27e67c97958cdef821a76e0ca23b821c3bf73e7fa237088d0cad70ce9e64112ac8dce499c95a374cef66c727
data/.gitignore ADDED
@@ -0,0 +1,50 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
data/.rubocop.yml ADDED
@@ -0,0 +1,859 @@
1
+ ---
2
+ AllCops:
3
+ Exclude:
4
+ - vendor/**/*
5
+ - db/**/*
6
+ - Gemfile.lock
7
+ - devise_materialize.gemspec
8
+ - Rakefile
9
+ TargetRubyVersion: 2.4
10
+ Lint/AmbiguousOperator:
11
+ Description: Checks for ambiguous operators in the first argument of a method invocation
12
+ without parentheses.
13
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
14
+ Enabled: true
15
+ Lint/AmbiguousRegexpLiteral:
16
+ Description: Checks for ambiguous regexp literals in the first argument of a method
17
+ invocation without parenthesis.
18
+ Enabled: true
19
+ Lint/AssignmentInCondition:
20
+ Description: Don't use assignment in conditions.
21
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
22
+ Enabled: true
23
+ Lint/BlockAlignment:
24
+ Description: Align block ends correctly.
25
+ Enabled: true
26
+ Lint/CircularArgumentReference:
27
+ Description: Don't refer to the keyword argument in the default value.
28
+ Enabled: true
29
+ Lint/ConditionPosition:
30
+ Description: Checks for condition placed in a confusing position relative to the
31
+ keyword.
32
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
33
+ Enabled: true
34
+ Lint/Debugger:
35
+ Description: Check for debugger calls.
36
+ Enabled: true
37
+ Lint/DefEndAlignment:
38
+ Description: Align ends corresponding to defs correctly.
39
+ Enabled: true
40
+ Lint/DeprecatedClassMethods:
41
+ Description: Check for deprecated class method calls.
42
+ Enabled: true
43
+ Lint/DuplicateMethods:
44
+ Description: Check for duplicate methods calls.
45
+ Enabled: true
46
+ Lint/EachWithObjectArgument:
47
+ Description: Check for immutable argument given to each_with_object.
48
+ Enabled: true
49
+ Lint/ElseLayout:
50
+ Description: Check for odd code arrangement in an else block.
51
+ Enabled: true
52
+ Lint/EmptyEnsure:
53
+ Description: Checks for empty ensure block.
54
+ Enabled: true
55
+ Lint/EmptyInterpolation:
56
+ Description: Checks for empty string interpolation.
57
+ Enabled: true
58
+ Lint/EndAlignment:
59
+ Description: Align ends correctly.
60
+ Enabled: true
61
+ Lint/EndInMethod:
62
+ Description: END blocks should not be placed inside method definitions.
63
+ Enabled: true
64
+ Lint/EnsureReturn:
65
+ Description: Do not use return in an ensure block.
66
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
67
+ Enabled: true
68
+ Lint/FormatParameterMismatch:
69
+ Description: The number of parameters to format/sprint must match the fields.
70
+ Enabled: true
71
+ Lint/HandleExceptions:
72
+ Description: Don't suppress exception.
73
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
74
+ Enabled: true
75
+ Lint/InvalidCharacterLiteral:
76
+ Description: Checks for invalid character literals with a non-escaped whitespace
77
+ character.
78
+ Enabled: true
79
+ Lint/LiteralInCondition:
80
+ Description: Checks of literals used in conditions.
81
+ Enabled: true
82
+ Lint/LiteralInInterpolation:
83
+ Description: Checks for literals used in interpolation.
84
+ Enabled: true
85
+ Lint/Loop:
86
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
87
+ for post-loop tests.
88
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
89
+ Enabled: true
90
+ Lint/NestedMethodDefinition:
91
+ Description: Do not use nested method definitions.
92
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-methods
93
+ Enabled: true
94
+ Lint/NonLocalExitFromIterator:
95
+ Description: Do not use return in iterator to cause non-local exit.
96
+ Enabled: true
97
+ Lint/ParenthesesAsGroupedExpression:
98
+ Description: Checks for method calls with a space before the opening parenthesis.
99
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
100
+ Enabled: true
101
+ Lint/RequireParentheses:
102
+ Description: Use parentheses in the method call to avoid confusion about precedence.
103
+ Enabled: true
104
+ Lint/RescueException:
105
+ Description: Avoid rescuing the Exception class.
106
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
107
+ Enabled: true
108
+ Lint/ShadowingOuterLocalVariable:
109
+ Description: Do not use the same name as outer local variable for block arguments
110
+ or block local variables.
111
+ Enabled: true
112
+ Lint/StringConversionInInterpolation:
113
+ Description: Checks for Object#to_s usage in string interpolation.
114
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
115
+ Enabled: true
116
+ Lint/UnderscorePrefixedVariableName:
117
+ Description: Do not use prefix `_` for a variable that is used.
118
+ Enabled: true
119
+ Lint/UnneededDisable:
120
+ Description: 'Checks for rubocop:disable comments that can be removed. Note: this
121
+ cop is not disabled when disabling all cops. It must be explicitly disabled.'
122
+ Enabled: true
123
+ Lint/UnusedBlockArgument:
124
+ Description: Checks for unused block arguments.
125
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
126
+ Enabled: true
127
+ Lint/UnusedMethodArgument:
128
+ Description: Checks for unused method arguments.
129
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
130
+ Enabled: true
131
+ Lint/UnreachableCode:
132
+ Description: Unreachable code.
133
+ Enabled: true
134
+ Lint/UselessAccessModifier:
135
+ Description: Checks for useless access modifiers.
136
+ Enabled: true
137
+ Lint/UselessAssignment:
138
+ Description: Checks for useless assignment to a local variable.
139
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
140
+ Enabled: true
141
+ Lint/UselessComparison:
142
+ Description: Checks for comparison of something with itself.
143
+ Enabled: true
144
+ Lint/UselessElseWithoutRescue:
145
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
146
+ Enabled: true
147
+ Lint/UselessSetterCall:
148
+ Description: Checks for useless setter call to a local variable.
149
+ Enabled: true
150
+ Lint/Void:
151
+ Description: Possible use of operator/literal/variable in void context.
152
+ Enabled: true
153
+ Metrics/AbcSize:
154
+ Description: A calculated magnitude based on number of assignments, branches, and
155
+ conditions.
156
+ Reference: http://c2.com/cgi/wiki?AbcMetric
157
+ Enabled: true
158
+ Max: 15
159
+ Metrics/BlockNesting:
160
+ Description: Avoid excessive block nesting
161
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
162
+ Enabled: true
163
+ Max: 4
164
+ Metrics/ClassLength:
165
+ Description: Avoid classes longer than 100 lines of code.
166
+ Enabled: true
167
+ Max: 100
168
+ Metrics/CyclomaticComplexity:
169
+ Description: A complexity metric that is strongly correlated to the number of test
170
+ cases needed to validate a method.
171
+ Enabled: true
172
+ Metrics/LineLength:
173
+ Description: Limit lines to 80 characters.
174
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
175
+ Enabled: true
176
+ Metrics/MethodLength:
177
+ Description: Avoid methods longer than 10 lines of code.
178
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
179
+ Enabled: true
180
+ Max: 10
181
+ Metrics/ModuleLength:
182
+ Description: Avoid modules longer than 100 lines of code.
183
+ Enabled: true
184
+ Max: 100
185
+ Metrics/ParameterLists:
186
+ Description: Avoid parameter lists longer than three or four parameters.
187
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
188
+ Enabled: false
189
+ Metrics/PerceivedComplexity:
190
+ Description: A complexity metric geared towards measuring complexity for a human
191
+ reader.
192
+ Enabled: true
193
+ Metrics/BlockLength:
194
+ Exclude:
195
+ - Rakefile
196
+ - "**/*.rake"
197
+ - spec/**/*.rb
198
+ Performance/Count:
199
+ Description: Use `count` instead of `select...size`, `reject...size`, `select...count`,
200
+ `reject...count`, `select...length`, and `reject...length`.
201
+ Enabled: true
202
+ Performance/Detect:
203
+ Description: Use `detect` instead of `select.first`, `find_all.first`, `select.last`,
204
+ and `find_all.last`.
205
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code
206
+ Enabled: true
207
+ Performance/FlatMap:
208
+ Description: Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)`
209
+ or `Enumberable#collect..Array#flatten(1)`
210
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code
211
+ Enabled: true
212
+ EnabledForFlattenWithoutParams: false
213
+ Performance/ReverseEach:
214
+ Description: Use `reverse_each` instead of `reverse.each`.
215
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
216
+ Enabled: true
217
+ Performance/Sample:
218
+ Description: Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Fixnum]`.
219
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code
220
+ Enabled: true
221
+ Performance/Size:
222
+ Description: Use `size` instead of `count` for counting the number of elements in
223
+ `Array` and `Hash`.
224
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code
225
+ Enabled: true
226
+ Performance/StringReplacement:
227
+ Description: Use `tr` instead of `gsub` when you are replacing the same number of
228
+ characters. Use `delete` instead of `gsub` when you are deleting characters.
229
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
230
+ Enabled: true
231
+ Rails/ActionFilter:
232
+ Description: Enforces consistent use of action filter methods.
233
+ Enabled: false
234
+ Rails/Date:
235
+ Description: Checks the correct usage of date aware methods, such as Date.today,
236
+ Date.current etc.
237
+ Enabled: true
238
+ Rails/Delegate:
239
+ Description: Prefer delegate method for delegations.
240
+ Enabled: true
241
+ Rails/FindBy:
242
+ Description: Prefer find_by over where.first.
243
+ Enabled: true
244
+ Rails/FindEach:
245
+ Description: Prefer all.find_each over all.find.
246
+ Enabled: true
247
+ Rails/HasAndBelongsToMany:
248
+ Description: Prefer has_many :through to has_and_belongs_to_many.
249
+ Enabled: true
250
+ Rails/Output:
251
+ Description: Checks for calls to puts, print, etc.
252
+ Enabled: true
253
+ Rails/ReadWriteAttribute:
254
+ Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
255
+ Enabled: false
256
+ Rails/ScopeArgs:
257
+ Description: Checks the arguments of ActiveRecord scopes.
258
+ Enabled: true
259
+ Rails/TimeZone:
260
+ Description: Checks the correct usage of time zone aware methods.
261
+ StyleGuide: https://github.com/bbatsov/rails-style-guide#time
262
+ Reference: http://danilenko.org/2012/7/6/rails_timezones
263
+ Enabled: true
264
+ Rails/Validation:
265
+ Description: Use validates :attribute, hash of validations.
266
+ Enabled: true
267
+ Style/AccessModifierIndentation:
268
+ Description: Check indentation of private/protected visibility modifiers.
269
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
270
+ Enabled: false
271
+ Style/AccessorMethodName:
272
+ Description: Check the naming of accessor methods for get_/set_.
273
+ Enabled: false
274
+ Style/Alias:
275
+ Description: Use alias_method instead of alias.
276
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
277
+ Enabled: false
278
+ Style/AlignArray:
279
+ Description: Align the elements of an array literal if they span more than one line.
280
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
281
+ Enabled: true
282
+ Style/AlignHash:
283
+ Description: Align the elements of a hash literal if they span more than one line.
284
+ Enabled: true
285
+ Style/AlignParameters:
286
+ Description: Align the parameters of a method call if they span more than one line.
287
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
288
+ Enabled: true
289
+ Style/AndOr:
290
+ Description: Use &&/|| instead of and/or.
291
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
292
+ Enabled: true
293
+ Style/ArrayJoin:
294
+ Description: Use Array#join instead of Array#*.
295
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
296
+ Enabled: false
297
+ Style/AsciiComments:
298
+ Description: Use only ascii symbols in comments.
299
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
300
+ Enabled: false
301
+ Style/AsciiIdentifiers:
302
+ Description: Use only ascii symbols in identifiers.
303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
304
+ Enabled: false
305
+ Style/Attr:
306
+ Description: Checks for uses of Module#attr.
307
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
308
+ Enabled: true
309
+ Style/BeginBlock:
310
+ Description: Avoid the use of BEGIN blocks.
311
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
312
+ Enabled: true
313
+ Style/BarePercentLiterals:
314
+ Description: Checks if usage of %() or %Q() matches configuration.
315
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
316
+ Enabled: true
317
+ Style/BlockComments:
318
+ Description: Do not use block comments.
319
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
320
+ Enabled: false
321
+ Style/BlockEndNewline:
322
+ Description: Put end statement of multiline block on its own line.
323
+ Enabled: true
324
+ Style/BlockDelimiters:
325
+ Description: Avoid using {...} for multi-line blocks (multiline chaining is always
326
+ ugly). Prefer {...} over do...end for single-line blocks.
327
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
328
+ Enabled: true
329
+ Style/BracesAroundHashParameters:
330
+ Description: Enforce braces style around hash parameters.
331
+ Enabled: false
332
+ Style/CaseEquality:
333
+ Description: Avoid explicit use of the case equality operator(===).
334
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
335
+ Enabled: false
336
+ Style/CaseIndentation:
337
+ Description: Indentation of when in a case/when/[else/]end.
338
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
339
+ Enabled: true
340
+ Style/CharacterLiteral:
341
+ Description: Checks for uses of character literals.
342
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
343
+ Enabled: false
344
+ Style/ClassAndModuleCamelCase:
345
+ Description: Use CamelCase for classes and modules.
346
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
347
+ Enabled: true
348
+ Style/ClassAndModuleChildren:
349
+ Description: Checks style of children classes and modules.
350
+ Enabled: false
351
+ Style/ClassCheck:
352
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
353
+ Enabled: true
354
+ Style/ClassMethods:
355
+ Description: Use self when defining module/class methods.
356
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-class-methods
357
+ Enabled: false
358
+ Style/ClassVars:
359
+ Description: Avoid the use of class variables.
360
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
361
+ Enabled: false
362
+ Style/ClosingParenthesisIndentation:
363
+ Description: Checks the indentation of hanging closing parentheses.
364
+ Enabled: false
365
+ Style/ColonMethodCall:
366
+ Description: 'Do not use :: for method call.'
367
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
368
+ Enabled: true
369
+ Style/CommandLiteral:
370
+ Description: Use `` or %x around command literals.
371
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
372
+ Enabled: false
373
+ Style/CommentAnnotation:
374
+ Description: Checks formatting of annotation comments.
375
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
376
+ Enabled: false
377
+ Style/CommentIndentation:
378
+ Description: Indentation of comments.
379
+ Enabled: false
380
+ Style/ConstantName:
381
+ Description: Constants should use SCREAMING_SNAKE_CASE.
382
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
383
+ Enabled: true
384
+ Style/DefWithParentheses:
385
+ Description: Use def with parentheses when there are arguments.
386
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
387
+ Enabled: true
388
+ Style/Documentation:
389
+ Description: Document classes and non-namespace modules.
390
+ Enabled: false
391
+ Style/DotPosition:
392
+ Description: Checks the position of the dot in multi-line method calls.
393
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
394
+ Enabled: true
395
+ Style/DoubleNegation:
396
+ Description: Checks for uses of double negation (!!).
397
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
398
+ Enabled: true
399
+ Style/EachWithObject:
400
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
401
+ Enabled: false
402
+ Style/ElseAlignment:
403
+ Description: Align elses and elsifs correctly.
404
+ Enabled: true
405
+ Style/EmptyElse:
406
+ Description: Avoid empty else-clauses.
407
+ Enabled: true
408
+ Style/EmptyLineBetweenDefs:
409
+ Description: Use empty lines between defs.
410
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
411
+ Enabled: true
412
+ Style/EmptyLines:
413
+ Description: Don't use several empty lines in a row.
414
+ Enabled: true
415
+ Style/EmptyLinesAroundAccessModifier:
416
+ Description: Keep blank lines around access modifiers.
417
+ Enabled: false
418
+ Style/EmptyLinesAroundBlockBody:
419
+ Description: Keeps track of empty lines around block bodies.
420
+ Enabled: false
421
+ Style/EmptyLinesAroundClassBody:
422
+ Description: Keeps track of empty lines around class bodies.
423
+ Enabled: false
424
+ Style/EmptyLinesAroundModuleBody:
425
+ Description: Keeps track of empty lines around module bodies.
426
+ Enabled: false
427
+ Style/EmptyLinesAroundMethodBody:
428
+ Description: Keeps track of empty lines around method bodies.
429
+ Enabled: false
430
+ Style/EmptyLiteral:
431
+ Description: Prefer literals to Array.new/Hash.new/String.new.
432
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
433
+ Enabled: false
434
+ Style/EndBlock:
435
+ Description: Avoid the use of END blocks.
436
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
437
+ Enabled: false
438
+ Style/EndOfLine:
439
+ Description: Use Unix-style line endings.
440
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
441
+ Enabled: false
442
+ Style/EvenOdd:
443
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
444
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
445
+ Enabled: true
446
+ Style/ExtraSpacing:
447
+ Description: Do not use unnecessary spacing.
448
+ Enabled: true
449
+ Style/FileName:
450
+ Description: Use snake_case for source file names.
451
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
452
+ Enabled: true
453
+ Style/InitialIndentation:
454
+ Description: Checks the indentation of the first non-blank non-comment line in a
455
+ file.
456
+ Enabled: false
457
+ Style/FirstParameterIndentation:
458
+ Description: Checks the indentation of the first parameter in a method call.
459
+ Enabled: false
460
+ Style/FlipFlop:
461
+ Description: Checks for flip flops
462
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
463
+ Enabled: true
464
+ Style/For:
465
+ Description: Checks use of for or each in multiline loops.
466
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
467
+ Enabled: true
468
+ Style/FormatString:
469
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
470
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
471
+ Enabled: false
472
+ Style/GlobalVars:
473
+ Description: Do not introduce global variables.
474
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
475
+ Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html
476
+ Enabled: true
477
+ Style/GuardClause:
478
+ Description: Check for conditionals that can be replaced with guard clauses
479
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
480
+ Enabled: true
481
+ Style/HashSyntax:
482
+ Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a =>
483
+ 1, :b => 2 }.'
484
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
485
+ Enabled: true
486
+ Style/IfUnlessModifier:
487
+ Description: Favor modifier if/unless usage when you have a single-line body.
488
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
489
+ Enabled: true
490
+ Style/IfWithSemicolon:
491
+ Description: Do not use if x; .... Use the ternary operator instead.
492
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
493
+ Enabled: true
494
+ Style/IndentationConsistency:
495
+ Description: Keep indentation straight.
496
+ Enabled: false
497
+ Style/IndentationWidth:
498
+ Description: Use 2 spaces for indentation.
499
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
500
+ Enabled: true
501
+ Style/IndentArray:
502
+ Description: Checks the indentation of the first element in an array literal.
503
+ Enabled: false
504
+ Style/IndentHash:
505
+ Description: Checks the indentation of the first key in a hash literal.
506
+ Enabled: false
507
+ Style/InfiniteLoop:
508
+ Description: Use Kernel#loop for infinite loops.
509
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
510
+ Enabled: true
511
+ Style/Lambda:
512
+ Description: Use the new lambda literal syntax for single-line blocks.
513
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
514
+ Enabled: true
515
+ Style/LambdaCall:
516
+ Description: Use lambda.call(...) instead of lambda.(...).
517
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
518
+ Enabled: false
519
+ Style/LeadingCommentSpace:
520
+ Description: Comments should start with a space.
521
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
522
+ Enabled: true
523
+ Style/LineEndConcatenation:
524
+ Description: Use \ instead of + or << to concatenate two string literals at line
525
+ end.
526
+ Enabled: true
527
+ Style/MethodCallWithoutArgsParentheses:
528
+ Description: Do not use parentheses for method calls with no arguments.
529
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
530
+ Enabled: true
531
+ Style/MethodDefParentheses:
532
+ Description: Checks if the method definitions have or don't have parentheses.
533
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
534
+ Enabled: true
535
+ Style/MethodName:
536
+ Description: Use the configured style when naming methods.
537
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
538
+ Enabled: false
539
+ Style/ModuleFunction:
540
+ Description: Checks for usage of `extend self` in modules.
541
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
542
+ Enabled: true
543
+ Style/MultilineBlockChain:
544
+ Description: Avoid multi-line chains of blocks.
545
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
546
+ Enabled: false
547
+ Style/MultilineBlockLayout:
548
+ Description: Ensures newlines after multiline block do statements.
549
+ Enabled: true
550
+ Style/MultilineIfThen:
551
+ Description: Do not use then for multi-line if/unless.
552
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
553
+ Enabled: true
554
+ Style/MultilineOperationIndentation:
555
+ Description: Checks indentation of binary operations that span more than one line.
556
+ Enabled: false
557
+ Style/MultilineTernaryOperator:
558
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
559
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
560
+ Enabled: true
561
+ Style/NegatedIf:
562
+ Description: Favor unless over if for negative conditions (or control flow or).
563
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
564
+ Enabled: true
565
+ Style/NegatedWhile:
566
+ Description: Favor until over while for negative conditions.
567
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
568
+ Enabled: true
569
+ Style/NestedTernaryOperator:
570
+ Description: Use one expression per branch in a ternary operator.
571
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
572
+ Enabled: true
573
+ Style/Next:
574
+ Description: Use `next` to skip iteration instead of a condition at the end.
575
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
576
+ Enabled: true
577
+ Style/NilComparison:
578
+ Description: Prefer x.nil? to x == nil.
579
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
580
+ Enabled: true
581
+ Style/NonNilCheck:
582
+ Description: Checks for redundant nil checks.
583
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
584
+ Enabled: true
585
+ Style/Not:
586
+ Description: Use ! instead of not.
587
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
588
+ Enabled: true
589
+ Style/NumericLiterals:
590
+ Description: Add underscores to large numeric literals to improve their readability.
591
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
592
+ Enabled: true
593
+ Style/OneLineConditional:
594
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
595
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
596
+ Enabled: false
597
+ Style/OpMethod:
598
+ Description: When defining binary operators, name the argument other.
599
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
600
+ Enabled: false
601
+ Style/OptionalArguments:
602
+ Description: Checks for optional arguments that do not appear at the end of the
603
+ argument list
604
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#optional-arguments
605
+ Enabled: false
606
+ Style/ParallelAssignment:
607
+ Description: Check for simple usages of parallel assignment. It will only warn when
608
+ the number of variables matches on both sides of the assignment. This also provides
609
+ performance benefits
610
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parallel-assignment
611
+ Enabled: false
612
+ Style/ParenthesesAroundCondition:
613
+ Description: Don't use parentheses around the condition of an if/unless/while.
614
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
615
+ Enabled: true
616
+ Style/PercentLiteralDelimiters:
617
+ Description: Use `%`-literal delimiters consistently
618
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
619
+ Enabled: true
620
+ Style/PercentQLiterals:
621
+ Description: Checks if uses of %Q/%q match the configured preference.
622
+ Enabled: true
623
+ Style/PerlBackrefs:
624
+ Description: Avoid Perl-style regex back references.
625
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
626
+ Enabled: false
627
+ Style/PredicateName:
628
+ Description: Check the names of predicate methods.
629
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
630
+ Enabled: true
631
+ Style/Proc:
632
+ Description: Use proc instead of Proc.new.
633
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
634
+ Enabled: true
635
+ Style/RaiseArgs:
636
+ Description: Checks the arguments passed to raise/fail.
637
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
638
+ Enabled: false
639
+ Style/RedundantBegin:
640
+ Description: Don't use begin blocks when they are not needed.
641
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
642
+ Enabled: true
643
+ Style/RedundantException:
644
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
645
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
646
+ Enabled: true
647
+ Style/RedundantReturn:
648
+ Description: Don't use return where it's not required.
649
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
650
+ Enabled: true
651
+ Style/RedundantSelf:
652
+ Description: Don't use self where it's not needed.
653
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
654
+ Enabled: true
655
+ Style/RegexpLiteral:
656
+ Description: Use / or %r around regular expressions.
657
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
658
+ Enabled: false
659
+ Style/RescueEnsureAlignment:
660
+ Description: Align rescues and ensures correctly.
661
+ Enabled: false
662
+ Style/RescueModifier:
663
+ Description: Avoid using rescue in its modifier form.
664
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
665
+ Enabled: false
666
+ Style/SelfAssignment:
667
+ Description: Checks for places where self-assignment shorthand should have been
668
+ used.
669
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
670
+ Enabled: true
671
+ Style/Semicolon:
672
+ Description: Don't use semicolons to terminate expressions.
673
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
674
+ Enabled: true
675
+ Style/SignalException:
676
+ Description: Checks for proper usage of fail and raise.
677
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
678
+ Enabled: true
679
+ Style/SingleLineBlockParams:
680
+ Description: Enforces the names of some block params.
681
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
682
+ Enabled: true
683
+ Style/SingleLineMethods:
684
+ Description: Avoid single-line methods.
685
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
686
+ Enabled: false
687
+ Style/SpaceBeforeFirstArg:
688
+ Description: Checks that exactly one space is used between a method name and the
689
+ first argument for method calls without parentheses.
690
+ Enabled: true
691
+ Style/SpaceAfterColon:
692
+ Description: Use spaces after colons.
693
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
694
+ Enabled: true
695
+ Style/SpaceAfterComma:
696
+ Description: Use spaces after commas.
697
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
698
+ Enabled: true
699
+ Style/SpaceAroundKeyword:
700
+ Description: Use spaces around keywords.
701
+ Enabled: true
702
+ Style/SpaceAfterMethodName:
703
+ Description: Do not put a space between a method name and the opening parenthesis
704
+ in a method definition.
705
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
706
+ Enabled: true
707
+ Style/SpaceAfterNot:
708
+ Description: Tracks redundant space after the ! operator.
709
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
710
+ Enabled: false
711
+ Style/SpaceAfterSemicolon:
712
+ Description: Use spaces after semicolons.
713
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
714
+ Enabled: true
715
+ Style/SpaceBeforeBlockBraces:
716
+ Description: Checks that the left block brace has or doesn't have space before it.
717
+ Enabled: false
718
+ Style/SpaceBeforeComma:
719
+ Description: No spaces before commas.
720
+ Enabled: false
721
+ Style/SpaceBeforeComment:
722
+ Description: Checks for missing space between code and a comment on the same line.
723
+ Enabled: false
724
+ Style/SpaceBeforeSemicolon:
725
+ Description: No spaces before semicolons.
726
+ Enabled: false
727
+ Style/SpaceInsideBlockBraces:
728
+ Description: Checks that block braces have or don't have surrounding space. For
729
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
730
+ space.
731
+ Enabled: false
732
+ Style/SpaceAroundBlockParameters:
733
+ Description: Checks the spacing inside and after block parameters pipes.
734
+ Enabled: true
735
+ Style/SpaceAroundEqualsInParameterDefault:
736
+ Description: Checks that the equals signs in parameter default assignments have
737
+ or don't have surrounding space depending on configuration.
738
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
739
+ Enabled: true
740
+ Style/SpaceAroundOperators:
741
+ Description: Use a single space around operators.
742
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
743
+ Enabled: true
744
+ Style/SpaceInsideBrackets:
745
+ Description: No spaces after [ or before ].
746
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
747
+ Enabled: false
748
+ Style/SpaceInsideHashLiteralBraces:
749
+ Description: Use spaces inside hash literal braces - or don't.
750
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
751
+ Enabled: false
752
+ Style/SpaceInsideParens:
753
+ Description: No spaces after ( or before ).
754
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
755
+ Enabled: true
756
+ Style/SpaceInsideRangeLiteral:
757
+ Description: No spaces inside range literals.
758
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
759
+ Enabled: true
760
+ Style/SpaceInsideStringInterpolation:
761
+ Description: Checks for padding/surrounding spaces inside string interpolation.
762
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#string-interpolation
763
+ Enabled: false
764
+ Style/SpecialGlobalVars:
765
+ Description: Avoid Perl-style global variables.
766
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
767
+ Enabled: false
768
+ Style/StringLiterals:
769
+ Description: Checks if uses of quotes match the configured preference.
770
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
771
+ EnforcedStyle: double_quotes
772
+ Enabled: true
773
+ Style/StringLiteralsInInterpolation:
774
+ Description: Checks if uses of quotes inside expressions in interpolated strings
775
+ match the configured preference.
776
+ Enabled: true
777
+ Style/StructInheritance:
778
+ Description: Checks for inheritance from Struct.new.
779
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
780
+ Enabled: false
781
+ Style/SymbolLiteral:
782
+ Description: Use plain symbols instead of string symbols when possible.
783
+ Enabled: false
784
+ Style/SymbolProc:
785
+ Description: Use symbols as procs instead of blocks when possible.
786
+ Enabled: false
787
+ Style/Tab:
788
+ Description: No hard tabs.
789
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
790
+ Enabled: false
791
+ Style/TrailingBlankLines:
792
+ Description: Checks trailing blank lines and final newline.
793
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
794
+ Enabled: false
795
+ Style/TrailingCommaInArguments:
796
+ Description: Checks for trailing comma in parameter lists.
797
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma
798
+ Enabled: false
799
+ Style/TrailingCommaInLiteral:
800
+ Description: Checks for trailing comma in literals.
801
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
802
+ Enabled: false
803
+ Style/TrailingWhitespace:
804
+ Description: Avoid trailing whitespace.
805
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
806
+ Enabled: false
807
+ Style/TrivialAccessors:
808
+ Description: Prefer attr_* methods to trivial readers/writers.
809
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
810
+ Enabled: false
811
+ Style/UnlessElse:
812
+ Description: Do not use unless with else. Rewrite these with the positive case first.
813
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
814
+ Enabled: true
815
+ Style/UnneededCapitalW:
816
+ Description: Checks for %W when interpolation is not needed.
817
+ Enabled: false
818
+ Style/UnneededPercentQ:
819
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
820
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
821
+ Enabled: false
822
+ Style/TrailingUnderscoreVariable:
823
+ Description: Checks for the usage of unneeded trailing underscores at the end of
824
+ parallel variable assignment.
825
+ Enabled: false
826
+ Style/VariableInterpolation:
827
+ Description: Don't interpolate global, instance and class variables directly in
828
+ strings.
829
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
830
+ Enabled: true
831
+ Style/VariableName:
832
+ Description: Use the configured style when naming variables.
833
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
834
+ Enabled: true
835
+ Style/WhenThen:
836
+ Description: Use when x then ... for one-line cases.
837
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
838
+ Enabled: true
839
+ Style/WhileUntilDo:
840
+ Description: Checks for redundant do after while or until.
841
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
842
+ Enabled: true
843
+ Style/WhileUntilModifier:
844
+ Description: Favor modifier while/until usage when you have a single-line body.
845
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
846
+ Enabled: true
847
+ Style/MutableConstant:
848
+ Enabled: true
849
+ Style/FrozenStringLiteralComment:
850
+ Enabled: true
851
+ Style/WordArray:
852
+ Description: Use %w or %W for arrays of words.
853
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
854
+ Enabled: true
855
+ Style/EmptyMethod:
856
+ Enabled: false
857
+ Security/Eval:
858
+ Description: The use of eval represents a serious security risk.
859
+ Enabled: true