datadog-statsd-schema 0.1.2 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b0549f4e32e19fdb57a4f521695605ab926c4e3c1ce12c4fe24da3e70c1ff38
4
- data.tar.gz: 22ed9111a81191c6cd9a831425da0d188fbf4275aaf34d1e9aaae66950a78b52
3
+ metadata.gz: 252a3536a931724dfbebc6755ddecbb01206794037ccd7d0b3bd91c150b66f6d
4
+ data.tar.gz: 4a1eafd370b04d5087c72de5694fc01cd0689df6c8b7a280992bae822e3373cc
5
5
  SHA512:
6
- metadata.gz: 27884f768e8c96d997a8fd75a536fb4832c70e589d098ae34338d06b5fa74f8a299c3f289434e053f0b0f5897c0fbb4d996beeb4462a37ec5d2f828ddccc1c8a
7
- data.tar.gz: 8be4946e617d0b3a3a10da1d70b87184d16649257eb78e98337295fe1e6f7a37d58e04276fadaf917eeb3d5c368f82182aaf645dde15fb71b9f8b137032f2010
6
+ metadata.gz: 1ceac7e83b4e9678c4751981cc51c8d526e34b9f959971535157536938b6842757a35e7023c859d64df135b4623cf0668048f0a87f55b3a8cb21784eb39ebadb
7
+ data.tar.gz: 93046e96ae66782fb616d618f8a6c2c6e571eee6f779f1834ee434251a4f9680c47df8c3be75769a9550f0bf001aa699d00040c6923e0d6186299b10f197e024
data/.rubocop.yml CHANGED
@@ -6,6 +6,7 @@ plugins:
6
6
  AllCops:
7
7
  TargetRubyVersion: 3.1
8
8
  NewCops: enable
9
+ SuggestExtensions: false
9
10
 
10
11
  Style/StringLiterals:
11
12
  EnforcedStyle: double_quotes
data/.rubocop_todo.yml CHANGED
@@ -1,19 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-06-06 05:09:15 UTC using RuboCop version 1.75.8.
3
+ # on 2025-06-06 22:59:19 UTC using RuboCop version 1.75.8.
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: 2
10
- # Configuration parameters: EnforcedStyle, AllowedGems, Include.
11
- # SupportedStyles: Gemfile, gems.rb, gemspec
12
- # Include: **/*.gemspec, **/Gemfile, **/gems.rb
13
- Gemspec/DevelopmentDependencies:
14
- Exclude:
15
- - 'datadog-statsd-schema.gemspec'
16
-
17
9
  # Offense count: 4
18
10
  Lint/DuplicateMethods:
19
11
  Exclude:
@@ -24,17 +16,17 @@ Lint/FloatComparison:
24
16
  Exclude:
25
17
  - 'lib/datadog/statsd/emitter.rb'
26
18
 
27
- # Offense count: 9
19
+ # Offense count: 14
28
20
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
29
21
  Metrics/AbcSize:
30
22
  Max: 54
31
23
 
32
- # Offense count: 4
24
+ # Offense count: 5
33
25
  # Configuration parameters: CountComments, CountAsOne.
34
26
  Metrics/ClassLength:
35
27
  Max: 369
36
28
 
37
- # Offense count: 6
29
+ # Offense count: 8
38
30
  # Configuration parameters: AllowedMethods, AllowedPatterns.
39
31
  Metrics/CyclomaticComplexity:
40
32
  Max: 20
@@ -49,7 +41,7 @@ Metrics/ModuleLength:
49
41
  Metrics/ParameterLists:
50
42
  Max: 8
51
43
 
52
- # Offense count: 5
44
+ # Offense count: 6
53
45
  # Configuration parameters: AllowedMethods, AllowedPatterns.
54
46
  Metrics/PerceivedComplexity:
55
47
  Max: 19
@@ -78,7 +70,6 @@ Naming/MethodParameterName:
78
70
  # MethodDefinitionMacros: define_method, define_singleton_method
79
71
  Naming/PredicateName:
80
72
  Exclude:
81
- - 'spec/**/*'
82
73
  - 'lib/datadog/statsd/schema/namespace.rb'
83
74
 
84
75
  # Offense count: 4
@@ -88,10 +79,10 @@ RSpec/ContextWording:
88
79
  Exclude:
89
80
  - 'spec/datadog/statsd/schema/namespace_spec.rb'
90
81
 
91
- # Offense count: 15
82
+ # Offense count: 19
92
83
  # Configuration parameters: CountAsOne.
93
84
  RSpec/ExampleLength:
94
- Max: 20
85
+ Max: 36
95
86
 
96
87
  # Offense count: 4
97
88
  # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
@@ -105,9 +96,9 @@ RSpec/IndexedLet:
105
96
  RSpec/MessageSpies:
106
97
  EnforcedStyle: receive
107
98
 
108
- # Offense count: 4
99
+ # Offense count: 9
109
100
  RSpec/MultipleExpectations:
110
- Max: 3
101
+ Max: 24
111
102
 
112
103
  # Offense count: 39
113
104
  # Configuration parameters: AllowSubject.
@@ -134,14 +125,28 @@ RSpec/VerifiedDoubles:
134
125
  - 'spec/datadog/statsd/schema/metric_definition_spec.rb'
135
126
  - 'spec/datadog/statsd/schema_spec.rb'
136
127
 
128
+ # Offense count: 1
129
+ # This cop supports unsafe autocorrection (--autocorrect-all).
130
+ # Configuration parameters: MinBranchesCount.
131
+ Style/CaseLikeIf:
132
+ Exclude:
133
+ - 'lib/datadog/statsd/schema/analyzer.rb'
134
+
135
+ # Offense count: 5
136
+ # This cop supports safe autocorrection (--autocorrect).
137
+ # Configuration parameters: EnforcedStyle.
138
+ # SupportedStyles: format, sprintf, percent
139
+ Style/FormatString:
140
+ Exclude:
141
+ - 'lib/datadog/statsd/schema/analyzer.rb'
142
+
137
143
  # Offense count: 1
138
144
  # This cop supports unsafe autocorrection (--autocorrect-all).
139
145
  # Configuration parameters: EnforcedStyle.
140
146
  # SupportedStyles: always, always_true, never
141
147
  Style/FrozenStringLiteralComment:
142
148
  Exclude:
143
- - '**/*.arb'
144
- - 'exe/datadog-statsd-schema'
149
+ - 'examples/schema/example_marathon.rb'
145
150
 
146
151
  # Offense count: 3
147
152
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -197,10 +202,10 @@ Style/SlicingWithRange:
197
202
  Exclude:
198
203
  - 'lib/datadog/statsd/schema/namespace.rb'
199
204
 
200
- # Offense count: 5
205
+ # Offense count: 4
201
206
  # This cop supports unsafe autocorrection (--autocorrect-all).
202
207
  # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
203
- # AllowedMethods: define_method
208
+ # AllowedMethods: define_method, mail, respond_to
204
209
  Style/SymbolProc:
205
210
  Exclude:
206
211
  - 'spec/datadog/statsd/schema/schema_builder_spec.rb'