packwerk 3.3.0 → 3.4.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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/packwerk/checker.rb +4 -4
  3. data/lib/packwerk/commands/base_command.rb +1 -1
  4. data/lib/packwerk/configuration.rb +2 -2
  5. data/lib/packwerk/const_node_inspector.rb +6 -6
  6. data/lib/packwerk/constant_name_inspector.rb +1 -1
  7. data/lib/packwerk/formatters/default_offenses_formatter.rb +2 -2
  8. data/lib/packwerk/offenses_formatter.rb +4 -4
  9. data/lib/packwerk/output_style.rb +3 -3
  10. data/lib/packwerk/parsers/erb.rb +11 -46
  11. data/lib/packwerk/parsers/parser_interface.rb +1 -1
  12. data/lib/packwerk/validator.rb +2 -2
  13. data/lib/packwerk/version.rb +1 -1
  14. metadata +9 -69
  15. data/sorbet/config +0 -6
  16. data/sorbet/rbi/gems/actionpack@7.0.8.7.rbi +0 -19338
  17. data/sorbet/rbi/gems/actionview@7.0.8.7.rbi +0 -15492
  18. data/sorbet/rbi/gems/activesupport@7.0.8.7.rbi +0 -18283
  19. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
  20. data/sorbet/rbi/gems/better_html@2.1.1.rbi +0 -529
  21. data/sorbet/rbi/gems/builder@3.3.0.rbi +0 -8
  22. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -36
  23. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +0 -11656
  24. data/sorbet/rbi/gems/constant_resolver@0.3.0.rbi +0 -99
  25. data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -622
  26. data/sorbet/rbi/gems/erubi@1.13.1.rbi +0 -154
  27. data/sorbet/rbi/gems/i18n@1.14.7.rbi +0 -2358
  28. data/sorbet/rbi/gems/json@2.7.2.rbi +0 -1561
  29. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
  30. data/sorbet/rbi/gems/loofah@2.24.0.rbi +0 -1104
  31. data/sorbet/rbi/gems/m@1.6.0.rbi +0 -257
  32. data/sorbet/rbi/gems/method_source@1.1.0.rbi +0 -303
  33. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +0 -98
  34. data/sorbet/rbi/gems/minitest@5.25.4.rbi +0 -2229
  35. data/sorbet/rbi/gems/mocha@2.5.0.rbi +0 -3961
  36. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
  37. data/sorbet/rbi/gems/nokogiri@1.18.4.rbi +0 -8204
  38. data/sorbet/rbi/gems/parallel@1.25.1.rbi +0 -286
  39. data/sorbet/rbi/gems/parser@3.3.3.0.rbi +0 -7320
  40. data/sorbet/rbi/gems/prism@1.9.0.rbi +0 -43359
  41. data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -161
  42. data/sorbet/rbi/gems/rack-test@2.2.0.rbi +0 -736
  43. data/sorbet/rbi/gems/rack@2.2.13.rbi +0 -5633
  44. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +0 -754
  45. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +0 -764
  46. data/sorbet/rbi/gems/railties@7.0.8.7.rbi +0 -3517
  47. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -402
  48. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3039
  49. data/sorbet/rbi/gems/rbi@0.1.12.rbi +0 -3071
  50. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +0 -3771
  51. data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4857
  52. data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +0 -7089
  53. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +0 -2967
  54. data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +0 -8
  55. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -975
  56. data/sorbet/rbi/gems/rubocop@1.64.1.rbi +0 -58089
  57. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1317
  58. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -8
  59. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +0 -474
  60. data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
  61. data/sorbet/rbi/gems/spring@4.0.0.rbi +0 -411
  62. data/sorbet/rbi/gems/tapioca@0.13.3.rbi +0 -3524
  63. data/sorbet/rbi/gems/thor@1.3.1.rbi +0 -4351
  64. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5917
  65. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  66. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -428
  67. data/sorbet/rbi/gems/yard@0.9.36.rbi +0 -18333
  68. data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +0 -934
  69. data/sorbet/rbi/shims/minitest/test.rb +0 -8
  70. data/sorbet/rbi/shims/packwerk/reference.rbi +0 -26
  71. data/sorbet/rbi/shims/packwerk/unresolved_reference.rbi +0 -26
  72. data/sorbet/rbi/shims/parser.rbi +0 -13
  73. data/sorbet/rbi/shims/psych.rbi +0 -5
  74. data/sorbet/tapioca/require.rb +0 -25
@@ -1,411 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `spring` gem.
5
- # Please instead update this file by running `bin/tapioca gem spring`.
6
-
7
- # Some parts adapted from
8
- # https://golang.org/src/pkg/json/decode.go and
9
- # https://golang.org/src/pkg/utf8/utf8.go
10
- #
11
- # source://spring//lib/spring/watcher/abstract.rb#5
12
- module Spring
13
- class << self
14
- # source://spring//lib/spring/configuration.rb#30
15
- def after_fork(&block); end
16
-
17
- # source://spring//lib/spring/configuration.rb#26
18
- def after_fork_callbacks; end
19
-
20
- # Returns the value of attribute application_root.
21
- #
22
- # source://spring//lib/spring/configuration.rb#5
23
- def application_root; end
24
-
25
- # Sets the attribute application_root
26
- #
27
- # @param value the value to set the attribute application_root to.
28
- #
29
- # source://spring//lib/spring/configuration.rb#5
30
- def application_root=(_arg0); end
31
-
32
- # source://spring//lib/spring/configuration.rb#38
33
- def application_root_path; end
34
-
35
- # source://spring//lib/spring/commands.rb#19
36
- def command(name); end
37
-
38
- # @return [Boolean]
39
- #
40
- # source://spring//lib/spring/commands.rb#15
41
- def command?(name); end
42
-
43
- # Returns the value of attribute commands.
44
- #
45
- # source://spring//lib/spring/commands.rb#8
46
- def commands; end
47
-
48
- # source://spring//lib/spring/configuration.rb#7
49
- def gemfile; end
50
-
51
- # source://spring//lib/spring/configuration.rb#17
52
- def gemfile_lock; end
53
-
54
- # source://spring//lib/spring/configuration.rb#51
55
- def project_root_path; end
56
-
57
- # Returns the value of attribute quiet.
58
- #
59
- # source://spring//lib/spring/configuration.rb#5
60
- def quiet; end
61
-
62
- # Sets the attribute quiet
63
- #
64
- # @param value the value to set the attribute quiet to.
65
- #
66
- # source://spring//lib/spring/configuration.rb#5
67
- def quiet=(_arg0); end
68
-
69
- # source://spring//lib/spring/commands.rb#11
70
- def register_command(name, command = T.unsafe(nil)); end
71
-
72
- # source://spring//lib/spring/configuration.rb#34
73
- def verify_environment; end
74
-
75
- # source://spring//lib/spring/watcher.rb#27
76
- def watch(*items); end
77
-
78
- # Returns the value of attribute watch_interval.
79
- #
80
- # source://spring//lib/spring/watcher.rb#6
81
- def watch_interval; end
82
-
83
- # Sets the attribute watch_interval
84
- #
85
- # @param value the value to set the attribute watch_interval to.
86
- #
87
- # source://spring//lib/spring/watcher.rb#6
88
- def watch_interval=(_arg0); end
89
-
90
- # Returns the value of attribute watch_method.
91
- #
92
- # source://spring//lib/spring/watcher.rb#8
93
- def watch_method; end
94
-
95
- # source://spring//lib/spring/watcher.rb#11
96
- def watch_method=(method); end
97
-
98
- # source://spring//lib/spring/watcher.rb#23
99
- def watcher; end
100
-
101
- # Sets the attribute watcher
102
- #
103
- # @param value the value to set the attribute watcher to.
104
- #
105
- # source://spring//lib/spring/watcher.rb#7
106
- def watcher=(_arg0); end
107
-
108
- private
109
-
110
- # source://spring//lib/spring/configuration.rb#57
111
- def find_project_root(current_dir); end
112
- end
113
- end
114
-
115
- # source://spring//lib/spring/errors.rb#2
116
- class Spring::ClientError < ::StandardError; end
117
-
118
- # source://spring//lib/spring/errors.rb#34
119
- class Spring::CommandNotFound < ::Spring::ClientError; end
120
-
121
- # source://spring//lib/spring/command_wrapper.rb#4
122
- class Spring::CommandWrapper
123
- # @return [CommandWrapper] a new instance of CommandWrapper
124
- #
125
- # source://spring//lib/spring/command_wrapper.rb#7
126
- def initialize(name, command = T.unsafe(nil)); end
127
-
128
- # source://spring//lib/spring/command_wrapper.rb#60
129
- def binstub; end
130
-
131
- # source://spring//lib/spring/command_wrapper.rb#64
132
- def binstub_name; end
133
-
134
- # source://spring//lib/spring/command_wrapper.rb#36
135
- def call; end
136
-
137
- # Returns the value of attribute command.
138
- #
139
- # source://spring//lib/spring/command_wrapper.rb#5
140
- def command; end
141
-
142
- # source://spring//lib/spring/command_wrapper.rb#13
143
- def description; end
144
-
145
- # source://spring//lib/spring/command_wrapper.rb#76
146
- def env(args); end
147
-
148
- # source://spring//lib/spring/command_wrapper.rb#68
149
- def exec; end
150
-
151
- # source://spring//lib/spring/command_wrapper.rb#52
152
- def exec_name; end
153
-
154
- # source://spring//lib/spring/command_wrapper.rb#44
155
- def gem_name; end
156
-
157
- # Returns the value of attribute name.
158
- #
159
- # source://spring//lib/spring/command_wrapper.rb#5
160
- def name; end
161
-
162
- # source://spring//lib/spring/command_wrapper.rb#25
163
- def setup; end
164
-
165
- # @return [Boolean]
166
- #
167
- # source://spring//lib/spring/command_wrapper.rb#21
168
- def setup?; end
169
- end
170
-
171
- # source://spring//lib/spring/commands/rails.rb#2
172
- module Spring::Commands; end
173
-
174
- # source://spring//lib/spring/commands/rails.rb#3
175
- class Spring::Commands::Rails
176
- # source://spring//lib/spring/commands/rails.rb#4
177
- def call; end
178
-
179
- # source://spring//lib/spring/commands/rails.rb#9
180
- def description; end
181
- end
182
-
183
- # source://spring//lib/spring/commands/rails.rb#14
184
- class Spring::Commands::RailsConsole < ::Spring::Commands::Rails
185
- # source://spring//lib/spring/commands/rails.rb#31
186
- def command_name; end
187
-
188
- # source://spring//lib/spring/commands/rails.rb#15
189
- def env(args); end
190
- end
191
-
192
- # source://spring//lib/spring/commands/rails.rb#42
193
- class Spring::Commands::RailsDestroy < ::Spring::Commands::Rails
194
- # source://spring//lib/spring/commands/rails.rb#43
195
- def command_name; end
196
- end
197
-
198
- # source://spring//lib/spring/commands/rails.rb#36
199
- class Spring::Commands::RailsGenerate < ::Spring::Commands::Rails
200
- # source://spring//lib/spring/commands/rails.rb#37
201
- def command_name; end
202
- end
203
-
204
- # source://spring//lib/spring/commands/rails.rb#48
205
- class Spring::Commands::RailsRunner < ::Spring::Commands::Rails
206
- # source://spring//lib/spring/commands/rails.rb#49
207
- def call; end
208
-
209
- # source://spring//lib/spring/commands/rails.rb#58
210
- def command_name; end
211
-
212
- # source://spring//lib/spring/commands/rails.rb#54
213
- def env(args); end
214
-
215
- # source://spring//lib/spring/commands/rails.rb#62
216
- def extract_environment(args); end
217
- end
218
-
219
- # source://spring//lib/spring/commands/rails.rb#86
220
- class Spring::Commands::RailsTest < ::Spring::Commands::Rails
221
- # source://spring//lib/spring/commands/rails.rb#101
222
- def command_name; end
223
-
224
- # source://spring//lib/spring/commands/rails.rb#87
225
- def env(args); end
226
- end
227
-
228
- # source://spring//lib/spring/commands/rake.rb#3
229
- class Spring::Commands::Rake
230
- # source://spring//lib/spring/commands/rake.rb#13
231
- def env(args); end
232
-
233
- class << self
234
- # Returns the value of attribute environment_matchers.
235
- #
236
- # source://spring//lib/spring/commands/rake.rb#5
237
- def environment_matchers; end
238
-
239
- # Sets the attribute environment_matchers
240
- #
241
- # @param value the value to set the attribute environment_matchers to.
242
- #
243
- # source://spring//lib/spring/commands/rake.rb#5
244
- def environment_matchers=(_arg0); end
245
- end
246
- end
247
-
248
- # source://spring//lib/spring/errors.rb#18
249
- class Spring::MissingApplication < ::Spring::ClientError
250
- # @return [MissingApplication] a new instance of MissingApplication
251
- #
252
- # source://spring//lib/spring/errors.rb#21
253
- def initialize(project_root); end
254
-
255
- # source://spring//lib/spring/errors.rb#25
256
- def message; end
257
-
258
- # Returns the value of attribute project_root.
259
- #
260
- # source://spring//lib/spring/errors.rb#19
261
- def project_root; end
262
- end
263
-
264
- # source://spring//lib/spring/errors.rb#4
265
- class Spring::UnknownProject < ::StandardError
266
- # @return [UnknownProject] a new instance of UnknownProject
267
- #
268
- # source://spring//lib/spring/errors.rb#7
269
- def initialize(current_dir); end
270
-
271
- # Returns the value of attribute current_dir.
272
- #
273
- # source://spring//lib/spring/errors.rb#5
274
- def current_dir; end
275
-
276
- # source://spring//lib/spring/errors.rb#11
277
- def message; end
278
- end
279
-
280
- # source://spring//lib/spring/watcher/abstract.rb#6
281
- module Spring::Watcher; end
282
-
283
- # A user of a watcher can use IO.select to wait for changes:
284
- #
285
- # watcher = MyWatcher.new(root, latency)
286
- # IO.select([watcher]) # watcher is running in background
287
- # watcher.stale? # => true
288
- #
289
- # source://spring//lib/spring/watcher/abstract.rb#12
290
- class Spring::Watcher::Abstract
291
- include ::Mutex_m
292
-
293
- # @return [Abstract] a new instance of Abstract
294
- #
295
- # source://spring//lib/spring/watcher/abstract.rb#17
296
- def initialize(root, latency); end
297
-
298
- # source://spring//lib/spring/watcher/abstract.rb#38
299
- def add(*items); end
300
-
301
- # source://spring//lib/spring/watcher/abstract.rb#34
302
- def debug; end
303
-
304
- # Returns the value of attribute directories.
305
- #
306
- # source://spring//lib/spring/watcher/abstract.rb#15
307
- def directories; end
308
-
309
- # Returns the value of attribute files.
310
- #
311
- # source://spring//lib/spring/watcher/abstract.rb#15
312
- def files; end
313
-
314
- # Returns the value of attribute latency.
315
- #
316
- # source://spring//lib/spring/watcher/abstract.rb#15
317
- def latency; end
318
-
319
- # source://mutex_m/0.1.2/mutex_m.rb#93
320
- def lock; end
321
-
322
- # source://mutex_m/0.1.2/mutex_m.rb#83
323
- def locked?; end
324
-
325
- # source://spring//lib/spring/watcher/abstract.rb#91
326
- def mark_stale; end
327
-
328
- # source://spring//lib/spring/watcher/abstract.rb#30
329
- def on_debug(&block); end
330
-
331
- # source://spring//lib/spring/watcher/abstract.rb#86
332
- def on_stale(&block); end
333
-
334
- # source://spring//lib/spring/watcher/abstract.rb#98
335
- def restart; end
336
-
337
- # Returns the value of attribute root.
338
- #
339
- # source://spring//lib/spring/watcher/abstract.rb#15
340
- def root; end
341
-
342
- # @return [Boolean]
343
- #
344
- # source://spring//lib/spring/watcher/abstract.rb#82
345
- def stale?; end
346
-
347
- # @raise [NotImplementedError]
348
- #
349
- # source://spring//lib/spring/watcher/abstract.rb#104
350
- def start; end
351
-
352
- # @raise [NotImplementedError]
353
- #
354
- # source://spring//lib/spring/watcher/abstract.rb#108
355
- def stop; end
356
-
357
- # @raise [NotImplementedError]
358
- #
359
- # source://spring//lib/spring/watcher/abstract.rb#112
360
- def subjects_changed; end
361
-
362
- # source://mutex_m/0.1.2/mutex_m.rb#78
363
- def synchronize(&block); end
364
-
365
- # source://mutex_m/0.1.2/mutex_m.rb#88
366
- def try_lock; end
367
-
368
- # source://mutex_m/0.1.2/mutex_m.rb#98
369
- def unlock; end
370
- end
371
-
372
- # source://spring//lib/spring/watcher/polling.rb#5
373
- class Spring::Watcher::Polling < ::Spring::Watcher::Abstract
374
- # @return [Polling] a new instance of Polling
375
- #
376
- # source://spring//lib/spring/watcher/polling.rb#8
377
- def initialize(root, latency); end
378
-
379
- # source://spring//lib/spring/watcher/polling.rb#24
380
- def add(*_arg0); end
381
-
382
- # source://spring//lib/spring/watcher/polling.rb#14
383
- def check_stale; end
384
-
385
- # Returns the value of attribute mtime.
386
- #
387
- # source://spring//lib/spring/watcher/polling.rb#6
388
- def mtime; end
389
-
390
- # @return [Boolean]
391
- #
392
- # source://spring//lib/spring/watcher/polling.rb#60
393
- def running?; end
394
-
395
- # source://spring//lib/spring/watcher/polling.rb#29
396
- def start; end
397
-
398
- # source://spring//lib/spring/watcher/polling.rb#52
399
- def stop; end
400
-
401
- # source://spring//lib/spring/watcher/polling.rb#64
402
- def subjects_changed; end
403
-
404
- private
405
-
406
- # source://spring//lib/spring/watcher/polling.rb#72
407
- def compute_mtime; end
408
-
409
- # source://spring//lib/spring/watcher/polling.rb#93
410
- def expanded_files; end
411
- end