modularization_statistics 1.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,120 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `bigrails-teams` gem.
5
+ # Please instead update this file by running `bin/tapioca gem bigrails-teams`.
6
+
7
+ module Teams
8
+ class << self
9
+ sig { returns(T::Array[::Teams::Team]) }
10
+ def all; end
11
+
12
+ sig { void }
13
+ def bust_caches!; end
14
+
15
+ sig { params(name: ::String).returns(T.nilable(::Teams::Team)) }
16
+ def find(name); end
17
+
18
+ sig { params(dir: ::String).returns(T::Array[::Teams::Team]) }
19
+ def for_directory(dir); end
20
+
21
+ sig { params(string: ::String).returns(::String) }
22
+ def tag_value_for(string); end
23
+
24
+ sig { params(teams: T::Array[::Teams::Team]).returns(T::Array[::String]) }
25
+ def validation_errors(teams); end
26
+ end
27
+ end
28
+
29
+ class Teams::IncorrectPublicApiUsageError < ::StandardError; end
30
+
31
+ class Teams::Plugin
32
+ abstract!
33
+
34
+ sig { params(team: ::Teams::Team).void }
35
+ def initialize(team); end
36
+
37
+ class << self
38
+ sig { returns(T::Array[T.class_of(Teams::Plugin)]) }
39
+ def all_plugins; end
40
+
41
+ sig { params(team: ::Teams::Team).returns(T.attached_class) }
42
+ def for(team); end
43
+
44
+ sig { params(base: T.untyped).void }
45
+ def inherited(base); end
46
+
47
+ sig { params(team: ::Teams::Team, key: ::String).returns(::String) }
48
+ def missing_key_error_message(team, key); end
49
+
50
+ sig { params(teams: T::Array[::Teams::Team]).returns(T::Array[::String]) }
51
+ def validation_errors(teams); end
52
+
53
+ private
54
+
55
+ sig { params(team: ::Teams::Team).returns(T.attached_class) }
56
+ def register_team(team); end
57
+
58
+ sig { returns(T::Hash[T.nilable(::String), T::Hash[::Class, ::Teams::Plugin]]) }
59
+ def registry; end
60
+ end
61
+ end
62
+
63
+ module Teams::Plugins; end
64
+
65
+ class Teams::Plugins::Identity < ::Teams::Plugin
66
+ sig { returns(::Teams::Plugins::Identity::IdentityStruct) }
67
+ def identity; end
68
+
69
+ class << self
70
+ sig { override.params(teams: T::Array[::Teams::Team]).returns(T::Array[::String]) }
71
+ def validation_errors(teams); end
72
+ end
73
+ end
74
+
75
+ class Teams::Plugins::Identity::IdentityStruct < ::Struct
76
+ def name; end
77
+ def name=(_); end
78
+
79
+ class << self
80
+ def [](*_arg0); end
81
+ def inspect; end
82
+ def members; end
83
+ def new(*_arg0); end
84
+ end
85
+ end
86
+
87
+ class Teams::Team
88
+ sig { params(config_yml: T.nilable(::String), raw_hash: T::Hash[T.untyped, T.untyped]).void }
89
+ def initialize(config_yml:, raw_hash:); end
90
+
91
+ sig { params(other: ::Object).returns(T::Boolean) }
92
+ def ==(other); end
93
+
94
+ sig { returns(T.nilable(::String)) }
95
+ def config_yml; end
96
+
97
+ def eql?(*args, &blk); end
98
+
99
+ sig { returns(::Integer) }
100
+ def hash; end
101
+
102
+ sig { returns(::String) }
103
+ def name; end
104
+
105
+ sig { returns(T::Hash[T.untyped, T.untyped]) }
106
+ def raw_hash; end
107
+
108
+ sig { returns(::String) }
109
+ def to_tag; end
110
+
111
+ class << self
112
+ sig { params(raw_hash: T::Hash[T.untyped, T.untyped]).returns(::Teams::Team) }
113
+ def from_hash(raw_hash); end
114
+
115
+ sig { params(config_yml: ::String).returns(::Teams::Team) }
116
+ def from_yml(config_yml); end
117
+ end
118
+ end
119
+
120
+ Teams::UNKNOWN_TEAM_STRING = T.let(T.unsafe(nil), String)
@@ -0,0 +1,336 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `code_ownership` gem.
5
+ # Please instead update this file by running `bin/tapioca gem code_ownership`.
6
+
7
+ module CodeOwnership
8
+ extend ::CodeOwnership
9
+
10
+ requires_ancestor { Kernel }
11
+
12
+ sig do
13
+ params(
14
+ backtrace: T.nilable(T::Array[::String]),
15
+ excluded_teams: T::Array[::Teams::Team]
16
+ ).returns(T.nilable(::Teams::Team))
17
+ end
18
+ def for_backtrace(backtrace, excluded_teams: T.unsafe(nil)); end
19
+
20
+ sig { params(klass: T.nilable(T.any(::Class, ::Module))).returns(T.nilable(::Teams::Team)) }
21
+ def for_class(klass); end
22
+
23
+ sig { params(file: ::String).returns(T.nilable(::Teams::Team)) }
24
+ def for_file(file); end
25
+
26
+ sig { params(package: ::ParsePackwerk::Package).returns(T.nilable(::Teams::Team)) }
27
+ def for_package(package); end
28
+
29
+ sig { params(files: T::Array[::String], autocorrect: T::Boolean, stage_changes: T::Boolean).void }
30
+ def validate!(files: T.unsafe(nil), autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
31
+
32
+ class << self
33
+ sig { void }
34
+ def bust_caches!; end
35
+
36
+ sig { params(filename: ::String).void }
37
+ def remove_file_annotation!(filename); end
38
+ end
39
+ end
40
+
41
+ class CodeOwnership::Cli
42
+ class << self
43
+ def run!(argv); end
44
+
45
+ private
46
+
47
+ def validate!(argv); end
48
+ end
49
+ end
50
+
51
+ class CodeOwnership::InvalidCodeOwnershipConfigurationError < ::StandardError; end
52
+
53
+ module CodeOwnership::Private
54
+ class << self
55
+ sig { void }
56
+ def bust_caches!; end
57
+
58
+ sig { returns(::CodeOwnership::Private::Configuration) }
59
+ def configuration; end
60
+
61
+ sig { returns(::CodeOwnership::Private::OwnershipMappers::FileAnnotations) }
62
+ def file_annotations_mapper; end
63
+
64
+ sig { params(files: T::Array[::String]).returns(T::Hash[::String, T::Array[::String]]) }
65
+ def files_by_mapper(files); end
66
+
67
+ sig { params(team_name: ::String, location_of_reference: ::String).returns(::Teams::Team) }
68
+ def find_team!(team_name, location_of_reference); end
69
+
70
+ sig { returns(T::Array[::CodeOwnership::Private::OwnershipMappers::Interface]) }
71
+ def mappers; end
72
+
73
+ sig { params(klass: T.nilable(T.any(::Class, ::Module))).returns(T.nilable(::String)) }
74
+ def path_from_klass(klass); end
75
+
76
+ sig { returns(T::Array[::String]) }
77
+ def tracked_files; end
78
+
79
+ sig { params(files: T::Array[::String], autocorrect: T::Boolean, stage_changes: T::Boolean).void }
80
+ def validate!(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
81
+ end
82
+ end
83
+
84
+ class CodeOwnership::Private::Configuration < ::T::Struct
85
+ const :js_package_paths, T::Array[::String]
86
+ const :owned_globs, T::Array[::String]
87
+ const :skip_codeowners_validation, T::Boolean
88
+ const :unowned_globs, T::Array[::String]
89
+
90
+ class << self
91
+ sig { returns(::CodeOwnership::Private::Configuration) }
92
+ def fetch; end
93
+
94
+ def inherited(s); end
95
+
96
+ sig { params(config_hash: T::Hash[T.untyped, T.untyped]).returns(T::Array[::String]) }
97
+ def js_package_paths(config_hash); end
98
+ end
99
+ end
100
+
101
+ CodeOwnership::Private::Configuration::DEFAULT_JS_PACKAGE_PATHS = T.let(T.unsafe(nil), Array)
102
+ module CodeOwnership::Private::OwnershipMappers; end
103
+
104
+ class CodeOwnership::Private::OwnershipMappers::FileAnnotations
105
+ include ::CodeOwnership::Private::OwnershipMappers::Interface
106
+
107
+ sig { override.void }
108
+ def bust_caches!; end
109
+
110
+ sig { override.returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
111
+ def codeowners_lines_to_owners; end
112
+
113
+ sig { override.returns(::String) }
114
+ def description; end
115
+
116
+ sig { params(filename: ::String).returns(T.nilable(::Teams::Team)) }
117
+ def file_annotation_based_owner(filename); end
118
+
119
+ sig { override.params(file: ::String).returns(T.nilable(::Teams::Team)) }
120
+ def map_file_to_owner(file); end
121
+
122
+ sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
123
+ def map_files_to_owners(files); end
124
+
125
+ sig { params(filename: ::String).void }
126
+ def remove_file_annotation!(filename); end
127
+ end
128
+
129
+ CodeOwnership::Private::OwnershipMappers::FileAnnotations::TEAM_PATTERN = T.let(T.unsafe(nil), Regexp)
130
+
131
+ module CodeOwnership::Private::OwnershipMappers::Interface
132
+ interface!
133
+
134
+ sig { abstract.void }
135
+ def bust_caches!; end
136
+
137
+ sig { abstract.returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
138
+ def codeowners_lines_to_owners; end
139
+
140
+ sig { abstract.returns(::String) }
141
+ def description; end
142
+
143
+ sig { abstract.params(file: ::String).returns(T.nilable(::Teams::Team)) }
144
+ def map_file_to_owner(file); end
145
+
146
+ sig { abstract.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
147
+ def map_files_to_owners(files); end
148
+ end
149
+
150
+ class CodeOwnership::Private::OwnershipMappers::JsPackageOwnership
151
+ include ::CodeOwnership::Private::OwnershipMappers::Interface
152
+
153
+ sig { override.void }
154
+ def bust_caches!; end
155
+
156
+ sig { override.returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
157
+ def codeowners_lines_to_owners; end
158
+
159
+ sig { override.returns(::String) }
160
+ def description; end
161
+
162
+ sig { override.params(file: ::String).returns(T.nilable(::Teams::Team)) }
163
+ def map_file_to_owner(file); end
164
+
165
+ sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
166
+ def map_files_to_owners(files); end
167
+
168
+ sig { params(package: ::CodeOwnership::Private::ParseJsPackages::Package).returns(T.nilable(::Teams::Team)) }
169
+ def owner_for_package(package); end
170
+
171
+ private
172
+
173
+ sig { params(file: ::String).returns(T.nilable(::CodeOwnership::Private::ParseJsPackages::Package)) }
174
+ def map_file_to_relevant_package(file); end
175
+ end
176
+
177
+ class CodeOwnership::Private::OwnershipMappers::PackageOwnership
178
+ include ::CodeOwnership::Private::OwnershipMappers::Interface
179
+
180
+ sig { override.void }
181
+ def bust_caches!; end
182
+
183
+ sig { override.returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
184
+ def codeowners_lines_to_owners; end
185
+
186
+ sig { override.returns(::String) }
187
+ def description; end
188
+
189
+ sig { override.params(file: ::String).returns(T.nilable(::Teams::Team)) }
190
+ def map_file_to_owner(file); end
191
+
192
+ sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
193
+ def map_files_to_owners(files); end
194
+
195
+ sig { params(package: ::ParsePackwerk::Package).returns(T.nilable(::Teams::Team)) }
196
+ def owner_for_package(package); end
197
+
198
+ private
199
+
200
+ sig { params(file: ::String).returns(T.nilable(::ParsePackwerk::Package)) }
201
+ def map_file_to_relevant_package(file); end
202
+ end
203
+
204
+ class CodeOwnership::Private::OwnershipMappers::TeamGlobs
205
+ include ::CodeOwnership::Private::OwnershipMappers::Interface
206
+
207
+ sig { override.void }
208
+ def bust_caches!; end
209
+
210
+ sig { override.returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
211
+ def codeowners_lines_to_owners; end
212
+
213
+ sig { override.returns(::String) }
214
+ def description; end
215
+
216
+ sig { override.params(file: ::String).returns(T.nilable(::Teams::Team)) }
217
+ def map_file_to_owner(file); end
218
+
219
+ sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::Teams::Team)]) }
220
+ def map_files_to_owners(files); end
221
+ end
222
+
223
+ module CodeOwnership::Private::ParseJsPackages
224
+ class << self
225
+ sig { returns(T::Array[::CodeOwnership::Private::ParseJsPackages::Package]) }
226
+ def all; end
227
+ end
228
+ end
229
+
230
+ CodeOwnership::Private::ParseJsPackages::METADATA = T.let(T.unsafe(nil), String)
231
+ CodeOwnership::Private::ParseJsPackages::PACKAGE_JSON_NAME = T.let(T.unsafe(nil), String)
232
+
233
+ class CodeOwnership::Private::ParseJsPackages::Package < ::T::Struct
234
+ const :metadata, T::Hash[::String, T.untyped]
235
+ const :name, ::String
236
+
237
+ sig { returns(::Pathname) }
238
+ def directory; end
239
+
240
+ class << self
241
+ sig { params(pathname: ::Pathname).returns(::CodeOwnership::Private::ParseJsPackages::Package) }
242
+ def from(pathname); end
243
+
244
+ def inherited(s); end
245
+ end
246
+ end
247
+
248
+ CodeOwnership::Private::ParseJsPackages::ROOT_PACKAGE_NAME = T.let(T.unsafe(nil), String)
249
+ module CodeOwnership::Private::TeamPlugins; end
250
+
251
+ class CodeOwnership::Private::TeamPlugins::Github < ::Teams::Plugin
252
+ sig { returns(::CodeOwnership::Private::TeamPlugins::Github::GithubStruct) }
253
+ def github; end
254
+ end
255
+
256
+ class CodeOwnership::Private::TeamPlugins::Github::GithubStruct < ::Struct
257
+ def do_not_add_to_codeowners_file; end
258
+ def do_not_add_to_codeowners_file=(_); end
259
+ def team; end
260
+ def team=(_); end
261
+
262
+ class << self
263
+ def [](*_arg0); end
264
+ def inspect; end
265
+ def members; end
266
+ def new(*_arg0); end
267
+ end
268
+ end
269
+
270
+ class CodeOwnership::Private::TeamPlugins::Ownership < ::Teams::Plugin
271
+ sig { returns(T::Array[::String]) }
272
+ def owned_globs; end
273
+ end
274
+
275
+ module CodeOwnership::Private::Validations; end
276
+
277
+ class CodeOwnership::Private::Validations::FilesHaveOwners
278
+ include ::CodeOwnership::Private::Validations::Interface
279
+
280
+ sig do
281
+ override
282
+ .params(
283
+ files: T::Array[::String],
284
+ autocorrect: T::Boolean,
285
+ stage_changes: T::Boolean
286
+ ).returns(T::Array[::String])
287
+ end
288
+ def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
289
+ end
290
+
291
+ class CodeOwnership::Private::Validations::FilesHaveUniqueOwners
292
+ include ::CodeOwnership::Private::Validations::Interface
293
+
294
+ sig do
295
+ override
296
+ .params(
297
+ files: T::Array[::String],
298
+ autocorrect: T::Boolean,
299
+ stage_changes: T::Boolean
300
+ ).returns(T::Array[::String])
301
+ end
302
+ def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
303
+ end
304
+
305
+ class CodeOwnership::Private::Validations::GithubCodeownersUpToDate
306
+ include ::CodeOwnership::Private::Validations::Interface
307
+
308
+ sig do
309
+ override
310
+ .params(
311
+ files: T::Array[::String],
312
+ autocorrect: T::Boolean,
313
+ stage_changes: T::Boolean
314
+ ).returns(T::Array[::String])
315
+ end
316
+ def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
317
+
318
+ private
319
+
320
+ sig { returns(T::Array[::String]) }
321
+ def codeowners_file_lines; end
322
+ end
323
+
324
+ module CodeOwnership::Private::Validations::Interface
325
+ interface!
326
+
327
+ sig do
328
+ abstract
329
+ .params(
330
+ files: T::Array[::String],
331
+ autocorrect: T::Boolean,
332
+ stage_changes: T::Boolean
333
+ ).returns(T::Array[::String])
334
+ end
335
+ def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
336
+ end