modularization_statistics 1.33.0 → 1.36.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/README.md +55 -0
- data/lib/modularization_statistics/private/datadog_reporter.rb +13 -278
- data/lib/modularization_statistics/private/metrics/files.rb +47 -0
- data/lib/modularization_statistics/private/metrics/nested_packs.rb +137 -0
- data/lib/modularization_statistics/private/metrics/packages.rb +109 -0
- data/lib/modularization_statistics/private/metrics/packages_by_team.rb +73 -0
- data/lib/modularization_statistics/private/metrics/protection_usage.rb +33 -0
- data/lib/modularization_statistics/private/metrics/public_usage.rb +36 -0
- data/lib/modularization_statistics/private/metrics.rb +49 -0
- data/lib/modularization_statistics/private/source_code_file.rb +1 -1
- data/lib/modularization_statistics.rb +1 -1
- data/sorbet/rbi/gems/{code_ownership@1.23.0.rbi → code_ownership@1.28.0.rbi} +27 -26
- data/sorbet/rbi/gems/{bigrails-teams@0.1.0.rbi → code_teams@1.0.0.rbi} +25 -25
- data/sorbet/rbi/gems/{package_protections@0.64.0.rbi → package_protections@1.4.0.rbi} +56 -107
- data/sorbet/rbi/gems/{parse_packwerk@0.10.0.rbi → parse_packwerk@0.12.0.rbi} +6 -0
- metadata +18 -11
@@ -12,6 +12,9 @@ module PackageProtections
|
|
12
12
|
sig { void }
|
13
13
|
def bust_cache!; end
|
14
14
|
|
15
|
+
sig { params(blk: T.proc.params(arg0: ::PackageProtections::Private::Configuration).void).void }
|
16
|
+
def configure(&blk); end
|
17
|
+
|
15
18
|
sig do
|
16
19
|
params(
|
17
20
|
packages: T::Array[::ParsePackwerk::Package],
|
@@ -20,14 +23,6 @@ module PackageProtections
|
|
20
23
|
end
|
21
24
|
def get_offenses(packages:, new_violations:); end
|
22
25
|
|
23
|
-
sig do
|
24
|
-
params(
|
25
|
-
package_names: T::Array[::String],
|
26
|
-
all_packages: T::Array[::ParsePackwerk::Package]
|
27
|
-
).returns(T::Array[::ParsePackwerk::Package])
|
28
|
-
end
|
29
|
-
def packages_for_names(package_names, all_packages); end
|
30
|
-
|
31
26
|
sig { params(identifier: ::String).returns(T::Hash[T.untyped, T.untyped]) }
|
32
27
|
def private_cop_config(identifier); end
|
33
28
|
|
@@ -102,6 +97,9 @@ module PackageProtections::Private
|
|
102
97
|
sig { void }
|
103
98
|
def bust_cache!; end
|
104
99
|
|
100
|
+
sig { returns(::PackageProtections::Private::Configuration) }
|
101
|
+
def config; end
|
102
|
+
|
105
103
|
sig do
|
106
104
|
params(
|
107
105
|
packages: T::Array[::ParsePackwerk::Package],
|
@@ -113,14 +111,6 @@ module PackageProtections::Private
|
|
113
111
|
sig { params(name: ::String).returns(::PackageProtections::ProtectedPackage) }
|
114
112
|
def get_package_with_name(name); end
|
115
113
|
|
116
|
-
sig do
|
117
|
-
params(
|
118
|
-
package_names: T::Array[::String],
|
119
|
-
all_packages: T::Array[::ParsePackwerk::Package]
|
120
|
-
).returns(T::Array[::ParsePackwerk::Package])
|
121
|
-
end
|
122
|
-
def packages_for_names(package_names, all_packages); end
|
123
|
-
|
124
114
|
sig { params(identifier: ::String).returns(T::Hash[T.untyped, T.untyped]) }
|
125
115
|
def private_cop_config(identifier); end
|
126
116
|
|
@@ -195,6 +185,23 @@ class PackageProtections::Private::ColorizedString::Color < ::T::Enum
|
|
195
185
|
end
|
196
186
|
end
|
197
187
|
|
188
|
+
class PackageProtections::Private::Configuration
|
189
|
+
sig { void }
|
190
|
+
def initialize; end
|
191
|
+
|
192
|
+
sig { void }
|
193
|
+
def bust_cache!; end
|
194
|
+
|
195
|
+
sig { returns(T::Array[::PackageProtections::ProtectionInterface]) }
|
196
|
+
def default_protections; end
|
197
|
+
|
198
|
+
sig { returns(T::Array[::PackageProtections::ProtectionInterface]) }
|
199
|
+
def protections; end
|
200
|
+
|
201
|
+
sig { params(protections: T::Array[::PackageProtections::ProtectionInterface]).void }
|
202
|
+
def protections=(protections); end
|
203
|
+
end
|
204
|
+
|
198
205
|
class PackageProtections::Private::IncomingPrivacyProtection
|
199
206
|
include ::PackageProtections::ProtectionInterface
|
200
207
|
|
@@ -256,51 +263,6 @@ class PackageProtections::Private::MetadataModifiers
|
|
256
263
|
end
|
257
264
|
end
|
258
265
|
|
259
|
-
class PackageProtections::Private::MultipleNamespacesProtection
|
260
|
-
include ::PackageProtections::ProtectionInterface
|
261
|
-
include ::PackageProtections::RubocopProtectionInterface
|
262
|
-
|
263
|
-
sig do
|
264
|
-
override
|
265
|
-
.params(
|
266
|
-
packages: T::Array[::PackageProtections::ProtectedPackage]
|
267
|
-
).returns(T::Array[::PackageProtections::RubocopProtectionInterface::CopConfig])
|
268
|
-
end
|
269
|
-
def cop_configs(packages); end
|
270
|
-
|
271
|
-
sig { params(package: ::PackageProtections::ProtectedPackage).returns(T::Hash[T.untyped, T.untyped]) }
|
272
|
-
def custom_cop_config(package); end
|
273
|
-
|
274
|
-
sig do
|
275
|
-
override
|
276
|
-
.params(
|
277
|
-
protected_packages: T::Array[::PackageProtections::ProtectedPackage]
|
278
|
-
).returns(T::Array[::PackageProtections::Offense])
|
279
|
-
end
|
280
|
-
def get_offenses_for_existing_violations(protected_packages); end
|
281
|
-
|
282
|
-
sig { override.returns(::String) }
|
283
|
-
def humanized_protection_description; end
|
284
|
-
|
285
|
-
sig { override.returns(::String) }
|
286
|
-
def humanized_protection_name; end
|
287
|
-
|
288
|
-
sig { override.returns(::String) }
|
289
|
-
def identifier; end
|
290
|
-
|
291
|
-
sig do
|
292
|
-
override
|
293
|
-
.params(
|
294
|
-
behavior: ::PackageProtections::ViolationBehavior,
|
295
|
-
package: ::ParsePackwerk::Package
|
296
|
-
).returns(T.nilable(::String))
|
297
|
-
end
|
298
|
-
def unmet_preconditions_for_behavior(behavior, package); end
|
299
|
-
end
|
300
|
-
|
301
|
-
PackageProtections::Private::MultipleNamespacesProtection::COP_NAME = T.let(T.unsafe(nil), String)
|
302
|
-
PackageProtections::Private::MultipleNamespacesProtection::IDENTIFIER = T.let(T.unsafe(nil), String)
|
303
|
-
|
304
266
|
class PackageProtections::Private::OutgoingDependencyProtection
|
305
267
|
include ::PackageProtections::ProtectionInterface
|
306
268
|
|
@@ -359,48 +321,6 @@ class PackageProtections::Private::Output
|
|
359
321
|
end
|
360
322
|
end
|
361
323
|
|
362
|
-
class PackageProtections::Private::TypedApiProtection
|
363
|
-
include ::PackageProtections::ProtectionInterface
|
364
|
-
include ::PackageProtections::RubocopProtectionInterface
|
365
|
-
|
366
|
-
sig do
|
367
|
-
override
|
368
|
-
.params(
|
369
|
-
packages: T::Array[::PackageProtections::ProtectedPackage]
|
370
|
-
).returns(T::Array[::PackageProtections::RubocopProtectionInterface::CopConfig])
|
371
|
-
end
|
372
|
-
def cop_configs(packages); end
|
373
|
-
|
374
|
-
sig do
|
375
|
-
override
|
376
|
-
.params(
|
377
|
-
protected_packages: T::Array[::PackageProtections::ProtectedPackage]
|
378
|
-
).returns(T::Array[::PackageProtections::Offense])
|
379
|
-
end
|
380
|
-
def get_offenses_for_existing_violations(protected_packages); end
|
381
|
-
|
382
|
-
sig { override.returns(::String) }
|
383
|
-
def humanized_protection_description; end
|
384
|
-
|
385
|
-
sig { override.returns(::String) }
|
386
|
-
def humanized_protection_name; end
|
387
|
-
|
388
|
-
sig { override.returns(::String) }
|
389
|
-
def identifier; end
|
390
|
-
|
391
|
-
sig do
|
392
|
-
override
|
393
|
-
.params(
|
394
|
-
behavior: ::PackageProtections::ViolationBehavior,
|
395
|
-
package: ::ParsePackwerk::Package
|
396
|
-
).returns(T.nilable(::String))
|
397
|
-
end
|
398
|
-
def unmet_preconditions_for_behavior(behavior, package); end
|
399
|
-
end
|
400
|
-
|
401
|
-
PackageProtections::Private::TypedApiProtection::COP_NAME = T.let(T.unsafe(nil), String)
|
402
|
-
PackageProtections::Private::TypedApiProtection::IDENTIFIER = T.let(T.unsafe(nil), String)
|
403
|
-
|
404
324
|
class PackageProtections::Private::VisibilityProtection
|
405
325
|
include ::PackageProtections::ProtectionInterface
|
406
326
|
|
@@ -560,16 +480,26 @@ module PackageProtections::RubocopProtectionInterface
|
|
560
480
|
abstract!
|
561
481
|
|
562
482
|
sig do
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
).returns(T::Array[::PackageProtections::RubocopProtectionInterface::CopConfig])
|
483
|
+
params(
|
484
|
+
packages: T::Array[::PackageProtections::ProtectedPackage]
|
485
|
+
).returns(T::Array[::PackageProtections::RubocopProtectionInterface::CopConfig])
|
567
486
|
end
|
568
487
|
def cop_configs(packages); end
|
569
488
|
|
489
|
+
sig { abstract.returns(::String) }
|
490
|
+
def cop_name; end
|
491
|
+
|
570
492
|
sig { params(package: ::PackageProtections::ProtectedPackage).returns(T::Hash[T.untyped, T.untyped]) }
|
571
493
|
def custom_cop_config(package); end
|
572
494
|
|
495
|
+
sig do
|
496
|
+
override
|
497
|
+
.params(
|
498
|
+
protected_packages: T::Array[::PackageProtections::ProtectedPackage]
|
499
|
+
).returns(T::Array[::PackageProtections::Offense])
|
500
|
+
end
|
501
|
+
def get_offenses_for_existing_violations(protected_packages); end
|
502
|
+
|
573
503
|
sig do
|
574
504
|
override
|
575
505
|
.params(
|
@@ -578,6 +508,21 @@ module PackageProtections::RubocopProtectionInterface
|
|
578
508
|
end
|
579
509
|
def get_offenses_for_new_violations(new_violations); end
|
580
510
|
|
511
|
+
sig { abstract.returns(T::Array[::String]) }
|
512
|
+
def included_globs_for_pack; end
|
513
|
+
|
514
|
+
sig { abstract.params(file: ::String).returns(::String) }
|
515
|
+
def message_for_fail_on_any(file); end
|
516
|
+
|
517
|
+
sig do
|
518
|
+
override
|
519
|
+
.params(
|
520
|
+
behavior: ::PackageProtections::ViolationBehavior,
|
521
|
+
package: ::ParsePackwerk::Package
|
522
|
+
).returns(T.nilable(::String))
|
523
|
+
end
|
524
|
+
def unmet_preconditions_for_behavior(behavior, package); end
|
525
|
+
|
581
526
|
private
|
582
527
|
|
583
528
|
sig { params(rule: ::String).returns(T::Set[::String]) }
|
@@ -630,3 +575,7 @@ class PackageProtections::ViolationBehavior < ::T::Enum
|
|
630
575
|
def from_raw_value(value); end
|
631
576
|
end
|
632
577
|
end
|
578
|
+
|
579
|
+
module RuboCop; end
|
580
|
+
module RuboCop::Cop; end
|
581
|
+
module RuboCop::Cop::PackageProtections; end
|
@@ -9,9 +9,15 @@ module ParsePackwerk
|
|
9
9
|
sig { returns(T::Array[::ParsePackwerk::Package]) }
|
10
10
|
def all; end
|
11
11
|
|
12
|
+
sig { void }
|
13
|
+
def bust_cache!; end
|
14
|
+
|
12
15
|
sig { params(name: ::String).returns(T.nilable(::ParsePackwerk::Package)) }
|
13
16
|
def find(name); end
|
14
17
|
|
18
|
+
sig { params(file_path: T.any(::Pathname, ::String)).returns(T.nilable(::ParsePackwerk::Package)) }
|
19
|
+
def package_from_path(file_path); end
|
20
|
+
|
15
21
|
sig { params(package: ::ParsePackwerk::Package).void }
|
16
22
|
def write_package_yml!(package); end
|
17
23
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modularization_statistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: code_teams
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -177,25 +177,32 @@ files:
|
|
177
177
|
- lib/modularization_statistics/gauge_metric.rb
|
178
178
|
- lib/modularization_statistics/private.rb
|
179
179
|
- lib/modularization_statistics/private/datadog_reporter.rb
|
180
|
+
- lib/modularization_statistics/private/metrics.rb
|
181
|
+
- lib/modularization_statistics/private/metrics/files.rb
|
182
|
+
- lib/modularization_statistics/private/metrics/nested_packs.rb
|
183
|
+
- lib/modularization_statistics/private/metrics/packages.rb
|
184
|
+
- lib/modularization_statistics/private/metrics/packages_by_team.rb
|
185
|
+
- lib/modularization_statistics/private/metrics/protection_usage.rb
|
186
|
+
- lib/modularization_statistics/private/metrics/public_usage.rb
|
180
187
|
- lib/modularization_statistics/private/source_code_file.rb
|
181
188
|
- lib/modularization_statistics/tag.rb
|
182
189
|
- lib/modularization_statistics/tags.rb
|
183
190
|
- sorbet/config
|
184
|
-
- sorbet/rbi/gems/
|
185
|
-
- sorbet/rbi/gems/
|
191
|
+
- sorbet/rbi/gems/code_ownership@1.28.0.rbi
|
192
|
+
- sorbet/rbi/gems/code_teams@1.0.0.rbi
|
186
193
|
- sorbet/rbi/gems/dogapi@1.45.0.rbi
|
187
194
|
- sorbet/rbi/gems/manual.rbi
|
188
|
-
- sorbet/rbi/gems/package_protections@
|
189
|
-
- sorbet/rbi/gems/parse_packwerk@0.
|
195
|
+
- sorbet/rbi/gems/package_protections@1.4.0.rbi
|
196
|
+
- sorbet/rbi/gems/parse_packwerk@0.12.0.rbi
|
190
197
|
- sorbet/rbi/gems/rspec@3.10.0.rbi
|
191
198
|
- sorbet/rbi/todo.rbi
|
192
|
-
homepage: https://github.com/
|
199
|
+
homepage: https://github.com/rubyatscale/modularization_statistics
|
193
200
|
licenses:
|
194
201
|
- MIT
|
195
202
|
metadata:
|
196
|
-
homepage_uri: https://github.com/
|
197
|
-
source_code_uri: https://github.com/
|
198
|
-
changelog_uri: https://github.com/
|
203
|
+
homepage_uri: https://github.com/rubyatscale/modularization_statistics
|
204
|
+
source_code_uri: https://github.com/rubyatscale/modularization_statistics
|
205
|
+
changelog_uri: https://github.com/rubyatscale/modularization_statistics/releases
|
199
206
|
allowed_push_host: https://rubygems.org
|
200
207
|
post_install_message:
|
201
208
|
rdoc_options: []
|