visualize_packwerk 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +2 -33
- data/sorbet/config +0 -3
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -522
- data/sorbet/rbi/gems/code_ownership@1.31.0.rbi +0 -617
- data/sorbet/rbi/gems/code_teams@1.0.0.rbi +0 -138
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -866
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -150
- data/sorbet/rbi/gems/packs@0.0.6.rbi +0 -115
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -163
- data/sorbet/rbi/gems/parse_packwerk@0.14.0.rbi +0 -218
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -5028
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -1854
- data/sorbet/rbi/gems/rbi@0.0.15.rbi +0 -2340
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -8
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -7698
- data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -6201
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -3625
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1176
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -40
- data/sorbet/rbi/gems/ruby-graphviz@1.2.5.rbi +0 -840
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -1600
- data/sorbet/rbi/gems/tapioca@0.9.2.rbi +0 -3128
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -2921
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -1802
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -288
- data/sorbet/rbi/gems/yard@0.9.28.rbi +0 -12863
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -7
@@ -1,617 +0,0 @@
|
|
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
|
-
# source://code_ownership-1.31.0/lib/code_ownership/cli.rb:7
|
8
|
-
module CodeOwnership
|
9
|
-
extend ::CodeOwnership
|
10
|
-
|
11
|
-
requires_ancestor { Kernel }
|
12
|
-
|
13
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:112
|
14
|
-
sig do
|
15
|
-
params(
|
16
|
-
backtrace: T.nilable(T::Array[::String])
|
17
|
-
).returns(T::Enumerable[[T.nilable(::CodeTeams::Team), ::String]])
|
18
|
-
end
|
19
|
-
def backtrace_with_ownership(backtrace); end
|
20
|
-
|
21
|
-
# Given a backtrace from either `Exception#backtrace` or `caller`, find the
|
22
|
-
# first owned file in it, useful for figuring out which file is being blamed.
|
23
|
-
#
|
24
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:101
|
25
|
-
sig do
|
26
|
-
params(
|
27
|
-
backtrace: T.nilable(T::Array[::String]),
|
28
|
-
excluded_teams: T::Array[::CodeTeams::Team]
|
29
|
-
).returns(T.nilable([::CodeTeams::Team, ::String]))
|
30
|
-
end
|
31
|
-
def first_owned_file_for_backtrace(backtrace, excluded_teams: T.unsafe(nil)); end
|
32
|
-
|
33
|
-
# Given a backtrace from either `Exception#backtrace` or `caller`, find the
|
34
|
-
# first line that corresponds to a file with assigned ownership
|
35
|
-
#
|
36
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:94
|
37
|
-
sig do
|
38
|
-
params(
|
39
|
-
backtrace: T.nilable(T::Array[::String]),
|
40
|
-
excluded_teams: T::Array[::CodeTeams::Team]
|
41
|
-
).returns(T.nilable(::CodeTeams::Team))
|
42
|
-
end
|
43
|
-
def for_backtrace(backtrace, excluded_teams: T.unsafe(nil)); end
|
44
|
-
|
45
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:145
|
46
|
-
sig { params(klass: T.nilable(T.any(::Class, ::Module))).returns(T.nilable(::CodeTeams::Team)) }
|
47
|
-
def for_class(klass); end
|
48
|
-
|
49
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:21
|
50
|
-
sig { params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
51
|
-
def for_file(file); end
|
52
|
-
|
53
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:162
|
54
|
-
sig { params(package: ::Packs::Pack).returns(T.nilable(::CodeTeams::Team)) }
|
55
|
-
def for_package(package); end
|
56
|
-
|
57
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:39
|
58
|
-
sig { params(team: T.any(::CodeTeams::Team, ::String)).returns(::String) }
|
59
|
-
def for_team(team); end
|
60
|
-
|
61
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:82
|
62
|
-
sig { params(files: T::Array[::String], autocorrect: T::Boolean, stage_changes: T::Boolean).void }
|
63
|
-
def validate!(files: T.unsafe(nil), autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
64
|
-
|
65
|
-
class << self
|
66
|
-
# Generally, you should not ever need to do this, because once your ruby process loads, cached content should not change.
|
67
|
-
# Namely, the set of files, packages, and directories which are tracked for ownership should not change.
|
68
|
-
# The primary reason this is helpful is for clients of CodeOwnership who want to test their code, and each test context
|
69
|
-
# has different ownership and tracked files.
|
70
|
-
#
|
71
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:171
|
72
|
-
sig { void }
|
73
|
-
def bust_caches!; end
|
74
|
-
|
75
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:71
|
76
|
-
sig { params(filename: ::String).void }
|
77
|
-
def remove_file_annotation!(filename); end
|
78
|
-
|
79
|
-
private
|
80
|
-
|
81
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:112
|
82
|
-
def backtrace_with_ownership(backtrace); end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
# source://code_ownership-1.31.0/lib/code_ownership/cli.rb:8
|
87
|
-
class CodeOwnership::Cli
|
88
|
-
class << self
|
89
|
-
# For now, this just returns team ownership
|
90
|
-
# Later, this could also return code ownership errors about that file.
|
91
|
-
#
|
92
|
-
# source://code_ownership-1.31.0/lib/code_ownership/cli.rb:76
|
93
|
-
def for_file(argv); end
|
94
|
-
|
95
|
-
# source://code_ownership-1.31.0/lib/code_ownership/cli.rb:123
|
96
|
-
def for_team(argv); end
|
97
|
-
|
98
|
-
# source://code_ownership-1.31.0/lib/code_ownership/cli.rb:9
|
99
|
-
def run!(argv); end
|
100
|
-
|
101
|
-
private
|
102
|
-
|
103
|
-
# source://code_ownership-1.31.0/lib/code_ownership/cli.rb:33
|
104
|
-
def validate!(argv); end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# source://code_ownership-1.31.0/lib/code_ownership.rb:67
|
109
|
-
class CodeOwnership::InvalidCodeOwnershipConfigurationError < ::StandardError; end
|
110
|
-
|
111
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/configuration.rb:4
|
112
|
-
module CodeOwnership::Private
|
113
|
-
class << self
|
114
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:32
|
115
|
-
sig { void }
|
116
|
-
def bust_caches!; end
|
117
|
-
|
118
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:26
|
119
|
-
sig { returns(::CodeOwnership::Private::Configuration) }
|
120
|
-
def configuration; end
|
121
|
-
|
122
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:73
|
123
|
-
sig { returns(::CodeOwnership::Private::OwnershipMappers::FileAnnotations) }
|
124
|
-
def file_annotations_mapper; end
|
125
|
-
|
126
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:110
|
127
|
-
sig { params(files: T::Array[::String]).returns(T::Hash[::String, T::Array[::String]]) }
|
128
|
-
def files_by_mapper(files); end
|
129
|
-
|
130
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:100
|
131
|
-
sig { params(team_name: ::String, location_of_reference: ::String).returns(::CodeTeams::Team) }
|
132
|
-
def find_team!(team_name, location_of_reference); end
|
133
|
-
|
134
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:62
|
135
|
-
sig { returns(T::Array[::CodeOwnership::Private::OwnershipMappers::Interface]) }
|
136
|
-
def mappers; end
|
137
|
-
|
138
|
-
# Returns a string version of the relative path to a Rails constant,
|
139
|
-
# or nil if it can't find something
|
140
|
-
#
|
141
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:81
|
142
|
-
sig { params(klass: T.nilable(T.any(::Class, ::Module))).returns(T.nilable(::String)) }
|
143
|
-
def path_from_klass(klass); end
|
144
|
-
|
145
|
-
# The output of this function is string pathnames relative to the root.
|
146
|
-
#
|
147
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:94
|
148
|
-
sig { returns(T::Array[::String]) }
|
149
|
-
def tracked_files; end
|
150
|
-
|
151
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private.rb:39
|
152
|
-
sig { params(files: T::Array[::String], autocorrect: T::Boolean, stage_changes: T::Boolean).void }
|
153
|
-
def validate!(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/configuration.rb:5
|
158
|
-
class CodeOwnership::Private::Configuration < ::T::Struct
|
159
|
-
const :js_package_paths, T::Array[::String]
|
160
|
-
const :owned_globs, T::Array[::String]
|
161
|
-
const :skip_codeowners_validation, T::Boolean
|
162
|
-
const :unowned_globs, T::Array[::String]
|
163
|
-
|
164
|
-
class << self
|
165
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/configuration.rb:15
|
166
|
-
sig { returns(::CodeOwnership::Private::Configuration) }
|
167
|
-
def fetch; end
|
168
|
-
|
169
|
-
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
170
|
-
def inherited(s); end
|
171
|
-
|
172
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/configuration.rb:27
|
173
|
-
sig { params(config_hash: T::Hash[T.untyped, T.untyped]).returns(T::Array[::String]) }
|
174
|
-
def js_package_paths(config_hash); end
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/configuration.rb:7
|
179
|
-
CodeOwnership::Private::Configuration::DEFAULT_JS_PACKAGE_PATHS = T.let(T.unsafe(nil), Array)
|
180
|
-
|
181
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:7
|
182
|
-
module CodeOwnership::Private::OwnershipMappers; end
|
183
|
-
|
184
|
-
# Calculate, cache, and return a mapping of file names (relative to the root
|
185
|
-
# of the repository) to team name.
|
186
|
-
#
|
187
|
-
# Example:
|
188
|
-
#
|
189
|
-
# {
|
190
|
-
# 'app/models/company.rb' => Team.find('Setup & Onboarding'),
|
191
|
-
# ...
|
192
|
-
# }
|
193
|
-
#
|
194
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:17
|
195
|
-
class CodeOwnership::Private::OwnershipMappers::FileAnnotations
|
196
|
-
include ::CodeOwnership::Private::OwnershipMappers::Interface
|
197
|
-
|
198
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:113
|
199
|
-
sig { override.void }
|
200
|
-
def bust_caches!; end
|
201
|
-
|
202
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:102
|
203
|
-
sig { override.returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
204
|
-
def codeowners_lines_to_owners; end
|
205
|
-
|
206
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:108
|
207
|
-
sig { override.returns(::String) }
|
208
|
-
def description; end
|
209
|
-
|
210
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:50
|
211
|
-
sig { params(filename: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
212
|
-
def file_annotation_based_owner(filename); end
|
213
|
-
|
214
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:29
|
215
|
-
sig { override.params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
216
|
-
def map_file_to_owner(file); end
|
217
|
-
|
218
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:38
|
219
|
-
sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
220
|
-
def map_files_to_owners(files); end
|
221
|
-
|
222
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:86
|
223
|
-
sig { params(filename: ::String).void }
|
224
|
-
def remove_file_annotation!(filename); end
|
225
|
-
end
|
226
|
-
|
227
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/file_annotations.rb:23
|
228
|
-
CodeOwnership::Private::OwnershipMappers::FileAnnotations::TEAM_PATTERN = T.let(T.unsafe(nil), Regexp)
|
229
|
-
|
230
|
-
# @abstract Subclasses must implement the `abstract` methods below.
|
231
|
-
#
|
232
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:8
|
233
|
-
module CodeOwnership::Private::OwnershipMappers::Interface
|
234
|
-
interface!
|
235
|
-
|
236
|
-
# @abstract
|
237
|
-
#
|
238
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:45
|
239
|
-
sig { abstract.void }
|
240
|
-
def bust_caches!; end
|
241
|
-
|
242
|
-
# @abstract
|
243
|
-
#
|
244
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:37
|
245
|
-
sig { abstract.returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
246
|
-
def codeowners_lines_to_owners; end
|
247
|
-
|
248
|
-
# @abstract
|
249
|
-
#
|
250
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:41
|
251
|
-
sig { abstract.returns(::String) }
|
252
|
-
def description; end
|
253
|
-
|
254
|
-
# This should be fast when run with ONE file
|
255
|
-
#
|
256
|
-
# @abstract
|
257
|
-
#
|
258
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:21
|
259
|
-
sig { abstract.params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
260
|
-
def map_file_to_owner(file); end
|
261
|
-
|
262
|
-
# This should be fast when run with MANY files
|
263
|
-
#
|
264
|
-
# @abstract
|
265
|
-
#
|
266
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/interface.rb:31
|
267
|
-
sig { abstract.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
268
|
-
def map_files_to_owners(files); end
|
269
|
-
end
|
270
|
-
|
271
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:8
|
272
|
-
class CodeOwnership::Private::OwnershipMappers::JsPackageOwnership
|
273
|
-
include ::CodeOwnership::Private::OwnershipMappers::Interface
|
274
|
-
|
275
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:80
|
276
|
-
sig { override.void }
|
277
|
-
def bust_caches!; end
|
278
|
-
|
279
|
-
# Package ownership ignores the passed in files when generating code owners lines.
|
280
|
-
# This is because Package ownership knows that the fastest way to find code owners for package based ownership
|
281
|
-
# is to simply iterate over the packages and grab the owner, rather than iterating over each file just to get what package it is in
|
282
|
-
# In theory this means that we may generate code owners lines that cover files that are not in the passed in argument,
|
283
|
-
# but in practice this is not of consequence because in reality we never really want to generate code owners for only a
|
284
|
-
# subset of files, but rather we want code ownership for all files.
|
285
|
-
#
|
286
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:54
|
287
|
-
sig { override.returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
288
|
-
def codeowners_lines_to_owners; end
|
289
|
-
|
290
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:64
|
291
|
-
sig { override.returns(::String) }
|
292
|
-
def description; end
|
293
|
-
|
294
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:18
|
295
|
-
sig { override.params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
296
|
-
def map_file_to_owner(file); end
|
297
|
-
|
298
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:31
|
299
|
-
sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
300
|
-
def map_files_to_owners(files); end
|
301
|
-
|
302
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:69
|
303
|
-
sig { params(package: ::CodeOwnership::Private::ParseJsPackages::Package).returns(T.nilable(::CodeTeams::Team)) }
|
304
|
-
def owner_for_package(package); end
|
305
|
-
|
306
|
-
private
|
307
|
-
|
308
|
-
# takes a file and finds the relevant `package.json` file by walking up the directory
|
309
|
-
# structure. Example, given `packages/a/b/c.rb`, this looks for `packages/a/b/package.json`, `packages/a/package.json`,
|
310
|
-
# `packages/package.json`, and `package.json` in that order, stopping at the first file to actually exist.
|
311
|
-
# We do additional caching so that we don't have to check for file existence every time
|
312
|
-
#
|
313
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/js_package_ownership.rb:91
|
314
|
-
sig { params(file: ::String).returns(T.nilable(::CodeOwnership::Private::ParseJsPackages::Package)) }
|
315
|
-
def map_file_to_relevant_package(file); end
|
316
|
-
end
|
317
|
-
|
318
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:8
|
319
|
-
class CodeOwnership::Private::OwnershipMappers::PackageOwnership
|
320
|
-
include ::CodeOwnership::Private::OwnershipMappers::Interface
|
321
|
-
|
322
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:80
|
323
|
-
sig { override.void }
|
324
|
-
def bust_caches!; end
|
325
|
-
|
326
|
-
# Package ownership ignores the passed in files when generating code owners lines.
|
327
|
-
# This is because Package ownership knows that the fastest way to find code owners for package based ownership
|
328
|
-
# is to simply iterate over the packages and grab the owner, rather than iterating over each file just to get what package it is in
|
329
|
-
# In theory this means that we may generate code owners lines that cover files that are not in the passed in argument,
|
330
|
-
# but in practice this is not of consequence because in reality we never really want to generate code owners for only a
|
331
|
-
# subset of files, but rather we want code ownership for all files.
|
332
|
-
#
|
333
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:54
|
334
|
-
sig { override.returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
335
|
-
def codeowners_lines_to_owners; end
|
336
|
-
|
337
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:64
|
338
|
-
sig { override.returns(::String) }
|
339
|
-
def description; end
|
340
|
-
|
341
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:18
|
342
|
-
sig { override.params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
343
|
-
def map_file_to_owner(file); end
|
344
|
-
|
345
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:31
|
346
|
-
sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
347
|
-
def map_files_to_owners(files); end
|
348
|
-
|
349
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/package_ownership.rb:69
|
350
|
-
sig { params(package: ::Packs::Pack).returns(T.nilable(::CodeTeams::Team)) }
|
351
|
-
def owner_for_package(package); end
|
352
|
-
end
|
353
|
-
|
354
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:8
|
355
|
-
class CodeOwnership::Private::OwnershipMappers::TeamGlobs
|
356
|
-
include ::CodeOwnership::Private::OwnershipMappers::Interface
|
357
|
-
|
358
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:108
|
359
|
-
sig { override.void }
|
360
|
-
def bust_caches!; end
|
361
|
-
|
362
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:97
|
363
|
-
sig { override.returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
364
|
-
def codeowners_lines_to_owners; end
|
365
|
-
|
366
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:114
|
367
|
-
sig { override.returns(::String) }
|
368
|
-
def description; end
|
369
|
-
|
370
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:59
|
371
|
-
sig { returns(T::Array[::CodeOwnership::Private::OwnershipMappers::TeamGlobs::GlobOverlap]) }
|
372
|
-
def find_overlapping_globs; end
|
373
|
-
|
374
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:90
|
375
|
-
sig { override.params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
376
|
-
def map_file_to_owner(file); end
|
377
|
-
|
378
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:22
|
379
|
-
sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
380
|
-
def map_files_to_owners(files); end
|
381
|
-
end
|
382
|
-
|
383
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:39
|
384
|
-
class CodeOwnership::Private::OwnershipMappers::TeamGlobs::GlobOverlap < ::T::Struct
|
385
|
-
const :mapping_contexts, T::Array[::CodeOwnership::Private::OwnershipMappers::TeamGlobs::MappingContext]
|
386
|
-
|
387
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:45
|
388
|
-
sig { returns(::String) }
|
389
|
-
def description; end
|
390
|
-
|
391
|
-
class << self
|
392
|
-
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
393
|
-
def inherited(s); end
|
394
|
-
end
|
395
|
-
end
|
396
|
-
|
397
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_globs.rb:34
|
398
|
-
class CodeOwnership::Private::OwnershipMappers::TeamGlobs::MappingContext < ::T::Struct
|
399
|
-
const :glob, ::String
|
400
|
-
const :team, ::CodeTeams::Team
|
401
|
-
|
402
|
-
class << self
|
403
|
-
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
404
|
-
def inherited(s); end
|
405
|
-
end
|
406
|
-
end
|
407
|
-
|
408
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_yml_ownership.rb:8
|
409
|
-
class CodeOwnership::Private::OwnershipMappers::TeamYmlOwnership
|
410
|
-
include ::CodeOwnership::Private::OwnershipMappers::Interface
|
411
|
-
|
412
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_yml_ownership.rb:50
|
413
|
-
sig { override.void }
|
414
|
-
def bust_caches!; end
|
415
|
-
|
416
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_yml_ownership.rb:41
|
417
|
-
sig { override.returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
418
|
-
def codeowners_lines_to_owners; end
|
419
|
-
|
420
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_yml_ownership.rb:56
|
421
|
-
sig { override.returns(::String) }
|
422
|
-
def description; end
|
423
|
-
|
424
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_yml_ownership.rb:34
|
425
|
-
sig { override.params(file: ::String).returns(T.nilable(::CodeTeams::Team)) }
|
426
|
-
def map_file_to_owner(file); end
|
427
|
-
|
428
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/ownership_mappers/team_yml_ownership.rb:22
|
429
|
-
sig { override.params(files: T::Array[::String]).returns(T::Hash[::String, T.nilable(::CodeTeams::Team)]) }
|
430
|
-
def map_files_to_owners(files); end
|
431
|
-
end
|
432
|
-
|
433
|
-
# Modeled off of ParsePackwerk
|
434
|
-
#
|
435
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:8
|
436
|
-
module CodeOwnership::Private::ParseJsPackages
|
437
|
-
class << self
|
438
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:57
|
439
|
-
sig { returns(T::Array[::CodeOwnership::Private::ParseJsPackages::Package]) }
|
440
|
-
def all; end
|
441
|
-
end
|
442
|
-
end
|
443
|
-
|
444
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:13
|
445
|
-
CodeOwnership::Private::ParseJsPackages::METADATA = T.let(T.unsafe(nil), String)
|
446
|
-
|
447
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:12
|
448
|
-
CodeOwnership::Private::ParseJsPackages::PACKAGE_JSON_NAME = T.let(T.unsafe(nil), String)
|
449
|
-
|
450
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:15
|
451
|
-
class CodeOwnership::Private::ParseJsPackages::Package < ::T::Struct
|
452
|
-
const :metadata, T::Hash[::String, T.untyped]
|
453
|
-
const :name, ::String
|
454
|
-
|
455
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:48
|
456
|
-
sig { returns(::Pathname) }
|
457
|
-
def directory; end
|
458
|
-
|
459
|
-
class << self
|
460
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:22
|
461
|
-
sig { params(pathname: ::Pathname).returns(::CodeOwnership::Private::ParseJsPackages::Package) }
|
462
|
-
def from(pathname); end
|
463
|
-
|
464
|
-
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
465
|
-
def inherited(s); end
|
466
|
-
end
|
467
|
-
end
|
468
|
-
|
469
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/parse_js_packages.rb:11
|
470
|
-
CodeOwnership::Private::ParseJsPackages::ROOT_PACKAGE_NAME = T.let(T.unsafe(nil), String)
|
471
|
-
|
472
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/team_plugins/ownership.rb:5
|
473
|
-
module CodeOwnership::Private::TeamPlugins; end
|
474
|
-
|
475
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/team_plugins/github.rb:6
|
476
|
-
class CodeOwnership::Private::TeamPlugins::Github < ::CodeTeams::Plugin
|
477
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/team_plugins/github.rb:13
|
478
|
-
sig { returns(::CodeOwnership::Private::TeamPlugins::Github::GithubStruct) }
|
479
|
-
def github; end
|
480
|
-
end
|
481
|
-
|
482
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/team_plugins/github.rb:10
|
483
|
-
class CodeOwnership::Private::TeamPlugins::Github::GithubStruct < ::Struct
|
484
|
-
# Returns the value of attribute do_not_add_to_codeowners_file
|
485
|
-
#
|
486
|
-
# @return [Object] the current value of do_not_add_to_codeowners_file
|
487
|
-
def do_not_add_to_codeowners_file; end
|
488
|
-
|
489
|
-
# Sets the attribute do_not_add_to_codeowners_file
|
490
|
-
#
|
491
|
-
# @param value [Object] the value to set the attribute do_not_add_to_codeowners_file to.
|
492
|
-
# @return [Object] the newly set value
|
493
|
-
def do_not_add_to_codeowners_file=(_); end
|
494
|
-
|
495
|
-
# Returns the value of attribute team
|
496
|
-
#
|
497
|
-
# @return [Object] the current value of team
|
498
|
-
def team; end
|
499
|
-
|
500
|
-
# Sets the attribute team
|
501
|
-
#
|
502
|
-
# @param value [Object] the value to set the attribute team to.
|
503
|
-
# @return [Object] the newly set value
|
504
|
-
def team=(_); end
|
505
|
-
|
506
|
-
class << self
|
507
|
-
def [](*_arg0); end
|
508
|
-
def inspect; end
|
509
|
-
def keyword_init?; end
|
510
|
-
def members; end
|
511
|
-
def new(*_arg0); end
|
512
|
-
end
|
513
|
-
end
|
514
|
-
|
515
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/team_plugins/ownership.rb:6
|
516
|
-
class CodeOwnership::Private::TeamPlugins::Ownership < ::CodeTeams::Plugin
|
517
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/team_plugins/ownership.rb:11
|
518
|
-
sig { returns(T::Array[::String]) }
|
519
|
-
def owned_globs; end
|
520
|
-
end
|
521
|
-
|
522
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/interface.rb:5
|
523
|
-
module CodeOwnership::Private::Validations; end
|
524
|
-
|
525
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/files_have_owners.rb:6
|
526
|
-
class CodeOwnership::Private::Validations::FilesHaveOwners
|
527
|
-
include ::CodeOwnership::Private::Validations::Interface
|
528
|
-
|
529
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/files_have_owners.rb:12
|
530
|
-
sig do
|
531
|
-
override
|
532
|
-
.params(
|
533
|
-
files: T::Array[::String],
|
534
|
-
autocorrect: T::Boolean,
|
535
|
-
stage_changes: T::Boolean
|
536
|
-
).returns(T::Array[::String])
|
537
|
-
end
|
538
|
-
def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
539
|
-
end
|
540
|
-
|
541
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/files_have_unique_owners.rb:6
|
542
|
-
class CodeOwnership::Private::Validations::FilesHaveUniqueOwners
|
543
|
-
include ::CodeOwnership::Private::Validations::Interface
|
544
|
-
|
545
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/files_have_unique_owners.rb:12
|
546
|
-
sig do
|
547
|
-
override
|
548
|
-
.params(
|
549
|
-
files: T::Array[::String],
|
550
|
-
autocorrect: T::Boolean,
|
551
|
-
stage_changes: T::Boolean
|
552
|
-
).returns(T::Array[::String])
|
553
|
-
end
|
554
|
-
def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
555
|
-
end
|
556
|
-
|
557
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/github_codeowners_up_to_date.rb:6
|
558
|
-
class CodeOwnership::Private::Validations::GithubCodeownersUpToDate
|
559
|
-
include ::CodeOwnership::Private::Validations::Interface
|
560
|
-
|
561
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/github_codeowners_up_to_date.rb:12
|
562
|
-
sig do
|
563
|
-
override
|
564
|
-
.params(
|
565
|
-
files: T::Array[::String],
|
566
|
-
autocorrect: T::Boolean,
|
567
|
-
stage_changes: T::Boolean
|
568
|
-
).returns(T::Array[::String])
|
569
|
-
end
|
570
|
-
def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
571
|
-
|
572
|
-
private
|
573
|
-
|
574
|
-
# Generate the contents of a CODEOWNERS file that GitHub can use to
|
575
|
-
# automatically assign reviewers
|
576
|
-
# https://help.github.com/articles/about-codeowners/
|
577
|
-
#
|
578
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/github_codeowners_up_to_date.rb:100
|
579
|
-
sig { returns(T::Array[::String]) }
|
580
|
-
def codeowners_file_lines; end
|
581
|
-
end
|
582
|
-
|
583
|
-
# @abstract Subclasses must implement the `abstract` methods below.
|
584
|
-
#
|
585
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/interface.rb:6
|
586
|
-
module CodeOwnership::Private::Validations::Interface
|
587
|
-
interface!
|
588
|
-
|
589
|
-
# @abstract
|
590
|
-
#
|
591
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/interface.rb:13
|
592
|
-
sig do
|
593
|
-
abstract
|
594
|
-
.params(
|
595
|
-
files: T::Array[::String],
|
596
|
-
autocorrect: T::Boolean,
|
597
|
-
stage_changes: T::Boolean
|
598
|
-
).returns(T::Array[::String])
|
599
|
-
end
|
600
|
-
def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
601
|
-
end
|
602
|
-
|
603
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/no_overlapping_globs.rb:6
|
604
|
-
class CodeOwnership::Private::Validations::NoOverlappingGlobs
|
605
|
-
include ::CodeOwnership::Private::Validations::Interface
|
606
|
-
|
607
|
-
# source://code_ownership-1.31.0/lib/code_ownership/private/validations/no_overlapping_globs.rb:12
|
608
|
-
sig do
|
609
|
-
override
|
610
|
-
.params(
|
611
|
-
files: T::Array[::String],
|
612
|
-
autocorrect: T::Boolean,
|
613
|
-
stage_changes: T::Boolean
|
614
|
-
).returns(T::Array[::String])
|
615
|
-
end
|
616
|
-
def validation_errors(files:, autocorrect: T.unsafe(nil), stage_changes: T.unsafe(nil)); end
|
617
|
-
end
|