danger-packwerk 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danger-packwerk/version.rb +1 -1
- metadata +2 -88
- data/sorbet/config +0 -4
- data/sorbet/rbi/gems/actionview@7.0.4.rbi +0 -11543
- data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -12959
- data/sorbet/rbi/gems/addressable@2.8.1.rbi +0 -1505
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -522
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +0 -286
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +0 -791
- data/sorbet/rbi/gems/claide@1.1.0.rbi +0 -1132
- data/sorbet/rbi/gems/code_ownership@1.29.2.rbi +0 -525
- data/sorbet/rbi/gems/code_teams@1.0.0.rbi +0 -120
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -2256
- data/sorbet/rbi/gems/colored2@3.1.2.rbi +0 -130
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -8695
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +0 -30
- data/sorbet/rbi/gems/cork@0.3.0.rbi +0 -248
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -436
- data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/danger@9.0.0.rbi +0 -4722
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -862
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +0 -102
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -266
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -209
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -212
- data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +0 -805
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -221
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -266
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -216
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -206
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -212
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -225
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -222
- data/sorbet/rbi/gems/faraday@1.10.2.rbi +0 -1862
- data/sorbet/rbi/gems/git@1.12.0.rbi +0 -1936
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -1643
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -8
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -2168
- data/sorbet/rbi/gems/loofah@2.19.0.rbi +0 -646
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -199
- data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -997
- data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +0 -165
- data/sorbet/rbi/gems/nap@1.1.0.rbi +0 -351
- data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +0 -8
- data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -4916
- data/sorbet/rbi/gems/octokit@5.6.1.rbi +0 -8939
- data/sorbet/rbi/gems/open4@1.3.4.rbi +0 -8
- data/sorbet/rbi/gems/packs@0.0.5.rbi +0 -111
- data/sorbet/rbi/gems/packwerk@2.2.1-e998ef65194de398f0baaf03a0ba33390b30351e.rbi +0 -2161
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -163
- data/sorbet/rbi/gems/parse_packwerk@0.18.0.rbi +0 -225
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -5988
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -6969
- data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +0 -779
- data/sorbet/rbi/gems/racc@1.6.0.rbi +0 -92
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -493
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -227
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -1865
- data/sorbet/rbi/gems/rbi@0.0.14.rbi +0 -2337
- data/sorbet/rbi/gems/rchardet@1.8.0.rbi +0 -587
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -1851
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -3852
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -7725
- 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/rubocop-ast@1.21.0.rbi +0 -4193
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +0 -677
- data/sorbet/rbi/gems/rubocop@1.36.0.rbi +0 -37914
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -732
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -8
- data/sorbet/rbi/gems/sawyer@0.9.2.rbi +0 -513
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +0 -326
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -1600
- data/sorbet/rbi/gems/tapioca@0.8.0.rbi +0 -1959
- data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +0 -438
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -2921
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -4879
- data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -27
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -2789
- 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.27.rbi +0 -12668
- data/sorbet/rbi/todo.rbi +0 -125
- data/sorbet/tapioca/require.rb +0 -4
@@ -1,199 +0,0 @@
|
|
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)
|