datadog-statsd-schema 0.1.2 → 0.2.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 +4 -4
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +27 -22
- data/README.md +286 -514
- data/examples/schema/example_marathon.rb +29 -0
- data/exe/dss +8 -0
- data/lib/datadog/statsd/schema/analyzer.rb +397 -0
- data/lib/datadog/statsd/schema/cli.rb +16 -0
- data/lib/datadog/statsd/schema/commands/analyze.rb +52 -0
- data/lib/datadog/statsd/schema/commands.rb +14 -0
- data/lib/datadog/statsd/schema/namespace.rb +1 -1
- data/lib/datadog/statsd/schema/version.rb +1 -1
- data/lib/datadog/statsd/schema.rb +2 -0
- metadata +23 -4
- data/exe/datadog-statsd-schema +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8ecccf4d0e55d1139596eca6ecfc41cf25a4bcd637aebdb4cb963150aa10ce7
|
4
|
+
data.tar.gz: 002504ebc4073bb7b34a5d979cb49f89d86e8eff5356594046bd3e1e223c8ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8f866b339297e39236ba1e546f50aff716f46e74d6856386a5de95ace0dfea5e62f060aec4e5e61320dd352a5d0bf971c38be4c7e9ee15ff17ea4b0083ad389
|
7
|
+
data.tar.gz: ff341e1836eebc261125c6cbd42103e359286bcb1bed0ed47fc96df9c2727f8873f6cd31e6e3591ca991b4b977fb9bdae42d5ef228eeebda7847da9129635ea9
|
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
|
@@ -24,3 +25,6 @@ Layout/LineLength:
|
|
24
25
|
|
25
26
|
Style/Documentation:
|
26
27
|
Enabled: false
|
28
|
+
|
29
|
+
Metrics/MethodLength:
|
30
|
+
Enabled: false
|
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
|
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:
|
19
|
+
# Offense count: 14
|
28
20
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
29
21
|
Metrics/AbcSize:
|
30
22
|
Max: 54
|
31
23
|
|
32
|
-
# Offense count:
|
24
|
+
# Offense count: 5
|
33
25
|
# Configuration parameters: CountComments, CountAsOne.
|
34
26
|
Metrics/ClassLength:
|
35
27
|
Max: 369
|
36
28
|
|
37
|
-
# Offense count:
|
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:
|
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:
|
82
|
+
# Offense count: 19
|
92
83
|
# Configuration parameters: CountAsOne.
|
93
84
|
RSpec/ExampleLength:
|
94
|
-
Max:
|
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:
|
99
|
+
# Offense count: 9
|
109
100
|
RSpec/MultipleExpectations:
|
110
|
-
Max:
|
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
|
-
- '
|
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:
|
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'
|