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,199 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `method_source` gem.
5
+ # Please instead update this file by running `bin/tapioca gem method_source`.
6
+
7
+ module MethodSource
8
+ extend ::MethodSource::CodeHelpers
9
+
10
+ class << self
11
+ # Helper method responsible for opening source file and buffering up
12
+ # the comments for a specified method. Defined here to avoid polluting
13
+ # `Method` class.
14
+ #
15
+ # @param source_location [Array] The array returned by Method#source_location
16
+ # @param method_name [String]
17
+ # @raise [SourceNotFoundError]
18
+ # @return [String] The comments up to the point of the method.
19
+ def comment_helper(source_location, name = T.unsafe(nil)); end
20
+
21
+ # @deprecated — use MethodSource::CodeHelpers#expression_at
22
+ def extract_code(source_location); end
23
+
24
+ # Load a memoized copy of the lines in a file.
25
+ #
26
+ # @param file_name [String]
27
+ # @param method_name [String]
28
+ # @raise [SourceNotFoundError]
29
+ # @return [Array<String>] the contents of the file
30
+ def lines_for(file_name, name = T.unsafe(nil)); end
31
+
32
+ # Helper method responsible for extracting method body.
33
+ # Defined here to avoid polluting `Method` class.
34
+ #
35
+ # @param source_location [Array] The array returned by Method#source_location
36
+ # @param method_name [String]
37
+ # @return [String] The method body
38
+ def source_helper(source_location, name = T.unsafe(nil)); end
39
+
40
+ # @deprecated — use MethodSource::CodeHelpers#complete_expression?
41
+ # @return [Boolean]
42
+ def valid_expression?(str); end
43
+ end
44
+ end
45
+
46
+ module MethodSource::CodeHelpers
47
+ # Retrieve the comment describing the expression on the given line of the given file.
48
+ #
49
+ # This is useful to get module or method documentation.
50
+ #
51
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
52
+ # a String or an Array of lines.
53
+ # @param line_number [Integer] The line number at which to look.
54
+ # NOTE: The first line in a file is line 1!
55
+ # @return [String] The comment
56
+ def comment_describing(file, line_number); end
57
+
58
+ # Determine if a string of code is a complete Ruby expression.
59
+ #
60
+ # @example
61
+ # complete_expression?("class Hello") #=> false
62
+ # complete_expression?("class Hello; end") #=> true
63
+ # complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
64
+ # @param code [String] The code to validate.
65
+ # @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
66
+ # @return [Boolean] Whether or not the code is a complete Ruby expression.
67
+ def complete_expression?(str); end
68
+
69
+ # Retrieve the first expression starting on the given line of the given file.
70
+ #
71
+ # This is useful to get module or method source code.
72
+ #
73
+ # line 1!
74
+ #
75
+ # @option options
76
+ # @option options
77
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
78
+ # @param line_number [Integer] The line number at which to look.
79
+ # NOTE: The first line in a file is
80
+ # @param options [Hash] The optional configuration parameters.
81
+ # @raise [SyntaxError] If the first complete expression can't be identified
82
+ # @return [String] The first complete expression
83
+ def expression_at(file, line_number, options = T.unsafe(nil)); end
84
+
85
+ private
86
+
87
+ # Get the first expression from the input.
88
+ #
89
+ # @param lines [Array<String>]
90
+ # @param consume [Integer] A number of lines to automatically
91
+ # consume (add to the expression buffer) without checking for validity.
92
+ # @raise [SyntaxError]
93
+ # @return [String] a valid ruby expression
94
+ # @yield a clean-up function to run before checking for complete_expression
95
+ def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
96
+
97
+ # Get the last comment from the input.
98
+ #
99
+ # @param lines [Array<String>]
100
+ # @return [String]
101
+ def extract_last_comment(lines); end
102
+ end
103
+
104
+ # An exception matcher that matches only subsets of SyntaxErrors that can be
105
+ # fixed by adding more input to the buffer.
106
+ module MethodSource::CodeHelpers::IncompleteExpression
107
+ class << self
108
+ def ===(ex); end
109
+
110
+ # @return [Boolean]
111
+ def rbx?; end
112
+ end
113
+ end
114
+
115
+ MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
116
+ MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
117
+
118
+ # This module is to be included by `Method` and `UnboundMethod` and
119
+ # provides the `#source` functionality
120
+ module MethodSource::MethodExtensions
121
+ # Return the comments associated with the method as a string.
122
+ #
123
+ # @example
124
+ # Set.instance_method(:clear).comment.display
125
+ # =>
126
+ # # Removes all elements and returns self.
127
+ # @raise SourceNotFoundException
128
+ # @return [String] The method's comments as a string
129
+ def comment; end
130
+
131
+ # Return the sourcecode for the method as a string
132
+ #
133
+ # @example
134
+ # Set.instance_method(:clear).source.display
135
+ # =>
136
+ # def clear
137
+ # @hash.clear
138
+ # self
139
+ # end
140
+ # @raise SourceNotFoundException
141
+ # @return [String] The method sourcecode as a string
142
+ def source; end
143
+
144
+ class << self
145
+ # We use the included hook to patch Method#source on rubinius.
146
+ # We need to use the included hook as Rubinius defines a `source`
147
+ # on Method so including a module will have no effect (as it's
148
+ # higher up the MRO).
149
+ #
150
+ # @param klass [Class] The class that includes the module.
151
+ def included(klass); end
152
+ end
153
+ end
154
+
155
+ module MethodSource::ReeSourceLocation
156
+ # Ruby enterprise edition provides all the information that's
157
+ # needed, in a slightly different way.
158
+ def source_location; end
159
+ end
160
+
161
+ module MethodSource::SourceLocation; end
162
+
163
+ module MethodSource::SourceLocation::MethodExtensions
164
+ # Return the source location of a method for Ruby 1.8.
165
+ #
166
+ # @return [Array] A two element array. First element is the
167
+ # file, second element is the line in the file where the
168
+ # method definition is found.
169
+ def source_location; end
170
+
171
+ private
172
+
173
+ def trace_func(event, file, line, id, binding, classname); end
174
+ end
175
+
176
+ module MethodSource::SourceLocation::ProcExtensions
177
+ # Return the source location for a Proc (in implementations
178
+ # without Proc#source_location)
179
+ #
180
+ # @return [Array] A two element array. First element is the
181
+ # file, second element is the line in the file where the
182
+ # proc definition is found.
183
+ def source_location; end
184
+ end
185
+
186
+ module MethodSource::SourceLocation::UnboundMethodExtensions
187
+ # Return the source location of an instance method for Ruby 1.8.
188
+ #
189
+ # @return [Array] A two element array. First element is the
190
+ # file, second element is the line in the file where the
191
+ # method definition is found.
192
+ def source_location; end
193
+ end
194
+
195
+ # An Exception to mark errors that were raised trying to find the source from
196
+ # a given source_location.
197
+ class MethodSource::SourceNotFoundError < ::StandardError; end
198
+
199
+ MethodSource::VERSION = T.let(T.unsafe(nil), String)