playwright-rails 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: db806ce550274afcb9e695970fc19e840b5774792499d8bfb18fa6655b8913c8
4
+ data.tar.gz: 72d17ffca83ac06d098fe89f80fac3042f375a7b3566d0b3dd4993942cdeab6f
5
+ SHA512:
6
+ metadata.gz: 77937c7d8b328c86186e9329c125eff9cf014663ed8ce133ba158c9f948ed53810dbbbd67f3a5e135165db7289fe99f5ea9766b5a6857ada637cc3d49cf26375
7
+ data.tar.gz: 59076f4243bb6f29b1b6a1ec38512fa4423e1dfc9522e6c3f2733eebb11c606d0abc299f54820b8a9e19a74f4ecbb478538a3eee5fb7d0f7f71991a5d0198174
@@ -0,0 +1,21 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request, workflow_dispatch]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ matrix:
11
+ ruby-version: ['2.7', '3.0']
12
+
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby-version }}
18
+ bundler-cache: true
19
+
20
+ - name: Run tests
21
+ run: ./script/test
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,647 @@
1
+ AllCops:
2
+ Exclude:
3
+ - "bin/**/*"
4
+ MaxFilesInCache: 50000
5
+ NewCops: disable
6
+ UseCache: true
7
+
8
+ # Ruby 3.1.0 rules
9
+ Style/HashSyntax:
10
+ Enabled: True
11
+ EnforcedStyle: ruby19
12
+ EnforcedShorthandSyntax: either
13
+
14
+ Naming/AccessorMethodName:
15
+ Description: Check the naming of accessor methods for get_/set_.
16
+ Enabled: false
17
+
18
+ Style/HashEachMethods:
19
+ Enabled: true
20
+
21
+ Style/HashTransformKeys:
22
+ Enabled: true
23
+
24
+ Style/HashTransformValues:
25
+ Enabled: true
26
+
27
+ Style/Alias:
28
+ Description: "Use alias_method instead of alias."
29
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#alias-method"
30
+ Enabled: false
31
+
32
+ Style/ArrayJoin:
33
+ Description: "Use Array#join instead of Array#*."
34
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#array-join"
35
+ Enabled: false
36
+
37
+ Style/AsciiComments:
38
+ Description: "Use only ascii symbols in comments."
39
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#english-comments"
40
+ Enabled: false
41
+
42
+ Naming/AsciiIdentifiers:
43
+ Description: "Use only ascii symbols in identifiers."
44
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#english-identifiers"
45
+ Enabled: false
46
+
47
+ Style/Attr:
48
+ Description: "Checks for uses of Module#attr."
49
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#attr"
50
+ Enabled: false
51
+
52
+ Metrics/BlockNesting:
53
+ Description: "Avoid excessive block nesting"
54
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count"
55
+ Enabled: false
56
+
57
+ Style/CaseEquality:
58
+ Description: "Avoid explicit use of the case equality operator(===)."
59
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-case-equality"
60
+ Enabled: false
61
+
62
+ Style/CharacterLiteral:
63
+ Description: "Checks for uses of character literals."
64
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-character-literals"
65
+ Enabled: false
66
+
67
+ Style/ClassAndModuleChildren:
68
+ Description: "Checks style of children classes and modules."
69
+ Enabled: false
70
+
71
+ Style/BlockDelimiters:
72
+ Enabled: false
73
+
74
+ Metrics/ClassLength:
75
+ Description: "Avoid classes longer than 100 lines of code."
76
+ Enabled: false
77
+
78
+ Metrics/ModuleLength:
79
+ Description: "Avoid modules longer than 100 lines of code."
80
+ Enabled: false
81
+
82
+ Style/ClassVars:
83
+ Description: "Avoid the use of class variables."
84
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-class-vars"
85
+ Enabled: false
86
+
87
+ Style/CollectionMethods:
88
+ Enabled: true
89
+ PreferredMethods:
90
+ find: detect
91
+ inject: reduce
92
+ collect: map
93
+ find_all: select
94
+
95
+ Style/ColonMethodCall:
96
+ Description: "Do not use :: for method call."
97
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#double-colons"
98
+ Enabled: false
99
+
100
+ Style/CommentAnnotation:
101
+ Description: >-
102
+ Checks formatting of special comments
103
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
104
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#annotate-keywords"
105
+ Enabled: true
106
+
107
+ Metrics/AbcSize:
108
+ Description: >-
109
+ A calculated magnitude based on number of assignments,
110
+ branches, and conditions.
111
+ Enabled: false
112
+
113
+ Metrics/BlockLength:
114
+ Enabled: false
115
+
116
+ Metrics/CyclomaticComplexity:
117
+ Description: >-
118
+ A complexity metric that is strongly correlated to the number
119
+ of test cases needed to validate a method.
120
+ Enabled: false
121
+
122
+ Style/PreferredHashMethods:
123
+ Description: "Checks use of `has_key?` and `has_value?` Hash methods."
124
+ StyleGuide: "#hash-key"
125
+ Enabled: false
126
+
127
+ Style/Documentation:
128
+ Description: "Document classes and non-namespace modules."
129
+ Enabled: false
130
+
131
+ Style/DoubleNegation:
132
+ Description: "Checks for uses of double negation (!!)."
133
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-bang-bang"
134
+ Enabled: false
135
+
136
+ Style/EachWithObject:
137
+ Description: "Prefer `each_with_object` over `inject` or `reduce`."
138
+ Enabled: false
139
+
140
+ Style/EmptyLiteral:
141
+ Description: "Prefer literals to Array.new/Hash.new/String.new."
142
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#literal-array-hash"
143
+ Enabled: false
144
+
145
+ # Checks whether the source file has a utf-8 encoding comment or not
146
+ # AutoCorrectEncodingComment must match the regex
147
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
148
+ Style/Encoding:
149
+ Enabled: false
150
+
151
+ Style/EvenOdd:
152
+ Description: "Favor the use of Fixnum#even? && Fixnum#odd?"
153
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#predicate-methods"
154
+ Enabled: false
155
+
156
+ Style/ExponentialNotation:
157
+ Description: "When using exponential notation, favor a mantissa between 1 (inclusive) and 10 (exclusive)."
158
+ StyleGuide: "#exponential-notation"
159
+ Enabled: true
160
+ VersionAdded: "0.82"
161
+ EnforcedStyle: scientific
162
+ SupportedStyles:
163
+ - scientific
164
+ - engineering
165
+ - integral
166
+
167
+ Naming/FileName:
168
+ Description: "Use snake_case for source file names."
169
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#snake-case-files"
170
+ Enabled: false
171
+
172
+ Style/FrozenStringLiteralComment:
173
+ Description: >-
174
+ Add the frozen_string_literal comment to the top of files
175
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
176
+ Enabled: false
177
+
178
+ Lint/FlipFlop:
179
+ Description: "Checks for flip flops"
180
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-flip-flops"
181
+ Enabled: false
182
+
183
+ Style/FormatString:
184
+ Description: "Enforce the use of Kernel#sprintf, Kernel#format or String#%."
185
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#sprintf"
186
+ Enabled: false
187
+
188
+ Style/FormatStringToken:
189
+ StyleGuide: "https://github.com/rubocop-hq/ruby-style-guide#named-format-tokens"
190
+ Enabled: false
191
+
192
+ Style/GlobalVars:
193
+ Description: "Do not introduce global variables."
194
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#instance-vars"
195
+ Reference: "http://www.zenspider.com/Languages/Ruby/QuickRef.html"
196
+ Enabled: false
197
+
198
+ Style/GuardClause:
199
+ Description: "Check for conditionals that can be replaced with guard clauses"
200
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals"
201
+ Enabled: false
202
+
203
+ Style/IfUnlessModifier:
204
+ Description: >-
205
+ Favor modifier if/unless usage when you have a
206
+ single-line body.
207
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier"
208
+ Enabled: false
209
+
210
+ Style/IfWithSemicolon:
211
+ Description: "Do not use if x; .... Use the ternary operator instead."
212
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs"
213
+ Enabled: false
214
+
215
+ Style/InlineComment:
216
+ Description: "Avoid inline comments."
217
+ Enabled: false
218
+
219
+ Style/Lambda:
220
+ Description: "Use the new lambda literal syntax for single-line blocks."
221
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#lambda-multi-line"
222
+ Enabled: false
223
+
224
+ Style/LambdaCall:
225
+ Description: "Use lambda.call(...) instead of lambda.(...)."
226
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#proc-call"
227
+ Enabled: false
228
+
229
+ Style/LineEndConcatenation:
230
+ Description: >-
231
+ Use \ instead of + or << to concatenate two string literals at
232
+ line end.
233
+ Enabled: false
234
+
235
+ Metrics/MethodLength:
236
+ Description: "Avoid methods longer than 10 lines of code."
237
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#short-methods"
238
+ Enabled: false
239
+
240
+ Style/ModuleFunction:
241
+ Description: "Checks for usage of `extend self` in modules."
242
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#module-function"
243
+ Enabled: false
244
+
245
+ Style/MultilineBlockChain:
246
+ Description: "Avoid multi-line chains of blocks."
247
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#single-line-blocks"
248
+ Enabled: false
249
+
250
+ Style/NegatedIf:
251
+ Description: >-
252
+ Favor unless over if for negative conditions
253
+ (or control flow or).
254
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#unless-for-negatives"
255
+ Enabled: false
256
+
257
+ Style/NegatedWhile:
258
+ Description: "Favor until over while for negative conditions."
259
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#until-for-negatives"
260
+ Enabled: false
261
+
262
+ Style/Next:
263
+ Description: "Use `next` to skip iteration instead of a condition at the end."
264
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals"
265
+ Enabled: false
266
+
267
+ Style/NilComparison:
268
+ Description: "Prefer x.nil? to x == nil."
269
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#predicate-methods"
270
+ Enabled: false
271
+
272
+ Style/Not:
273
+ Description: "Use ! instead of not."
274
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#bang-not-not"
275
+ Enabled: false
276
+
277
+ Style/NumericLiterals:
278
+ Description: >-
279
+ Add underscores to large numeric literals to improve their
280
+ readability.
281
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics"
282
+ Enabled: false
283
+
284
+ Style/OneLineConditional:
285
+ Description: >-
286
+ Favor the ternary operator(?:) over
287
+ if/then/else/end constructs.
288
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#ternary-operator"
289
+ Enabled: false
290
+
291
+ Naming/BinaryOperatorParameterName:
292
+ Description: "When defining binary operators, name the argument other."
293
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#other-arg"
294
+ Enabled: false
295
+
296
+ Metrics/ParameterLists:
297
+ Description: "Avoid parameter lists longer than three or four parameters."
298
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#too-many-params"
299
+ Enabled: false
300
+
301
+ Style/PercentLiteralDelimiters:
302
+ Description: "Use `%`-literal delimiters consistently"
303
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#percent-literal-braces"
304
+ Enabled: false
305
+
306
+ Style/PerlBackrefs:
307
+ Description: "Avoid Perl-style regex back references."
308
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers"
309
+ Enabled: false
310
+
311
+ Naming/PredicateName:
312
+ Description: "Check the names of predicate methods."
313
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark"
314
+ ForbiddenPrefixes:
315
+ - is_
316
+ Exclude:
317
+ - "app/graphql/**/*"
318
+ - "test/**/*"
319
+
320
+ Style/Proc:
321
+ Description: "Use proc instead of Proc.new."
322
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#proc"
323
+ Enabled: false
324
+
325
+ Style/RaiseArgs:
326
+ Description: "Checks the arguments passed to raise/fail."
327
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#exception-class-messages"
328
+ Enabled: false
329
+
330
+ Style/RegexpLiteral:
331
+ Description: "Use / or %r around regular expressions."
332
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#percent-r"
333
+ Enabled: false
334
+
335
+ Style/Sample:
336
+ Description: >-
337
+ Use `sample` instead of `shuffle.first`,
338
+ `shuffle.last`, and `shuffle[Fixnum]`.
339
+ Reference: "https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code"
340
+ Enabled: false
341
+
342
+ Style/SelfAssignment:
343
+ Description: >-
344
+ Checks for places where self-assignment shorthand should have
345
+ been used.
346
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#self-assignment"
347
+ Enabled: false
348
+
349
+ Style/SingleLineBlockParams:
350
+ Description: "Enforces the names of some block params."
351
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#reduce-blocks"
352
+ Enabled: false
353
+
354
+ Style/SingleLineMethods:
355
+ Description: "Avoid single-line methods."
356
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-single-line-methods"
357
+ Enabled: false
358
+
359
+ Style/SignalException:
360
+ Description: "Checks for proper usage of fail and raise."
361
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#fail-method"
362
+ Enabled: false
363
+
364
+ Style/SpecialGlobalVars:
365
+ Description: "Avoid Perl-style global variables."
366
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms"
367
+ Enabled: false
368
+
369
+ Style/StringLiterals:
370
+ Description: "Checks if uses of quotes match the configured preference."
371
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#consistent-string-literals"
372
+ EnforcedStyle: double_quotes
373
+ Enabled: true
374
+
375
+ Style/TrailingCommaInArguments:
376
+ Description: "Checks for trailing comma in argument lists."
377
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas"
378
+ EnforcedStyleForMultiline: comma
379
+ SupportedStylesForMultiline:
380
+ - comma
381
+ - consistent_comma
382
+ - no_comma
383
+ Enabled: true
384
+
385
+ Style/TrailingCommaInArrayLiteral:
386
+ Description: "Checks for trailing comma in array literals."
387
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas"
388
+ EnforcedStyleForMultiline: comma
389
+ SupportedStylesForMultiline:
390
+ - comma
391
+ - consistent_comma
392
+ - no_comma
393
+ Enabled: true
394
+
395
+ Style/TrailingCommaInHashLiteral:
396
+ Description: "Checks for trailing comma in hash literals."
397
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas"
398
+ EnforcedStyleForMultiline: comma
399
+ SupportedStylesForMultiline:
400
+ - comma
401
+ - consistent_comma
402
+ - no_comma
403
+ Enabled: true
404
+
405
+ Style/TrivialAccessors:
406
+ Description: "Prefer attr_* methods to trivial readers/writers."
407
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#attr_family"
408
+ Enabled: false
409
+
410
+ Style/VariableInterpolation:
411
+ Description: >-
412
+ Don't interpolate global, instance and class variables
413
+ directly in strings.
414
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#curlies-interpolate"
415
+ Enabled: false
416
+
417
+ Style/WhenThen:
418
+ Description: "Use when x then ... for one-line cases."
419
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#one-line-cases"
420
+ Enabled: false
421
+
422
+ Style/WhileUntilModifier:
423
+ Description: >-
424
+ Favor modifier while/until usage when you have a
425
+ single-line body.
426
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier"
427
+ Enabled: false
428
+
429
+ Style/SymbolArray:
430
+ Enabled: false
431
+
432
+ Style/WordArray:
433
+ Description: "Use %w or %W for arrays of words."
434
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#percent-w"
435
+ Enabled: false
436
+
437
+ # Layout
438
+
439
+ Layout/EmptyLineAfterMagicComment:
440
+ Enabled: false
441
+
442
+ Layout/ParameterAlignment:
443
+ Description: "Here we check if the parameters on a multi-line method call or definition are aligned."
444
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-double-indent"
445
+ Enabled: false
446
+
447
+ Layout/ConditionPosition:
448
+ Description: >-
449
+ Checks for condition placed in a confusing position relative to
450
+ the keyword.
451
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#same-line-condition"
452
+ Enabled: false
453
+
454
+ Layout/DotPosition:
455
+ Description: "Checks the position of the dot in multi-line method calls."
456
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains"
457
+ EnforcedStyle: leading
458
+
459
+ Layout/ExtraSpacing:
460
+ Description: "Do not use unnecessary spacing."
461
+ Enabled: true
462
+
463
+ Layout/MultilineOperationIndentation:
464
+ Description: >-
465
+ Checks indentation of binary operations that span more than
466
+ one line.
467
+ Enabled: true
468
+ EnforcedStyle: indented
469
+
470
+ Layout/MultilineMethodCallIndentation:
471
+ Description: >-
472
+ Checks indentation of method calls with the dot operator
473
+ that span more than one line.
474
+ Enabled: true
475
+ EnforcedStyle: indented
476
+
477
+ Layout/InitialIndentation:
478
+ Description: >-
479
+ Checks the indentation of the first non-blank non-comment line in a file.
480
+ Enabled: false
481
+
482
+ Layout/LineLength:
483
+ Enabled: false
484
+
485
+ Layout/SpaceInsideHashLiteralBraces:
486
+ Enabled: true
487
+ EnforcedStyle: no_space
488
+ EnforcedStyleForEmptyBraces: no_space
489
+
490
+ Layout/SpaceAroundMethodCallOperator:
491
+ Description: "Checks method call operators to not have spaces around them."
492
+ Enabled: true
493
+ VersionAdded: "0.82"
494
+
495
+ Layout/DefEndAlignment:
496
+ Enabled: true
497
+ EnforcedStyleAlignWith: start_of_line
498
+ AutoCorrect: true
499
+
500
+ Layout/EndAlignment:
501
+ Enabled: true
502
+ AutoCorrect: true
503
+ EnforcedStyleAlignWith: variable
504
+
505
+ Layout/ElseAlignment:
506
+ Enabled: true
507
+
508
+ # Lint
509
+
510
+ Lint/AmbiguousOperator:
511
+ Description: >-
512
+ Checks for ambiguous operators in the first argument of a
513
+ method invocation without parentheses.
514
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#parens-as-args"
515
+ Enabled: false
516
+
517
+ Lint/AmbiguousRegexpLiteral:
518
+ Description: >-
519
+ Checks for ambiguous regexp literals in the first argument of
520
+ a method invocation without parenthesis.
521
+ Enabled: false
522
+
523
+ Lint/AssignmentInCondition:
524
+ Description: "Don't use assignment in conditions."
525
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition"
526
+ Enabled: false
527
+
528
+ Lint/CircularArgumentReference:
529
+ Description: "Don't refer to the keyword argument in the default value."
530
+ Enabled: false
531
+
532
+ Lint/DeprecatedClassMethods:
533
+ Description: "Check for deprecated class method calls."
534
+ Enabled: false
535
+
536
+ Lint/DuplicateHashKey:
537
+ Description: "Check for duplicate keys in hash literals."
538
+ Enabled: false
539
+
540
+ Lint/EachWithObjectArgument:
541
+ Description: "Check for immutable argument given to each_with_object."
542
+ Enabled: false
543
+
544
+ Lint/ElseLayout:
545
+ Description: "Check for odd code arrangement in an else block."
546
+ Enabled: false
547
+
548
+ Lint/FormatParameterMismatch:
549
+ Description: "The number of parameters to format/sprint must match the fields."
550
+ Enabled: false
551
+
552
+ Lint/SuppressedException:
553
+ Description: "Don't suppress exception."
554
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions"
555
+ Enabled: false
556
+
557
+ Lint/LiteralAsCondition:
558
+ Description: "Checks of literals used in conditions."
559
+ Enabled: false
560
+
561
+ Lint/LiteralInInterpolation:
562
+ Description: "Checks for literals used in interpolation."
563
+ Enabled: false
564
+
565
+ Lint/Loop:
566
+ Description: >-
567
+ Use Kernel#loop with break rather than begin/end/until or
568
+ begin/end/while for post-loop tests.
569
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#loop-with-break"
570
+ Enabled: false
571
+
572
+ Lint/NestedMethodDefinition:
573
+ Description: "Do not use nested method definitions."
574
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-nested-methods"
575
+ Enabled: false
576
+
577
+ Lint/NonLocalExitFromIterator:
578
+ Description: "Do not use return in iterator to cause non-local exit."
579
+ Enabled: false
580
+
581
+ Lint/ParenthesesAsGroupedExpression:
582
+ Description: >-
583
+ Checks for method calls with a space before the opening
584
+ parenthesis.
585
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#parens-no-spaces"
586
+ Enabled: false
587
+
588
+ Lint/RequireParentheses:
589
+ Description: >-
590
+ Use parentheses in the method call to avoid confusion
591
+ about precedence.
592
+ Enabled: false
593
+
594
+ Lint/UnderscorePrefixedVariableName:
595
+ Description: "Do not use prefix `_` for a variable that is used."
596
+ Enabled: false
597
+
598
+ Lint/RedundantCopDisableDirective:
599
+ Description: >-
600
+ Checks for rubocop:disable comments that can be removed.
601
+ Note: this cop is not disabled when disabling all cops.
602
+ It must be explicitly disabled.
603
+ Enabled: false
604
+
605
+ Lint/Void:
606
+ Description: "Possible use of operator/literal/variable in void context."
607
+ Enabled: false
608
+
609
+ Lint/RaiseException:
610
+ Enabled: true
611
+
612
+ Lint/StructNewOverride:
613
+ Enabled: true
614
+
615
+ Style/SlicingWithRange:
616
+ Description: "Checks array slicing is done with endless ranges when suitable."
617
+ Enabled: true
618
+ VersionAdded: "0.83"
619
+ Safe: false
620
+
621
+ Layout/EmptyLinesAroundAttributeAccessor:
622
+ Description: "Keep blank lines around attribute accessors."
623
+ StyleGuide: "#empty-lines-around-attribute-accessor"
624
+ Enabled: true
625
+ VersionAdded: "0.83"
626
+ VersionChanged: "0.84"
627
+ AllowAliasSyntax: true
628
+ AllowedMethods:
629
+ - alias_method
630
+ - public
631
+ - protected
632
+ - private
633
+
634
+ Lint/DeprecatedOpenSSLConstant:
635
+ Description: "Don't use algorithm constants for `OpenSSL::Cipher` and `OpenSSL::Digest`."
636
+ Enabled: true
637
+ VersionAdded: "0.84"
638
+
639
+ Metrics/PerceivedComplexity:
640
+ Description: >-
641
+ A complexity metric geared towards measuring complexity for a
642
+ human reader.
643
+ Enabled: true
644
+ VersionAdded: "0.25"
645
+ VersionChanged: "0.81"
646
+ AllowedMethods: []
647
+ Max: 20
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.1.3
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.3
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in playwright-rails.gemspec
6
+ gemspec