talkable-style 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9b1d833727f6669e7bf4d7c2bacfdc9cfab08117a4017e2254ab6b74a207411f
4
+ data.tar.gz: e94d588acd87c9cbfddaffe26edd8cb50719385fc510cfb2efac78baac6abe26
5
+ SHA512:
6
+ metadata.gz: 19ce4e466faa4e18eb6e10abcf50b97abba449e58e12eb9363d580409ef261bbb5f8ee48d2256a4a20765b2a9764976e423088f8c3850b7c892e2e3c76b00f86
7
+ data.tar.gz: 7781f9b274492a2fe72af96758d4f88fbbb13c11f6913ef9ec10fe68db6a2f06bd0232dd8e701e22207aa70f56069bec97ea0e16e2c829ca575efb111f25dae8
@@ -0,0 +1,11 @@
1
+ .DS_Store
2
+ .rspec_status
3
+ /.bundle/
4
+ /.yardoc
5
+ /Gemfile.lock
6
+ /_yardoc/
7
+ /coverage/
8
+ /doc/
9
+ /pkg/
10
+ /spec/reports/
11
+ /tmp/
@@ -0,0 +1 @@
1
+ inherit_from: default.yml
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify dependencies in talkable-style.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Talkable
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # talkable-style
2
+
3
+ Talkable shared style configs.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ group :test, :development do
11
+ gem "talkable-style"
12
+ end
13
+ ```
14
+
15
+ Or, for a Ruby library, add this to your gemspec:
16
+
17
+ ```ruby
18
+ spec.add_development_dependency "talkable-style"
19
+ ```
20
+
21
+ And then run:
22
+
23
+ ```bash
24
+ $ bundle install
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Create a `.rubocop.yml` with the following directives:
30
+
31
+ ```yaml
32
+ inherit_gem:
33
+ talkable-style:
34
+ - default.yml
35
+ ```
36
+
37
+ Now, run:
38
+
39
+ ```bash
40
+ $ bundle exec rubocop
41
+ ```
42
+
43
+ You do not need to include rubocop directly in your application's dependencies. Talkable-style will include a specific version of `rubocop` and `rubocop-*` that is shared across all projects.
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,801 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ Exclude:
8
+ - node_modules/**/*
9
+ - vendor/**/*
10
+ - tmp/**/*
11
+ DisplayCopNames: false
12
+ DisabledByDefault: true
13
+ TargetRubyVersion: 2.6
14
+ TargetRailsVersion: 5.2
15
+
16
+ Bundler/DuplicatedGem:
17
+ Enabled: true
18
+ Bundler/InsecureProtocolSource:
19
+ Enabled: true
20
+
21
+ Capybara/CurrentPathExpectation:
22
+ Enabled: true
23
+ Capybara/FeatureMethods:
24
+ Enabled: true
25
+
26
+ FactoryBot/AttributeDefinedStatically:
27
+ Enabled: true
28
+ FactoryBot/CreateList:
29
+ Enabled: true
30
+
31
+ Layout/AccessModifierIndentation:
32
+ Enabled: true
33
+ Layout/AlignArray:
34
+ Enabled: true
35
+ Layout/BlockAlignment:
36
+ Enabled: true
37
+ Layout/BlockEndNewline:
38
+ Enabled: true
39
+ Layout/ClosingHeredocIndentation:
40
+ Enabled: true
41
+ Layout/CommentIndentation:
42
+ Enabled: true
43
+ Layout/ConditionPosition:
44
+ Enabled: true
45
+ Layout/DefEndAlignment:
46
+ Enabled: true
47
+ Layout/EmptyComment:
48
+ Enabled: true
49
+ Layout/EmptyLineBetweenDefs:
50
+ Enabled: true
51
+ Layout/EmptyLines:
52
+ Enabled: true
53
+ Layout/EmptyLinesAroundAccessModifier:
54
+ Enabled: true
55
+ Layout/EmptyLinesAroundBeginBody:
56
+ Enabled: true
57
+ Layout/EmptyLinesAroundBlockBody:
58
+ Enabled: true
59
+ Layout/EmptyLinesAroundClassBody:
60
+ Enabled: true
61
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
62
+ Enabled: true
63
+ Layout/EmptyLinesAroundMethodBody:
64
+ Enabled: true
65
+ Layout/EmptyLinesAroundModuleBody:
66
+ Enabled: true
67
+ Layout/EndOfLine:
68
+ Enabled: true
69
+ Layout/ExtraSpacing:
70
+ Enabled: true
71
+ Layout/IndentAssignment:
72
+ Enabled: true
73
+ Layout/IndentFirstArrayElement:
74
+ Enabled: true
75
+ EnforcedStyle: consistent
76
+ Layout/IndentFirstHashElement:
77
+ Enabled: true
78
+ EnforcedStyle: consistent
79
+ Layout/IndentHeredoc:
80
+ Enabled: true
81
+ Layout/IndentationConsistency:
82
+ Enabled: true
83
+ Layout/InitialIndentation:
84
+ Enabled: true
85
+ Layout/LeadingBlankLines:
86
+ Enabled: true
87
+ Layout/LeadingCommentSpace:
88
+ Enabled: true
89
+ Layout/MultilineAssignmentLayout:
90
+ Enabled: true
91
+ EnforcedStyle: same_line
92
+ Layout/MultilineBlockLayout:
93
+ Enabled: true
94
+ Exclude:
95
+ - spec/**/*
96
+ Layout/MultilineMethodCallIndentation:
97
+ Enabled: true
98
+ EnforcedStyle: indented
99
+ Exclude:
100
+ - spec/**/*
101
+ Layout/MultilineMethodDefinitionBraceLayout:
102
+ Enabled: true
103
+ Layout/MultilineOperationIndentation:
104
+ Enabled: true
105
+ Layout/RescueEnsureAlignment:
106
+ Enabled: true
107
+ Layout/SpaceAfterColon:
108
+ Enabled: true
109
+ Layout/SpaceAfterComma:
110
+ Enabled: true
111
+ Layout/SpaceAfterMethodName:
112
+ Enabled: true
113
+ Layout/SpaceAfterNot:
114
+ Enabled: true
115
+ Layout/SpaceAfterSemicolon:
116
+ Enabled: true
117
+ Layout/SpaceAroundBlockParameters:
118
+ Enabled: true
119
+ Layout/SpaceAroundEqualsInParameterDefault:
120
+ Enabled: true
121
+ Layout/SpaceAroundKeyword:
122
+ Enabled: true
123
+ Layout/SpaceAroundOperators:
124
+ Enabled: true
125
+ Layout/SpaceBeforeComma:
126
+ Enabled: true
127
+ Layout/SpaceBeforeComment:
128
+ Enabled: true
129
+ Layout/SpaceBeforeFirstArg:
130
+ Enabled: true
131
+ Layout/SpaceBeforeSemicolon:
132
+ Enabled: true
133
+ Layout/SpaceInLambdaLiteral:
134
+ Enabled: true
135
+ Layout/SpaceInsideArrayPercentLiteral:
136
+ Enabled: true
137
+ Layout/SpaceInsideParens:
138
+ Enabled: true
139
+ Layout/SpaceInsidePercentLiteralDelimiters:
140
+ Enabled: true
141
+ Layout/SpaceInsideRangeLiteral:
142
+ Enabled: true
143
+ Layout/Tab:
144
+ Enabled: true
145
+ Layout/TrailingBlankLines:
146
+ Enabled: true
147
+ Layout/TrailingWhitespace:
148
+ Enabled: true
149
+
150
+ Lint/AmbiguousOperator:
151
+ Enabled: true
152
+ Lint/AmbiguousRegexpLiteral:
153
+ Enabled: true
154
+ Lint/BigDecimalNew:
155
+ Enabled: true
156
+ Lint/BooleanSymbol:
157
+ Enabled: true
158
+ Lint/CircularArgumentReference:
159
+ Enabled: true
160
+ Lint/Debugger:
161
+ Enabled: true
162
+ Lint/DeprecatedClassMethods:
163
+ Enabled: true
164
+ Lint/DisjunctiveAssignmentInConstructor:
165
+ Enabled: true
166
+ Lint/DuplicateCaseCondition:
167
+ Enabled: true
168
+ Lint/DuplicatedKey:
169
+ Enabled: true
170
+ Lint/DuplicateMethods:
171
+ Enabled: true
172
+ Lint/EachWithObjectArgument:
173
+ Enabled: true
174
+ Lint/ElseLayout:
175
+ Enabled: true
176
+ Lint/EmptyEnsure:
177
+ Enabled: true
178
+ Lint/EmptyExpression:
179
+ Enabled: true
180
+ Lint/EmptyInterpolation:
181
+ Enabled: true
182
+ Lint/EmptyWhen:
183
+ Enabled: true
184
+ Lint/EndInMethod:
185
+ Enabled: true
186
+ Lint/EnsureReturn:
187
+ Enabled: true
188
+ Lint/FlipFlop:
189
+ Enabled: true
190
+ Lint/FloatOutOfRange:
191
+ Enabled: true
192
+ Lint/FormatParameterMismatch:
193
+ Enabled: true
194
+ Lint/HeredocMethodCallPosition:
195
+ Enabled: true
196
+ Lint/ImplicitStringConcatenation:
197
+ Enabled: true
198
+ Lint/IneffectiveAccessModifier:
199
+ Enabled: true
200
+ Lint/InheritException:
201
+ Enabled: true
202
+ EnforcedStyle: standard_error
203
+ Lint/LiteralAsCondition:
204
+ Enabled: true
205
+ Lint/LiteralInInterpolation:
206
+ Enabled: true
207
+ Lint/Loop:
208
+ Enabled: true
209
+ Lint/MissingCopEnableDirective:
210
+ Enabled: true
211
+ Lint/MultipleCompare:
212
+ Enabled: true
213
+ Lint/NestedMethodDefinition:
214
+ Enabled: true
215
+ Lint/NextWithoutAccumulator:
216
+ Enabled: true
217
+ Lint/NonLocalExitFromIterator:
218
+ Enabled: true
219
+ Lint/ParenthesesAsGroupedExpression:
220
+ Enabled: true
221
+ Lint/PercentStringArray:
222
+ Enabled: true
223
+ Lint/PercentSymbolArray:
224
+ Enabled: true
225
+ Lint/RandOne:
226
+ Enabled: true
227
+ Lint/RedundantWithIndex:
228
+ Enabled: true
229
+ Lint/RedundantWithObject:
230
+ Enabled: true
231
+ Lint/RegexpAsCondition:
232
+ Enabled: true
233
+ Lint/RequireParentheses:
234
+ Enabled: true
235
+ Lint/RescueException:
236
+ Enabled: true
237
+ Lint/RescueType:
238
+ Enabled: true
239
+ Lint/ReturnInVoidContext:
240
+ Enabled: true
241
+ Lint/SafeNavigationChain:
242
+ Enabled: true
243
+ Whitelist:
244
+ - present?
245
+ - blank?
246
+ - presence
247
+ - try
248
+ - to_bool
249
+ - to_liquid
250
+ - in?
251
+ Lint/SafeNavigationWithEmpty:
252
+ Enabled: true
253
+ Lint/ScriptPermission:
254
+ Enabled: true
255
+ Lint/ShadowedException:
256
+ Enabled: true
257
+ Lint/StringConversionInInterpolation:
258
+ Enabled: true
259
+ Lint/ToJSON:
260
+ Enabled: true
261
+ Lint/UnifiedInteger:
262
+ Enabled: true
263
+ Lint/UnneededCopDisableDirective:
264
+ Enabled: true
265
+ Lint/UnneededCopEnableDirective:
266
+ Enabled: true
267
+ Lint/UnneededRequireStatement:
268
+ Enabled: true
269
+ Lint/UnneededSplatExpansion:
270
+ Enabled: true
271
+ Lint/UnreachableCode:
272
+ Enabled: true
273
+ Lint/UnusedBlockArgument:
274
+ Enabled: true
275
+ Lint/UnusedMethodArgument:
276
+ Enabled: true
277
+ Lint/UriEscapeUnescape:
278
+ Enabled: true
279
+ Lint/UriRegexp:
280
+ Enabled: true
281
+ Lint/UselessAccessModifier:
282
+ Enabled: true
283
+ Lint/UselessAssignment:
284
+ Enabled: true
285
+ Lint/UselessComparison:
286
+ Enabled: true
287
+ Lint/UselessElseWithoutRescue:
288
+ Enabled: true
289
+ Lint/UselessSetterCall:
290
+ Enabled: true
291
+ Lint/Void:
292
+ Enabled: true
293
+
294
+ Metrics/BlockNesting:
295
+ Enabled: true
296
+
297
+ Naming/AsciiIdentifiers:
298
+ Enabled: true
299
+ Naming/ClassAndModuleCamelCase:
300
+ Enabled: true
301
+ Naming/ConstantName:
302
+ Enabled: true
303
+ Naming/FileName:
304
+ Enabled: true
305
+ Naming/MemoizedInstanceVariableName:
306
+ Enabled: true
307
+ Naming/MethodName:
308
+ Enabled: true
309
+ Naming/PredicateName:
310
+ Enabled: true
311
+ NamePrefix:
312
+ - is_
313
+ NamePrefixBlacklist:
314
+ - is_
315
+ Naming/RescuedExceptionsVariableName:
316
+ Enabled: true
317
+ Naming/VariableName:
318
+ Enabled: true
319
+
320
+ Performance/Caller:
321
+ Enabled: true
322
+ Performance/Casecmp:
323
+ Enabled: true
324
+ Performance/CaseWhenSplat:
325
+ Enabled: true
326
+ Performance/CompareWithBlock:
327
+ Enabled: true
328
+ Performance/Count:
329
+ Enabled: true
330
+ Performance/Detect:
331
+ Enabled: true
332
+ Performance/DoubleStartEndWith:
333
+ Enabled: true
334
+ Performance/EndWith:
335
+ Enabled: true
336
+ Performance/FixedSize:
337
+ Enabled: true
338
+ Performance/FlatMap:
339
+ Enabled: true
340
+ Performance/InefficientHashSearch:
341
+ Enabled: true
342
+ Performance/RangeInclude:
343
+ Enabled: true
344
+ Performance/RedundantBlockCall:
345
+ Enabled: true
346
+ Performance/RedundantMatch:
347
+ Enabled: true
348
+ Performance/RedundantMerge:
349
+ Enabled: true
350
+ Performance/RegexpMatch:
351
+ Enabled: true
352
+ Performance/ReverseEach:
353
+ Enabled: true
354
+ Performance/Size:
355
+ Enabled: true
356
+ Performance/StartWith:
357
+ Enabled: true
358
+ Performance/StringReplacement:
359
+ Enabled: true
360
+ Performance/TimesMap:
361
+ Enabled: true
362
+ Performance/UnfreezeString:
363
+ Enabled: true
364
+ Performance/UriDefaultParser:
365
+ Enabled: true
366
+
367
+ Rails:
368
+ Enabled: true
369
+ Rails/ActionFilter:
370
+ Enabled: true
371
+ Rails/ActiveRecordAliases:
372
+ Enabled: true
373
+ Rails/ActiveRecordOverride:
374
+ Enabled: true
375
+ Rails/ActiveSupportAliases:
376
+ Enabled: true
377
+ Rails/ApplicationJob:
378
+ Enabled: true
379
+ Rails/ApplicationRecord:
380
+ Enabled: true
381
+ Rails/BelongsTo:
382
+ Enabled: true
383
+ Rails/Blank:
384
+ Enabled: true
385
+ NilOrEmpty: false
386
+ NotPresent: true
387
+ UnlessPresent: true
388
+ Rails/BulkChangeTable:
389
+ Enabled: true
390
+ Rails/CreateTableWithTimestamps:
391
+ Enabled: true
392
+ Rails/Date:
393
+ Enabled: true
394
+ Rails/DelegateAllowBlank:
395
+ Enabled: true
396
+ Rails/DynamicFindBy:
397
+ Enabled: true
398
+ Rails/EnumUniqueness:
399
+ Enabled: true
400
+ Rails/EnvironmentComparison:
401
+ Enabled: true
402
+ Rails/Exit:
403
+ Enabled: true
404
+ Rails/FindBy:
405
+ Enabled: true
406
+ Rails/FindEach:
407
+ Enabled: true
408
+ Rails/HasAndBelongsToMany:
409
+ Enabled: true
410
+ Rails/HelperInstanceVariable:
411
+ Enabled: true
412
+ Rails/HttpPositionalArguments:
413
+ Enabled: true
414
+ Rails/HttpStatus:
415
+ Enabled: true
416
+ Rails/IgnoredSkipActionFilterOption:
417
+ Enabled: true
418
+ Rails/InverseOf:
419
+ Enabled: true
420
+ Rails/LexicallyScopedActionFilter:
421
+ Enabled: true
422
+ Rails/LinkToBlank:
423
+ Enabled: true
424
+ Rails/NotNullColumn:
425
+ Enabled: true
426
+ Rails/PluralizationGrammar:
427
+ Enabled: true
428
+ Rails/Presence:
429
+ Enabled: true
430
+ Rails/Present:
431
+ Enabled: true
432
+ NotNilAndNotEmpty: false
433
+ NotBlank: true
434
+ UnlessBlank: true
435
+ Rails/ReadWriteAttribute:
436
+ Enabled: true
437
+ Rails/RedundantAllowNil:
438
+ Enabled: true
439
+ Rails/RedundantReceiverInWithOptions:
440
+ Enabled: true
441
+ Rails/ReflectionClassName:
442
+ Enabled: true
443
+ Rails/RelativeDateConstant:
444
+ Enabled: true
445
+ Rails/RequestReferer:
446
+ Enabled: true
447
+ Rails/ReversibleMigration:
448
+ Enabled: true
449
+ Rails/SafeNavigation:
450
+ Enabled: true
451
+ Rails/SaveBang:
452
+ Enabled: true
453
+ Exclude:
454
+ - spec/**/*
455
+ Rails/ScopeArgs:
456
+ Enabled: true
457
+ Rails/SkipsModelValidations:
458
+ Enabled: true
459
+ Exclude:
460
+ - db/**/*
461
+ - spec/**/*
462
+ Rails/TimeZone:
463
+ Enabled: true
464
+ Rails/UniqBeforePluck:
465
+ Enabled: true
466
+ Rails/UnknownEnv:
467
+ Enabled: true
468
+ Environments:
469
+ - development
470
+ - production
471
+ - staging
472
+ - test
473
+ Rails/Validation:
474
+ Enabled: true
475
+
476
+ RSpec/AroundBlock:
477
+ Enabled: true
478
+ RSpec/Be:
479
+ Enabled: true
480
+ RSpec/BeEql:
481
+ Enabled: true
482
+ RSpec/BeforeAfterAll:
483
+ Enabled: true
484
+ RSpec/DescribeClass:
485
+ Enabled: true
486
+ Exclude:
487
+ - spec/system/**/*
488
+ - spec/tasks/**/*
489
+ RSpec/DescribeMethod:
490
+ Enabled: true
491
+ RSpec/DescribeSymbol:
492
+ Enabled: true
493
+ RSpec/DescribedClass:
494
+ Enabled: true
495
+ RSpec/EmptyExampleGroup:
496
+ Enabled: true
497
+ CustomIncludeMethods:
498
+ - it_has_behavior
499
+ RSpec/EmptyLineAfterExampleGroup:
500
+ Enabled: true
501
+ RSpec/ExampleWithoutDescription:
502
+ Enabled: true
503
+ RSpec/ExampleWording:
504
+ Enabled: true
505
+ RSpec/ExpectInHook:
506
+ Enabled: true
507
+ RSpec/ExpectOutput:
508
+ Enabled: true
509
+ RSpec/FilePath:
510
+ Enabled: true
511
+ IgnoreMethods: true
512
+ RSpec/Focus:
513
+ Enabled: true
514
+ RSpec/HooksBeforeExamples:
515
+ Enabled: true
516
+ RSpec/InstanceSpy:
517
+ Enabled: true
518
+ RSpec/InstanceVariable:
519
+ Enabled: true
520
+ RSpec/InvalidPredicateMatcher:
521
+ Enabled: true
522
+ RSpec/ItBehavesLike:
523
+ Enabled: true
524
+ RSpec/IteratedExpectation:
525
+ Enabled: true
526
+ RSpec/LetBeforeExamples:
527
+ Enabled: true
528
+ RSpec/LetSetup:
529
+ Enabled: true
530
+ RSpec/MultipleDescribes:
531
+ Enabled: true
532
+ RSpec/MultipleSubjects:
533
+ Enabled: true
534
+ RSpec/OverwritingSetup:
535
+ Enabled: true
536
+ RSpec/ReceiveCounts:
537
+ Enabled: true
538
+ RSpec/ReceiveNever:
539
+ Enabled: true
540
+ RSpec/RepeatedDescription:
541
+ Enabled: true
542
+ RSpec/RepeatedExample:
543
+ Enabled: true
544
+ RSpec/ScatteredLet:
545
+ Enabled: true
546
+ RSpec/ScatteredSetup:
547
+ Enabled: true
548
+ RSpec/SharedContext:
549
+ Enabled: true
550
+ RSpec/SharedExamples:
551
+ Enabled: true
552
+ RSpec/SingleArgumentMessageChain:
553
+ Enabled: true
554
+ RSpec/VerifiedDoubles:
555
+ Enabled: true
556
+ RSpec/VoidExpect:
557
+ Enabled: true
558
+ RSpec/Yield:
559
+ Enabled: true
560
+
561
+ Security/Eval:
562
+ Enabled: true
563
+ Security/JSONLoad:
564
+ Enabled: true
565
+ Security/MarshalLoad:
566
+ Enabled: true
567
+ Security/Open:
568
+ Enabled: true
569
+ Security/YAMLLoad:
570
+ Enabled: true
571
+
572
+ Style/Alias:
573
+ Enabled: true
574
+ EnforcedStyle: prefer_alias_method
575
+ Style/AndOr:
576
+ Enabled: true
577
+ Style/ArrayJoin:
578
+ Enabled: true
579
+ Style/Attr:
580
+ Enabled: true
581
+ Style/AutoResourceCleanup:
582
+ Enabled: true
583
+ Style/BarePercentLiterals:
584
+ Enabled: true
585
+ Style/BeginBlock:
586
+ Enabled: true
587
+ Style/BlockComments:
588
+ Enabled: true
589
+ Exclude:
590
+ - support/**/*
591
+ Style/BlockDelimiters:
592
+ Enabled: true
593
+ Exclude:
594
+ - spec/**/*
595
+ Style/CharacterLiteral:
596
+ Enabled: true
597
+ Style/ClassCheck:
598
+ Enabled: true
599
+ Style/ClassMethods:
600
+ Enabled: true
601
+ Style/CollectionMethods:
602
+ Enabled: true
603
+ PreferredMethods:
604
+ collect: 'map'
605
+ collect!: 'map!'
606
+ detect: 'find'
607
+ find_all: 'select'
608
+ Style/ColonMethodCall:
609
+ Enabled: true
610
+ Style/ColonMethodDefinition:
611
+ Enabled: true
612
+ Style/CommentAnnotation:
613
+ Enabled: true
614
+ Style/ConditionalAssignment:
615
+ Enabled: true
616
+ Style/ConstantVisibility:
617
+ Enabled: true
618
+ Style/DateTime:
619
+ Enabled: true
620
+ Style/DefWithParentheses:
621
+ Enabled: true
622
+ Style/Dir:
623
+ Enabled: true
624
+ Style/EachForSimpleLoop:
625
+ Enabled: true
626
+ Style/EachWithObject:
627
+ Enabled: true
628
+ Style/EmptyBlockParameter:
629
+ Enabled: true
630
+ Style/EmptyElse:
631
+ Enabled: true
632
+ Style/EmptyLambdaParameter:
633
+ Enabled: true
634
+ Style/EmptyLiteral:
635
+ Enabled: true
636
+ Style/EndBlock:
637
+ Enabled: true
638
+ Style/EvalWithLocation:
639
+ Enabled: true
640
+ Style/EvenOdd:
641
+ Enabled: true
642
+ Style/ExpandPathArguments:
643
+ Enabled: true
644
+ Style/For:
645
+ Enabled: true
646
+ Style/GlobalVars:
647
+ Enabled: true
648
+ Style/HashSyntax:
649
+ Enabled: true
650
+ Style/IdenticalConditionalBranches:
651
+ Enabled: true
652
+ Style/IfInsideElse:
653
+ Enabled: true
654
+ Style/IfUnlessModifierOfIfUnless:
655
+ Enabled: true
656
+ Style/IfWithSemicolon:
657
+ Enabled: true
658
+ Style/InfiniteLoop:
659
+ Enabled: true
660
+ Style/InverseMethods:
661
+ Enabled: true
662
+ Style/LambdaCall:
663
+ Enabled: true
664
+ Style/LineEndConcatenation:
665
+ Enabled: true
666
+ Style/MethodCallWithoutArgsParentheses:
667
+ Enabled: true
668
+ Style/MethodDefParentheses:
669
+ Enabled: true
670
+ Style/MethodMissingSuper:
671
+ Enabled: true
672
+ Style/MinMax:
673
+ Enabled: true
674
+ Style/MissingRespondToMissing:
675
+ Enabled: true
676
+ Style/MixinGrouping:
677
+ Enabled: true
678
+ Style/MixinUsage:
679
+ Enabled: true
680
+ Style/ModuleFunction:
681
+ Enabled: true
682
+ Style/MultilineIfThen:
683
+ Enabled: true
684
+ Style/MultilineMemoization:
685
+ Enabled: true
686
+ Style/MultilineMethodSignature:
687
+ Enabled: true
688
+ Style/MultipleComparison:
689
+ Enabled: true
690
+ Style/MutableConstant:
691
+ Enabled: true
692
+ Style/NegatedIf:
693
+ Enabled: true
694
+ Style/NegatedUnless:
695
+ Enabled: true
696
+ Style/NegatedWhile:
697
+ Enabled: true
698
+ Style/NestedModifier:
699
+ Enabled: true
700
+ Style/NestedTernaryOperator:
701
+ Enabled: true
702
+ Style/Next:
703
+ Enabled: true
704
+ Style/NilComparison:
705
+ Enabled: true
706
+ Style/NonNilCheck:
707
+ Enabled: true
708
+ Style/Not:
709
+ Enabled: true
710
+ Style/NumericLiteralPrefix:
711
+ Enabled: true
712
+ Style/NumericLiterals:
713
+ Enabled: true
714
+ Style/OneLineConditional:
715
+ Enabled: true
716
+ Style/OptionalArguments:
717
+ Enabled: true
718
+ Style/ParenthesesAroundCondition:
719
+ Enabled: true
720
+ Style/PercentQLiterals:
721
+ Enabled: true
722
+ Style/PerlBackrefs:
723
+ Enabled: true
724
+ Style/PreferredHashMethods:
725
+ Enabled: true
726
+ Style/Proc:
727
+ Enabled: true
728
+ Style/RaiseArgs:
729
+ Enabled: true
730
+ Style/RedundantBegin:
731
+ Enabled: true
732
+ Style/RedundantConditional:
733
+ Enabled: true
734
+ Style/RedundantException:
735
+ Enabled: true
736
+ Style/RedundantFreeze:
737
+ Enabled: true
738
+ Style/RedundantParentheses:
739
+ Enabled: true
740
+ Style/RedundantReturn:
741
+ Enabled: true
742
+ Style/RedundantSelf:
743
+ Enabled: true
744
+ Style/RedundantSortBy:
745
+ Enabled: true
746
+ Style/RescueStandardError:
747
+ Enabled: true
748
+ Style/ReturnNil:
749
+ Enabled: true
750
+ Style/SafeNavigation:
751
+ Enabled: true
752
+ Style/Sample:
753
+ Enabled: true
754
+ Style/SelfAssignment:
755
+ Enabled: true
756
+ Style/SignalException:
757
+ Enabled: true
758
+ Style/SpecialGlobalVars:
759
+ Enabled: true
760
+ Style/StabbyLambdaParentheses:
761
+ Enabled: true
762
+ Style/StderrPuts:
763
+ Enabled: true
764
+ Style/StringMethods:
765
+ Enabled: true
766
+ Style/Strip:
767
+ Enabled: true
768
+ Style/StructInheritance:
769
+ Enabled: true
770
+ Style/SymbolLiteral:
771
+ Enabled: true
772
+ Style/SymbolProc:
773
+ Enabled: true
774
+ Style/TrailingBodyOnClass:
775
+ Enabled: true
776
+ Style/TrailingBodyOnModule:
777
+ Enabled: true
778
+ Style/TrivialAccessors:
779
+ Enabled: true
780
+ Style/UnlessElse:
781
+ Enabled: true
782
+ Style/UnneededCapitalW:
783
+ Enabled: true
784
+ Style/UnneededCondition:
785
+ Enabled: true
786
+ Style/UnneededInterpolation:
787
+ Enabled: true
788
+ Style/UnneededPercentQ:
789
+ Enabled: true
790
+ Style/UnneededSort:
791
+ Enabled: true
792
+ Style/UnpackFirst:
793
+ Enabled: true
794
+ Style/VariableInterpolation:
795
+ Enabled: true
796
+ Style/WhileUntilDo:
797
+ Enabled: true
798
+ Style/YodaCondition:
799
+ Enabled: true
800
+ Style/ZeroLengthPredicate:
801
+ Enabled: true
@@ -0,0 +1,6 @@
1
+ require "talkable/style/version"
2
+
3
+ module Talkable
4
+ module Style
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Talkable
2
+ module Style
3
+ VERSION = "0.1.0".freeze
4
+ end
5
+ end
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "talkable/style/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "talkable-style"
8
+ spec.version = Talkable::Style::VERSION
9
+ spec.authors = ["Talkable"]
10
+ spec.email = ["dev@talkable.com"]
11
+
12
+ spec.summary = "Talkable style guides and shared style configs."
13
+ spec.homepage = "https://github.com/talkable/talkable-style"
14
+
15
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = spec.homepage
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_dependency "rubocop", "~> 0.70.0"
34
+ spec.add_dependency "rubocop-performance", "~> 1.3.0"
35
+ spec.add_dependency "rubocop-rails", "~> 2.0.0"
36
+ spec.add_dependency "rubocop-rspec", "~> 1.33.0"
37
+ spec.add_development_dependency "bundler", "~> 2.0"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: talkable-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Talkable
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.70.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.70.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.3.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.33.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.33.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '10.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '10.0'
97
+ description:
98
+ email:
99
+ - dev@talkable.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rubocop.yml"
106
+ - Gemfile
107
+ - LICENSE
108
+ - README.md
109
+ - Rakefile
110
+ - default.yml
111
+ - lib/talkable/style.rb
112
+ - lib/talkable/style/version.rb
113
+ - talkable-style.gemspec
114
+ homepage: https://github.com/talkable/talkable-style
115
+ licenses: []
116
+ metadata:
117
+ allowed_push_host: https://rubygems.org
118
+ homepage_uri: https://github.com/talkable/talkable-style
119
+ source_code_uri: https://github.com/talkable/talkable-style
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubygems_version: 3.0.3
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Talkable style guides and shared style configs.
139
+ test_files: []