unibuf 0.1.0 → 0.1.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 +4 -4
- data/.rubocop_todo.yml +133 -255
- data/README.adoc +217 -220
- data/lib/unibuf/models/values/scalar_value.rb +2 -2
- data/lib/unibuf/parsers/binary/wire_format_parser.rb +199 -19
- data/lib/unibuf/parsers/textproto/grammar.rb +1 -1
- data/lib/unibuf/parsers/textproto/processor.rb +10 -0
- data/lib/unibuf/validators/type_validator.rb +1 -1
- data/lib/unibuf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6404bb88c786d97a72110bdc7dd051942a4c1379d2c0befc36150015bcaa3ae6
|
|
4
|
+
data.tar.gz: e5f726931a03de7ab70c6edc4721faf17795d970fa0655c6ef04a2b778f357c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55fc238fba00827de96158720c19b2a6052ab62c3510a530523afc05a8e5e44293672be32844c42a0e812c59a72dca2a3556ea91bd2df96458e2dddfa63363dc
|
|
7
|
+
data.tar.gz: 7c31e3921620dd6d6301b3a4cd8fcc696d06258958a1eb56e01bd1687c3a435a2c0ccf50b0825bcd31bd155ee42d047ea7511baa8465650c0f4ace1d8cd2c2ea
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,96 +1,78 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2025-11-19
|
|
3
|
+
# on 2025-11-19 09:41:01 UTC using RuboCop version 1.81.7.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
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
|
|
9
|
+
# Offense count: 15
|
|
31
10
|
# This cop supports safe autocorrection (--autocorrect).
|
|
32
11
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
33
12
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
34
13
|
Layout/ArgumentAlignment:
|
|
35
|
-
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
16
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
17
|
+
- 'lib/unibuf/validators/type_validator.rb'
|
|
18
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
19
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
20
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
36
21
|
|
|
37
|
-
# Offense count:
|
|
22
|
+
# Offense count: 3
|
|
38
23
|
# This cop supports safe autocorrection (--autocorrect).
|
|
39
24
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
40
25
|
# SupportedStyles: with_first_element, with_fixed_indentation
|
|
41
26
|
Layout/ArrayAlignment:
|
|
42
27
|
Exclude:
|
|
43
|
-
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
44
28
|
- 'lib/unibuf/validators/type_validator.rb'
|
|
45
|
-
- 'unibuf.
|
|
29
|
+
- 'spec/unibuf/models/values/list_value_spec.rb'
|
|
46
30
|
|
|
47
|
-
# Offense count:
|
|
31
|
+
# Offense count: 21
|
|
48
32
|
# This cop supports safe autocorrection (--autocorrect).
|
|
49
33
|
# Configuration parameters: EnforcedStyleAlignWith.
|
|
50
34
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
51
35
|
Layout/BlockAlignment:
|
|
52
36
|
Exclude:
|
|
53
|
-
- 'lib/unibuf/models/values/list_value.rb'
|
|
54
37
|
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
55
|
-
- '
|
|
56
|
-
- '
|
|
57
|
-
- '
|
|
58
|
-
- '
|
|
59
|
-
- 'spec/unibuf/
|
|
60
|
-
- 'spec/unibuf/parsers/textproto/integration_spec.rb'
|
|
38
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
39
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
40
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
41
|
+
- 'spec/unibuf/parsers/proto3/parser_spec.rb'
|
|
42
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
61
43
|
|
|
62
|
-
# Offense count:
|
|
44
|
+
# Offense count: 20
|
|
63
45
|
# This cop supports safe autocorrection (--autocorrect).
|
|
64
46
|
Layout/BlockEndNewline:
|
|
65
47
|
Exclude:
|
|
66
|
-
- '
|
|
67
|
-
- '
|
|
68
|
-
- '
|
|
69
|
-
- '
|
|
70
|
-
- '
|
|
71
|
-
- 'lib/unibuf/parsers/textproto/processor.rb'
|
|
72
|
-
- 'spec/unibuf/models/message_definition_spec.rb'
|
|
73
|
-
- 'spec/unibuf/parsers/textproto/integration_spec.rb'
|
|
48
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
49
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
50
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
51
|
+
- 'spec/unibuf/parsers/proto3/parser_spec.rb'
|
|
52
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
74
53
|
|
|
75
|
-
# Offense count:
|
|
54
|
+
# Offense count: 1
|
|
76
55
|
# This cop supports safe autocorrection (--autocorrect).
|
|
77
56
|
Layout/EmptyLineAfterGuardClause:
|
|
78
57
|
Exclude:
|
|
79
|
-
- 'lib/unibuf/
|
|
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'
|
|
58
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
84
59
|
|
|
85
|
-
# Offense count:
|
|
60
|
+
# Offense count: 1
|
|
86
61
|
# This cop supports safe autocorrection (--autocorrect).
|
|
87
62
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
88
63
|
Layout/ExtraSpacing:
|
|
89
64
|
Exclude:
|
|
90
|
-
- '
|
|
91
|
-
- 'lib/unibuf/parsers/textproto/processor.rb'
|
|
65
|
+
- 'spec/spec_helper.rb'
|
|
92
66
|
|
|
93
|
-
# Offense count:
|
|
67
|
+
# Offense count: 2
|
|
68
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
69
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
70
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
71
|
+
Layout/FirstArrayElementIndentation:
|
|
72
|
+
Exclude:
|
|
73
|
+
- 'spec/unibuf/models/values/list_value_spec.rb'
|
|
74
|
+
|
|
75
|
+
# Offense count: 4
|
|
94
76
|
# This cop supports safe autocorrection (--autocorrect).
|
|
95
77
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
96
78
|
# SupportedHashRocketStyles: key, separator, table
|
|
@@ -98,70 +80,67 @@ Layout/ExtraSpacing:
|
|
|
98
80
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
99
81
|
Layout/HashAlignment:
|
|
100
82
|
Exclude:
|
|
101
|
-
- 'spec/unibuf/models/
|
|
102
|
-
- 'spec/unibuf/models/
|
|
103
|
-
- 'unibuf.gemspec'
|
|
83
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
84
|
+
- 'spec/unibuf/models/values/message_value_spec.rb'
|
|
104
85
|
|
|
105
|
-
# Offense count:
|
|
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
|
|
86
|
+
# Offense count: 40
|
|
114
87
|
# This cop supports safe autocorrection (--autocorrect).
|
|
115
88
|
# Configuration parameters: Width, AllowedPatterns.
|
|
116
89
|
Layout/IndentationWidth:
|
|
117
90
|
Exclude:
|
|
118
|
-
- '
|
|
119
|
-
- '
|
|
120
|
-
- '
|
|
121
|
-
- '
|
|
122
|
-
- '
|
|
123
|
-
- 'lib/unibuf/parsers/textproto/processor.rb'
|
|
124
|
-
- 'spec/unibuf/models/message_definition_spec.rb'
|
|
125
|
-
- 'spec/unibuf/parsers/textproto/integration_spec.rb'
|
|
91
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
92
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
93
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
94
|
+
- 'spec/unibuf/parsers/proto3/parser_spec.rb'
|
|
95
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
126
96
|
|
|
127
|
-
# Offense count:
|
|
97
|
+
# Offense count: 68
|
|
128
98
|
# This cop supports safe autocorrection (--autocorrect).
|
|
129
99
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
130
100
|
# URISchemes: http, https
|
|
131
101
|
Layout/LineLength:
|
|
132
102
|
Enabled: false
|
|
133
103
|
|
|
134
|
-
# Offense count:
|
|
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
|
|
104
|
+
# Offense count: 11
|
|
145
105
|
# This cop supports safe autocorrection (--autocorrect).
|
|
146
106
|
# Configuration parameters: EnforcedStyle.
|
|
147
107
|
# SupportedStyles: final_newline, final_blank_line
|
|
148
108
|
Layout/TrailingEmptyLines:
|
|
149
|
-
|
|
109
|
+
Exclude:
|
|
110
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
111
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
112
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
113
|
+
- 'spec/unibuf/models/values/list_value_spec.rb'
|
|
114
|
+
- 'spec/unibuf/models/values/map_value_spec.rb'
|
|
115
|
+
- 'spec/unibuf/models/values/message_value_spec.rb'
|
|
116
|
+
- 'spec/unibuf/models/values/scalar_value_spec.rb'
|
|
117
|
+
- 'spec/unibuf/parsers/binary/wire_format_parser_spec.rb'
|
|
118
|
+
- 'spec/unibuf/parsers/proto3/parser_spec.rb'
|
|
119
|
+
- 'spec/unibuf/validators/schema_validator_spec.rb'
|
|
120
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
150
121
|
|
|
151
|
-
# Offense count:
|
|
122
|
+
# Offense count: 15
|
|
152
123
|
# This cop supports safe autocorrection (--autocorrect).
|
|
153
124
|
# Configuration parameters: AllowInHeredoc.
|
|
154
125
|
Layout/TrailingWhitespace:
|
|
155
|
-
|
|
126
|
+
Exclude:
|
|
127
|
+
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
128
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
129
|
+
- 'lib/unibuf/validators/type_validator.rb'
|
|
130
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
131
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
132
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
133
|
+
- 'spec/unibuf/models/values/message_value_spec.rb'
|
|
156
134
|
|
|
157
135
|
# Offense count: 8
|
|
158
136
|
# This cop supports safe autocorrection (--autocorrect).
|
|
159
137
|
Lint/AmbiguousOperatorPrecedence:
|
|
160
138
|
Exclude:
|
|
161
|
-
- 'lib/unibuf/parsers/textproto/grammar.rb'
|
|
162
139
|
- 'lib/unibuf/validators/type_validator.rb'
|
|
140
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
141
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
163
142
|
|
|
164
|
-
# Offense count:
|
|
143
|
+
# Offense count: 11
|
|
165
144
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
166
145
|
Lint/DuplicateBranch:
|
|
167
146
|
Exclude:
|
|
@@ -171,21 +150,7 @@ Lint/DuplicateBranch:
|
|
|
171
150
|
- 'lib/unibuf/models/values/list_value.rb'
|
|
172
151
|
- 'lib/unibuf/models/values/map_value.rb'
|
|
173
152
|
- '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'
|
|
153
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
189
154
|
|
|
190
155
|
# Offense count: 1
|
|
191
156
|
# Configuration parameters: AllowedPatterns.
|
|
@@ -194,14 +159,12 @@ Lint/UnreachableLoop:
|
|
|
194
159
|
Exclude:
|
|
195
160
|
- 'lib/unibuf/models/message.rb'
|
|
196
161
|
|
|
197
|
-
# Offense count:
|
|
162
|
+
# Offense count: 1
|
|
198
163
|
# This cop supports safe autocorrection (--autocorrect).
|
|
199
164
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
200
165
|
# NotImplementedExceptions: NotImplementedError
|
|
201
166
|
Lint/UnusedMethodArgument:
|
|
202
167
|
Exclude:
|
|
203
|
-
- 'lib/unibuf/commands/validate.rb'
|
|
204
|
-
- 'lib/unibuf/models/message.rb'
|
|
205
168
|
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
206
169
|
|
|
207
170
|
# Offense count: 19
|
|
@@ -238,10 +201,10 @@ Metrics/CyclomaticComplexity:
|
|
|
238
201
|
- 'lib/unibuf/parsers/textproto/processor.rb'
|
|
239
202
|
- 'lib/unibuf/validators/schema_validator.rb'
|
|
240
203
|
|
|
241
|
-
# Offense count:
|
|
204
|
+
# Offense count: 45
|
|
242
205
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
243
206
|
Metrics/MethodLength:
|
|
244
|
-
Max:
|
|
207
|
+
Max: 24
|
|
245
208
|
|
|
246
209
|
# Offense count: 5
|
|
247
210
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
@@ -252,15 +215,6 @@ Metrics/PerceivedComplexity:
|
|
|
252
215
|
- 'lib/unibuf/parsers/proto3/processor.rb'
|
|
253
216
|
- 'lib/unibuf/parsers/textproto/processor.rb'
|
|
254
217
|
|
|
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
218
|
# Offense count: 11
|
|
265
219
|
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
266
220
|
# AllowedMethods: call
|
|
@@ -279,38 +233,14 @@ Naming/PredicateMethod:
|
|
|
279
233
|
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
280
234
|
- 'lib/unibuf/validators/type_validator.rb'
|
|
281
235
|
|
|
282
|
-
# Offense count:
|
|
283
|
-
#
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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:
|
|
236
|
+
# Offense count: 7
|
|
237
|
+
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
|
238
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
|
239
|
+
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
|
240
|
+
Naming/VariableNumber:
|
|
312
241
|
Exclude:
|
|
313
|
-
- '
|
|
242
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
243
|
+
- 'spec/unibuf/parsers/binary/wire_format_parser_spec.rb'
|
|
314
244
|
|
|
315
245
|
# Offense count: 1
|
|
316
246
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
@@ -319,7 +249,7 @@ RSpec/ContextWording:
|
|
|
319
249
|
Exclude:
|
|
320
250
|
- 'spec/unibuf/parsers/textproto/integration_spec.rb'
|
|
321
251
|
|
|
322
|
-
# Offense count:
|
|
252
|
+
# Offense count: 2
|
|
323
253
|
# Configuration parameters: IgnoredMetadata.
|
|
324
254
|
RSpec/DescribeClass:
|
|
325
255
|
Exclude:
|
|
@@ -328,34 +258,33 @@ RSpec/DescribeClass:
|
|
|
328
258
|
- '**/spec/routing/**/*'
|
|
329
259
|
- '**/spec/system/**/*'
|
|
330
260
|
- '**/spec/views/**/*'
|
|
261
|
+
- 'spec/unibuf/parsers/proto3/parser_spec.rb'
|
|
331
262
|
- 'spec/unibuf/parsers/textproto/integration_spec.rb'
|
|
332
263
|
|
|
333
|
-
# Offense count:
|
|
264
|
+
# Offense count: 93
|
|
334
265
|
# Configuration parameters: CountAsOne.
|
|
335
266
|
RSpec/ExampleLength:
|
|
336
|
-
Max:
|
|
267
|
+
Max: 36
|
|
337
268
|
|
|
338
|
-
# Offense count:
|
|
269
|
+
# Offense count: 6
|
|
339
270
|
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
|
|
340
271
|
RSpec/IndexedLet:
|
|
341
272
|
Exclude:
|
|
342
273
|
- 'spec/unibuf/models/message_definition_spec.rb'
|
|
274
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
275
|
+
- 'spec/unibuf/validators/schema_validator_spec.rb'
|
|
343
276
|
|
|
344
|
-
# Offense count:
|
|
277
|
+
# Offense count: 117
|
|
345
278
|
RSpec/MultipleExpectations:
|
|
346
|
-
Max:
|
|
279
|
+
Max: 8
|
|
347
280
|
|
|
348
|
-
# Offense count:
|
|
349
|
-
# This cop supports
|
|
350
|
-
|
|
351
|
-
# RedundantRestArgumentNames: args, arguments
|
|
352
|
-
# RedundantKeywordRestArgumentNames: kwargs, options, opts
|
|
353
|
-
# RedundantBlockArgumentNames: blk, block, proc
|
|
354
|
-
Style/ArgumentsForwarding:
|
|
281
|
+
# Offense count: 1
|
|
282
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
283
|
+
Style/BitwisePredicate:
|
|
355
284
|
Exclude:
|
|
356
|
-
- 'lib/unibuf/
|
|
285
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
357
286
|
|
|
358
|
-
# Offense count:
|
|
287
|
+
# Offense count: 48
|
|
359
288
|
# This cop supports safe autocorrection (--autocorrect).
|
|
360
289
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
361
290
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
@@ -364,135 +293,84 @@ Style/ArgumentsForwarding:
|
|
|
364
293
|
# AllowedMethods: lambda, proc, it
|
|
365
294
|
Style/BlockDelimiters:
|
|
366
295
|
Exclude:
|
|
367
|
-
- '
|
|
368
|
-
- '
|
|
369
|
-
- '
|
|
370
|
-
- '
|
|
371
|
-
- '
|
|
372
|
-
- '
|
|
373
|
-
- 'spec/unibuf/
|
|
374
|
-
- 'spec/unibuf/
|
|
296
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
297
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
298
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
299
|
+
- 'spec/unibuf/models/values/map_value_spec.rb'
|
|
300
|
+
- 'spec/unibuf/models/values/message_value_spec.rb'
|
|
301
|
+
- 'spec/unibuf/parsers/binary/wire_format_parser_spec.rb'
|
|
302
|
+
- 'spec/unibuf/parsers/proto3/parser_spec.rb'
|
|
303
|
+
- 'spec/unibuf/validators/schema_validator_spec.rb'
|
|
304
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
375
305
|
|
|
376
|
-
# Offense count:
|
|
306
|
+
# Offense count: 1
|
|
377
307
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
378
308
|
Style/ComparableBetween:
|
|
379
309
|
Exclude:
|
|
380
|
-
- 'lib/unibuf.rb'
|
|
381
310
|
- 'lib/unibuf/validators/type_validator.rb'
|
|
382
311
|
|
|
383
|
-
# Offense count: 1
|
|
384
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
385
|
-
Style/DefWithParentheses:
|
|
386
|
-
Exclude:
|
|
387
|
-
- 'lib/unibuf/models/message.rb'
|
|
388
|
-
|
|
389
312
|
# Offense count: 1
|
|
390
313
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
391
314
|
Style/MapIntoArray:
|
|
392
315
|
Exclude:
|
|
393
|
-
- '
|
|
316
|
+
- 'spec/unibuf/models/values/list_value_spec.rb'
|
|
394
317
|
|
|
395
318
|
# Offense count: 11
|
|
396
319
|
# This cop supports safe autocorrection (--autocorrect).
|
|
397
320
|
Style/MultilineIfModifier:
|
|
398
321
|
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'
|
|
322
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
404
323
|
- 'lib/unibuf/validators/type_validator.rb'
|
|
405
324
|
|
|
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
325
|
# Offense count: 1
|
|
426
326
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
427
|
-
# Configuration parameters:
|
|
428
|
-
#
|
|
429
|
-
Style/
|
|
327
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
328
|
+
# SupportedStyles: predicate, comparison
|
|
329
|
+
Style/NumericPredicate:
|
|
430
330
|
Exclude:
|
|
431
|
-
- '
|
|
331
|
+
- 'spec/**/*'
|
|
332
|
+
- 'lib/unibuf/models/values/scalar_value.rb'
|
|
432
333
|
|
|
433
334
|
# Offense count: 1
|
|
434
335
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
435
|
-
# Configuration parameters:
|
|
436
|
-
|
|
437
|
-
|
|
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:
|
|
336
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
|
337
|
+
# AllowedMethods: define_method
|
|
338
|
+
Style/SymbolProc:
|
|
461
339
|
Exclude:
|
|
462
|
-
- '
|
|
340
|
+
- 'spec/unibuf/models/values/list_value_spec.rb'
|
|
463
341
|
|
|
464
|
-
# Offense count:
|
|
342
|
+
# Offense count: 62
|
|
465
343
|
# This cop supports safe autocorrection (--autocorrect).
|
|
466
344
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
467
345
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
468
346
|
Style/TrailingCommaInArguments:
|
|
469
347
|
Exclude:
|
|
470
|
-
- '
|
|
471
|
-
- 'spec/unibuf/models/
|
|
472
|
-
- 'spec/unibuf/models/
|
|
473
|
-
- 'spec/unibuf/
|
|
348
|
+
- 'spec/unibuf/models/enum_definition_spec.rb'
|
|
349
|
+
- 'spec/unibuf/models/field_definition_spec.rb'
|
|
350
|
+
- 'spec/unibuf/models/schema_spec.rb'
|
|
351
|
+
- 'spec/unibuf/parsers/binary/wire_format_parser_spec.rb'
|
|
352
|
+
- 'spec/unibuf/validators/schema_validator_spec.rb'
|
|
353
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
474
354
|
|
|
475
|
-
# Offense count:
|
|
355
|
+
# Offense count: 16
|
|
476
356
|
# This cop supports safe autocorrection (--autocorrect).
|
|
477
357
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
478
358
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
479
359
|
Style/TrailingCommaInArrayLiteral:
|
|
480
360
|
Exclude:
|
|
481
|
-
- 'spec/unibuf/models/
|
|
482
|
-
- 'spec/unibuf/
|
|
361
|
+
- 'spec/unibuf/models/values/list_value_spec.rb'
|
|
362
|
+
- 'spec/unibuf/models/values/message_value_spec.rb'
|
|
363
|
+
- 'spec/unibuf/validators/schema_validator_spec.rb'
|
|
364
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|
|
483
365
|
|
|
484
|
-
# Offense count:
|
|
366
|
+
# Offense count: 9
|
|
485
367
|
# This cop supports safe autocorrection (--autocorrect).
|
|
486
368
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
487
369
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
488
370
|
Style/TrailingCommaInHashLiteral:
|
|
489
371
|
Exclude:
|
|
490
|
-
- 'lib/unibuf/
|
|
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'
|
|
372
|
+
- 'lib/unibuf/parsers/binary/wire_format_parser.rb'
|
|
496
373
|
- 'lib/unibuf/validators/type_validator.rb'
|
|
497
|
-
- 'spec/unibuf/models/
|
|
498
|
-
- 'spec/unibuf/
|
|
374
|
+
- 'spec/unibuf/models/values/message_value_spec.rb'
|
|
375
|
+
- 'spec/unibuf/validators/schema_validator_spec.rb'
|
|
376
|
+
- 'spec/unibuf/validators/type_validator_spec.rb'
|