rubocop-packs 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/cop/packs/namespace_convention.rb +12 -45
- data/lib/rubocop/packs/private/configuration.rb +10 -0
- data/lib/rubocop/packs/private.rb +112 -0
- data/lib/rubocop/packs.rb +11 -44
- metadata +2 -42
- data/sorbet/config +0 -3
- data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -15914
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -11263
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -2296
- data/sorbet/rbi/gems/json@2.6.2.rbi +0 -1547
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -1459
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -161
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
- data/sorbet/rbi/gems/parse_packwerk@0.12.1.rbi +0 -203
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -8944
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -392
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -2899
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3007
- data/sorbet/rbi/gems/regexp_parser@2.6.0.rbi +0 -3498
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -10934
- data/sorbet/rbi/gems/rspec-expectations@3.11.1.rbi +0 -8090
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -5291
- data/sorbet/rbi/gems/rspec-support@3.11.1.rbi +0 -1610
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -88
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -6898
- data/sorbet/rbi/gems/rubocop-extension-generator@0.5.1.rbi +0 -86
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -1002
- data/sorbet/rbi/gems/rubocop@1.36.0.rbi +0 -52209
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1239
- data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2369
- data/sorbet/rbi/gems/tapioca@0.10.2.rbi +0 -3439
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3956
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -5896
- data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -48
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2586
- data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +0 -389
- data/sorbet/rbi/gems/yard@0.9.28.rbi +0 -17775
- data/sorbet/rbi/todo.rbi +0 -5
@@ -1,161 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `netrc` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem netrc`.
|
6
|
-
|
7
|
-
# source://netrc//lib/netrc.rb#3
|
8
|
-
class Netrc
|
9
|
-
# @return [Netrc] a new instance of Netrc
|
10
|
-
#
|
11
|
-
# source://netrc//lib/netrc.rb#166
|
12
|
-
def initialize(path, data); end
|
13
|
-
|
14
|
-
# source://netrc//lib/netrc.rb#180
|
15
|
-
def [](k); end
|
16
|
-
|
17
|
-
# source://netrc//lib/netrc.rb#188
|
18
|
-
def []=(k, info); end
|
19
|
-
|
20
|
-
# source://netrc//lib/netrc.rb#200
|
21
|
-
def delete(key); end
|
22
|
-
|
23
|
-
# source://netrc//lib/netrc.rb#211
|
24
|
-
def each(&block); end
|
25
|
-
|
26
|
-
# source://netrc//lib/netrc.rb#196
|
27
|
-
def length; end
|
28
|
-
|
29
|
-
# source://netrc//lib/netrc.rb#215
|
30
|
-
def new_item(m, l, p); end
|
31
|
-
|
32
|
-
# Returns the value of attribute new_item_prefix.
|
33
|
-
#
|
34
|
-
# source://netrc//lib/netrc.rb#178
|
35
|
-
def new_item_prefix; end
|
36
|
-
|
37
|
-
# Sets the attribute new_item_prefix
|
38
|
-
#
|
39
|
-
# @param value the value to set the attribute new_item_prefix to.
|
40
|
-
#
|
41
|
-
# source://netrc//lib/netrc.rb#178
|
42
|
-
def new_item_prefix=(_arg0); end
|
43
|
-
|
44
|
-
# source://netrc//lib/netrc.rb#219
|
45
|
-
def save; end
|
46
|
-
|
47
|
-
# source://netrc//lib/netrc.rb#233
|
48
|
-
def unparse; end
|
49
|
-
|
50
|
-
class << self
|
51
|
-
# source://netrc//lib/netrc.rb#42
|
52
|
-
def check_permissions(path); end
|
53
|
-
|
54
|
-
# source://netrc//lib/netrc.rb#33
|
55
|
-
def config; end
|
56
|
-
|
57
|
-
# @yield [self.config]
|
58
|
-
#
|
59
|
-
# source://netrc//lib/netrc.rb#37
|
60
|
-
def configure; end
|
61
|
-
|
62
|
-
# source://netrc//lib/netrc.rb#10
|
63
|
-
def default_path; end
|
64
|
-
|
65
|
-
# source://netrc//lib/netrc.rb#14
|
66
|
-
def home_path; end
|
67
|
-
|
68
|
-
# source://netrc//lib/netrc.rb#85
|
69
|
-
def lex(lines); end
|
70
|
-
|
71
|
-
# source://netrc//lib/netrc.rb#29
|
72
|
-
def netrc_filename; end
|
73
|
-
|
74
|
-
# Returns two values, a header and a list of items.
|
75
|
-
# Each item is a tuple, containing some or all of:
|
76
|
-
# - machine keyword (including trailing whitespace+comments)
|
77
|
-
# - machine name
|
78
|
-
# - login keyword (including surrounding whitespace+comments)
|
79
|
-
# - login
|
80
|
-
# - password keyword (including surrounding whitespace+comments)
|
81
|
-
# - password
|
82
|
-
# - trailing chars
|
83
|
-
# This lets us change individual fields, then write out the file
|
84
|
-
# with all its original formatting.
|
85
|
-
#
|
86
|
-
# source://netrc//lib/netrc.rb#129
|
87
|
-
def parse(ts); end
|
88
|
-
|
89
|
-
# Reads path and parses it as a .netrc file. If path doesn't
|
90
|
-
# exist, returns an empty object. Decrypt paths ending in .gpg.
|
91
|
-
#
|
92
|
-
# source://netrc//lib/netrc.rb#51
|
93
|
-
def read(path = T.unsafe(nil)); end
|
94
|
-
|
95
|
-
# @return [Boolean]
|
96
|
-
#
|
97
|
-
# source://netrc//lib/netrc.rb#112
|
98
|
-
def skip?(s); end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# source://netrc//lib/netrc.rb#8
|
103
|
-
Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
|
104
|
-
|
105
|
-
# source://netrc//lib/netrc.rb#244
|
106
|
-
class Netrc::Entry < ::Struct
|
107
|
-
# Returns the value of attribute login
|
108
|
-
#
|
109
|
-
# @return [Object] the current value of login
|
110
|
-
def login; end
|
111
|
-
|
112
|
-
# Sets the attribute login
|
113
|
-
#
|
114
|
-
# @param value [Object] the value to set the attribute login to.
|
115
|
-
# @return [Object] the newly set value
|
116
|
-
#
|
117
|
-
# source://netrc//lib/netrc.rb#244
|
118
|
-
def login=(_); end
|
119
|
-
|
120
|
-
# Returns the value of attribute password
|
121
|
-
#
|
122
|
-
# @return [Object] the current value of password
|
123
|
-
def password; end
|
124
|
-
|
125
|
-
# Sets the attribute password
|
126
|
-
#
|
127
|
-
# @param value [Object] the value to set the attribute password to.
|
128
|
-
# @return [Object] the newly set value
|
129
|
-
#
|
130
|
-
# source://netrc//lib/netrc.rb#244
|
131
|
-
def password=(_); end
|
132
|
-
|
133
|
-
def to_ary; end
|
134
|
-
|
135
|
-
class << self
|
136
|
-
def [](*_arg0); end
|
137
|
-
def inspect; end
|
138
|
-
def members; end
|
139
|
-
def new(*_arg0); end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
# source://netrc//lib/netrc.rb#250
|
144
|
-
class Netrc::Error < ::StandardError; end
|
145
|
-
|
146
|
-
# source://netrc//lib/netrc.rb#68
|
147
|
-
class Netrc::TokenArray < ::Array
|
148
|
-
# source://netrc//lib/netrc.rb#76
|
149
|
-
def readto; end
|
150
|
-
|
151
|
-
# source://netrc//lib/netrc.rb#69
|
152
|
-
def take; end
|
153
|
-
end
|
154
|
-
|
155
|
-
# source://netrc//lib/netrc.rb#4
|
156
|
-
Netrc::VERSION = T.let(T.unsafe(nil), String)
|
157
|
-
|
158
|
-
# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
|
159
|
-
#
|
160
|
-
# source://netrc//lib/netrc.rb#7
|
161
|
-
Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
|
@@ -1,277 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `parallel` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem parallel`.
|
6
|
-
|
7
|
-
# source://parallel//lib/parallel/version.rb#2
|
8
|
-
module Parallel
|
9
|
-
extend ::Parallel::ProcessorCount
|
10
|
-
|
11
|
-
class << self
|
12
|
-
# @return [Boolean]
|
13
|
-
#
|
14
|
-
# source://parallel//lib/parallel.rb#246
|
15
|
-
def all?(*args, &block); end
|
16
|
-
|
17
|
-
# @return [Boolean]
|
18
|
-
#
|
19
|
-
# source://parallel//lib/parallel.rb#241
|
20
|
-
def any?(*args, &block); end
|
21
|
-
|
22
|
-
# source://parallel//lib/parallel.rb#237
|
23
|
-
def each(array, options = T.unsafe(nil), &block); end
|
24
|
-
|
25
|
-
# source://parallel//lib/parallel.rb#251
|
26
|
-
def each_with_index(array, options = T.unsafe(nil), &block); end
|
27
|
-
|
28
|
-
# source://parallel//lib/parallel.rb#306
|
29
|
-
def flat_map(*args, &block); end
|
30
|
-
|
31
|
-
# source://parallel//lib/parallel.rb#231
|
32
|
-
def in_processes(options = T.unsafe(nil), &block); end
|
33
|
-
|
34
|
-
# source://parallel//lib/parallel.rb#215
|
35
|
-
def in_threads(options = T.unsafe(nil)); end
|
36
|
-
|
37
|
-
# source://parallel//lib/parallel.rb#255
|
38
|
-
def map(source, options = T.unsafe(nil), &block); end
|
39
|
-
|
40
|
-
# source://parallel//lib/parallel.rb#302
|
41
|
-
def map_with_index(array, options = T.unsafe(nil), &block); end
|
42
|
-
|
43
|
-
# source://parallel//lib/parallel.rb#310
|
44
|
-
def worker_number; end
|
45
|
-
|
46
|
-
# TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
|
47
|
-
#
|
48
|
-
# source://parallel//lib/parallel.rb#315
|
49
|
-
def worker_number=(worker_num); end
|
50
|
-
|
51
|
-
private
|
52
|
-
|
53
|
-
# source://parallel//lib/parallel.rb#321
|
54
|
-
def add_progress_bar!(job_factory, options); end
|
55
|
-
|
56
|
-
# source://parallel//lib/parallel.rb#584
|
57
|
-
def call_with_index(item, index, options, &block); end
|
58
|
-
|
59
|
-
# source://parallel//lib/parallel.rb#516
|
60
|
-
def create_workers(job_factory, options, &block); end
|
61
|
-
|
62
|
-
# options is either a Integer or a Hash with :count
|
63
|
-
#
|
64
|
-
# source://parallel//lib/parallel.rb#574
|
65
|
-
def extract_count_from_options(options); end
|
66
|
-
|
67
|
-
# source://parallel//lib/parallel.rb#602
|
68
|
-
def instrument_finish(item, index, result, options); end
|
69
|
-
|
70
|
-
# source://parallel//lib/parallel.rb#607
|
71
|
-
def instrument_start(item, index, options); end
|
72
|
-
|
73
|
-
# source://parallel//lib/parallel.rb#550
|
74
|
-
def process_incoming_jobs(read, write, job_factory, options, &block); end
|
75
|
-
|
76
|
-
# source://parallel//lib/parallel.rb#504
|
77
|
-
def replace_worker(job_factory, workers, index, options, blk); end
|
78
|
-
|
79
|
-
# source://parallel//lib/parallel.rb#595
|
80
|
-
def with_instrumentation(item, index, options); end
|
81
|
-
|
82
|
-
# source://parallel//lib/parallel.rb#346
|
83
|
-
def work_direct(job_factory, options, &block); end
|
84
|
-
|
85
|
-
# source://parallel//lib/parallel.rb#456
|
86
|
-
def work_in_processes(job_factory, options, &blk); end
|
87
|
-
|
88
|
-
# source://parallel//lib/parallel.rb#390
|
89
|
-
def work_in_ractors(job_factory, options); end
|
90
|
-
|
91
|
-
# source://parallel//lib/parallel.rb#365
|
92
|
-
def work_in_threads(job_factory, options, &block); end
|
93
|
-
|
94
|
-
# source://parallel//lib/parallel.rb#524
|
95
|
-
def worker(job_factory, options, &block); end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
# source://parallel//lib/parallel.rb#14
|
100
|
-
class Parallel::Break < ::StandardError
|
101
|
-
# @return [Break] a new instance of Break
|
102
|
-
#
|
103
|
-
# source://parallel//lib/parallel.rb#17
|
104
|
-
def initialize(value = T.unsafe(nil)); end
|
105
|
-
|
106
|
-
# Returns the value of attribute value.
|
107
|
-
#
|
108
|
-
# source://parallel//lib/parallel.rb#15
|
109
|
-
def value; end
|
110
|
-
end
|
111
|
-
|
112
|
-
# source://parallel//lib/parallel.rb#11
|
113
|
-
class Parallel::DeadWorker < ::StandardError; end
|
114
|
-
|
115
|
-
# source://parallel//lib/parallel.rb#35
|
116
|
-
class Parallel::ExceptionWrapper
|
117
|
-
# @return [ExceptionWrapper] a new instance of ExceptionWrapper
|
118
|
-
#
|
119
|
-
# source://parallel//lib/parallel.rb#38
|
120
|
-
def initialize(exception); end
|
121
|
-
|
122
|
-
# Returns the value of attribute exception.
|
123
|
-
#
|
124
|
-
# source://parallel//lib/parallel.rb#36
|
125
|
-
def exception; end
|
126
|
-
end
|
127
|
-
|
128
|
-
# source://parallel//lib/parallel.rb#101
|
129
|
-
class Parallel::JobFactory
|
130
|
-
# @return [JobFactory] a new instance of JobFactory
|
131
|
-
#
|
132
|
-
# source://parallel//lib/parallel.rb#102
|
133
|
-
def initialize(source, mutex); end
|
134
|
-
|
135
|
-
# source://parallel//lib/parallel.rb#110
|
136
|
-
def next; end
|
137
|
-
|
138
|
-
# generate item that is sent to workers
|
139
|
-
# just index is faster + less likely to blow up with unserializable errors
|
140
|
-
#
|
141
|
-
# source://parallel//lib/parallel.rb#139
|
142
|
-
def pack(item, index); end
|
143
|
-
|
144
|
-
# source://parallel//lib/parallel.rb#129
|
145
|
-
def size; end
|
146
|
-
|
147
|
-
# unpack item that is sent to workers
|
148
|
-
#
|
149
|
-
# source://parallel//lib/parallel.rb#144
|
150
|
-
def unpack(data); end
|
151
|
-
|
152
|
-
private
|
153
|
-
|
154
|
-
# @return [Boolean]
|
155
|
-
#
|
156
|
-
# source://parallel//lib/parallel.rb#150
|
157
|
-
def producer?; end
|
158
|
-
|
159
|
-
# source://parallel//lib/parallel.rb#154
|
160
|
-
def queue_wrapper(array); end
|
161
|
-
end
|
162
|
-
|
163
|
-
# source://parallel//lib/parallel.rb#23
|
164
|
-
class Parallel::Kill < ::Parallel::Break; end
|
165
|
-
|
166
|
-
# TODO: inline this method into parallel.rb and kill physical_processor_count in next major release
|
167
|
-
#
|
168
|
-
# source://parallel//lib/parallel/processor_count.rb#4
|
169
|
-
module Parallel::ProcessorCount
|
170
|
-
# Number of physical processor cores on the current system.
|
171
|
-
#
|
172
|
-
# source://parallel//lib/parallel/processor_count.rb#12
|
173
|
-
def physical_processor_count; end
|
174
|
-
|
175
|
-
# Number of processors seen by the OS, used for process scheduling
|
176
|
-
#
|
177
|
-
# source://parallel//lib/parallel/processor_count.rb#6
|
178
|
-
def processor_count; end
|
179
|
-
end
|
180
|
-
|
181
|
-
# source://parallel//lib/parallel.rb#9
|
182
|
-
Parallel::Stop = T.let(T.unsafe(nil), Object)
|
183
|
-
|
184
|
-
# source://parallel//lib/parallel.rb#26
|
185
|
-
class Parallel::UndumpableException < ::StandardError
|
186
|
-
# @return [UndumpableException] a new instance of UndumpableException
|
187
|
-
#
|
188
|
-
# source://parallel//lib/parallel.rb#29
|
189
|
-
def initialize(original); end
|
190
|
-
|
191
|
-
# Returns the value of attribute backtrace.
|
192
|
-
#
|
193
|
-
# source://parallel//lib/parallel.rb#27
|
194
|
-
def backtrace; end
|
195
|
-
end
|
196
|
-
|
197
|
-
# source://parallel//lib/parallel.rb#159
|
198
|
-
class Parallel::UserInterruptHandler
|
199
|
-
class << self
|
200
|
-
# source://parallel//lib/parallel.rb#184
|
201
|
-
def kill(thing); end
|
202
|
-
|
203
|
-
# kill all these pids or threads if user presses Ctrl+c
|
204
|
-
#
|
205
|
-
# source://parallel//lib/parallel.rb#164
|
206
|
-
def kill_on_ctrl_c(pids, options); end
|
207
|
-
|
208
|
-
private
|
209
|
-
|
210
|
-
# source://parallel//lib/parallel.rb#208
|
211
|
-
def restore_interrupt(old, signal); end
|
212
|
-
|
213
|
-
# source://parallel//lib/parallel.rb#193
|
214
|
-
def trap_interrupt(signal); end
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
218
|
-
# source://parallel//lib/parallel.rb#160
|
219
|
-
Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
|
220
|
-
|
221
|
-
# source://parallel//lib/parallel/version.rb#3
|
222
|
-
Parallel::VERSION = T.let(T.unsafe(nil), String)
|
223
|
-
|
224
|
-
# source://parallel//lib/parallel/version.rb#3
|
225
|
-
Parallel::Version = T.let(T.unsafe(nil), String)
|
226
|
-
|
227
|
-
# source://parallel//lib/parallel.rb#54
|
228
|
-
class Parallel::Worker
|
229
|
-
# @return [Worker] a new instance of Worker
|
230
|
-
#
|
231
|
-
# source://parallel//lib/parallel.rb#58
|
232
|
-
def initialize(read, write, pid); end
|
233
|
-
|
234
|
-
# might be passed to started_processes and simultaneously closed by another thread
|
235
|
-
# when running in isolation mode, so we have to check if it is closed before closing
|
236
|
-
#
|
237
|
-
# source://parallel//lib/parallel.rb#71
|
238
|
-
def close_pipes; end
|
239
|
-
|
240
|
-
# Returns the value of attribute pid.
|
241
|
-
#
|
242
|
-
# source://parallel//lib/parallel.rb#55
|
243
|
-
def pid; end
|
244
|
-
|
245
|
-
# Returns the value of attribute read.
|
246
|
-
#
|
247
|
-
# source://parallel//lib/parallel.rb#55
|
248
|
-
def read; end
|
249
|
-
|
250
|
-
# source://parallel//lib/parallel.rb#64
|
251
|
-
def stop; end
|
252
|
-
|
253
|
-
# Returns the value of attribute thread.
|
254
|
-
#
|
255
|
-
# source://parallel//lib/parallel.rb#56
|
256
|
-
def thread; end
|
257
|
-
|
258
|
-
# Sets the attribute thread
|
259
|
-
#
|
260
|
-
# @param value the value to set the attribute thread to.
|
261
|
-
#
|
262
|
-
# source://parallel//lib/parallel.rb#56
|
263
|
-
def thread=(_arg0); end
|
264
|
-
|
265
|
-
# source://parallel//lib/parallel.rb#76
|
266
|
-
def work(data); end
|
267
|
-
|
268
|
-
# Returns the value of attribute write.
|
269
|
-
#
|
270
|
-
# source://parallel//lib/parallel.rb#55
|
271
|
-
def write; end
|
272
|
-
|
273
|
-
private
|
274
|
-
|
275
|
-
# source://parallel//lib/parallel.rb#94
|
276
|
-
def wait; end
|
277
|
-
end
|
@@ -1,203 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `parse_packwerk` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem parse_packwerk`.
|
6
|
-
|
7
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#3
|
8
|
-
module ParsePackwerk
|
9
|
-
class << self
|
10
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#28
|
11
|
-
sig { returns(T::Array[::ParsePackwerk::Package]) }
|
12
|
-
def all; end
|
13
|
-
|
14
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#105
|
15
|
-
sig { void }
|
16
|
-
def bust_cache!; end
|
17
|
-
|
18
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#33
|
19
|
-
sig { params(name: ::String).returns(T.nilable(::ParsePackwerk::Package)) }
|
20
|
-
def find(name); end
|
21
|
-
|
22
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#43
|
23
|
-
sig { params(file_path: T.any(::Pathname, ::String)).returns(::ParsePackwerk::Package) }
|
24
|
-
def package_from_path(file_path); end
|
25
|
-
|
26
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#54
|
27
|
-
sig { params(package: ::ParsePackwerk::Package).void }
|
28
|
-
def write_package_yml!(package); end
|
29
|
-
|
30
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#38
|
31
|
-
sig { returns(::ParsePackwerk::Configuration) }
|
32
|
-
def yml; end
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
# We memoize packages_by_name for fast lookup.
|
37
|
-
# Since Graph is an immutable value object, we can create indexes and general caching mechanisms safely.
|
38
|
-
#
|
39
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#93
|
40
|
-
sig { returns(T::Hash[::String, ::ParsePackwerk::Package]) }
|
41
|
-
def packages_by_name; end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# source://parse_packwerk//lib/parse_packwerk/configuration.rb#4
|
46
|
-
class ParsePackwerk::Configuration < ::T::Struct
|
47
|
-
const :exclude, T::Array[::String]
|
48
|
-
const :package_paths, T::Array[::String]
|
49
|
-
|
50
|
-
class << self
|
51
|
-
# source://parse_packwerk//lib/parse_packwerk/configuration.rb#28
|
52
|
-
sig { params(config_hash: T::Hash[T.untyped, T.untyped]).returns(T::Array[::String]) }
|
53
|
-
def excludes(config_hash); end
|
54
|
-
|
55
|
-
# source://parse_packwerk//lib/parse_packwerk/configuration.rb#11
|
56
|
-
sig { returns(::ParsePackwerk::Configuration) }
|
57
|
-
def fetch; end
|
58
|
-
|
59
|
-
# source://sorbet-runtime/0.5.10479/lib/types/struct.rb#13
|
60
|
-
def inherited(s); end
|
61
|
-
|
62
|
-
# source://parse_packwerk//lib/parse_packwerk/configuration.rb#40
|
63
|
-
sig { params(config_hash: T::Hash[T.untyped, T.untyped]).returns(T::Array[::String]) }
|
64
|
-
def package_paths(config_hash); end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#19
|
69
|
-
ParsePackwerk::DEFAULT_EXCLUDE_GLOBS = T.let(T.unsafe(nil), Array)
|
70
|
-
|
71
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#20
|
72
|
-
ParsePackwerk::DEFAULT_PACKAGE_PATHS = T.let(T.unsafe(nil), Array)
|
73
|
-
|
74
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#11
|
75
|
-
ParsePackwerk::DEPENDENCIES = T.let(T.unsafe(nil), String)
|
76
|
-
|
77
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#7
|
78
|
-
ParsePackwerk::DEPRECATED_REFERENCES_YML_NAME = T.let(T.unsafe(nil), String)
|
79
|
-
|
80
|
-
# source://parse_packwerk//lib/parse_packwerk/deprecated_references.rb#4
|
81
|
-
class ParsePackwerk::DeprecatedReferences < ::T::Struct
|
82
|
-
const :pathname, ::Pathname
|
83
|
-
const :violations, T::Array[::ParsePackwerk::Violation]
|
84
|
-
|
85
|
-
class << self
|
86
|
-
# source://parse_packwerk//lib/parse_packwerk/deprecated_references.rb#11
|
87
|
-
sig { params(package: ::ParsePackwerk::Package).returns(::ParsePackwerk::DeprecatedReferences) }
|
88
|
-
def for(package); end
|
89
|
-
|
90
|
-
# source://parse_packwerk//lib/parse_packwerk/deprecated_references.rb#17
|
91
|
-
sig { params(pathname: ::Pathname).returns(::ParsePackwerk::DeprecatedReferences) }
|
92
|
-
def from(pathname); end
|
93
|
-
|
94
|
-
# source://sorbet-runtime/0.5.10479/lib/types/struct.rb#13
|
95
|
-
def inherited(s); end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#8
|
100
|
-
ParsePackwerk::ENFORCE_DEPENDENCIES = T.let(T.unsafe(nil), String)
|
101
|
-
|
102
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#9
|
103
|
-
ParsePackwerk::ENFORCE_PRIVACY = T.let(T.unsafe(nil), String)
|
104
|
-
|
105
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#10
|
106
|
-
ParsePackwerk::METADATA = T.let(T.unsafe(nil), String)
|
107
|
-
|
108
|
-
# Since this metadata is unstructured YAML, it could be any type. We leave it to clients of `ParsePackwerk::Package`
|
109
|
-
# to add types based on their known usage of metadata.
|
110
|
-
#
|
111
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#15
|
112
|
-
ParsePackwerk::MetadataYmlType = T.type_alias { T::Hash[T.untyped, T.untyped] }
|
113
|
-
|
114
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#14
|
115
|
-
class ParsePackwerk::MissingConfiguration < ::StandardError
|
116
|
-
# source://parse_packwerk//lib/parse_packwerk.rb#18
|
117
|
-
sig { params(packwerk_file_name: ::Pathname).void }
|
118
|
-
def initialize(packwerk_file_name); end
|
119
|
-
end
|
120
|
-
|
121
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#5
|
122
|
-
ParsePackwerk::PACKAGE_YML_NAME = T.let(T.unsafe(nil), String)
|
123
|
-
|
124
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#6
|
125
|
-
ParsePackwerk::PACKWERK_YML_NAME = T.let(T.unsafe(nil), String)
|
126
|
-
|
127
|
-
# source://parse_packwerk//lib/parse_packwerk/package.rb#4
|
128
|
-
class ParsePackwerk::Package < ::T::Struct
|
129
|
-
const :name, ::String
|
130
|
-
const :enforce_dependencies, T::Boolean
|
131
|
-
const :enforce_privacy, T::Boolean
|
132
|
-
const :metadata, T::Hash[T.untyped, T.untyped]
|
133
|
-
const :dependencies, T::Array[::String]
|
134
|
-
|
135
|
-
# source://parse_packwerk//lib/parse_packwerk/package.rb#33
|
136
|
-
sig { returns(::Pathname) }
|
137
|
-
def directory; end
|
138
|
-
|
139
|
-
# source://parse_packwerk//lib/parse_packwerk/package.rb#38
|
140
|
-
sig { returns(T::Boolean) }
|
141
|
-
def enforces_dependencies?; end
|
142
|
-
|
143
|
-
# source://parse_packwerk//lib/parse_packwerk/package.rb#43
|
144
|
-
sig { returns(T::Boolean) }
|
145
|
-
def enforces_privacy?; end
|
146
|
-
|
147
|
-
# source://parse_packwerk//lib/parse_packwerk/package.rb#28
|
148
|
-
sig { returns(::Pathname) }
|
149
|
-
def yml; end
|
150
|
-
|
151
|
-
class << self
|
152
|
-
# source://parse_packwerk//lib/parse_packwerk/package.rb#14
|
153
|
-
sig { params(pathname: ::Pathname).returns(::ParsePackwerk::Package) }
|
154
|
-
def from(pathname); end
|
155
|
-
|
156
|
-
# source://sorbet-runtime/0.5.10479/lib/types/struct.rb#13
|
157
|
-
def inherited(s); end
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
# source://parse_packwerk//lib/parse_packwerk/package_set.rb#8
|
162
|
-
class ParsePackwerk::PackageSet
|
163
|
-
class << self
|
164
|
-
# source://parse_packwerk//lib/parse_packwerk/package_set.rb#12
|
165
|
-
sig do
|
166
|
-
params(
|
167
|
-
package_pathspec: T::Array[::String],
|
168
|
-
exclude_pathspec: T::Array[::String]
|
169
|
-
).returns(T::Array[::ParsePackwerk::Package])
|
170
|
-
end
|
171
|
-
def from(package_pathspec:, exclude_pathspec:); end
|
172
|
-
|
173
|
-
private
|
174
|
-
|
175
|
-
# source://parse_packwerk//lib/parse_packwerk/package_set.rb#28
|
176
|
-
sig { params(globs: T::Array[::String], path: ::Pathname).returns(T::Boolean) }
|
177
|
-
def exclude_path?(globs, path); end
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
# source://parse_packwerk//lib/parse_packwerk/constants.rb#4
|
182
|
-
ParsePackwerk::ROOT_PACKAGE_NAME = T.let(T.unsafe(nil), String)
|
183
|
-
|
184
|
-
# source://parse_packwerk//lib/parse_packwerk/violation.rb#4
|
185
|
-
class ParsePackwerk::Violation < ::T::Struct
|
186
|
-
const :type, ::String
|
187
|
-
const :to_package_name, ::String
|
188
|
-
const :class_name, ::String
|
189
|
-
const :files, T::Array[::String]
|
190
|
-
|
191
|
-
# source://parse_packwerk//lib/parse_packwerk/violation.rb#13
|
192
|
-
sig { returns(T::Boolean) }
|
193
|
-
def dependency?; end
|
194
|
-
|
195
|
-
# source://parse_packwerk//lib/parse_packwerk/violation.rb#18
|
196
|
-
sig { returns(T::Boolean) }
|
197
|
-
def privacy?; end
|
198
|
-
|
199
|
-
class << self
|
200
|
-
# source://sorbet-runtime/0.5.10479/lib/types/struct.rb#13
|
201
|
-
def inherited(s); end
|
202
|
-
end
|
203
|
-
end
|