danger-packwerk 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/danger-packwerk/packwerk_wrapper.rb +2 -2
  3. data/lib/danger-packwerk/version.rb +1 -1
  4. data/sorbet/config +1 -0
  5. data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
  6. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
  7. data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
  8. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  9. data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
  10. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  11. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
  12. data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
  13. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
  14. data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
  15. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
  16. data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
  17. data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
  18. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
  19. data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
  21. data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
  22. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
  23. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
  24. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
  25. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
  26. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
  27. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
  28. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
  29. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
  30. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
  31. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
  32. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
  33. data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
  34. data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
  35. data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1418 -0
  37. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  38. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
  39. data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
  40. data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
  41. data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
  42. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
  43. data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
  44. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
  45. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
  46. data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
  47. data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
  48. data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
  51. data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
  52. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
  53. data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
  54. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  55. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
  56. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  57. data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
  58. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  59. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
  60. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
  61. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  62. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
  63. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
  64. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
  65. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
  66. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
  68. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
  69. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
  70. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  71. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  72. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
  73. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
  74. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  75. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
  76. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
  77. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  78. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
  79. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
  80. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  81. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
  82. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
  83. data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
  84. data/sorbet/rbi/todo.rbi +122 -0
  85. metadata +84 -7
  86. data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
@@ -0,0 +1,326 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `smart_properties` gem.
5
+ # Please instead update this file by running `bin/tapioca gem smart_properties`.
6
+
7
+ # {SmartProperties} can be used to easily build more full-fledged accessors
8
+ # for standard Ruby classes. In contrast to regular accessors,
9
+ # {SmartProperties} support validation and conversion of input data, as well
10
+ # as, the specification of default values. Additionally, individual
11
+ # {SmartProperties} can be marked as required. This causes the runtime to
12
+ # throw an +ArgumentError+ whenever a required property has not been
13
+ # specified.
14
+ #
15
+ # In order to use {SmartProperties}, simply include the {SmartProperties}
16
+ # module and use the {ClassMethods#property} method to define properties.
17
+ #
18
+ # @example Definition of a property that makes use of all {SmartProperties} features.
19
+ #
20
+ # property :language_code, :accepts => [:de, :en],
21
+ # :converts => :to_sym,
22
+ # :default => :de,
23
+ # :required => true
24
+ # @see ClassMethods#property More information on how to configure properties
25
+ module SmartProperties
26
+ mixes_in_class_methods ::SmartProperties::ClassMethods
27
+
28
+ # Implements a key-value enabled constructor that acts as default
29
+ # constructor for all {SmartProperties}-enabled classes. Positional arguments
30
+ # or keyword arguments that do not correspond to a property are forwarded to
31
+ # the super class constructor.
32
+ #
33
+ # @param attrs [Hash] the set of attributes that is used for initialization
34
+ # @raise [SmartProperties::ConstructorArgumentForwardingError] when unknown arguments were supplied that could not be processed by the super class initializer either.
35
+ # @raise [SmartProperties::InitializationError] when incorrect values were supplied or required values weren't been supplied.
36
+ def initialize(*args, &block); end
37
+
38
+ def [](name); end
39
+ def []=(name, value); end
40
+
41
+ class << self
42
+ private
43
+
44
+ # Extends the class, which this module is included in, with a property
45
+ # method to define properties.
46
+ #
47
+ # @param base [Class] the class this module is included in
48
+ def included(base); end
49
+ end
50
+ end
51
+
52
+ class SmartProperties::AssignmentError < ::SmartProperties::Error
53
+ # @return [AssignmentError] a new instance of AssignmentError
54
+ def initialize(sender, property, message); end
55
+
56
+ # Returns the value of attribute property.
57
+ def property; end
58
+
59
+ # Sets the attribute property
60
+ #
61
+ # @param value the value to set the attribute property to.
62
+ def property=(_arg0); end
63
+
64
+ # Returns the value of attribute sender.
65
+ def sender; end
66
+
67
+ # Sets the attribute sender
68
+ #
69
+ # @param value the value to set the attribute sender to.
70
+ def sender=(_arg0); end
71
+ end
72
+
73
+ module SmartProperties::ClassMethods
74
+ # Returns a class's smart properties. This includes the properties that
75
+ # have been defined in the parent classes.
76
+ #
77
+ # @return [Hash<String, Property>] A map of property names to property instances.
78
+ def properties; end
79
+
80
+ protected
81
+
82
+ # Defines a new property from a name and a set of options. This results
83
+ # results in creating an accessor that has additional features:
84
+ #
85
+ # 1. Validation of input data by specifiying the +:accepts+ option:
86
+ # If you use a class as value for this option, the setter will check
87
+ # if the value it is about to assign is of this type. If you use an
88
+ # array, the setter will check if the value it is about to assign is
89
+ # included in this array. Finally, if you specify a block, it will
90
+ # invoke the block with the value it is about to assign and check if
91
+ # the block returns a thruthy value, meaning anything but +false+ and
92
+ # +nil+.
93
+ #
94
+ # 2. Conversion of input data by specifiying the +:converts+ option:
95
+ # If you use provide a symbol as value for this option, the setter will
96
+ # invoke this method on the object it is about to assign and take the
97
+ # result of this call instead. If you provide a block, it will invoke
98
+ # the block with the value it is about to assign and take the result
99
+ # of the block instead.
100
+ #
101
+ # 3. Providing a default value by specifiying the +:default+ option.
102
+ #
103
+ # 4. Forcing a property to be present by setting the +:required+ option
104
+ # to true.
105
+ #
106
+ # @example Definition of a property that makes use of all {SmartProperties} features.
107
+ #
108
+ # property :language_code, :accepts => [:de, :en],
109
+ # :converts => :to_sym,
110
+ # :default => :de,
111
+ # :required => true
112
+ # @option options
113
+ # @option options
114
+ # @option options
115
+ # @option options
116
+ # @param name [Symbol] the name of the property
117
+ # @param options [Hash] the list of options used to configure the property
118
+ # @return [Property] The defined property.
119
+ def property(name, **options); end
120
+
121
+ def property!(name, **options); end
122
+ end
123
+
124
+ class SmartProperties::ConfigurationError < ::SmartProperties::Error; end
125
+
126
+ class SmartProperties::ConstructorArgumentForwardingError < ::SmartProperties::Error
127
+ # @return [ConstructorArgumentForwardingError] a new instance of ConstructorArgumentForwardingError
128
+ def initialize(positional_arguments, keyword_arguments); end
129
+
130
+ private
131
+
132
+ def generate_description(argument_type, argument_number); end
133
+ end
134
+
135
+ class SmartProperties::Error < ::ArgumentError; end
136
+
137
+ class SmartProperties::InitializationError < ::SmartProperties::Error
138
+ # @return [InitializationError] a new instance of InitializationError
139
+ def initialize(sender, properties); end
140
+
141
+ # Returns the value of attribute properties.
142
+ def properties; end
143
+
144
+ # Sets the attribute properties
145
+ #
146
+ # @param value the value to set the attribute properties to.
147
+ def properties=(_arg0); end
148
+
149
+ # Returns the value of attribute sender.
150
+ def sender; end
151
+
152
+ # Sets the attribute sender
153
+ #
154
+ # @param value the value to set the attribute sender to.
155
+ def sender=(_arg0); end
156
+
157
+ def to_hash; end
158
+ end
159
+
160
+ class SmartProperties::InvalidValueError < ::SmartProperties::AssignmentError
161
+ # @return [InvalidValueError] a new instance of InvalidValueError
162
+ def initialize(sender, property, value); end
163
+
164
+ def to_hash; end
165
+
166
+ # Returns the value of attribute value.
167
+ def value; end
168
+
169
+ # Sets the attribute value
170
+ #
171
+ # @param value the value to set the attribute value to.
172
+ def value=(_arg0); end
173
+
174
+ private
175
+
176
+ def accepter_message(sender, property); end
177
+ end
178
+
179
+ class SmartProperties::MissingValueError < ::SmartProperties::AssignmentError
180
+ # @return [MissingValueError] a new instance of MissingValueError
181
+ def initialize(sender, property); end
182
+
183
+ def to_hash; end
184
+ end
185
+
186
+ module SmartProperties::ModuleMethods
187
+ def included(target); end
188
+ end
189
+
190
+ class SmartProperties::Property
191
+ # @return [Property] a new instance of Property
192
+ def initialize(name, **attrs); end
193
+
194
+ # Returns the value of attribute accepter.
195
+ def accepter; end
196
+
197
+ # @return [Boolean]
198
+ def accepts?(value, scope); end
199
+
200
+ def convert(scope, value); end
201
+
202
+ # Returns the value of attribute converter.
203
+ def converter; end
204
+
205
+ def default(scope); end
206
+ def define(klass); end
207
+ def get(scope); end
208
+
209
+ # Returns the value of attribute instance_variable_name.
210
+ def instance_variable_name; end
211
+
212
+ # @return [Boolean]
213
+ def missing?(scope); end
214
+
215
+ # Returns the value of attribute name.
216
+ def name; end
217
+
218
+ # @return [Boolean]
219
+ def optional?(scope); end
220
+
221
+ # @raise [MissingValueError]
222
+ def prepare(scope, value); end
223
+
224
+ # @return [Boolean]
225
+ def present?(scope); end
226
+
227
+ # Returns the value of attribute reader.
228
+ def reader; end
229
+
230
+ # @return [Boolean]
231
+ def required?(scope); end
232
+
233
+ def set(scope, value); end
234
+ def set_default(scope); end
235
+ def to_h; end
236
+
237
+ # Returns the value of attribute writable.
238
+ def writable; end
239
+
240
+ # @return [Boolean]
241
+ def writable?; end
242
+
243
+ private
244
+
245
+ # @return [Boolean]
246
+ def null_object?(object); end
247
+
248
+ class << self
249
+ def define(scope, name, **options); end
250
+ end
251
+ end
252
+
253
+ SmartProperties::Property::ALLOWED_DEFAULT_CLASSES = T.let(T.unsafe(nil), Array)
254
+ SmartProperties::Property::MODULE_REFERENCE = T.let(T.unsafe(nil), Symbol)
255
+
256
+ class SmartProperties::PropertyCollection
257
+ include ::Enumerable
258
+
259
+ # @return [PropertyCollection] a new instance of PropertyCollection
260
+ def initialize; end
261
+
262
+ def [](name); end
263
+ def []=(name, value); end
264
+ def each(&block); end
265
+
266
+ # @return [Boolean]
267
+ def key?(name); end
268
+
269
+ def keys; end
270
+
271
+ # Returns the value of attribute parent.
272
+ def parent; end
273
+
274
+ def register(child); end
275
+ def to_hash; end
276
+ def values; end
277
+
278
+ protected
279
+
280
+ # Returns the value of attribute children.
281
+ def children; end
282
+
283
+ # Sets the attribute children
284
+ #
285
+ # @param value the value to set the attribute children to.
286
+ def children=(_arg0); end
287
+
288
+ # Returns the value of attribute collection.
289
+ def collection; end
290
+
291
+ # Sets the attribute collection
292
+ #
293
+ # @param value the value to set the attribute collection to.
294
+ def collection=(_arg0); end
295
+
296
+ # Returns the value of attribute collection_with_parent_collection.
297
+ def collection_with_parent_collection; end
298
+
299
+ # Sets the attribute collection_with_parent_collection
300
+ #
301
+ # @param value the value to set the attribute collection_with_parent_collection to.
302
+ def collection_with_parent_collection=(_arg0); end
303
+
304
+ def notify_children; end
305
+ def refresh(parent_collection); end
306
+
307
+ class << self
308
+ def for(scope); end
309
+ end
310
+ end
311
+
312
+ SmartProperties::VERSION = T.let(T.unsafe(nil), String)
313
+ module SmartProperties::Validations; end
314
+
315
+ class SmartProperties::Validations::Ancestor
316
+ include ::SmartProperties
317
+ extend ::SmartProperties::ClassMethods
318
+
319
+ def to_proc; end
320
+ def to_s; end
321
+ def validate(klass); end
322
+
323
+ class << self
324
+ def must_be(*_arg0); end
325
+ end
326
+ end