graphql_client 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml +1133 -0
  4. data/.rubocop.yml +24 -0
  5. data/.travis.yml +6 -0
  6. data/CHANGELOG.md +3 -0
  7. data/CODE_OF_CONDUCT.md +45 -0
  8. data/CONTRIBUTING.md +28 -0
  9. data/CONTRIBUTING_DEVELOPER_CERTIFICATE_OF_ORIGIN.txt +37 -0
  10. data/Gemfile +8 -0
  11. data/LICENSE.md +21 -0
  12. data/README.md +96 -0
  13. data/Rakefile +13 -0
  14. data/bin/graphql-client +79 -0
  15. data/bin/rake +17 -0
  16. data/circle.yml +3 -0
  17. data/dev.yml +7 -0
  18. data/graphql_ruby_client.gemspec +26 -0
  19. data/lib/graphql_client.rb +46 -0
  20. data/lib/graphql_client/adapters/http_adapter.rb +72 -0
  21. data/lib/graphql_client/base.rb +53 -0
  22. data/lib/graphql_client/config.rb +42 -0
  23. data/lib/graphql_client/deserialization.rb +36 -0
  24. data/lib/graphql_client/error.rb +22 -0
  25. data/lib/graphql_client/graph_connection.rb +21 -0
  26. data/lib/graphql_client/graph_node.rb +24 -0
  27. data/lib/graphql_client/graph_object.rb +56 -0
  28. data/lib/graphql_client/introspection_query.rb +80 -0
  29. data/lib/graphql_client/query/add_inline_fragment.rb +42 -0
  30. data/lib/graphql_client/query/argument.rb +30 -0
  31. data/lib/graphql_client/query/document.rb +86 -0
  32. data/lib/graphql_client/query/field.rb +91 -0
  33. data/lib/graphql_client/query/fragment.rb +41 -0
  34. data/lib/graphql_client/query/has_selection_set.rb +72 -0
  35. data/lib/graphql_client/query/inline_fragment.rb +35 -0
  36. data/lib/graphql_client/query/mutation_document.rb +20 -0
  37. data/lib/graphql_client/query/operation.rb +46 -0
  38. data/lib/graphql_client/query/operations/mutation_operation.rb +17 -0
  39. data/lib/graphql_client/query/operations/query_operation.rb +17 -0
  40. data/lib/graphql_client/query/query_document.rb +20 -0
  41. data/lib/graphql_client/query/selection_set.rb +53 -0
  42. data/lib/graphql_client/response.rb +21 -0
  43. data/lib/graphql_client/response_connection.rb +18 -0
  44. data/lib/graphql_client/response_object.rb +32 -0
  45. data/lib/graphql_client/schema_patches.rb +17 -0
  46. data/lib/graphql_client/version.rb +7 -0
  47. data/shipit.rubygems.yml +1 -0
  48. data/shipit.yml +4 -0
  49. data/test/graphql_client/adapters/http_adapter_test.rb +111 -0
  50. data/test/graphql_client/config_test.rb +68 -0
  51. data/test/graphql_client/graph_connection_test.rb +8 -0
  52. data/test/graphql_client/graph_node_test.rb +8 -0
  53. data/test/graphql_client/graph_object_query_transforming_test.rb +156 -0
  54. data/test/graphql_client/graph_object_test.rb +142 -0
  55. data/test/graphql_client/graphql_client_test.rb +41 -0
  56. data/test/graphql_client/http_client_test.rb +52 -0
  57. data/test/graphql_client/query/add_inline_fragment_test.rb +57 -0
  58. data/test/graphql_client/query/arguments_test.rb +89 -0
  59. data/test/graphql_client/query/document_test.rb +246 -0
  60. data/test/graphql_client/query/field_test.rb +163 -0
  61. data/test/graphql_client/query/fragment_test.rb +45 -0
  62. data/test/graphql_client/query/inline_fragment_test.rb +37 -0
  63. data/test/graphql_client/query/mutation_document_test.rb +30 -0
  64. data/test/graphql_client/query/mutation_operation_test.rb +89 -0
  65. data/test/graphql_client/query/query_document_test.rb +30 -0
  66. data/test/graphql_client/query/query_operation_test.rb +262 -0
  67. data/test/graphql_client/query/selection_set_test.rb +116 -0
  68. data/test/graphql_client/response_connection_test.rb +50 -0
  69. data/test/graphql_client/response_object_test.rb +109 -0
  70. data/test/graphql_client/response_test.rb +67 -0
  71. data/test/support/fixtures/schema.json +13710 -0
  72. data/test/test_helper.rb +37 -0
  73. metadata +227 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7e4afa9a8d44f51f59d674a378869ed6ba86c250
4
+ data.tar.gz: 3538662487a766eca54ffe3fb5f73b0543785852
5
+ SHA512:
6
+ metadata.gz: 13d946560d0627dfbb0bea51badf3906f9ef39d935d8ccd3f3e8e01bfc3f64a1a59cd891bbfee52eed6417d7d7bdcdb461b4e087e87ec92291392d5f74dfe976
7
+ data.tar.gz: 18d6a2125bc01d98ed2ea172b64da931ab83e27547e2aa8436edba7b3a77f87a42ecfda43b39d32cf63b8aa33341dd16c09394e16b0d48e5ecada3c18c0754e7
@@ -0,0 +1,5 @@
1
+ .ruby-version
2
+ Gemfile.lock
3
+ coverage/
4
+ .bundle/
5
+ *.gem
@@ -0,0 +1,1133 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'db/schema.rb'
4
+ DisabledByDefault: true
5
+
6
+ Style/AccessModifierIndentation:
7
+ EnforcedStyle: indent
8
+ SupportedStyles:
9
+ - outdent
10
+ - indent
11
+ IndentationWidth:
12
+
13
+ Style/Alias:
14
+ EnforcedStyle: prefer_alias_method
15
+ SupportedStyles:
16
+ - prefer_alias
17
+ - prefer_alias_method
18
+
19
+ Style/AlignHash:
20
+ EnforcedHashRocketStyle: key
21
+ EnforcedColonStyle: key
22
+ EnforcedLastArgumentHashStyle: ignore_implicit
23
+ SupportedLastArgumentHashStyles:
24
+ - always_inspect
25
+ - always_ignore
26
+ - ignore_implicit
27
+ - ignore_explicit
28
+
29
+ Style/AlignParameters:
30
+ EnforcedStyle: with_fixed_indentation
31
+ SupportedStyles:
32
+ - with_first_parameter
33
+ - with_fixed_indentation
34
+ IndentationWidth:
35
+
36
+ Style/AndOr:
37
+ EnforcedStyle: always
38
+ SupportedStyles:
39
+ - always
40
+ - conditionals
41
+
42
+ Style/BarePercentLiterals:
43
+ EnforcedStyle: bare_percent
44
+ SupportedStyles:
45
+ - percent_q
46
+ - bare_percent
47
+
48
+ Style/BlockDelimiters:
49
+ EnforcedStyle: line_count_based
50
+ SupportedStyles:
51
+ - line_count_based
52
+ - semantic
53
+ - braces_for_chaining
54
+ ProceduralMethods:
55
+ - benchmark
56
+ - bm
57
+ - bmbm
58
+ - create
59
+ - each_with_object
60
+ - measure
61
+ - new
62
+ - realtime
63
+ - tap
64
+ - with_object
65
+ FunctionalMethods:
66
+ - let
67
+ - let!
68
+ - subject
69
+ - watch
70
+ IgnoredMethods:
71
+ - lambda
72
+ - proc
73
+ - it
74
+
75
+ Style/BracesAroundHashParameters:
76
+ EnforcedStyle: no_braces
77
+ SupportedStyles:
78
+ - braces
79
+ - no_braces
80
+ - context_dependent
81
+
82
+ Style/CaseIndentation:
83
+ IndentWhenRelativeTo: end
84
+ SupportedStyles:
85
+ - case
86
+ - end
87
+ IndentOneStep: false
88
+ IndentationWidth:
89
+
90
+ Style/ClassAndModuleChildren:
91
+ EnforcedStyle: nested
92
+ SupportedStyles:
93
+ - nested
94
+ - compact
95
+
96
+ Style/ClassCheck:
97
+ EnforcedStyle: is_a?
98
+ SupportedStyles:
99
+ - is_a?
100
+ - kind_of?
101
+
102
+ Style/CommandLiteral:
103
+ EnforcedStyle: backticks
104
+ SupportedStyles:
105
+ - backticks
106
+ - percent_x
107
+ - mixed
108
+ AllowInnerBackticks: false
109
+
110
+ Style/CommentAnnotation:
111
+ Keywords:
112
+ - TODO
113
+ - FIXME
114
+ - OPTIMIZE
115
+ - HACK
116
+ - REVIEW
117
+
118
+ Style/ConditionalAssignment:
119
+ EnforcedStyle: assign_to_condition
120
+ SupportedStyles:
121
+ - assign_to_condition
122
+ - assign_inside_condition
123
+ SingleLineConditionsOnly: true
124
+
125
+ Style/DotPosition:
126
+ EnforcedStyle: leading
127
+ SupportedStyles:
128
+ - leading
129
+ - trailing
130
+
131
+ Style/EmptyElse:
132
+ EnforcedStyle: both
133
+ SupportedStyles:
134
+ - empty
135
+ - nil
136
+ - both
137
+
138
+ Style/EmptyLineBetweenDefs:
139
+ AllowAdjacentOneLineDefs: false
140
+
141
+ Style/EmptyLinesAroundBlockBody:
142
+ EnforcedStyle: no_empty_lines
143
+ SupportedStyles:
144
+ - empty_lines
145
+ - no_empty_lines
146
+
147
+ Style/EmptyLinesAroundClassBody:
148
+ EnforcedStyle: no_empty_lines
149
+ SupportedStyles:
150
+ - empty_lines
151
+ - empty_lines_except_namespace
152
+ - no_empty_lines
153
+
154
+ Style/EmptyLinesAroundModuleBody:
155
+ EnforcedStyle: no_empty_lines
156
+ SupportedStyles:
157
+ - empty_lines
158
+ - empty_lines_except_namespace
159
+ - no_empty_lines
160
+
161
+ Style/ExtraSpacing:
162
+ AllowForAlignment: true
163
+ ForceEqualSignAlignment: false
164
+
165
+ Style/FileName:
166
+ Exclude: []
167
+ ExpectMatchingDefinition: false
168
+ Regex:
169
+ IgnoreExecutableScripts: true
170
+
171
+ Style/FirstParameterIndentation:
172
+ EnforcedStyle: consistent
173
+ SupportedStyles:
174
+ - consistent
175
+ - special_for_inner_method_call
176
+ - special_for_inner_method_call_in_parentheses
177
+ IndentationWidth:
178
+
179
+ Style/For:
180
+ EnforcedStyle: each
181
+ SupportedStyles:
182
+ - for
183
+ - each
184
+
185
+ Style/FormatString:
186
+ EnforcedStyle: format
187
+ SupportedStyles:
188
+ - format
189
+ - sprintf
190
+ - percent
191
+
192
+ Style/GlobalVars:
193
+ AllowedVariables: []
194
+
195
+ Style/HashSyntax:
196
+ EnforcedStyle: ruby19
197
+ SupportedStyles:
198
+ - ruby19
199
+ - hash_rockets
200
+ - no_mixed_keys
201
+ - ruby19_no_mixed_keys
202
+ UseHashRocketsWithSymbolValues: false
203
+ PreferHashRocketsForNonAlnumEndingSymbols: false
204
+
205
+ Style/IndentationConsistency:
206
+ EnforcedStyle: normal
207
+ SupportedStyles:
208
+ - normal
209
+ - rails
210
+
211
+ Style/IndentationWidth:
212
+ Width: 2
213
+
214
+ Style/IndentArray:
215
+ EnforcedStyle: consistent
216
+ SupportedStyles:
217
+ - special_inside_parentheses
218
+ - consistent
219
+ - align_brackets
220
+ IndentationWidth:
221
+
222
+ Style/IndentAssignment:
223
+ IndentationWidth:
224
+
225
+ Style/IndentHash:
226
+ EnforcedStyle: consistent
227
+ SupportedStyles:
228
+ - special_inside_parentheses
229
+ - consistent
230
+ - align_braces
231
+ IndentationWidth:
232
+
233
+ Style/LambdaCall:
234
+ EnforcedStyle: call
235
+ SupportedStyles:
236
+ - call
237
+ - braces
238
+
239
+ Style/Next:
240
+ EnforcedStyle: skip_modifier_ifs
241
+ MinBodyLength: 3
242
+ SupportedStyles:
243
+ - skip_modifier_ifs
244
+ - always
245
+
246
+ Style/NonNilCheck:
247
+ IncludeSemanticChanges: false
248
+
249
+ Style/MethodDefParentheses:
250
+ EnforcedStyle: require_parentheses
251
+ SupportedStyles:
252
+ - require_parentheses
253
+ - require_no_parentheses
254
+ - require_no_parentheses_except_multiline
255
+
256
+ Style/MethodName:
257
+ EnforcedStyle: snake_case
258
+ SupportedStyles:
259
+ - snake_case
260
+ - camelCase
261
+
262
+ Style/MultilineArrayBraceLayout:
263
+ EnforcedStyle: symmetrical
264
+ SupportedStyles:
265
+ - symmetrical
266
+ - new_line
267
+ - same_line
268
+
269
+ Style/MultilineHashBraceLayout:
270
+ EnforcedStyle: symmetrical
271
+ SupportedStyles:
272
+ - symmetrical
273
+ - new_line
274
+ - same_line
275
+
276
+ Style/MultilineMethodCallBraceLayout:
277
+ EnforcedStyle: symmetrical
278
+ SupportedStyles:
279
+ - symmetrical
280
+ - new_line
281
+ - same_line
282
+
283
+ Style/MultilineMethodCallIndentation:
284
+ EnforcedStyle: indented
285
+ SupportedStyles:
286
+ - aligned
287
+ - indented
288
+ - indented_relative_to_receiver
289
+ IndentationWidth: 2
290
+
291
+ Style/MultilineMethodDefinitionBraceLayout:
292
+ EnforcedStyle: symmetrical
293
+ SupportedStyles:
294
+ - symmetrical
295
+ - new_line
296
+ - same_line
297
+
298
+ Style/NumericLiteralPrefix:
299
+ EnforcedOctalStyle: zero_only
300
+ SupportedOctalStyles:
301
+ - zero_with_o
302
+ - zero_only
303
+
304
+ Style/ParenthesesAroundCondition:
305
+ AllowSafeAssignment: true
306
+
307
+ Style/PercentLiteralDelimiters:
308
+ PreferredDelimiters:
309
+ '%': '()'
310
+ '%i': '()'
311
+ '%q': '()'
312
+ '%Q': '()'
313
+ '%r': '{}'
314
+ '%s': '()'
315
+ '%w': '()'
316
+ '%W': '()'
317
+ '%x': '()'
318
+
319
+ Style/PercentQLiterals:
320
+ EnforcedStyle: lower_case_q
321
+ SupportedStyles:
322
+ - lower_case_q
323
+ - upper_case_q
324
+
325
+ Style/PredicateName:
326
+ NamePrefix:
327
+ - is_
328
+ - has_
329
+ - have_
330
+ NamePrefixBlacklist:
331
+ - is_
332
+ - has_
333
+ - have_
334
+ NameWhitelist:
335
+ - is_a?
336
+ Exclude:
337
+ - 'spec/**/*'
338
+
339
+ Style/PreferredHashMethods:
340
+ EnforcedStyle: short
341
+ SupportedStyles:
342
+ - short
343
+ - verbose
344
+
345
+ Style/RaiseArgs:
346
+ EnforcedStyle: exploded
347
+ SupportedStyles:
348
+ - compact
349
+ - exploded
350
+
351
+ Style/RedundantReturn:
352
+ AllowMultipleReturnValues: false
353
+
354
+ Style/RegexpLiteral:
355
+ EnforcedStyle: slashes
356
+ SupportedStyles:
357
+ - slashes
358
+ - percent_r
359
+ - mixed
360
+ AllowInnerSlashes: false
361
+
362
+ Style/SafeNavigation:
363
+ ConvertCodeThatCanStartToReturnNil: false
364
+
365
+ Style/Semicolon:
366
+ AllowAsExpressionSeparator: false
367
+
368
+ Style/SignalException:
369
+ EnforcedStyle: only_raise
370
+ SupportedStyles:
371
+ - only_raise
372
+ - only_fail
373
+ - semantic
374
+
375
+ Style/SingleLineMethods:
376
+ AllowIfMethodIsEmpty: true
377
+
378
+ Style/SpaceBeforeFirstArg:
379
+ AllowForAlignment: true
380
+
381
+ Style/SpecialGlobalVars:
382
+ EnforcedStyle: use_english_names
383
+ SupportedStyles:
384
+ - use_perl_names
385
+ - use_english_names
386
+
387
+ Style/StabbyLambdaParentheses:
388
+ EnforcedStyle: require_parentheses
389
+ SupportedStyles:
390
+ - require_parentheses
391
+ - require_no_parentheses
392
+
393
+ Style/StringLiteralsInInterpolation:
394
+ EnforcedStyle: single_quotes
395
+ SupportedStyles:
396
+ - single_quotes
397
+ - double_quotes
398
+
399
+ Style/SpaceAroundBlockParameters:
400
+ EnforcedStyleInsidePipes: no_space
401
+ SupportedStyles:
402
+ - space
403
+ - no_space
404
+
405
+ Style/SpaceAroundEqualsInParameterDefault:
406
+ EnforcedStyle: space
407
+ SupportedStyles:
408
+ - space
409
+ - no_space
410
+
411
+ Style/SpaceAroundOperators:
412
+ AllowForAlignment: true
413
+
414
+ Style/SpaceBeforeBlockBraces:
415
+ EnforcedStyle: space
416
+ SupportedStyles:
417
+ - space
418
+ - no_space
419
+
420
+ Style/SpaceInsideBlockBraces:
421
+ EnforcedStyle: space
422
+ SupportedStyles:
423
+ - space
424
+ - no_space
425
+ EnforcedStyleForEmptyBraces: no_space
426
+ SpaceBeforeBlockParameters: true
427
+
428
+ Style/SpaceInsideHashLiteralBraces:
429
+ EnforcedStyle: space
430
+ EnforcedStyleForEmptyBraces: no_space
431
+ SupportedStyles:
432
+ - space
433
+ - no_space
434
+ - compact
435
+
436
+ Style/SpaceInsideStringInterpolation:
437
+ EnforcedStyle: no_space
438
+ SupportedStyles:
439
+ - space
440
+ - no_space
441
+
442
+ Style/SymbolProc:
443
+ IgnoredMethods:
444
+ - respond_to
445
+ - define_method
446
+
447
+ Style/TernaryParentheses:
448
+ EnforcedStyle: require_no_parentheses
449
+ SupportedStyles:
450
+ - require_parentheses
451
+ - require_no_parentheses
452
+ AllowSafeAssignment: true
453
+
454
+ Style/TrailingBlankLines:
455
+ EnforcedStyle: final_newline
456
+ SupportedStyles:
457
+ - final_newline
458
+ - final_blank_line
459
+
460
+ Style/TrivialAccessors:
461
+ ExactNameMatch: true
462
+ AllowPredicates: true
463
+ AllowDSLWriters: false
464
+ IgnoreClassMethods: false
465
+ Whitelist:
466
+ - to_ary
467
+ - to_a
468
+ - to_c
469
+ - to_enum
470
+ - to_h
471
+ - to_hash
472
+ - to_i
473
+ - to_int
474
+ - to_io
475
+ - to_open
476
+ - to_path
477
+ - to_proc
478
+ - to_r
479
+ - to_regexp
480
+ - to_str
481
+ - to_s
482
+ - to_sym
483
+
484
+ Style/VariableName:
485
+ EnforcedStyle: snake_case
486
+ SupportedStyles:
487
+ - snake_case
488
+ - camelCase
489
+
490
+ Style/WhileUntilModifier:
491
+ MaxLineLength: 80
492
+
493
+ Style/WordArray:
494
+ EnforcedStyle: percent
495
+ SupportedStyles:
496
+ - percent
497
+ - brackets
498
+ MinSize: 0
499
+ WordRegex: !ruby/regexp /\A[\p{Word}\n\t]+\z/
500
+
501
+ Metrics/BlockNesting:
502
+ Max: 3
503
+
504
+ Metrics/LineLength:
505
+ Max: 120
506
+ AllowHeredoc: true
507
+ AllowURI: true
508
+ URISchemes:
509
+ - http
510
+ - https
511
+ IgnoreCopDirectives: false
512
+ IgnoredPatterns:
513
+ - '\A\s*test\s.*(do|->)\Z'
514
+
515
+ Metrics/ParameterLists:
516
+ Max: 5
517
+ CountKeywordArgs: false
518
+
519
+ Lint/BlockAlignment:
520
+ AlignWith: either
521
+ SupportedStyles:
522
+ - either
523
+ - start_of_block
524
+ - start_of_line
525
+
526
+ Lint/EndAlignment:
527
+ AlignWith: variable
528
+ SupportedStyles:
529
+ - keyword
530
+ - variable
531
+ - start_of_line
532
+
533
+ Lint/DefEndAlignment:
534
+ AlignWith: start_of_line
535
+ SupportedStyles:
536
+ - start_of_line
537
+ - def
538
+
539
+ Lint/InheritException:
540
+ EnforcedStyle: runtime_error
541
+ SupportedStyles:
542
+ - runtime_error
543
+ - standard_error
544
+
545
+ Lint/UnusedBlockArgument:
546
+ IgnoreEmptyBlocks: true
547
+ AllowUnusedKeywordArguments: false
548
+
549
+ Lint/UnusedMethodArgument:
550
+ AllowUnusedKeywordArguments: false
551
+ IgnoreEmptyMethods: true
552
+
553
+ Performance/RedundantMerge:
554
+ MaxKeyValuePairs: 2
555
+
556
+ Rails/ActionFilter:
557
+ EnforcedStyle: action
558
+ SupportedStyles:
559
+ - action
560
+ - filter
561
+ Include:
562
+ - app/controllers/**/*.rb
563
+
564
+ Rails/Date:
565
+ EnforcedStyle: flexible
566
+ SupportedStyles:
567
+ - strict
568
+ - flexible
569
+
570
+ Rails/DynamicFindBy:
571
+ Whitelist:
572
+ - find_by_sql
573
+
574
+ Rails/Exit:
575
+ Include:
576
+ - app/**/*.rb
577
+ - config/**/*.rb
578
+ - lib/**/*.rb
579
+ Exclude:
580
+ - 'lib/**/*.rake'
581
+
582
+ Rails/FindBy:
583
+ Include:
584
+ - app/models/**/*.rb
585
+
586
+ Rails/FindEach:
587
+ Include:
588
+ - app/models/**/*.rb
589
+
590
+ Rails/HasAndBelongsToMany:
591
+ Include:
592
+ - app/models/**/*.rb
593
+
594
+ Rails/NotNullColumn:
595
+ Include:
596
+ - db/migrate/*.rb
597
+
598
+ Rails/Output:
599
+ Include:
600
+ - app/**/*.rb
601
+ - config/**/*.rb
602
+ - db/**/*.rb
603
+ - lib/**/*.rb
604
+
605
+ Rails/ReadWriteAttribute:
606
+ Include:
607
+ - app/models/**/*.rb
608
+
609
+ Rails/RequestReferer:
610
+ EnforcedStyle: referer
611
+ SupportedStyles:
612
+ - referer
613
+ - referrer
614
+
615
+ Rails/SafeNavigation:
616
+ ConvertTry: false
617
+
618
+ Rails/ScopeArgs:
619
+ Include:
620
+ - app/models/**/*.rb
621
+
622
+ Rails/TimeZone:
623
+ EnforcedStyle: flexible
624
+ SupportedStyles:
625
+ - strict
626
+ - flexible
627
+
628
+ Rails/UniqBeforePluck:
629
+ EnforcedMode: conservative
630
+ SupportedModes:
631
+ - conservative
632
+ - aggressive
633
+
634
+ Rails/Validation:
635
+ Include:
636
+ - app/models/**/*.rb
637
+
638
+ Style/AccessorMethodName:
639
+ Enabled: true
640
+
641
+ Style/AlignArray:
642
+ Enabled: true
643
+
644
+ Style/ArrayJoin:
645
+ Enabled: true
646
+
647
+ Style/AsciiIdentifiers:
648
+ Enabled: true
649
+
650
+ Style/Attr:
651
+ Enabled: true
652
+
653
+ Style/BeginBlock:
654
+ Enabled: true
655
+
656
+ Style/BlockComments:
657
+ Enabled: true
658
+
659
+ Style/BlockEndNewline:
660
+ Enabled: true
661
+
662
+ Style/CaseEquality:
663
+ Enabled: true
664
+
665
+ Style/CharacterLiteral:
666
+ Enabled: true
667
+
668
+ Style/ClassAndModuleCamelCase:
669
+ Enabled: true
670
+
671
+ Style/ClassMethods:
672
+ Enabled: true
673
+
674
+ Style/ClassVars:
675
+ Enabled: true
676
+
677
+ Style/ClosingParenthesisIndentation:
678
+ Enabled: true
679
+
680
+ Style/ColonMethodCall:
681
+ Enabled: true
682
+
683
+ Style/CommentIndentation:
684
+ Enabled: true
685
+
686
+ Style/ConstantName:
687
+ Enabled: true
688
+
689
+ Style/DefWithParentheses:
690
+ Enabled: true
691
+
692
+ Style/EachForSimpleLoop:
693
+ Enabled: true
694
+
695
+ Style/EachWithObject:
696
+ Enabled: true
697
+
698
+ Style/ElseAlignment:
699
+ Enabled: true
700
+
701
+ Style/EmptyCaseCondition:
702
+ Enabled: true
703
+
704
+ Style/EmptyLines:
705
+ Enabled: true
706
+
707
+ Style/EmptyLinesAroundAccessModifier:
708
+ Enabled: true
709
+
710
+ Style/EmptyLinesAroundMethodBody:
711
+ Enabled: true
712
+
713
+ Style/EmptyLiteral:
714
+ Enabled: true
715
+
716
+ Style/EndBlock:
717
+ Enabled: true
718
+
719
+ Style/EndOfLine:
720
+ Enabled: true
721
+
722
+ Style/EvenOdd:
723
+ Enabled: true
724
+
725
+ Style/InitialIndentation:
726
+ Enabled: true
727
+
728
+ Style/FlipFlop:
729
+ Enabled: true
730
+
731
+ Style/IfInsideElse:
732
+ Enabled: true
733
+
734
+ Style/IfUnlessModifierOfIfUnless:
735
+ Enabled: true
736
+
737
+ Style/IfWithSemicolon:
738
+ Enabled: true
739
+
740
+ Style/IdenticalConditionalBranches:
741
+ Enabled: true
742
+
743
+ Style/InfiniteLoop:
744
+ Enabled: true
745
+
746
+ Style/LeadingCommentSpace:
747
+ Enabled: true
748
+
749
+ Style/LineEndConcatenation:
750
+ Enabled: true
751
+
752
+ Style/MethodCallParentheses:
753
+ Enabled: true
754
+
755
+ Style/MethodMissing:
756
+ Enabled: true
757
+
758
+ Style/MultilineBlockChain:
759
+ Enabled: true
760
+
761
+ Style/MultilineBlockLayout:
762
+ Enabled: true
763
+
764
+ Style/MultilineIfThen:
765
+ Enabled: true
766
+
767
+ Style/MultilineMemoization:
768
+ Enabled: true
769
+
770
+ Style/MultilineTernaryOperator:
771
+ Enabled: true
772
+
773
+ Style/NegatedIf:
774
+ Enabled: true
775
+
776
+ Style/NegatedWhile:
777
+ Enabled: true
778
+
779
+ Style/NestedModifier:
780
+ Enabled: true
781
+
782
+ Style/NestedParenthesizedCalls:
783
+ Enabled: true
784
+
785
+ Style/NestedTernaryOperator:
786
+ Enabled: true
787
+
788
+ Style/NilComparison:
789
+ Enabled: true
790
+
791
+ Style/Not:
792
+ Enabled: true
793
+
794
+ Style/OneLineConditional:
795
+ Enabled: true
796
+
797
+ Style/OpMethod:
798
+ Enabled: true
799
+
800
+ Style/OptionalArguments:
801
+ Enabled: true
802
+
803
+ Style/ParallelAssignment:
804
+ Enabled: true
805
+
806
+ Style/PerlBackrefs:
807
+ Enabled: true
808
+
809
+ Style/Proc:
810
+ Enabled: true
811
+
812
+ Style/RedundantBegin:
813
+ Enabled: true
814
+
815
+ Style/RedundantException:
816
+ Enabled: true
817
+
818
+ Style/RedundantFreeze:
819
+ Enabled: true
820
+
821
+ Style/RedundantParentheses:
822
+ Enabled: true
823
+
824
+ Style/RedundantSelf:
825
+ Enabled: true
826
+
827
+ Style/RescueEnsureAlignment:
828
+ Enabled: true
829
+
830
+ Style/RescueModifier:
831
+ Enabled: true
832
+
833
+ Style/SelfAssignment:
834
+ Enabled: true
835
+
836
+ Style/SpaceAfterColon:
837
+ Enabled: true
838
+
839
+ Style/SpaceAfterComma:
840
+ Enabled: true
841
+
842
+ Style/SpaceAfterMethodName:
843
+ Enabled: true
844
+
845
+ Style/SpaceAfterNot:
846
+ Enabled: true
847
+
848
+ Style/SpaceAfterSemicolon:
849
+ Enabled: true
850
+
851
+ Style/SpaceBeforeComma:
852
+ Enabled: true
853
+
854
+ Style/SpaceBeforeComment:
855
+ Enabled: true
856
+
857
+ Style/SpaceBeforeSemicolon:
858
+ Enabled: true
859
+
860
+ Style/SpaceAroundKeyword:
861
+ Enabled: true
862
+
863
+ Style/SpaceInsideArrayPercentLiteral:
864
+ Enabled: true
865
+
866
+ Style/SpaceInsidePercentLiteralDelimiters:
867
+ Enabled: true
868
+
869
+ Style/SpaceInsideBrackets:
870
+ Enabled: true
871
+
872
+ Style/SpaceInsideParens:
873
+ Enabled: true
874
+
875
+ Style/SpaceInsideRangeLiteral:
876
+ Enabled: true
877
+
878
+ Style/SymbolLiteral:
879
+ Enabled: true
880
+
881
+ Style/Tab:
882
+ Enabled: true
883
+
884
+ Style/TrailingWhitespace:
885
+ Enabled: true
886
+
887
+ Style/UnlessElse:
888
+ Enabled: true
889
+
890
+ Style/UnneededCapitalW:
891
+ Enabled: true
892
+
893
+ Style/UnneededInterpolation:
894
+ Enabled: true
895
+
896
+ Style/UnneededPercentQ:
897
+ Enabled: true
898
+
899
+ Style/VariableInterpolation:
900
+ Enabled: true
901
+
902
+ Style/WhenThen:
903
+ Enabled: true
904
+
905
+ Style/WhileUntilDo:
906
+ Enabled: true
907
+
908
+ Style/ZeroLengthPredicate:
909
+ Enabled: true
910
+
911
+ Lint/AmbiguousOperator:
912
+ Enabled: true
913
+
914
+ Lint/AmbiguousRegexpLiteral:
915
+ Enabled: true
916
+
917
+ Lint/CircularArgumentReference:
918
+ Enabled: true
919
+
920
+ Lint/ConditionPosition:
921
+ Enabled: true
922
+
923
+ Lint/Debugger:
924
+ Enabled: true
925
+
926
+ Lint/DeprecatedClassMethods:
927
+ Enabled: true
928
+
929
+ Lint/DuplicateMethods:
930
+ Enabled: true
931
+
932
+ Lint/DuplicatedKey:
933
+ Enabled: true
934
+
935
+ Lint/EachWithObjectArgument:
936
+ Enabled: true
937
+
938
+ Lint/ElseLayout:
939
+ Enabled: true
940
+
941
+ Lint/EmptyEnsure:
942
+ Enabled: true
943
+
944
+ Lint/EmptyInterpolation:
945
+ Enabled: true
946
+
947
+ Lint/EndInMethod:
948
+ Enabled: true
949
+
950
+ Lint/EnsureReturn:
951
+ Enabled: true
952
+
953
+ Lint/Eval:
954
+ Enabled: true
955
+
956
+ Lint/FloatOutOfRange:
957
+ Enabled: true
958
+
959
+ Lint/FormatParameterMismatch:
960
+ Enabled: true
961
+
962
+ Lint/HandleExceptions:
963
+ Enabled: true
964
+
965
+ Lint/ImplicitStringConcatenation:
966
+ Description: Checks for adjacent string literals on the same line, which could
967
+ better be represented as a single string literal.
968
+
969
+ Lint/IneffectiveAccessModifier:
970
+ Description: Checks for attempts to use `private` or `protected` to set the visibility
971
+ of a class method, which does not work.
972
+
973
+ Lint/InvalidCharacterLiteral:
974
+ Description: Checks for invalid character literals with a non-escaped whitespace
975
+ character.
976
+
977
+ Lint/LiteralInCondition:
978
+ Enabled: true
979
+
980
+ Lint/LiteralInInterpolation:
981
+ Enabled: true
982
+
983
+ Lint/Loop:
984
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
985
+ for post-loop tests.
986
+
987
+ Lint/NestedMethodDefinition:
988
+ Enabled: true
989
+
990
+ Lint/NextWithoutAccumulator:
991
+ Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject`
992
+ block.
993
+
994
+ Lint/NonLocalExitFromIterator:
995
+ Enabled: true
996
+
997
+ Lint/ParenthesesAsGroupedExpression:
998
+ Enabled: true
999
+
1000
+ Lint/PercentStringArray:
1001
+ Enabled: true
1002
+
1003
+ Lint/PercentSymbolArray:
1004
+ Enabled: true
1005
+
1006
+ Lint/RandOne:
1007
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most
1008
+ likely a mistake.
1009
+
1010
+ Lint/RequireParentheses:
1011
+ Enabled: true
1012
+
1013
+ Lint/RescueException:
1014
+ Enabled: true
1015
+
1016
+ Lint/ShadowedException:
1017
+ Enabled: true
1018
+
1019
+ Lint/ShadowingOuterLocalVariable:
1020
+ Enabled: true
1021
+
1022
+ Lint/StringConversionInInterpolation:
1023
+ Enabled: true
1024
+
1025
+ Lint/UnderscorePrefixedVariableName:
1026
+ Enabled: true
1027
+
1028
+ Lint/UnifiedInteger:
1029
+ Enabled: true
1030
+
1031
+ Lint/UnneededDisable:
1032
+ Enabled: true
1033
+
1034
+ Lint/UnneededSplatExpansion:
1035
+ Enabled: true
1036
+
1037
+ Lint/UnreachableCode:
1038
+ Enabled: true
1039
+
1040
+ Lint/UselessAccessModifier:
1041
+ ContextCreatingMethods: []
1042
+
1043
+ Lint/UselessAssignment:
1044
+ Enabled: true
1045
+
1046
+ Lint/UselessComparison:
1047
+ Enabled: true
1048
+
1049
+ Lint/UselessElseWithoutRescue:
1050
+ Enabled: true
1051
+
1052
+ Lint/UselessSetterCall:
1053
+ Enabled: true
1054
+
1055
+ Lint/Void:
1056
+ Enabled: true
1057
+
1058
+ Performance/CaseWhenSplat:
1059
+ Enabled: true
1060
+
1061
+ Performance/Count:
1062
+ SafeMode: true
1063
+
1064
+ Performance/Detect:
1065
+ SafeMode: true
1066
+
1067
+ Performance/DoubleStartEndWith:
1068
+ Enabled: true
1069
+
1070
+ Performance/EndWith:
1071
+ Enabled: true
1072
+
1073
+ Performance/FixedSize:
1074
+ Enabled: true
1075
+
1076
+ Performance/FlatMap:
1077
+ EnabledForFlattenWithoutParams: false
1078
+
1079
+ Performance/HashEachMethods:
1080
+ Enabled: true
1081
+
1082
+ Performance/LstripRstrip:
1083
+ Enabled: true
1084
+
1085
+ Performance/RangeInclude:
1086
+ Enabled: true
1087
+
1088
+ Performance/RedundantBlockCall:
1089
+ Enabled: true
1090
+
1091
+ Performance/RedundantMatch:
1092
+ Enabled: true
1093
+
1094
+ Performance/RedundantSortBy:
1095
+ Enabled: true
1096
+
1097
+ Performance/ReverseEach:
1098
+ Enabled: true
1099
+
1100
+ Performance/Sample:
1101
+ Enabled: true
1102
+
1103
+ Performance/Size:
1104
+ Enabled: true
1105
+
1106
+ Performance/CompareWithBlock:
1107
+ Enabled: true
1108
+
1109
+ Performance/StartWith:
1110
+ Enabled: true
1111
+
1112
+ Performance/StringReplacement:
1113
+ Enabled: true
1114
+
1115
+ Rails/Delegate:
1116
+ Enabled: true
1117
+
1118
+ Rails/DelegateAllowBlank:
1119
+ Enabled: true
1120
+
1121
+ Rails/HttpPositionalArguments:
1122
+ Include:
1123
+ - spec/**/*
1124
+ - test/**/*
1125
+
1126
+ Rails/OutputSafety:
1127
+ Enabled: true
1128
+
1129
+ Rails/PluralizationGrammar:
1130
+ Enabled: true
1131
+
1132
+ Security/JSONLoad:
1133
+ Enabled: true