sun-sword 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +1141 -0
  4. data/CHANGELOG.md +5 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +96 -0
  7. data/Rakefile +12 -0
  8. data/lib/generators/sun_sword/USAGE +9 -0
  9. data/lib/generators/sun_sword/frontend_generator.rb +148 -0
  10. data/lib/generators/sun_sword/scaffold_generator.rb +97 -0
  11. data/lib/generators/sun_sword/templates_frontend/Procfile.dev +1 -0
  12. data/lib/generators/sun_sword/templates_frontend/assets/config/manifest.js +1 -0
  13. data/lib/generators/sun_sword/templates_frontend/bin/watch +3 -0
  14. data/lib/generators/sun_sword/templates_frontend/config/database.yml +21 -0
  15. data/lib/generators/sun_sword/templates_frontend/config/vite.json +17 -0
  16. data/lib/generators/sun_sword/templates_frontend/controllers/application_controller.rb.tt +36 -0
  17. data/lib/generators/sun_sword/templates_frontend/controllers/dashboard/site_controller.rb +6 -0
  18. data/lib/generators/sun_sword/templates_frontend/controllers/site_controller.rb +15 -0
  19. data/lib/generators/sun_sword/templates_frontend/env.development +14 -0
  20. data/lib/generators/sun_sword/templates_frontend/frontend/assets/images/.keep +0 -0
  21. data/lib/generators/sun_sword/templates_frontend/frontend/assets/images/kotaro.ico +0 -0
  22. data/lib/generators/sun_sword/templates_frontend/frontend/assets/images/logo.svg +16 -0
  23. data/lib/generators/sun_sword/templates_frontend/frontend/assets/images/profile.jpeg +0 -0
  24. data/lib/generators/sun_sword/templates_frontend/frontend/entrypoints/application.js +17 -0
  25. data/lib/generators/sun_sword/templates_frontend/frontend/entrypoints/stimulus.js +9 -0
  26. data/lib/generators/sun_sword/templates_frontend/frontend/pages/stimulus.js +10 -0
  27. data/lib/generators/sun_sword/templates_frontend/frontend/pages/web.js +122 -0
  28. data/lib/generators/sun_sword/templates_frontend/frontend/stylesheets/application.scss +198 -0
  29. data/lib/generators/sun_sword/templates_frontend/helpers/application_helper.rb +5 -0
  30. data/lib/generators/sun_sword/templates_frontend/package.json +7 -0
  31. data/lib/generators/sun_sword/templates_frontend/postcss.config.js +6 -0
  32. data/lib/generators/sun_sword/templates_frontend/rubocop.yml.tt +1141 -0
  33. data/lib/generators/sun_sword/templates_frontend/tailwind.config.js +39 -0
  34. data/lib/generators/sun_sword/templates_frontend/views/components/_action_destroy.html.erb.tt +48 -0
  35. data/lib/generators/sun_sword/templates_frontend/views/components/_action_edit.html.erb.tt +7 -0
  36. data/lib/generators/sun_sword/templates_frontend/views/components/_action_show.html.erb.tt +8 -0
  37. data/lib/generators/sun_sword/templates_frontend/views/components/_alert.html.erb.tt +66 -0
  38. data/lib/generators/sun_sword/templates_frontend/views/components/_error_form_submit.html.erb.tt +20 -0
  39. data/lib/generators/sun_sword/templates_frontend/views/components/_link_action.html.erb.tt +9 -0
  40. data/lib/generators/sun_sword/templates_frontend/views/components/layouts/_sidebar_logo.html.erb +18 -0
  41. data/lib/generators/sun_sword/templates_frontend/views/layouts/application.html.erb.tt +42 -0
  42. data/lib/generators/sun_sword/templates_frontend/views/layouts/dashboard/_sidebar.html.erb.tt +60 -0
  43. data/lib/generators/sun_sword/templates_frontend/views/layouts/dashboard/application.html.erb.tt +71 -0
  44. data/lib/generators/sun_sword/templates_frontend/views/site/_comment.html.erb.tt +3 -0
  45. data/lib/generators/sun_sword/templates_frontend/views/site/stimulus.html.erb.tt +26 -0
  46. data/lib/generators/sun_sword/templates_frontend/vite.config.ts.tt +27 -0
  47. data/lib/generators/sun_sword/templates_scaffold/controllers/controller.rb.tt +90 -0
  48. data/lib/generators/sun_sword/templates_scaffold/example.rb.tt +2 -0
  49. data/lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt +22 -0
  50. data/lib/generators/sun_sword/templates_scaffold/views/components/menu/link.html.erb.tt +1 -0
  51. data/lib/generators/sun_sword/templates_scaffold/views/edit.html.erb.tt +10 -0
  52. data/lib/generators/sun_sword/templates_scaffold/views/index.html.erb.tt +50 -0
  53. data/lib/generators/sun_sword/templates_scaffold/views/new.html.erb.tt +10 -0
  54. data/lib/generators/sun_sword/templates_scaffold/views/show.html.erb.tt +26 -0
  55. data/lib/sun-sword.rb +7 -0
  56. data/lib/sun_sword/version.rb +6 -0
  57. metadata +141 -0
data/.rubocop.yml ADDED
@@ -0,0 +1,1141 @@
1
+ # Omakase Ruby styling for Rails
2
+ inherit_gem: { rubocop-rails-omakase: rubocop.yml }
3
+
4
+ # Overwrite or add rules to create your own house style
5
+ #
6
+ # # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
7
+ # Layout/SpaceInsideArrayLiteralBrackets:
8
+ # Enabled: false
9
+
10
+ AllCops:
11
+ SuggestExtensions: false
12
+ TargetRubyVersion: 3.3.4
13
+ DisabledByDefault: true
14
+ Exclude:
15
+ - '**/templates/**/*'
16
+ - '**/vendor/**/*'
17
+ - '**/vendor/**/.*'
18
+ - '**/node_modules/**/*'
19
+ - 'db/**/*'
20
+ - 'config/**/*'
21
+ - 'script/**/*'
22
+ - 'bin/*'
23
+ - 'public/views/*'
24
+ - 'bin/**/*'
25
+ - 'config/**/*'
26
+ - 'db/**/*'
27
+ - 'tmp/**/*'
28
+ - 'spec/spec_helper.rb'
29
+ - 'spec/rails_helper.rb'
30
+ - 'Rakefile'
31
+ - !ruby/regexp /old_and_unused\.rb$/
32
+
33
+ Bundler/InsecureProtocolSource:
34
+ Enabled: true
35
+ Include:
36
+ - '**/*.gemfile'
37
+ - '**/Gemfile'
38
+ - '**/gems.rb'
39
+
40
+ Bundler/DuplicatedGem:
41
+ Enabled: true
42
+ Include:
43
+ - '**/*.gemfile'
44
+ - '**/Gemfile'
45
+ - '**/gems.rb'
46
+
47
+ Bundler/GemComment:
48
+ Enabled: false
49
+
50
+ Bundler/OrderedGems:
51
+ Enabled: true
52
+ Include:
53
+ - '**/*.gemfile'
54
+ - '**/Gemfile'
55
+ - '**/gems.rb'
56
+
57
+ Gemspec/DuplicatedAssignment:
58
+ Enabled: true
59
+ Include:
60
+ - '**/*.gemspec'
61
+
62
+ Gemspec/OrderedDependencies:
63
+ Enabled: true
64
+ Include:
65
+ - '**/*.gemspec'
66
+
67
+ Layout/AccessModifierIndentation:
68
+ Enabled: true
69
+ EnforcedStyle: indent
70
+ IndentationWidth: ~
71
+
72
+ Layout/ArgumentAlignment:
73
+ Enabled: true
74
+ EnforcedStyle: with_first_argument
75
+
76
+ Layout/ArrayAlignment:
77
+ Enabled: true
78
+
79
+ Layout/HashAlignment:
80
+ Enabled: true
81
+ EnforcedColonStyle: table
82
+ EnforcedLastArgumentHashStyle: always_inspect
83
+ EnforcedHashRocketStyle: table
84
+
85
+ Layout/ParameterAlignment:
86
+ Enabled: true
87
+ EnforcedStyle: with_fixed_indentation
88
+ IndentationWidth: ~
89
+
90
+ Layout/BlockAlignment:
91
+ Enabled: true
92
+ EnforcedStyleAlignWith: either
93
+
94
+ Layout/BlockEndNewline:
95
+ Enabled: true
96
+
97
+ # Disabled because IndentOneStep can't be configured for one-liner cases. See:
98
+ # https://github.com/rubocop-hq/rubocop/issues/6447
99
+ # Layout/CaseIndentation:
100
+ # Enabled: true
101
+
102
+ Layout/ClosingHeredocIndentation:
103
+ Enabled: true
104
+
105
+ Layout/ClosingParenthesisIndentation:
106
+ Enabled: false
107
+
108
+ Layout/CommentIndentation:
109
+ Enabled: true
110
+
111
+ Layout/ConditionPosition:
112
+ Enabled: true
113
+
114
+ Layout/DefEndAlignment:
115
+ Enabled: true
116
+ EnforcedStyleAlignWith: start_of_line
117
+ AutoCorrect: false
118
+ Severity: warning
119
+
120
+ Layout/DotPosition:
121
+ Enabled: true
122
+ EnforcedStyle: leading
123
+
124
+ Layout/ElseAlignment:
125
+ Enabled: true
126
+
127
+ Layout/EmptyComment:
128
+ Enabled: true
129
+ AllowBorderComment: true
130
+ AllowMarginComment: true
131
+
132
+ Layout/EmptyLineAfterMagicComment:
133
+ Enabled: true
134
+
135
+ Layout/EmptyLineBetweenDefs:
136
+ Enabled: true
137
+ AllowAdjacentOneLineDefs: false
138
+ NumberOfEmptyLines: 1
139
+
140
+ Layout/EmptyLines:
141
+ Enabled: true
142
+
143
+ Layout/EmptyLinesAroundAccessModifier:
144
+ Enabled: true
145
+
146
+ Layout/EmptyLinesAroundArguments:
147
+ Enabled: true
148
+
149
+ Layout/EmptyLinesAroundBeginBody:
150
+ Enabled: true
151
+
152
+ Layout/EmptyLinesAroundBlockBody:
153
+ Enabled: true
154
+ EnforcedStyle: no_empty_lines
155
+
156
+ Layout/EmptyLinesAroundClassBody:
157
+ Enabled: true
158
+ EnforcedStyle: no_empty_lines
159
+
160
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
161
+ Enabled: true
162
+
163
+ Layout/EmptyLinesAroundMethodBody:
164
+ Enabled: true
165
+
166
+ Layout/EmptyLinesAroundModuleBody:
167
+ Enabled: true
168
+ EnforcedStyle: no_empty_lines
169
+
170
+ Layout/EndAlignment:
171
+ Enabled: true
172
+ AutoCorrect: true
173
+ EnforcedStyleAlignWith: variable
174
+ Severity: warning
175
+
176
+ Layout/EndOfLine:
177
+ Enabled: true
178
+ EnforcedStyle: native
179
+
180
+ Layout/ExtraSpacing:
181
+ Enabled: true
182
+ AllowForAlignment: true
183
+ AllowBeforeTrailingComments: true
184
+ ForceEqualSignAlignment: false
185
+
186
+ Layout/FirstArgumentIndentation:
187
+ Enabled: true
188
+ EnforcedStyle: consistent_relative_to_receiver
189
+
190
+ Layout/FirstArrayElementIndentation:
191
+ Enabled: true
192
+ EnforcedStyle: special_inside_parentheses
193
+ IndentationWidth: ~
194
+
195
+ Layout/AssignmentIndentation:
196
+ Enabled: true
197
+ IndentationWidth: ~
198
+
199
+ Layout/FirstHashElementIndentation:
200
+ Enabled: true
201
+ EnforcedStyle: consistent
202
+ IndentationWidth: ~
203
+
204
+ Layout/HeredocIndentation:
205
+ Enabled: true
206
+
207
+ Layout/IndentationConsistency:
208
+ Enabled: true
209
+ EnforcedStyle: normal
210
+
211
+ Layout/IndentationWidth:
212
+ Enabled: true
213
+ Width: 2
214
+ AllowedPatterns: []
215
+
216
+ Layout/InitialIndentation:
217
+ Enabled: true
218
+
219
+ Layout/LeadingEmptyLines:
220
+ Enabled: true
221
+
222
+ Layout/LeadingCommentSpace:
223
+ Enabled: true
224
+
225
+ Layout/MultilineArrayBraceLayout:
226
+ Enabled: true
227
+ EnforcedStyle: symmetrical
228
+
229
+ Layout/MultilineBlockLayout:
230
+ Enabled: true
231
+
232
+ Layout/MultilineHashBraceLayout:
233
+ Enabled: true
234
+ EnforcedStyle: symmetrical
235
+
236
+ Layout/MultilineMethodCallBraceLayout:
237
+ Enabled: true
238
+ EnforcedStyle: symmetrical
239
+
240
+ Layout/MultilineMethodCallIndentation:
241
+ Enabled: true
242
+ EnforcedStyle: indented
243
+ IndentationWidth: ~
244
+
245
+ Layout/MultilineMethodDefinitionBraceLayout:
246
+ Enabled: true
247
+ EnforcedStyle: symmetrical
248
+
249
+ Layout/MultilineOperationIndentation:
250
+ Enabled: true
251
+ EnforcedStyle: indented
252
+ IndentationWidth: ~
253
+
254
+ Layout/RescueEnsureAlignment:
255
+ Enabled: true
256
+
257
+ Layout/SpaceAfterColon:
258
+ Enabled: true
259
+
260
+ Layout/SpaceAfterComma:
261
+ Enabled: true
262
+
263
+ Layout/SpaceAfterMethodName:
264
+ Enabled: true
265
+
266
+ Layout/SpaceAfterNot:
267
+ Enabled: true
268
+
269
+ Layout/SpaceAfterSemicolon:
270
+ Enabled: true
271
+
272
+ Layout/SpaceAroundBlockParameters:
273
+ Enabled: true
274
+ EnforcedStyleInsidePipes: no_space
275
+
276
+ Layout/SpaceAroundEqualsInParameterDefault:
277
+ Enabled: true
278
+ EnforcedStyle: space
279
+
280
+ Layout/SpaceAroundKeyword:
281
+ Enabled: true
282
+
283
+ Layout/SpaceAroundOperators:
284
+ Enabled: true
285
+ AllowForAlignment: true
286
+
287
+ Layout/SpaceBeforeBlockBraces:
288
+ Enabled: true
289
+ EnforcedStyle: space
290
+ EnforcedStyleForEmptyBraces: space
291
+
292
+ Layout/SpaceBeforeComma:
293
+ Enabled: true
294
+
295
+ Layout/SpaceBeforeComment:
296
+ Enabled: true
297
+
298
+ Layout/SpaceBeforeFirstArg:
299
+ Enabled: true
300
+ AllowForAlignment: true
301
+
302
+ Layout/SpaceBeforeSemicolon:
303
+ Enabled: true
304
+
305
+ Layout/SpaceInLambdaLiteral:
306
+ Enabled: true
307
+ EnforcedStyle: require_no_space
308
+
309
+ Layout/SpaceInsideArrayLiteralBrackets:
310
+ Enabled: true
311
+ EnforcedStyle: no_space
312
+ EnforcedStyleForEmptyBrackets: no_space
313
+
314
+ Layout/SpaceInsideArrayPercentLiteral:
315
+ Enabled: true
316
+
317
+ Layout/SpaceInsideBlockBraces:
318
+ Enabled: true
319
+ EnforcedStyle: space
320
+ EnforcedStyleForEmptyBraces: no_space
321
+ SpaceBeforeBlockParameters: true
322
+
323
+ Layout/SpaceInsideHashLiteralBraces:
324
+ Enabled: true
325
+ EnforcedStyle: space
326
+ EnforcedStyleForEmptyBraces: no_space
327
+
328
+ Layout/SpaceInsideParens:
329
+ Enabled: true
330
+ EnforcedStyle: no_space
331
+
332
+ Layout/SpaceInsidePercentLiteralDelimiters:
333
+ Enabled: true
334
+
335
+ Layout/SpaceInsideRangeLiteral:
336
+ Enabled: true
337
+
338
+ Layout/SpaceInsideReferenceBrackets:
339
+ Enabled: true
340
+ EnforcedStyle: no_space
341
+ EnforcedStyleForEmptyBrackets: no_space
342
+
343
+ Layout/SpaceInsideStringInterpolation:
344
+ Enabled: true
345
+ EnforcedStyle: no_space
346
+
347
+ Layout/IndentationStyle:
348
+ Enabled: true
349
+ IndentationWidth: ~
350
+
351
+ Layout/TrailingEmptyLines:
352
+ Enabled: true
353
+ EnforcedStyle: final_newline
354
+
355
+ Layout/TrailingWhitespace:
356
+ Enabled: true
357
+ AllowInHeredoc: false
358
+
359
+ Lint/AmbiguousOperator:
360
+ Enabled: true
361
+
362
+ Lint/AmbiguousRegexpLiteral:
363
+ Enabled: true
364
+
365
+ Lint/AssignmentInCondition:
366
+ Enabled: true
367
+ AllowSafeAssignment: true
368
+
369
+ Lint/BigDecimalNew:
370
+ Enabled: true
371
+
372
+ Lint/BooleanSymbol:
373
+ Enabled: true
374
+
375
+ Lint/CircularArgumentReference:
376
+ Enabled: true
377
+
378
+ Lint/Debugger:
379
+ Enabled: true
380
+
381
+ Lint/DeprecatedClassMethods:
382
+ Enabled: true
383
+
384
+ Lint/DuplicateCaseCondition:
385
+ Enabled: true
386
+
387
+ Lint/DuplicateMethods:
388
+ Enabled: true
389
+
390
+ Lint/DuplicateHashKey:
391
+ Enabled: true
392
+
393
+ Lint/EachWithObjectArgument:
394
+ Enabled: true
395
+
396
+ Lint/ElseLayout:
397
+ Enabled: true
398
+
399
+ Lint/EmptyEnsure:
400
+ Enabled: true
401
+ AutoCorrect: false
402
+
403
+ Lint/EmptyExpression:
404
+ Enabled: true
405
+
406
+ Lint/EmptyInterpolation:
407
+ Enabled: true
408
+
409
+ Lint/EmptyWhen:
410
+ Enabled: true
411
+
412
+ Lint/EnsureReturn:
413
+ Enabled: true
414
+
415
+ Lint/ErbNewArguments:
416
+ Enabled: true
417
+
418
+ Lint/FlipFlop:
419
+ Enabled: true
420
+
421
+ Lint/FloatOutOfRange:
422
+ Enabled: true
423
+
424
+ Lint/FormatParameterMismatch:
425
+ Enabled: true
426
+
427
+ Lint/ImplicitStringConcatenation:
428
+ Enabled: true
429
+
430
+ Lint/IneffectiveAccessModifier:
431
+ Enabled: true
432
+
433
+ Lint/InheritException:
434
+ Enabled: true
435
+ EnforcedStyle: runtime_error
436
+
437
+ Lint/InterpolationCheck:
438
+ Enabled: true
439
+
440
+ Lint/LiteralAsCondition:
441
+ Enabled: true
442
+
443
+ Lint/LiteralInInterpolation:
444
+ Enabled: true
445
+
446
+ Lint/Loop:
447
+ Enabled: true
448
+
449
+ Lint/MissingCopEnableDirective:
450
+ Enabled: true
451
+ MaximumRangeSize: .inf
452
+
453
+ Lint/MultipleComparison:
454
+ Enabled: true
455
+
456
+ Lint/NestedMethodDefinition:
457
+ Enabled: true
458
+
459
+ Lint/NestedPercentLiteral:
460
+ Enabled: true
461
+
462
+ Lint/NextWithoutAccumulator:
463
+ Enabled: true
464
+
465
+ Lint/NonLocalExitFromIterator:
466
+ Enabled: true
467
+
468
+ Lint/OrderedMagicComments:
469
+ Enabled: true
470
+
471
+ Lint/ParenthesesAsGroupedExpression:
472
+ Enabled: true
473
+
474
+ Lint/PercentSymbolArray:
475
+ Enabled: true
476
+
477
+ Lint/RandOne:
478
+ Enabled: true
479
+
480
+ Lint/RedundantWithIndex:
481
+ Enabled: true
482
+
483
+ Lint/RedundantWithObject:
484
+ Enabled: true
485
+
486
+ Lint/RegexpAsCondition:
487
+ Enabled: true
488
+
489
+ Lint/RequireParentheses:
490
+ Enabled: true
491
+
492
+ Lint/RescueException:
493
+ Enabled: true
494
+
495
+ Lint/RescueType:
496
+ Enabled: true
497
+
498
+ Lint/ReturnInVoidContext:
499
+ Enabled: true
500
+
501
+ Lint/SafeNavigationChain:
502
+ Enabled: true
503
+ AllowedMethods:
504
+ - present?
505
+ - blank?
506
+ - presence
507
+ - try
508
+ - try!
509
+
510
+ Lint/SafeNavigationConsistency:
511
+ Enabled: true
512
+ AllowedMethods:
513
+ - present?
514
+ - blank?
515
+ - presence
516
+ - try
517
+ - try!
518
+
519
+ Lint/ShadowedArgument:
520
+ Enabled: true
521
+ IgnoreImplicitReferences: false
522
+
523
+ Lint/ShadowedException:
524
+ Enabled: true
525
+
526
+ Lint/RedundantStringCoercion:
527
+ Enabled: true
528
+
529
+ Lint/Syntax:
530
+ Enabled: true
531
+
532
+ Lint/UnderscorePrefixedVariableName:
533
+ Enabled: true
534
+
535
+ Lint/UnifiedInteger:
536
+ Enabled: true
537
+
538
+ Lint/RedundantRequireStatement:
539
+ Enabled: true
540
+
541
+ Lint/RedundantSplatExpansion:
542
+ Enabled: true
543
+
544
+ Lint/UnreachableCode:
545
+ Enabled: true
546
+
547
+ Lint/UriEscapeUnescape:
548
+ Enabled: true
549
+
550
+ Lint/UriRegexp:
551
+ Enabled: true
552
+
553
+ Lint/UselessAssignment:
554
+ Enabled: true
555
+
556
+ Lint/UselessSetterCall:
557
+ Enabled: true
558
+
559
+ Lint/Void:
560
+ Enabled: true
561
+ CheckForMethodsWithNoSideEffects: false
562
+
563
+ Naming/AsciiIdentifiers:
564
+ Enabled: true
565
+
566
+ Naming/BinaryOperatorParameterName:
567
+ Enabled: true
568
+
569
+ Naming/ClassAndModuleCamelCase:
570
+ Enabled: true
571
+
572
+ Naming/ConstantName:
573
+ Enabled: true
574
+
575
+ Naming/HeredocDelimiterCase:
576
+ Enabled: true
577
+ EnforcedStyle: uppercase
578
+
579
+ Naming/MethodName:
580
+ Enabled: true
581
+ EnforcedStyle: snake_case
582
+
583
+ Naming/BlockParameterName:
584
+ Enabled: true
585
+ MinNameLength: 1
586
+ AllowNamesEndingInNumbers: true
587
+ AllowedNames: []
588
+ ForbiddenNames: []
589
+
590
+ Naming/VariableName:
591
+ Enabled: true
592
+ EnforcedStyle: snake_case
593
+
594
+ Performance/Caller:
595
+ Enabled: true
596
+
597
+ Performance/CompareWithBlock:
598
+ Enabled: true
599
+
600
+ Performance/Count:
601
+ Enabled: true
602
+
603
+ Performance/Detect:
604
+ Enabled: true
605
+
606
+ Performance/DoubleStartEndWith:
607
+ Enabled: true
608
+ IncludeActiveSupportAliases: false
609
+
610
+ Performance/EndWith:
611
+ Enabled: true
612
+ SafeAutoCorrect: false
613
+ AutoCorrect: false
614
+
615
+ Performance/FixedSize:
616
+ Enabled: true
617
+
618
+ Performance/FlatMap:
619
+ Enabled: true
620
+ EnabledForFlattenWithoutParams: false
621
+
622
+ Performance/InefficientHashSearch:
623
+ Enabled: true
624
+ Safe: false
625
+
626
+ Performance/RangeInclude:
627
+ Enabled: true
628
+ Safe: false
629
+
630
+ Performance/RedundantMatch:
631
+ Enabled: true
632
+
633
+ Performance/RedundantMerge:
634
+ Enabled: true
635
+ MaxKeyValuePairs: 2
636
+
637
+ Performance/RegexpMatch:
638
+ Enabled: true
639
+
640
+ Performance/ReverseEach:
641
+ Enabled: true
642
+
643
+ Performance/Size:
644
+ Enabled: true
645
+
646
+ Performance/StartWith:
647
+ Enabled: true
648
+ SafeAutoCorrect: false
649
+ AutoCorrect: false
650
+
651
+ Performance/StringReplacement:
652
+ Enabled: true
653
+
654
+ Performance/UnfreezeString:
655
+ Enabled: true
656
+
657
+ Performance/UriDefaultParser:
658
+ Enabled: true
659
+
660
+ Security/Eval:
661
+ Enabled: false
662
+
663
+ Security/JSONLoad:
664
+ Enabled: true
665
+ AutoCorrect: false
666
+ SafeAutoCorrect: false
667
+
668
+ Security/Open:
669
+ Enabled: true
670
+ Safe: false
671
+
672
+ Security/YAMLLoad:
673
+ Enabled: true
674
+ SafeAutoCorrect: false
675
+
676
+ Style/FrozenStringLiteralComment:
677
+ Enabled: false
678
+ EnforcedStyle: never
679
+
680
+ Style/Alias:
681
+ Enabled: true
682
+ EnforcedStyle: prefer_alias
683
+
684
+ Style/AndOr:
685
+ Enabled: true
686
+ EnforcedStyle: always
687
+
688
+ Style/ArrayJoin:
689
+ Enabled: true
690
+
691
+ Style/Attr:
692
+ Enabled: true
693
+
694
+ Style/BarePercentLiterals:
695
+ Enabled: true
696
+ EnforcedStyle: bare_percent
697
+
698
+ Style/BeginBlock:
699
+ Enabled: true
700
+
701
+ Style/BlockComments:
702
+ Enabled: true
703
+
704
+ Style/CharacterLiteral:
705
+ Enabled: true
706
+
707
+ Style/ClassCheck:
708
+ Enabled: true
709
+ EnforcedStyle: is_a?
710
+
711
+ Style/ClassMethods:
712
+ Enabled: true
713
+
714
+ #Style/ColonMethodCall:
715
+ # Enabled: true
716
+
717
+ Style/ColonMethodDefinition:
718
+ Enabled: true
719
+
720
+ #Style/CommandLiteral:
721
+ # Enabled: true
722
+ # EnforcedStyle: mixed
723
+ # AllowInnerBackticks: false
724
+
725
+ Style/CommentedKeyword:
726
+ Enabled: true
727
+
728
+ Style/ConditionalAssignment:
729
+ Enabled: false
730
+ EnforcedStyle: assign_inside_condition
731
+ SingleLineConditionsOnly: true
732
+ IncludeTernaryExpressions: true
733
+
734
+ Style/DefWithParentheses:
735
+ Enabled: true
736
+
737
+ Style/Dir:
738
+ Enabled: true
739
+
740
+ Style/EachForSimpleLoop:
741
+ Enabled: true
742
+
743
+ Style/EachWithObject:
744
+ Enabled: true
745
+
746
+ Style/EmptyBlockParameter:
747
+ Enabled: true
748
+
749
+ Style/EmptyCaseCondition:
750
+ Enabled: true
751
+
752
+ Style/EmptyElse:
753
+ Enabled: true
754
+ EnforcedStyle: both
755
+
756
+ Style/EmptyLambdaParameter:
757
+ Enabled: true
758
+
759
+ Style/EmptyLiteral:
760
+ Enabled: true
761
+
762
+ Style/EmptyMethod:
763
+ Enabled: true
764
+ EnforcedStyle: expanded
765
+
766
+ Style/Encoding:
767
+ Enabled: true
768
+
769
+ Style/EndBlock:
770
+ Enabled: true
771
+
772
+ Style/EvalWithLocation:
773
+ Enabled: true
774
+
775
+ Style/For:
776
+ Enabled: true
777
+ EnforcedStyle: each
778
+
779
+ Style/GlobalVars:
780
+ Enabled: true
781
+ AllowedVariables: []
782
+
783
+ Style/HashSyntax:
784
+ Enabled: false
785
+ EnforcedStyle: ruby19_no_mixed_keys
786
+
787
+ Style/IdenticalConditionalBranches:
788
+ Enabled: true
789
+
790
+ Style/IfInsideElse:
791
+ Enabled: true
792
+
793
+ Style/IfUnlessModifierOfIfUnless:
794
+ Enabled: true
795
+
796
+ Style/IfWithSemicolon:
797
+ Enabled: true
798
+
799
+ Style/InfiniteLoop:
800
+ Enabled: true
801
+
802
+ Style/LambdaCall:
803
+ Enabled: true
804
+ EnforcedStyle: call
805
+
806
+ Style/LineEndConcatenation:
807
+ Enabled: true
808
+ SafeAutoCorrect: false
809
+
810
+ Style/MethodCallWithoutArgsParentheses:
811
+ Enabled: true
812
+ AllowedMethods: []
813
+
814
+ Lint/MissingSuper:
815
+ Enabled: false
816
+
817
+ Style/MissingRespondToMissing:
818
+ Enabled: true
819
+
820
+ Style/MixinGrouping:
821
+ Enabled: true
822
+ EnforcedStyle: separated
823
+
824
+ Style/MixinUsage:
825
+ Enabled: true
826
+
827
+ Style/MultilineIfModifier:
828
+ Enabled: true
829
+
830
+ Style/MultilineIfThen:
831
+ Enabled: true
832
+
833
+ Style/MultilineMemoization:
834
+ Enabled: true
835
+ EnforcedStyle: keyword
836
+
837
+ Style/NegatedIf:
838
+ Enabled: true
839
+ EnforcedStyle: both
840
+
841
+ Style/NegatedWhile:
842
+ Enabled: true
843
+
844
+ Style/NestedModifier:
845
+ Enabled: true
846
+
847
+ Style/NestedParenthesizedCalls:
848
+ Enabled: true
849
+ AllowedMethods:
850
+ - be
851
+ - be_a
852
+ - be_an
853
+ - be_between
854
+ - be_falsey
855
+ - be_kind_of
856
+ - be_instance_of
857
+ - be_truthy
858
+ - be_within
859
+ - eq
860
+ - eql
861
+ - end_with
862
+ - include
863
+ - match
864
+ - raise_error
865
+ - respond_to
866
+ - start_with
867
+
868
+ Style/NestedTernaryOperator:
869
+ Enabled: true
870
+
871
+ Style/NilComparison:
872
+ Enabled: true
873
+ EnforcedStyle: predicate
874
+
875
+ Style/NonNilCheck:
876
+ Enabled: true
877
+ IncludeSemanticChanges: false
878
+
879
+ Style/Not:
880
+ Enabled: true
881
+
882
+ Style/NumericLiteralPrefix:
883
+ Enabled: true
884
+ EnforcedOctalStyle: zero_with_o
885
+
886
+ Style/OneLineConditional:
887
+ Enabled: true
888
+
889
+ Style/OptionalArguments:
890
+ Enabled: true
891
+
892
+ Style/OrAssignment:
893
+ Enabled: true
894
+
895
+ Style/ParenthesesAroundCondition:
896
+ Enabled: true
897
+ AllowSafeAssignment: true
898
+ AllowInMultilineConditions: false
899
+
900
+ Style/PercentLiteralDelimiters:
901
+ Enabled: true
902
+ PreferredDelimiters:
903
+ default: ()
904
+ '%i': '[]'
905
+ '%I': '[]'
906
+ '%r': '{}'
907
+ '%w': '[]'
908
+ '%W': '[]'
909
+
910
+ Style/PercentQLiterals:
911
+ Enabled: true
912
+ EnforcedStyle: lower_case_q
913
+
914
+ Style/PreferredHashMethods:
915
+ Enabled: true
916
+ EnforcedStyle: short
917
+
918
+ Style/Proc:
919
+ Enabled: true
920
+
921
+ Style/RandomWithOffset:
922
+ Enabled: true
923
+
924
+ Style/RedundantBegin:
925
+ Enabled: true
926
+
927
+ Style/RedundantConditional:
928
+ Enabled: true
929
+
930
+ Style/RedundantException:
931
+ Enabled: true
932
+
933
+ Style/RedundantFreeze:
934
+ Enabled: true
935
+
936
+ Style/RedundantParentheses:
937
+ Enabled: true
938
+
939
+ Style/RedundantReturn:
940
+ Enabled: true
941
+ AllowMultipleReturnValues: false
942
+
943
+ Style/RedundantSelf:
944
+ Enabled: true
945
+
946
+ Style/RedundantSortBy:
947
+ Enabled: true
948
+
949
+ Style/RescueModifier:
950
+ Enabled: false
951
+
952
+ Style/RescueStandardError:
953
+ Enabled: true
954
+ EnforcedStyle: implicit
955
+
956
+ Style/SafeNavigation:
957
+ Enabled: true
958
+ ConvertCodeThatCanStartToReturnNil: false
959
+ AllowedMethods:
960
+ - present?
961
+ - blank?
962
+ - presence
963
+ - try
964
+ - try!
965
+
966
+ Style/Sample:
967
+ Enabled: true
968
+
969
+ Style/SelfAssignment:
970
+ Enabled: true
971
+
972
+ Style/Semicolon:
973
+ Enabled: true
974
+ AllowAsExpressionSeparator: false
975
+
976
+ Style/SingleLineMethods:
977
+ Enabled: true
978
+ AllowIfMethodIsEmpty: false
979
+
980
+ Style/StabbyLambdaParentheses:
981
+ Enabled: true
982
+ EnforcedStyle: require_parentheses
983
+
984
+ Style/StderrPuts:
985
+ Enabled: true
986
+
987
+ Style/StringLiterals:
988
+ Enabled: true
989
+ EnforcedStyle: single_quotes
990
+ ConsistentQuotesInMultiline: false
991
+
992
+ Style/StringLiteralsInInterpolation:
993
+ Enabled: true
994
+ EnforcedStyle: single_quotes
995
+
996
+ Style/Strip:
997
+ Enabled: true
998
+
999
+ Style/SymbolLiteral:
1000
+ Enabled: true
1001
+
1002
+ Style/TernaryParentheses:
1003
+ Enabled: true
1004
+ EnforcedStyle: require_no_parentheses
1005
+ AllowSafeAssignment: true
1006
+
1007
+ Style/TrailingBodyOnClass:
1008
+ Enabled: true
1009
+
1010
+ Style/TrailingBodyOnMethodDefinition:
1011
+ Enabled: true
1012
+
1013
+ Style/TrailingBodyOnModule:
1014
+ Enabled: true
1015
+
1016
+ Style/TrailingCommaInArrayLiteral:
1017
+ Enabled: true
1018
+ EnforcedStyleForMultiline: no_comma
1019
+
1020
+ Style/TrailingCommaInHashLiteral:
1021
+ Enabled: true
1022
+ EnforcedStyleForMultiline: no_comma
1023
+
1024
+ Style/TrailingMethodEndStatement:
1025
+ Enabled: true
1026
+
1027
+ Style/TrivialAccessors:
1028
+ Enabled: true
1029
+ ExactNameMatch: true
1030
+ AllowPredicates: true
1031
+ AllowDSLWriters: false
1032
+ IgnoreClassMethods: false
1033
+ AllowedMethods:
1034
+ - to_ary
1035
+ - to_a
1036
+ - to_c
1037
+ - to_enum
1038
+ - to_h
1039
+ - to_hash
1040
+ - to_i
1041
+ - to_int
1042
+ - to_io
1043
+ - to_open
1044
+ - to_path
1045
+ - to_proc
1046
+ - to_r
1047
+ - to_regexp
1048
+ - to_str
1049
+ - to_s
1050
+ - to_sym
1051
+
1052
+ Style/UnlessElse:
1053
+ Enabled: true
1054
+
1055
+ Style/RedundantCapitalW:
1056
+ Enabled: true
1057
+
1058
+ Style/RedundantCondition:
1059
+ Enabled: true
1060
+
1061
+ Style/RedundantInterpolation:
1062
+ Enabled: true
1063
+
1064
+ Style/RedundantPercentQ:
1065
+ Enabled: true
1066
+
1067
+ Style/RedundantSort:
1068
+ Enabled: true
1069
+
1070
+ Style/UnpackFirst:
1071
+ Enabled: true
1072
+
1073
+ Style/VariableInterpolation:
1074
+ Enabled: true
1075
+
1076
+ Style/WhenThen:
1077
+ Enabled: true
1078
+
1079
+ Style/WhileUntilDo:
1080
+ Enabled: true
1081
+
1082
+ Style/YodaCondition:
1083
+ Enabled: true
1084
+ EnforcedStyle: forbid_for_all_comparison_operators
1085
+
1086
+ ####Style
1087
+
1088
+ # Timeout.timeout(500) { "oke" }, not Timeout::timeout(500) { "oke" }
1089
+ Style/ColonMethodCall:
1090
+ Enabled: true
1091
+
1092
+ Style/CommandLiteral:
1093
+ EnforcedStyle: backticks
1094
+ AllowInnerBackticks: false
1095
+
1096
+ # Time.iso8601('2016-06-29'), not DateTime.iso8601('2016-06-29')
1097
+ Style/ConstantVisibility:
1098
+ Enabled: true
1099
+
1100
+ Style/ClassAndModuleChildren:
1101
+ Enabled: false
1102
+
1103
+ Style/Documentation:
1104
+ Enabled: false
1105
+
1106
+ Style/ClassVars:
1107
+ Enabled: false
1108
+
1109
+ #Style/GuardClause:
1110
+ # Enabled: true
1111
+
1112
+ Metrics/BlockLength:
1113
+ Enabled: false
1114
+
1115
+ Metrics/MethodLength:
1116
+ Enabled: false
1117
+
1118
+ Metrics/PerceivedComplexity:
1119
+ Enabled: false
1120
+
1121
+ Metrics/AbcSize:
1122
+ Enabled: false
1123
+
1124
+ Metrics/ClassLength:
1125
+ Enabled: false
1126
+
1127
+ Metrics/CyclomaticComplexity:
1128
+ Enabled: false
1129
+
1130
+ Naming/AccessorMethodName:
1131
+ Enabled: false
1132
+
1133
+ Naming/MethodParameterName:
1134
+ Enabled: true
1135
+ MinNameLength: 1
1136
+ AllowedNames:
1137
+ - _
1138
+
1139
+ Layout/ClassStructure:
1140
+ Enabled: true
1141
+