wordpress_client 0.0.1

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