unibuf 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b0bf200bad4c8bf1cbc948a866b9698e2b8aa7b52ba21c4042dc4c5b2597c664
4
+ data.tar.gz: 60bafa8fd0aec9aba93e20e7a63024f2ba80ceb18736b69d244f4ba69f16919d
5
+ SHA512:
6
+ metadata.gz: fa226a2f49053b9aaa5e54a1725c7b91b9ab5c440cbf29e07360455889ced2ba7a6419971ffebae3b4e52081f2a87587b73b8a3d36add34616cb3d0b5dc7869e
7
+ data.tar.gz: 9c3036055418a0ec6ac4d25b2cd96ae10dc7659652a2477f5a2a97f110c7162474072fc842a7fb42d915397e3a0ca8dfe509fc3c45e5eeddaf2701ec43eba56e
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ inherit_from:
4
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
5
+ - .rubocop_todo.yml
6
+
7
+ # local repo-specific modifications
8
+ # ...
9
+
10
+ AllCops:
11
+ NewCops: enable
12
+
13
+ plugins:
14
+ - rubocop-rake
15
+ - rubocop-rspec
16
+ - rubocop-performance
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,498 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2025-11-19 06:24:19 UTC using RuboCop version 1.81.7.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 2
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
12
+ Bundler/OrderedGems:
13
+ Exclude:
14
+ - 'Gemfile'
15
+
16
+ # Offense count: 3
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
19
+ Gemspec/OrderedDependencies:
20
+ Exclude:
21
+ - 'unibuf.gemspec'
22
+
23
+ # Offense count: 1
24
+ # This cop supports safe autocorrection (--autocorrect).
25
+ # Configuration parameters: Severity.
26
+ Gemspec/RequireMFA:
27
+ Exclude:
28
+ - 'unibuf.gemspec'
29
+
30
+ # Offense count: 32
31
+ # This cop supports safe autocorrection (--autocorrect).
32
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
33
+ # SupportedStyles: with_first_argument, with_fixed_indentation
34
+ Layout/ArgumentAlignment:
35
+ Enabled: false
36
+
37
+ # Offense count: 4
38
+ # This cop supports safe autocorrection (--autocorrect).
39
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
40
+ # SupportedStyles: with_first_element, with_fixed_indentation
41
+ Layout/ArrayAlignment:
42
+ Exclude:
43
+ - 'lib/unibuf/models/values/scalar_value.rb'
44
+ - 'lib/unibuf/validators/type_validator.rb'
45
+ - 'unibuf.gemspec'
46
+
47
+ # Offense count: 17
48
+ # This cop supports safe autocorrection (--autocorrect).
49
+ # Configuration parameters: EnforcedStyleAlignWith.
50
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
51
+ Layout/BlockAlignment:
52
+ Exclude:
53
+ - 'lib/unibuf/models/values/list_value.rb'
54
+ - 'lib/unibuf/models/values/scalar_value.rb'
55
+ - 'lib/unibuf/parsers/proto3/grammar.rb'
56
+ - 'lib/unibuf/parsers/proto3/processor.rb'
57
+ - 'lib/unibuf/parsers/textproto/grammar.rb'
58
+ - 'lib/unibuf/parsers/textproto/processor.rb'
59
+ - 'spec/unibuf/models/message_definition_spec.rb'
60
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
61
+
62
+ # Offense count: 16
63
+ # This cop supports safe autocorrection (--autocorrect).
64
+ Layout/BlockEndNewline:
65
+ Exclude:
66
+ - 'lib/unibuf/models/values/list_value.rb'
67
+ - 'lib/unibuf/models/values/scalar_value.rb'
68
+ - 'lib/unibuf/parsers/proto3/grammar.rb'
69
+ - 'lib/unibuf/parsers/proto3/processor.rb'
70
+ - 'lib/unibuf/parsers/textproto/grammar.rb'
71
+ - 'lib/unibuf/parsers/textproto/processor.rb'
72
+ - 'spec/unibuf/models/message_definition_spec.rb'
73
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
74
+
75
+ # Offense count: 5
76
+ # This cop supports safe autocorrection (--autocorrect).
77
+ Layout/EmptyLineAfterGuardClause:
78
+ Exclude:
79
+ - 'lib/unibuf/commands/convert.rb'
80
+ - 'lib/unibuf/models/enum_definition.rb'
81
+ - 'lib/unibuf/models/field_definition.rb'
82
+ - 'lib/unibuf/models/values/list_value.rb'
83
+ - 'lib/unibuf/models/values/map_value.rb'
84
+
85
+ # Offense count: 2
86
+ # This cop supports safe autocorrection (--autocorrect).
87
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
88
+ Layout/ExtraSpacing:
89
+ Exclude:
90
+ - 'lib/unibuf/cli.rb'
91
+ - 'lib/unibuf/parsers/textproto/processor.rb'
92
+
93
+ # Offense count: 9
94
+ # This cop supports safe autocorrection (--autocorrect).
95
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
96
+ # SupportedHashRocketStyles: key, separator, table
97
+ # SupportedColonStyles: key, separator, table
98
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
99
+ Layout/HashAlignment:
100
+ Exclude:
101
+ - 'spec/unibuf/models/field_spec.rb'
102
+ - 'spec/unibuf/models/message_definition_spec.rb'
103
+ - 'unibuf.gemspec'
104
+
105
+ # Offense count: 1
106
+ # This cop supports safe autocorrection (--autocorrect).
107
+ # Configuration parameters: EnforcedStyle.
108
+ # SupportedStyles: normal, indented_internal_methods
109
+ Layout/IndentationConsistency:
110
+ Exclude:
111
+ - 'unibuf.gemspec'
112
+
113
+ # Offense count: 32
114
+ # This cop supports safe autocorrection (--autocorrect).
115
+ # Configuration parameters: Width, AllowedPatterns.
116
+ Layout/IndentationWidth:
117
+ Exclude:
118
+ - 'lib/unibuf/models/values/list_value.rb'
119
+ - 'lib/unibuf/models/values/scalar_value.rb'
120
+ - 'lib/unibuf/parsers/proto3/grammar.rb'
121
+ - 'lib/unibuf/parsers/proto3/processor.rb'
122
+ - 'lib/unibuf/parsers/textproto/grammar.rb'
123
+ - 'lib/unibuf/parsers/textproto/processor.rb'
124
+ - 'spec/unibuf/models/message_definition_spec.rb'
125
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
126
+
127
+ # Offense count: 77
128
+ # This cop supports safe autocorrection (--autocorrect).
129
+ # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
130
+ # URISchemes: http, https
131
+ Layout/LineLength:
132
+ Enabled: false
133
+
134
+ # Offense count: 13
135
+ # This cop supports safe autocorrection (--autocorrect).
136
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
137
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
138
+ Layout/MultilineMethodCallIndentation:
139
+ Exclude:
140
+ - 'lib/unibuf/models/field.rb'
141
+ - 'lib/unibuf/models/values/scalar_value.rb'
142
+ - 'lib/unibuf/parsers/textproto/processor.rb'
143
+
144
+ # Offense count: 19
145
+ # This cop supports safe autocorrection (--autocorrect).
146
+ # Configuration parameters: EnforcedStyle.
147
+ # SupportedStyles: final_newline, final_blank_line
148
+ Layout/TrailingEmptyLines:
149
+ Enabled: false
150
+
151
+ # Offense count: 32
152
+ # This cop supports safe autocorrection (--autocorrect).
153
+ # Configuration parameters: AllowInHeredoc.
154
+ Layout/TrailingWhitespace:
155
+ Enabled: false
156
+
157
+ # Offense count: 8
158
+ # This cop supports safe autocorrection (--autocorrect).
159
+ Lint/AmbiguousOperatorPrecedence:
160
+ Exclude:
161
+ - 'lib/unibuf/parsers/textproto/grammar.rb'
162
+ - 'lib/unibuf/validators/type_validator.rb'
163
+
164
+ # Offense count: 8
165
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
166
+ Lint/DuplicateBranch:
167
+ Exclude:
168
+ - 'lib/unibuf.rb'
169
+ - 'lib/unibuf/models/field.rb'
170
+ - 'lib/unibuf/models/field_definition.rb'
171
+ - 'lib/unibuf/models/values/list_value.rb'
172
+ - 'lib/unibuf/models/values/map_value.rb'
173
+ - 'lib/unibuf/models/values/scalar_value.rb'
174
+
175
+ # Offense count: 2
176
+ # This cop supports unsafe autocorrection (--autocorrect-all).
177
+ Lint/RedundantDirGlobSort:
178
+ Exclude:
179
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
180
+
181
+ # Offense count: 1
182
+ # This cop supports unsafe autocorrection (--autocorrect-all).
183
+ # Configuration parameters: AllowedMethods, InferNonNilReceiver, AdditionalNilMethods.
184
+ # AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
185
+ # AdditionalNilMethods: present?, blank?, try, try!
186
+ Lint/RedundantSafeNavigation:
187
+ Exclude:
188
+ - 'lib/unibuf/parsers/textproto/processor.rb'
189
+
190
+ # Offense count: 1
191
+ # Configuration parameters: AllowedPatterns.
192
+ # AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
193
+ Lint/UnreachableLoop:
194
+ Exclude:
195
+ - 'lib/unibuf/models/message.rb'
196
+
197
+ # Offense count: 3
198
+ # This cop supports safe autocorrection (--autocorrect).
199
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
200
+ # NotImplementedExceptions: NotImplementedError
201
+ Lint/UnusedMethodArgument:
202
+ Exclude:
203
+ - 'lib/unibuf/commands/validate.rb'
204
+ - 'lib/unibuf/models/message.rb'
205
+ - 'lib/unibuf/models/values/scalar_value.rb'
206
+
207
+ # Offense count: 19
208
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
209
+ Metrics/AbcSize:
210
+ Exclude:
211
+ - 'lib/unibuf/commands/convert.rb'
212
+ - 'lib/unibuf/commands/parse.rb'
213
+ - 'lib/unibuf/commands/schema.rb'
214
+ - 'lib/unibuf/commands/validate.rb'
215
+ - 'lib/unibuf/models/field.rb'
216
+ - 'lib/unibuf/models/field_definition.rb'
217
+ - 'lib/unibuf/models/message_definition.rb'
218
+ - 'lib/unibuf/models/schema.rb'
219
+ - 'lib/unibuf/models/values/scalar_value.rb'
220
+ - 'lib/unibuf/parsers/proto3/processor.rb'
221
+ - 'lib/unibuf/parsers/textproto/parser.rb'
222
+ - 'lib/unibuf/parsers/textproto/processor.rb'
223
+ - 'lib/unibuf/validators/schema_validator.rb'
224
+ - 'lib/unibuf/validators/type_validator.rb'
225
+
226
+ # Offense count: 13
227
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
228
+ Metrics/CyclomaticComplexity:
229
+ Exclude:
230
+ - 'lib/unibuf.rb'
231
+ - 'lib/unibuf/commands/validate.rb'
232
+ - 'lib/unibuf/models/field_definition.rb'
233
+ - 'lib/unibuf/models/message_definition.rb'
234
+ - 'lib/unibuf/models/schema.rb'
235
+ - 'lib/unibuf/models/values/base_value.rb'
236
+ - 'lib/unibuf/models/values/scalar_value.rb'
237
+ - 'lib/unibuf/parsers/proto3/processor.rb'
238
+ - 'lib/unibuf/parsers/textproto/processor.rb'
239
+ - 'lib/unibuf/validators/schema_validator.rb'
240
+
241
+ # Offense count: 38
242
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
243
+ Metrics/MethodLength:
244
+ Max: 38
245
+
246
+ # Offense count: 5
247
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
248
+ Metrics/PerceivedComplexity:
249
+ Exclude:
250
+ - 'lib/unibuf/models/field_definition.rb'
251
+ - 'lib/unibuf/models/values/scalar_value.rb'
252
+ - 'lib/unibuf/parsers/proto3/processor.rb'
253
+ - 'lib/unibuf/parsers/textproto/processor.rb'
254
+
255
+ # Offense count: 7
256
+ # This cop supports safe autocorrection (--autocorrect).
257
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
258
+ # SupportedStyles: anonymous, explicit
259
+ Naming/BlockForwarding:
260
+ Exclude:
261
+ - 'lib/unibuf/models/message.rb'
262
+ - 'lib/unibuf/models/values/list_value.rb'
263
+
264
+ # Offense count: 11
265
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
266
+ # AllowedMethods: call
267
+ # WaywardPredicates: nonzero?
268
+ Naming/PredicateMethod:
269
+ Exclude:
270
+ - 'lib/unibuf/models/enum_definition.rb'
271
+ - 'lib/unibuf/models/field_definition.rb'
272
+ - 'lib/unibuf/models/message.rb'
273
+ - 'lib/unibuf/models/message_definition.rb'
274
+ - 'lib/unibuf/models/schema.rb'
275
+ - 'lib/unibuf/models/values/base_value.rb'
276
+ - 'lib/unibuf/models/values/list_value.rb'
277
+ - 'lib/unibuf/models/values/map_value.rb'
278
+ - 'lib/unibuf/models/values/message_value.rb'
279
+ - 'lib/unibuf/models/values/scalar_value.rb'
280
+ - 'lib/unibuf/validators/type_validator.rb'
281
+
282
+ # Offense count: 2
283
+ # This cop supports safe autocorrection (--autocorrect).
284
+ Performance/BlockGivenWithExplicitBlock:
285
+ Exclude:
286
+ - 'lib/unibuf/models/message.rb'
287
+
288
+ # Offense count: 1
289
+ # This cop supports unsafe autocorrection (--autocorrect-all).
290
+ Performance/MapCompact:
291
+ Exclude:
292
+ - 'lib/unibuf/parsers/proto3/processor.rb'
293
+
294
+ # Offense count: 1
295
+ # This cop supports unsafe autocorrection (--autocorrect-all).
296
+ # Configuration parameters: AllowRegexpMatch.
297
+ Performance/RedundantEqualityComparisonBlock:
298
+ Exclude:
299
+ - 'lib/unibuf/models/values/list_value.rb'
300
+
301
+ # Offense count: 1
302
+ # This cop supports unsafe autocorrection (--autocorrect-all).
303
+ RSpec/BeEq:
304
+ Exclude:
305
+ - 'spec/unibuf/models/field_spec.rb'
306
+
307
+ # Offense count: 1
308
+ # This cop supports safe autocorrection (--autocorrect).
309
+ # Configuration parameters: EnforcedStyle.
310
+ # SupportedStyles: be, be_nil
311
+ RSpec/BeNil:
312
+ Exclude:
313
+ - 'spec/unibuf_spec.rb'
314
+
315
+ # Offense count: 1
316
+ # Configuration parameters: Prefixes, AllowedPatterns.
317
+ # Prefixes: when, with, without
318
+ RSpec/ContextWording:
319
+ Exclude:
320
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
321
+
322
+ # Offense count: 1
323
+ # Configuration parameters: IgnoredMetadata.
324
+ RSpec/DescribeClass:
325
+ Exclude:
326
+ - '**/spec/features/**/*'
327
+ - '**/spec/requests/**/*'
328
+ - '**/spec/routing/**/*'
329
+ - '**/spec/system/**/*'
330
+ - '**/spec/views/**/*'
331
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
332
+
333
+ # Offense count: 34
334
+ # Configuration parameters: CountAsOne.
335
+ RSpec/ExampleLength:
336
+ Max: 22
337
+
338
+ # Offense count: 2
339
+ # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
340
+ RSpec/IndexedLet:
341
+ Exclude:
342
+ - 'spec/unibuf/models/message_definition_spec.rb'
343
+
344
+ # Offense count: 36
345
+ RSpec/MultipleExpectations:
346
+ Max: 5
347
+
348
+ # Offense count: 6
349
+ # This cop supports safe autocorrection (--autocorrect).
350
+ # Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
351
+ # RedundantRestArgumentNames: args, arguments
352
+ # RedundantKeywordRestArgumentNames: kwargs, options, opts
353
+ # RedundantBlockArgumentNames: blk, block, proc
354
+ Style/ArgumentsForwarding:
355
+ Exclude:
356
+ - 'lib/unibuf/models/values/list_value.rb'
357
+
358
+ # Offense count: 25
359
+ # This cop supports safe autocorrection (--autocorrect).
360
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
361
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
362
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
363
+ # FunctionalMethods: let, let!, subject, watch
364
+ # AllowedMethods: lambda, proc, it
365
+ Style/BlockDelimiters:
366
+ Exclude:
367
+ - 'lib/unibuf/models/values/list_value.rb'
368
+ - 'lib/unibuf/models/values/scalar_value.rb'
369
+ - 'lib/unibuf/parsers/proto3/grammar.rb'
370
+ - 'lib/unibuf/parsers/proto3/processor.rb'
371
+ - 'lib/unibuf/parsers/textproto/grammar.rb'
372
+ - 'lib/unibuf/parsers/textproto/processor.rb'
373
+ - 'spec/unibuf/models/message_definition_spec.rb'
374
+ - 'spec/unibuf/parsers/textproto/integration_spec.rb'
375
+
376
+ # Offense count: 3
377
+ # This cop supports unsafe autocorrection (--autocorrect-all).
378
+ Style/ComparableBetween:
379
+ Exclude:
380
+ - 'lib/unibuf.rb'
381
+ - 'lib/unibuf/validators/type_validator.rb'
382
+
383
+ # Offense count: 1
384
+ # This cop supports safe autocorrection (--autocorrect).
385
+ Style/DefWithParentheses:
386
+ Exclude:
387
+ - 'lib/unibuf/models/message.rb'
388
+
389
+ # Offense count: 1
390
+ # This cop supports unsafe autocorrection (--autocorrect-all).
391
+ Style/MapIntoArray:
392
+ Exclude:
393
+ - 'lib/unibuf/models/message.rb'
394
+
395
+ # Offense count: 11
396
+ # This cop supports safe autocorrection (--autocorrect).
397
+ Style/MultilineIfModifier:
398
+ Exclude:
399
+ - 'lib/unibuf.rb'
400
+ - 'lib/unibuf/commands/convert.rb'
401
+ - 'lib/unibuf/models/enum_definition.rb'
402
+ - 'lib/unibuf/models/field_definition.rb'
403
+ - 'lib/unibuf/parsers/textproto/parser.rb'
404
+ - 'lib/unibuf/validators/type_validator.rb'
405
+
406
+ # Offense count: 1
407
+ # This cop supports safe autocorrection (--autocorrect).
408
+ Style/NestedFileDirname:
409
+ Exclude:
410
+ - 'bin/import-google-fonts-fixtures'
411
+
412
+ # Offense count: 2
413
+ # This cop supports safe autocorrection (--autocorrect).
414
+ # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
415
+ Style/ParenthesesAroundCondition:
416
+ Exclude:
417
+ - 'lib/unibuf.rb'
418
+
419
+ # Offense count: 2
420
+ # This cop supports safe autocorrection (--autocorrect).
421
+ Style/RedundantParentheses:
422
+ Exclude:
423
+ - 'lib/unibuf.rb'
424
+
425
+ # Offense count: 1
426
+ # This cop supports unsafe autocorrection (--autocorrect-all).
427
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
428
+ # AllowedMethods: present?, blank?, presence, try, try!
429
+ Style/SafeNavigation:
430
+ Exclude:
431
+ - 'lib/unibuf/parsers/textproto/processor.rb'
432
+
433
+ # Offense count: 1
434
+ # This cop supports unsafe autocorrection (--autocorrect-all).
435
+ # Configuration parameters: Mode.
436
+ Style/StringConcatenation:
437
+ Exclude:
438
+ - 'lib/unibuf/validators/schema_validator.rb'
439
+
440
+ # Offense count: 7
441
+ # This cop supports safe autocorrection (--autocorrect).
442
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
443
+ # SupportedStyles: single_quotes, double_quotes
444
+ Style/StringLiterals:
445
+ Exclude:
446
+ - 'lib/unibuf/parsers/proto3/grammar.rb'
447
+ - 'lib/unibuf/parsers/textproto/processor.rb'
448
+ - 'unibuf.gemspec'
449
+
450
+ # Offense count: 1
451
+ # This cop supports safe autocorrection (--autocorrect).
452
+ # Configuration parameters: EnforcedStyle.
453
+ # SupportedStyles: single_quotes, double_quotes
454
+ Style/StringLiteralsInInterpolation:
455
+ Exclude:
456
+ - 'lib/unibuf/parsers/textproto/parser.rb'
457
+
458
+ # Offense count: 1
459
+ # This cop supports safe autocorrection (--autocorrect).
460
+ Style/SuperArguments:
461
+ Exclude:
462
+ - 'lib/unibuf/models/values/message_value.rb'
463
+
464
+ # Offense count: 34
465
+ # This cop supports safe autocorrection (--autocorrect).
466
+ # Configuration parameters: EnforcedStyleForMultiline.
467
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
468
+ Style/TrailingCommaInArguments:
469
+ Exclude:
470
+ - 'lib/unibuf/parsers/proto3/processor.rb'
471
+ - 'spec/unibuf/models/field_spec.rb'
472
+ - 'spec/unibuf/models/message_definition_spec.rb'
473
+ - 'spec/unibuf/models/message_spec.rb'
474
+
475
+ # Offense count: 20
476
+ # This cop supports safe autocorrection (--autocorrect).
477
+ # Configuration parameters: EnforcedStyleForMultiline.
478
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
479
+ Style/TrailingCommaInArrayLiteral:
480
+ Exclude:
481
+ - 'spec/unibuf/models/message_spec.rb'
482
+ - 'spec/unibuf/parsers/textproto/processor_spec.rb'
483
+
484
+ # Offense count: 35
485
+ # This cop supports safe autocorrection (--autocorrect).
486
+ # Configuration parameters: EnforcedStyleForMultiline.
487
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
488
+ Style/TrailingCommaInHashLiteral:
489
+ Exclude:
490
+ - 'lib/unibuf/models/enum_definition.rb'
491
+ - 'lib/unibuf/models/field_definition.rb'
492
+ - 'lib/unibuf/models/message.rb'
493
+ - 'lib/unibuf/models/message_definition.rb'
494
+ - 'lib/unibuf/models/schema.rb'
495
+ - 'lib/unibuf/parsers/proto3/processor.rb'
496
+ - 'lib/unibuf/validators/type_validator.rb'
497
+ - 'spec/unibuf/models/message_spec.rb'
498
+ - 'spec/unibuf/parsers/textproto/processor_spec.rb'