yard-sorbet 0.0.0 → 0.0.1
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.
- checksums.yaml +4 -4
- data/.editorconfig +9 -0
- data/.gitignore +40 -0
- data/.rspec +1 -0
- data/.rubocop.yml +47 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +14 -0
- data/LICENSE +201 -0
- data/README.md +17 -0
- data/Rakefile +11 -0
- data/lib/yard-sorbet.rb +12 -0
- data/lib/yard-sorbet/directives.rb +24 -0
- data/lib/yard-sorbet/sig_handler.rb +131 -0
- data/lib/yard-sorbet/sig_to_yard.rb +91 -0
- data/lib/yard-sorbet/struct_handler.rb +94 -0
- data/lib/yard-sorbet/version.rb +6 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/ast.rbi +47 -0
- data/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/sorbet/rbi/gems/codecov.rbi +19 -0
- data/sorbet/rbi/gems/coderay.rbi +91 -0
- data/sorbet/rbi/gems/docile.rbi +31 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
- data/sorbet/rbi/gems/method_source.rbi +63 -0
- data/sorbet/rbi/gems/parallel.rbi +81 -0
- data/sorbet/rbi/gems/parser.rbi +920 -0
- data/sorbet/rbi/gems/pry-byebug.rbi +149 -0
- data/sorbet/rbi/gems/pry.rbi +1964 -0
- data/sorbet/rbi/gems/rainbow.rbi +117 -0
- data/sorbet/rbi/gems/rake.rbi +635 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1686 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +387 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +819 -0
- data/sorbet/rbi/gems/rspec-support.rbi +270 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/gems/rubocop-rspec.rbi +889 -0
- data/sorbet/rbi/gems/rubocop.rbi +7139 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
- data/sorbet/rbi/gems/simplecov.rbi +225 -0
- data/sorbet/rbi/gems/site_ruby.rbi +114 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
- data/sorbet/rbi/gems/yard.rbi +1181 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +3045 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +4469 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/data/sig_handler.rb.txt +196 -0
- data/spec/data/struct_handler.rb.txt +25 -0
- data/spec/spec_helper.rb +111 -0
- data/spec/yard_sorbet/sig_handler_spec.rb +233 -0
- data/spec/yard_sorbet/struct_handler_spec.rb +48 -0
- data/yard-sorbet.gemspec +27 -0
- metadata +159 -6
@@ -0,0 +1,270 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-support/all/rspec-support.rbi
|
9
|
+
#
|
10
|
+
# rspec-support-3.9.2
|
11
|
+
module RSpec
|
12
|
+
extend RSpec::Support::Warnings
|
13
|
+
end
|
14
|
+
module RSpec::Support
|
15
|
+
def self.class_of(object); end
|
16
|
+
def self.define_optimized_require_for_rspec(lib, &require_relative); end
|
17
|
+
def self.deregister_matcher_definition(&block); end
|
18
|
+
def self.failure_notifier; end
|
19
|
+
def self.failure_notifier=(callable); end
|
20
|
+
def self.is_a_matcher?(object); end
|
21
|
+
def self.matcher_definitions; end
|
22
|
+
def self.method_handle_for(object, method_name); end
|
23
|
+
def self.notify_failure(failure, options = nil); end
|
24
|
+
def self.register_matcher_definition(&block); end
|
25
|
+
def self.require_rspec_support(f); end
|
26
|
+
def self.rspec_description_for_object(object); end
|
27
|
+
def self.thread_local_data; end
|
28
|
+
def self.warning_notifier; end
|
29
|
+
def self.warning_notifier=(arg0); end
|
30
|
+
def self.with_failure_notifier(callable); end
|
31
|
+
end
|
32
|
+
module RSpec::Support::Version
|
33
|
+
end
|
34
|
+
class RSpec::Support::ComparableVersion
|
35
|
+
def <=>(other); end
|
36
|
+
def initialize(string); end
|
37
|
+
def segments; end
|
38
|
+
def string; end
|
39
|
+
include Comparable
|
40
|
+
end
|
41
|
+
module RSpec::Support::OS
|
42
|
+
def self.windows?; end
|
43
|
+
def self.windows_file_path?; end
|
44
|
+
def windows?; end
|
45
|
+
def windows_file_path?; end
|
46
|
+
end
|
47
|
+
module RSpec::Support::Ruby
|
48
|
+
def jruby?; end
|
49
|
+
def jruby_9000?; end
|
50
|
+
def jruby_version; end
|
51
|
+
def mri?; end
|
52
|
+
def non_mri?; end
|
53
|
+
def rbx?; end
|
54
|
+
def self.jruby?; end
|
55
|
+
def self.jruby_9000?; end
|
56
|
+
def self.jruby_version; end
|
57
|
+
def self.mri?; end
|
58
|
+
def self.non_mri?; end
|
59
|
+
def self.rbx?; end
|
60
|
+
end
|
61
|
+
module RSpec::Support::RubyFeatures
|
62
|
+
def caller_locations_supported?; end
|
63
|
+
def fork_supported?; end
|
64
|
+
def kw_args_supported?; end
|
65
|
+
def module_prepends_supported?; end
|
66
|
+
def module_refinement_supported?; end
|
67
|
+
def optional_and_splat_args_supported?; end
|
68
|
+
def required_kw_args_supported?; end
|
69
|
+
def ripper_supported?; end
|
70
|
+
def self.caller_locations_supported?; end
|
71
|
+
def self.fork_supported?; end
|
72
|
+
def self.kw_args_supported?; end
|
73
|
+
def self.module_prepends_supported?; end
|
74
|
+
def self.module_refinement_supported?; end
|
75
|
+
def self.optional_and_splat_args_supported?; end
|
76
|
+
def self.required_kw_args_supported?; end
|
77
|
+
def self.ripper_supported?; end
|
78
|
+
def self.supports_exception_cause?; end
|
79
|
+
def self.supports_rebinding_module_methods?; end
|
80
|
+
def self.supports_taint?; end
|
81
|
+
def supports_exception_cause?; end
|
82
|
+
def supports_rebinding_module_methods?; end
|
83
|
+
def supports_taint?; end
|
84
|
+
end
|
85
|
+
module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
86
|
+
def self.===(exception); end
|
87
|
+
end
|
88
|
+
class RSpec::CallerFilter
|
89
|
+
def self.first_non_rspec_line(skip_frames = nil, increment = nil); end
|
90
|
+
end
|
91
|
+
module RSpec::Support::Warnings
|
92
|
+
def deprecate(deprecated, options = nil); end
|
93
|
+
def warn_deprecation(message, options = nil); end
|
94
|
+
def warn_with(message, options = nil); end
|
95
|
+
def warning(text, options = nil); end
|
96
|
+
end
|
97
|
+
class RSpec::Support::EncodedString
|
98
|
+
def <<(string); end
|
99
|
+
def ==(*args, &block); end
|
100
|
+
def detect_source_encoding(string); end
|
101
|
+
def empty?(*args, &block); end
|
102
|
+
def encoding(*args, &block); end
|
103
|
+
def eql?(*args, &block); end
|
104
|
+
def initialize(string, encoding = nil); end
|
105
|
+
def lines(*args, &block); end
|
106
|
+
def matching_encoding(string); end
|
107
|
+
def remove_invalid_bytes(string); end
|
108
|
+
def self.pick_encoding(source_a, source_b); end
|
109
|
+
def source_encoding; end
|
110
|
+
def split(regex_or_string); end
|
111
|
+
def to_s; end
|
112
|
+
def to_str; end
|
113
|
+
end
|
114
|
+
class RSpec::Support::ReentrantMutex
|
115
|
+
def enter; end
|
116
|
+
def exit; end
|
117
|
+
def initialize; end
|
118
|
+
def synchronize; end
|
119
|
+
end
|
120
|
+
class RSpec::Support::DirectoryMaker
|
121
|
+
def self.directory_exists?(dirname); end
|
122
|
+
def self.generate_path(stack, part); end
|
123
|
+
def self.generate_stack(path); end
|
124
|
+
def self.mkdir_p(path); end
|
125
|
+
end
|
126
|
+
module RSpec::Support::RecursiveConstMethods
|
127
|
+
def const_defined_on?(mod, const_name); end
|
128
|
+
def constants_defined_on(mod); end
|
129
|
+
def get_const_defined_on(mod, const_name); end
|
130
|
+
def normalize_const_name(const_name); end
|
131
|
+
def recursive_const_defined?(const_name); end
|
132
|
+
def recursive_const_get(const_name); end
|
133
|
+
end
|
134
|
+
class RSpec::Support::ObjectFormatter
|
135
|
+
def format(object); end
|
136
|
+
def initialize(max_formatted_output_length = nil); end
|
137
|
+
def max_formatted_output_length; end
|
138
|
+
def max_formatted_output_length=(arg0); end
|
139
|
+
def prepare_array(array); end
|
140
|
+
def prepare_element(element); end
|
141
|
+
def prepare_for_inspection(object); end
|
142
|
+
def prepare_hash(input_hash); end
|
143
|
+
def recursive_structure?(object); end
|
144
|
+
def self.default_instance; end
|
145
|
+
def self.format(object); end
|
146
|
+
def self.prepare_for_inspection(object); end
|
147
|
+
def sort_hash_keys(input_hash); end
|
148
|
+
def truncate_string(str, start_index, end_index); end
|
149
|
+
def with_entering_structure(structure); end
|
150
|
+
end
|
151
|
+
class RSpec::Support::ObjectFormatter::InspectableItem < Struct
|
152
|
+
def inspect; end
|
153
|
+
def pretty_print(pp); end
|
154
|
+
def self.[](*arg0); end
|
155
|
+
def self.inspect; end
|
156
|
+
def self.members; end
|
157
|
+
def self.new(*arg0); end
|
158
|
+
def text; end
|
159
|
+
def text=(_); end
|
160
|
+
end
|
161
|
+
class RSpec::Support::ObjectFormatter::BaseInspector < Struct
|
162
|
+
def formatter; end
|
163
|
+
def formatter=(_); end
|
164
|
+
def inspect; end
|
165
|
+
def object; end
|
166
|
+
def object=(_); end
|
167
|
+
def pretty_print(pp); end
|
168
|
+
def self.[](*arg0); end
|
169
|
+
def self.can_inspect?(_object); end
|
170
|
+
def self.inspect; end
|
171
|
+
def self.members; end
|
172
|
+
def self.new(*arg0); end
|
173
|
+
end
|
174
|
+
class RSpec::Support::ObjectFormatter::TimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
175
|
+
def inspect; end
|
176
|
+
def self.can_inspect?(object); end
|
177
|
+
end
|
178
|
+
class RSpec::Support::ObjectFormatter::DateTimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
179
|
+
def inspect; end
|
180
|
+
def self.can_inspect?(object); end
|
181
|
+
end
|
182
|
+
class RSpec::Support::ObjectFormatter::BigDecimalInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
183
|
+
def inspect; end
|
184
|
+
def self.can_inspect?(object); end
|
185
|
+
end
|
186
|
+
class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
187
|
+
def inspect; end
|
188
|
+
def self.can_inspect?(object); end
|
189
|
+
end
|
190
|
+
class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
191
|
+
def inspect; end
|
192
|
+
def klass; end
|
193
|
+
def native_object_id; end
|
194
|
+
def self.can_inspect?(object); end
|
195
|
+
end
|
196
|
+
class RSpec::Support::ObjectFormatter::DelegatorInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
197
|
+
def inspect; end
|
198
|
+
def self.can_inspect?(object); end
|
199
|
+
end
|
200
|
+
class RSpec::Support::ObjectFormatter::InspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
201
|
+
def inspect; end
|
202
|
+
def self.can_inspect?(object); end
|
203
|
+
end
|
204
|
+
module RSpec::Support::FuzzyMatcher
|
205
|
+
def self.arrays_match?(expected_list, actual_list); end
|
206
|
+
def self.hashes_match?(expected_hash, actual_hash); end
|
207
|
+
def self.values_match?(expected, actual); end
|
208
|
+
end
|
209
|
+
class RSpec::Support::MethodSignature
|
210
|
+
def arbitrary_kw_args?; end
|
211
|
+
def classify_arity(arity = nil); end
|
212
|
+
def classify_parameters; end
|
213
|
+
def could_contain_kw_args?(args); end
|
214
|
+
def description; end
|
215
|
+
def has_kw_args_in?(args); end
|
216
|
+
def initialize(method); end
|
217
|
+
def invalid_kw_args_from(given_kw_args); end
|
218
|
+
def max_non_kw_args; end
|
219
|
+
def min_non_kw_args; end
|
220
|
+
def missing_kw_args_from(given_kw_args); end
|
221
|
+
def non_kw_args_arity_description; end
|
222
|
+
def optional_kw_args; end
|
223
|
+
def required_kw_args; end
|
224
|
+
def unlimited_args?; end
|
225
|
+
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = nil); end
|
226
|
+
end
|
227
|
+
class RSpec::Support::MethodSignatureExpectation
|
228
|
+
def empty?; end
|
229
|
+
def expect_arbitrary_keywords; end
|
230
|
+
def expect_arbitrary_keywords=(arg0); end
|
231
|
+
def expect_unlimited_arguments; end
|
232
|
+
def expect_unlimited_arguments=(arg0); end
|
233
|
+
def initialize; end
|
234
|
+
def keywords; end
|
235
|
+
def keywords=(values); end
|
236
|
+
def max_count; end
|
237
|
+
def max_count=(number); end
|
238
|
+
def min_count; end
|
239
|
+
def min_count=(number); end
|
240
|
+
end
|
241
|
+
class RSpec::Support::BlockSignature < RSpec::Support::MethodSignature
|
242
|
+
def classify_parameters; end
|
243
|
+
end
|
244
|
+
class RSpec::Support::MethodSignatureVerifier
|
245
|
+
def arbitrary_kw_args?; end
|
246
|
+
def error_message; end
|
247
|
+
def initialize(signature, args = nil); end
|
248
|
+
def invalid_kw_args; end
|
249
|
+
def kw_args; end
|
250
|
+
def max_non_kw_args; end
|
251
|
+
def min_non_kw_args; end
|
252
|
+
def missing_kw_args; end
|
253
|
+
def non_kw_args; end
|
254
|
+
def split_args(*args); end
|
255
|
+
def unlimited_args?; end
|
256
|
+
def valid?; end
|
257
|
+
def valid_non_kw_args?; end
|
258
|
+
def with_expectation(expectation); end
|
259
|
+
end
|
260
|
+
class RSpec::Support::LooseSignatureVerifier < RSpec::Support::MethodSignatureVerifier
|
261
|
+
def split_args(*args); end
|
262
|
+
end
|
263
|
+
class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
|
264
|
+
def has_kw_args_in?(args); end
|
265
|
+
def initialize(signature); end
|
266
|
+
def invalid_kw_args_from(_kw_args); end
|
267
|
+
def missing_kw_args_from(_kw_args); end
|
268
|
+
def non_kw_args_arity_description; end
|
269
|
+
def valid_non_kw_args?(*args); end
|
270
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec/all/rspec.rbi
|
9
|
+
#
|
10
|
+
# rspec-3.9.0
|
11
|
+
module RSpec
|
12
|
+
end
|
13
|
+
module RSpec::Version
|
14
|
+
end
|
@@ -0,0 +1,889 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop-rspec/all/rubocop-rspec.rbi
|
9
|
+
#
|
10
|
+
# rubocop-rspec-1.37.1
|
11
|
+
module RuboCop
|
12
|
+
end
|
13
|
+
module RuboCop::RSpec
|
14
|
+
end
|
15
|
+
module RuboCop::RSpec::Version
|
16
|
+
end
|
17
|
+
module RuboCop::RSpec::Inject
|
18
|
+
def self.defaults!; end
|
19
|
+
end
|
20
|
+
module RuboCop::RSpec::Node
|
21
|
+
def recursive_literal_or_const?; end
|
22
|
+
end
|
23
|
+
module RuboCop::RSpec::TopLevelDescribe
|
24
|
+
def describe_statement_children(node); end
|
25
|
+
def on_send(node); end
|
26
|
+
def root_node; end
|
27
|
+
def single_top_level_describe?; end
|
28
|
+
def top_level_describe?(node); end
|
29
|
+
def top_level_nodes; end
|
30
|
+
extend RuboCop::NodePattern::Macros
|
31
|
+
end
|
32
|
+
class RuboCop::RSpec::Wording
|
33
|
+
def append_suffix(word, suffix); end
|
34
|
+
def ignored_word?(word); end
|
35
|
+
def ignores; end
|
36
|
+
def initialize(text, ignore:, replace:); end
|
37
|
+
def remove_should_and_pluralize; end
|
38
|
+
def replace_prefix(pattern, replacement); end
|
39
|
+
def replacements; end
|
40
|
+
def rewrite; end
|
41
|
+
def substitute(word); end
|
42
|
+
def text; end
|
43
|
+
def uppercase?(word); end
|
44
|
+
end
|
45
|
+
module RuboCop::RSpec::Util
|
46
|
+
def one(array); end
|
47
|
+
end
|
48
|
+
class RuboCop::RSpec::Util::SizeError < IndexError
|
49
|
+
end
|
50
|
+
module RuboCop::RSpec::Language
|
51
|
+
end
|
52
|
+
class RuboCop::RSpec::Language::SelectorSet
|
53
|
+
def +(other); end
|
54
|
+
def ==(other); end
|
55
|
+
def block_pattern; end
|
56
|
+
def include?(selector); end
|
57
|
+
def initialize(selectors); end
|
58
|
+
def node_pattern; end
|
59
|
+
def node_pattern_union; end
|
60
|
+
def selectors; end
|
61
|
+
def send_pattern; end
|
62
|
+
end
|
63
|
+
module RuboCop::RSpec::Language::ExampleGroups
|
64
|
+
end
|
65
|
+
module RuboCop::RSpec::Language::SharedGroups
|
66
|
+
end
|
67
|
+
module RuboCop::RSpec::Language::Includes
|
68
|
+
end
|
69
|
+
module RuboCop::RSpec::Language::Examples
|
70
|
+
end
|
71
|
+
module RuboCop::RSpec::Language::Hooks
|
72
|
+
end
|
73
|
+
module RuboCop::RSpec::Language::Helpers
|
74
|
+
end
|
75
|
+
module RuboCop::RSpec::Language::Subject
|
76
|
+
end
|
77
|
+
module RuboCop::RSpec::Language::Expectations
|
78
|
+
end
|
79
|
+
module RuboCop::RSpec::Language::Runners
|
80
|
+
end
|
81
|
+
module RuboCop::RSpec::Language::NodePattern
|
82
|
+
def example?(node = nil); end
|
83
|
+
def example_group?(node = nil); end
|
84
|
+
def example_group_with_body?(node = nil); end
|
85
|
+
def hook?(node = nil); end
|
86
|
+
def let?(node = nil); end
|
87
|
+
def subject?(node = nil); end
|
88
|
+
extend RuboCop::NodePattern::Macros
|
89
|
+
end
|
90
|
+
class RuboCop::RSpec::Concept
|
91
|
+
def ==(other); end
|
92
|
+
def eql?(other); end
|
93
|
+
def hash; end
|
94
|
+
def initialize(node); end
|
95
|
+
def node; end
|
96
|
+
def to_node; end
|
97
|
+
extend RuboCop::NodePattern::Macros
|
98
|
+
include RuboCop::RSpec::Language
|
99
|
+
include RuboCop::RSpec::Language::NodePattern
|
100
|
+
end
|
101
|
+
class RuboCop::RSpec::ExampleGroup < RuboCop::RSpec::Concept
|
102
|
+
def examples; end
|
103
|
+
def examples_in_scope(node, &blk); end
|
104
|
+
def find_examples(node); end
|
105
|
+
def find_hooks(node); end
|
106
|
+
def find_subjects(node); end
|
107
|
+
def hooks; end
|
108
|
+
def hooks_in_scope(node); end
|
109
|
+
def scope_change?(node = nil); end
|
110
|
+
def subjects; end
|
111
|
+
def subjects_in_scope(node); end
|
112
|
+
end
|
113
|
+
class RuboCop::RSpec::Example < RuboCop::RSpec::Concept
|
114
|
+
def definition; end
|
115
|
+
def doc_string; end
|
116
|
+
def extract_doc_string(node = nil); end
|
117
|
+
def extract_implementation(node = nil); end
|
118
|
+
def extract_metadata(node = nil); end
|
119
|
+
def implementation; end
|
120
|
+
def metadata; end
|
121
|
+
end
|
122
|
+
class RuboCop::RSpec::Hook < RuboCop::RSpec::Concept
|
123
|
+
def example?; end
|
124
|
+
def knowable_scope?; end
|
125
|
+
def name; end
|
126
|
+
def scope; end
|
127
|
+
def scope_argument; end
|
128
|
+
def scope_name; end
|
129
|
+
def valid_scope?; end
|
130
|
+
end
|
131
|
+
module RuboCop::Cop
|
132
|
+
end
|
133
|
+
class RuboCop::Cop::WorkaroundCop
|
134
|
+
def add_offense(node, location: nil, message: nil, severity: nil); end
|
135
|
+
def annotate(message); end
|
136
|
+
def config; end
|
137
|
+
def config_to_allow_offenses; end
|
138
|
+
def config_to_allow_offenses=(hash); end
|
139
|
+
def cop_config; end
|
140
|
+
def cop_name; end
|
141
|
+
def correct(node); end
|
142
|
+
def corrections; end
|
143
|
+
def custom_severity; end
|
144
|
+
def default_severity; end
|
145
|
+
def disable_uncorrectable(node); end
|
146
|
+
def duplicate_location?(location); end
|
147
|
+
def enabled_line?(line_number); end
|
148
|
+
def excluded_file?(file); end
|
149
|
+
def external_dependency_checksum; end
|
150
|
+
def file_name_matches_any?(file, parameter, default_result); end
|
151
|
+
def find_location(node, loc); end
|
152
|
+
def find_message(node, message); end
|
153
|
+
def find_severity(_node, severity); end
|
154
|
+
def initialize(config = nil, options = nil); end
|
155
|
+
def join_force?(_force_class); end
|
156
|
+
def message(_node = nil); end
|
157
|
+
def name; end
|
158
|
+
def offenses; end
|
159
|
+
def parse(source, path = nil); end
|
160
|
+
def processed_source; end
|
161
|
+
def processed_source=(arg0); end
|
162
|
+
def reason_to_not_correct(node); end
|
163
|
+
def relevant_file?(file); end
|
164
|
+
def self.<(other); end
|
165
|
+
def target_rails_version; end
|
166
|
+
def target_ruby_version; end
|
167
|
+
end
|
168
|
+
module RuboCop::Cop::RSpec
|
169
|
+
end
|
170
|
+
class RuboCop::Cop::RSpec::Cop < RuboCop::Cop::WorkaroundCop
|
171
|
+
def all_cops_config; end
|
172
|
+
def relevant_file?(file); end
|
173
|
+
def relevant_rubocop_rspec_file?(file); end
|
174
|
+
def rspec_pattern; end
|
175
|
+
def rspec_pattern_config; end
|
176
|
+
def rspec_pattern_config?; end
|
177
|
+
def self.inherited(subclass); end
|
178
|
+
include RuboCop::RSpec::Language
|
179
|
+
include RuboCop::RSpec::Language::NodePattern
|
180
|
+
end
|
181
|
+
class RuboCop::RSpec::AlignLetBrace
|
182
|
+
def adjacent_let_chunks; end
|
183
|
+
def indent_for(node); end
|
184
|
+
def initialize(root, token); end
|
185
|
+
def let_group_for(let); end
|
186
|
+
def let_token(node); end
|
187
|
+
def offending_tokens; end
|
188
|
+
def root; end
|
189
|
+
def single_line_lets; end
|
190
|
+
def target_column_for(let); end
|
191
|
+
def token; end
|
192
|
+
include RuboCop::RSpec::Language::NodePattern
|
193
|
+
end
|
194
|
+
module RuboCop::RSpec::FactoryBot
|
195
|
+
def self.attribute_defining_methods; end
|
196
|
+
def self.reserved_methods; end
|
197
|
+
end
|
198
|
+
module RuboCop::RSpec::FinalEndLocation
|
199
|
+
def final_end_location(start_node); end
|
200
|
+
end
|
201
|
+
module RuboCop::RSpec::BlankLineSeparation
|
202
|
+
def autocorrect(node); end
|
203
|
+
def last_child?(node); end
|
204
|
+
def missing_separating_line(node); end
|
205
|
+
def offending_loc(last_line); end
|
206
|
+
include RuboCop::Cop::RangeHelp
|
207
|
+
include RuboCop::RSpec::FinalEndLocation
|
208
|
+
end
|
209
|
+
module RuboCop::Cop::RSpec::Capybara
|
210
|
+
end
|
211
|
+
class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < RuboCop::Cop::RSpec::Cop
|
212
|
+
def add_ignore_query_options(corrector, node); end
|
213
|
+
def as_is_matcher(node = nil); end
|
214
|
+
def autocorrect(node); end
|
215
|
+
def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end
|
216
|
+
def expectation_set_on_current_path(node = nil); end
|
217
|
+
def on_send(node); end
|
218
|
+
def regexp_str_matcher(node = nil); end
|
219
|
+
def rewrite_expectation(corrector, node, to_symbol, matcher_node); end
|
220
|
+
end
|
221
|
+
class RuboCop::Cop::RSpec::Capybara::FeatureMethods < RuboCop::Cop::RSpec::Cop
|
222
|
+
def autocorrect(node); end
|
223
|
+
def enabled?(method_name); end
|
224
|
+
def enabled_methods; end
|
225
|
+
def feature_method(node = nil); end
|
226
|
+
def inside_spec?(node); end
|
227
|
+
def on_block(node); end
|
228
|
+
def root_node?(node); end
|
229
|
+
def root_with_siblings?(node); end
|
230
|
+
def spec?(node = nil); end
|
231
|
+
end
|
232
|
+
module RuboCop::Cop::RSpec::FactoryBot
|
233
|
+
end
|
234
|
+
class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < RuboCop::Cop::RSpec::Cop
|
235
|
+
def association?(node = nil); end
|
236
|
+
def attribute_defining_method?(method_name); end
|
237
|
+
def autocorrect(node); end
|
238
|
+
def autocorrect_replacing_parens(node); end
|
239
|
+
def autocorrect_without_parens(node); end
|
240
|
+
def braces(node); end
|
241
|
+
def factory_attributes(node0); end
|
242
|
+
def offensive_receiver?(receiver, node); end
|
243
|
+
def on_block(node); end
|
244
|
+
def proc?(attribute); end
|
245
|
+
def receiver_matches_first_block_argument?(receiver, node); end
|
246
|
+
def reserved_method?(method_name); end
|
247
|
+
def value_hash_without_braces?(node); end
|
248
|
+
def value_matcher(node = nil); end
|
249
|
+
end
|
250
|
+
class RuboCop::Cop::RSpec::FactoryBot::CreateList < RuboCop::Cop::RSpec::Cop
|
251
|
+
def autocorrect(node); end
|
252
|
+
def contains_only_factory?(node); end
|
253
|
+
def factory_call(node = nil); end
|
254
|
+
def factory_list_call(node = nil); end
|
255
|
+
def n_times_block_without_arg?(node = nil); end
|
256
|
+
def on_block(node); end
|
257
|
+
def on_send(node); end
|
258
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
259
|
+
end
|
260
|
+
class RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
|
261
|
+
def build_options_string(options); end
|
262
|
+
def format_method_call(node, method, arguments); end
|
263
|
+
def format_receiver(receiver); end
|
264
|
+
end
|
265
|
+
class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector < RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
|
266
|
+
def call(corrector); end
|
267
|
+
def generate_n_times_block(node); end
|
268
|
+
def initialize(node); end
|
269
|
+
def node; end
|
270
|
+
end
|
271
|
+
class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector < RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
|
272
|
+
def build_arguments(node, count); end
|
273
|
+
def call(corrector); end
|
274
|
+
def call_replacement(node); end
|
275
|
+
def call_with_block_replacement(node); end
|
276
|
+
def format_block(node); end
|
277
|
+
def format_multiline_block(node); end
|
278
|
+
def format_singeline_block(node); end
|
279
|
+
def initialize(node); end
|
280
|
+
def node; end
|
281
|
+
end
|
282
|
+
class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < RuboCop::Cop::RSpec::Cop
|
283
|
+
def allowed?(const_name); end
|
284
|
+
def autocorrect(node); end
|
285
|
+
def class_name(node = nil); end
|
286
|
+
def on_send(node); end
|
287
|
+
end
|
288
|
+
class RuboCop::Cop::RSpec::AlignLeftLetBrace < RuboCop::Cop::RSpec::Cop
|
289
|
+
def autocorrect(let); end
|
290
|
+
def investigate(_processed_source); end
|
291
|
+
def self.autocorrect_incompatible_with; end
|
292
|
+
def token_aligner; end
|
293
|
+
end
|
294
|
+
class RuboCop::Cop::RSpec::AlignRightLetBrace < RuboCop::Cop::RSpec::Cop
|
295
|
+
def autocorrect(let); end
|
296
|
+
def investigate(_processed_source); end
|
297
|
+
def self.autocorrect_incompatible_with; end
|
298
|
+
def token_aligner; end
|
299
|
+
end
|
300
|
+
class RuboCop::Cop::RSpec::AnyInstance < RuboCop::Cop::RSpec::Cop
|
301
|
+
def disallowed_stub(node = nil); end
|
302
|
+
def on_send(node); end
|
303
|
+
end
|
304
|
+
class RuboCop::Cop::RSpec::AroundBlock < RuboCop::Cop::RSpec::Cop
|
305
|
+
def add_no_arg_offense(node); end
|
306
|
+
def check_for_unused_proxy(block, proxy); end
|
307
|
+
def find_arg_usage(node0); end
|
308
|
+
def hook(node = nil); end
|
309
|
+
def on_block(node); end
|
310
|
+
end
|
311
|
+
class RuboCop::Cop::RSpec::Be < RuboCop::Cop::RSpec::Cop
|
312
|
+
def be_without_args(node = nil); end
|
313
|
+
def on_send(node); end
|
314
|
+
end
|
315
|
+
class RuboCop::Cop::RSpec::BeEql < RuboCop::Cop::RSpec::Cop
|
316
|
+
def autocorrect(node); end
|
317
|
+
def eql_type_with_identity(node = nil); end
|
318
|
+
def on_send(node); end
|
319
|
+
end
|
320
|
+
class RuboCop::Cop::RSpec::BeforeAfterAll < RuboCop::Cop::RSpec::Cop
|
321
|
+
def before_or_after_all(node = nil); end
|
322
|
+
def on_send(node); end
|
323
|
+
end
|
324
|
+
class RuboCop::Cop::RSpec::ContextMethod < RuboCop::Cop::RSpec::Cop
|
325
|
+
def autocorrect(node); end
|
326
|
+
def context_method(node = nil); end
|
327
|
+
def method_name?(description); end
|
328
|
+
def on_block(node); end
|
329
|
+
end
|
330
|
+
class RuboCop::Cop::RSpec::ContextWording < RuboCop::Cop::RSpec::Cop
|
331
|
+
def bad_prefix?(description); end
|
332
|
+
def context_wording(node = nil); end
|
333
|
+
def joined_prefixes; end
|
334
|
+
def on_block(node); end
|
335
|
+
def prefixes; end
|
336
|
+
end
|
337
|
+
class RuboCop::Cop::RSpec::DescribeClass < RuboCop::Cop::RSpec::Cop
|
338
|
+
def describe_with_rails_metadata?(node = nil); end
|
339
|
+
def on_top_level_describe(node, args); end
|
340
|
+
def rails_metadata?(node = nil); end
|
341
|
+
def shared_group?(node = nil); end
|
342
|
+
def valid_describe?(node = nil); end
|
343
|
+
include RuboCop::RSpec::TopLevelDescribe
|
344
|
+
end
|
345
|
+
class RuboCop::Cop::RSpec::DescribeMethod < RuboCop::Cop::RSpec::Cop
|
346
|
+
def on_top_level_describe(_node, arg1); end
|
347
|
+
include RuboCop::RSpec::TopLevelDescribe
|
348
|
+
include RuboCop::RSpec::Util
|
349
|
+
end
|
350
|
+
class RuboCop::Cop::RSpec::DescribeSymbol < RuboCop::Cop::RSpec::Cop
|
351
|
+
def describe_symbol?(node = nil); end
|
352
|
+
def on_send(node); end
|
353
|
+
end
|
354
|
+
class RuboCop::Cop::RSpec::DescribedClass < RuboCop::Cop::RSpec::Cop
|
355
|
+
def autocorrect(node); end
|
356
|
+
def collapse_namespace(namespace, const); end
|
357
|
+
def common_instance_exec_closure?(node = nil); end
|
358
|
+
def const_name(node); end
|
359
|
+
def contains_described_class?(node0); end
|
360
|
+
def described_constant(node = nil); end
|
361
|
+
def find_usage(node, &block); end
|
362
|
+
def full_const_name(node); end
|
363
|
+
def message(offense); end
|
364
|
+
def namespace(node); end
|
365
|
+
def offensive?(node); end
|
366
|
+
def offensive_described_class?(node); end
|
367
|
+
def on_block(node); end
|
368
|
+
def rspec_block?(node = nil); end
|
369
|
+
def scope_change?(node); end
|
370
|
+
def scope_changing_syntax?(node = nil); end
|
371
|
+
def skip_blocks?; end
|
372
|
+
def skippable_block?(node); end
|
373
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
374
|
+
end
|
375
|
+
class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < RuboCop::Cop::RSpec::Cop
|
376
|
+
def find_rspec_blocks(node0); end
|
377
|
+
def on_module(node); end
|
378
|
+
end
|
379
|
+
class RuboCop::Cop::RSpec::Dialect < RuboCop::Cop::RSpec::Cop
|
380
|
+
def autocorrect(node); end
|
381
|
+
def message(node); end
|
382
|
+
def on_send(node); end
|
383
|
+
def rspec_method?(node = nil); end
|
384
|
+
include RuboCop::Cop::MethodPreference
|
385
|
+
end
|
386
|
+
class RuboCop::Cop::RSpec::EmptyExampleGroup < RuboCop::Cop::RSpec::Cop
|
387
|
+
def contains_example?(node0); end
|
388
|
+
def custom_include?(method_name); end
|
389
|
+
def custom_include_methods; end
|
390
|
+
def on_block(node); end
|
391
|
+
end
|
392
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterExample < RuboCop::Cop::RSpec::Cop
|
393
|
+
def allow_consecutive_one_liners?; end
|
394
|
+
def allowed_one_liner?(node); end
|
395
|
+
def consecutive_one_liner?(node); end
|
396
|
+
def next_one_line_example?(node); end
|
397
|
+
def next_sibling(node); end
|
398
|
+
def on_block(node); end
|
399
|
+
include RuboCop::RSpec::BlankLineSeparation
|
400
|
+
end
|
401
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < RuboCop::Cop::RSpec::Cop
|
402
|
+
def on_block(node); end
|
403
|
+
include RuboCop::RSpec::BlankLineSeparation
|
404
|
+
end
|
405
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < RuboCop::Cop::RSpec::Cop
|
406
|
+
def on_block(node); end
|
407
|
+
include RuboCop::RSpec::BlankLineSeparation
|
408
|
+
end
|
409
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterHook < RuboCop::Cop::RSpec::Cop
|
410
|
+
def on_block(node); end
|
411
|
+
include RuboCop::RSpec::BlankLineSeparation
|
412
|
+
end
|
413
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterSubject < RuboCop::Cop::RSpec::Cop
|
414
|
+
def in_spec_block?(node); end
|
415
|
+
def on_block(node); end
|
416
|
+
include RuboCop::RSpec::BlankLineSeparation
|
417
|
+
end
|
418
|
+
class RuboCop::Cop::RSpec::ExampleLength < RuboCop::Cop::RSpec::Cop
|
419
|
+
def code_length(node); end
|
420
|
+
def message(length); end
|
421
|
+
def on_block(node); end
|
422
|
+
include RuboCop::Cop::CodeLength
|
423
|
+
end
|
424
|
+
class RuboCop::Cop::RSpec::ExampleWithoutDescription < RuboCop::Cop::RSpec::Cop
|
425
|
+
def check_example_without_description(node); end
|
426
|
+
def disallow_empty_description?(node); end
|
427
|
+
def example_description(node = nil); end
|
428
|
+
def on_block(node); end
|
429
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
430
|
+
end
|
431
|
+
class RuboCop::Cop::RSpec::ExampleWording < RuboCop::Cop::RSpec::Cop
|
432
|
+
def add_wording_offense(node, message); end
|
433
|
+
def autocorrect(node); end
|
434
|
+
def custom_transform; end
|
435
|
+
def docstring(node); end
|
436
|
+
def ignored_words; end
|
437
|
+
def it_description(node = nil); end
|
438
|
+
def on_block(node); end
|
439
|
+
def replacement_text(node); end
|
440
|
+
def text(node); end
|
441
|
+
end
|
442
|
+
class RuboCop::Cop::RSpec::ExpectActual < RuboCop::Cop::RSpec::Cop
|
443
|
+
def complex_literal?(node); end
|
444
|
+
def expect_literal(node = nil); end
|
445
|
+
def literal?(node); end
|
446
|
+
def on_send(node); end
|
447
|
+
def simple_literal?(node); end
|
448
|
+
end
|
449
|
+
class RuboCop::Cop::RSpec::ExpectChange < RuboCop::Cop::RSpec::Cop
|
450
|
+
def autocorrect(node); end
|
451
|
+
def autocorrect_block_to_method_call(node); end
|
452
|
+
def autocorrect_method_call_to_block(node); end
|
453
|
+
def expect_change_with_arguments(node = nil); end
|
454
|
+
def expect_change_with_block(node = nil); end
|
455
|
+
def on_block(node); end
|
456
|
+
def on_send(node); end
|
457
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
458
|
+
end
|
459
|
+
class RuboCop::Cop::RSpec::ExpectInHook < RuboCop::Cop::RSpec::Cop
|
460
|
+
def expectation(node0); end
|
461
|
+
def message(expect, hook); end
|
462
|
+
def on_block(node); end
|
463
|
+
end
|
464
|
+
class RuboCop::Cop::RSpec::ExpectOutput < RuboCop::Cop::RSpec::Cop
|
465
|
+
def inside_example_scope?(node); end
|
466
|
+
def on_gvasgn(node); end
|
467
|
+
end
|
468
|
+
class RuboCop::Cop::RSpec::FilePath < RuboCop::Cop::RSpec::Cop
|
469
|
+
def camel_to_snake_case(string); end
|
470
|
+
def const_described?(node0); end
|
471
|
+
def custom_transform; end
|
472
|
+
def expected_path(constant); end
|
473
|
+
def filename_ends_with?(glob); end
|
474
|
+
def glob_for(arg0); end
|
475
|
+
def ignore_methods?; end
|
476
|
+
def name_glob(name); end
|
477
|
+
def on_top_level_describe(node, args); end
|
478
|
+
def relevant_rubocop_rspec_file?(_file); end
|
479
|
+
def routing_metadata?(node0); end
|
480
|
+
def routing_spec?(args); end
|
481
|
+
include RuboCop::RSpec::TopLevelDescribe
|
482
|
+
end
|
483
|
+
class RuboCop::Cop::RSpec::Focus < RuboCop::Cop::RSpec::Cop
|
484
|
+
def focus_metadata(node, &block); end
|
485
|
+
def focused_block?(node = nil); end
|
486
|
+
def metadata(node = nil); end
|
487
|
+
def on_send(node); end
|
488
|
+
end
|
489
|
+
class RuboCop::Cop::RSpec::HookArgument < RuboCop::Cop::RSpec::Cop
|
490
|
+
def argument_range(send_node); end
|
491
|
+
def autocorrect(node); end
|
492
|
+
def check_implicit(method_send); end
|
493
|
+
def explicit_message(scope); end
|
494
|
+
def hook(node, &block); end
|
495
|
+
def implicit_style?; end
|
496
|
+
def on_block(node); end
|
497
|
+
def scoped_hook(node = nil); end
|
498
|
+
def unscoped_hook(node = nil); end
|
499
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
500
|
+
end
|
501
|
+
class RuboCop::Cop::RSpec::HooksBeforeExamples < RuboCop::Cop::RSpec::Cop
|
502
|
+
def autocorrect(node); end
|
503
|
+
def check_hooks(node); end
|
504
|
+
def example_or_group?(node = nil); end
|
505
|
+
def find_first_example(node); end
|
506
|
+
def multiline_block?(block); end
|
507
|
+
def node_range(node); end
|
508
|
+
def node_range_with_surrounding_space(node); end
|
509
|
+
def on_block(node); end
|
510
|
+
def source(node); end
|
511
|
+
include RuboCop::Cop::RangeHelp
|
512
|
+
include RuboCop::RSpec::FinalEndLocation
|
513
|
+
end
|
514
|
+
class RuboCop::Cop::RSpec::ImplicitBlockExpectation < RuboCop::Cop::RSpec::Cop
|
515
|
+
def find_subject(block_node); end
|
516
|
+
def implicit_expect(node = nil); end
|
517
|
+
def lambda?(node = nil); end
|
518
|
+
def lambda_subject?(node = nil); end
|
519
|
+
def multi_statement_example_group?(node); end
|
520
|
+
def nearest_subject(node); end
|
521
|
+
def on_send(node); end
|
522
|
+
end
|
523
|
+
class RuboCop::Cop::RSpec::ImplicitExpect < RuboCop::Cop::RSpec::Cop
|
524
|
+
def autocorrect(node); end
|
525
|
+
def implicit_expect(node = nil); end
|
526
|
+
def is_expected_range(source_map); end
|
527
|
+
def offending_expect(node); end
|
528
|
+
def offense_message(offending_source); end
|
529
|
+
def on_send(node); end
|
530
|
+
def replacement_source(offending_source); end
|
531
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
532
|
+
end
|
533
|
+
class RuboCop::Cop::RSpec::ImplicitSubject < RuboCop::Cop::RSpec::Cop
|
534
|
+
def allowed_by_style?(example); end
|
535
|
+
def autocorrect(node); end
|
536
|
+
def implicit_subject?(node = nil); end
|
537
|
+
def on_send(node); end
|
538
|
+
def valid_usage?(node); end
|
539
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
540
|
+
end
|
541
|
+
class RuboCop::Cop::RSpec::InstanceSpy < RuboCop::Cop::RSpec::Cop
|
542
|
+
def autocorrect(node); end
|
543
|
+
def have_received_usage(node0); end
|
544
|
+
def null_double(node0); end
|
545
|
+
def on_block(node); end
|
546
|
+
end
|
547
|
+
class RuboCop::Cop::RSpec::InstanceVariable < RuboCop::Cop::RSpec::Cop
|
548
|
+
def assignment_only?; end
|
549
|
+
def dynamic_class?(node = nil); end
|
550
|
+
def inside_dynamic_class?(node); end
|
551
|
+
def ivar_assigned?(node0, param1); end
|
552
|
+
def ivar_usage(node0); end
|
553
|
+
def on_block(node); end
|
554
|
+
def spec_group?(node = nil); end
|
555
|
+
end
|
556
|
+
class RuboCop::Cop::RSpec::InvalidPredicateMatcher < RuboCop::Cop::RSpec::Cop
|
557
|
+
def invalid_predicate_matcher?(node = nil); end
|
558
|
+
def message(predicate); end
|
559
|
+
def on_send(node); end
|
560
|
+
def predicate?(name); end
|
561
|
+
end
|
562
|
+
class RuboCop::Cop::RSpec::ItBehavesLike < RuboCop::Cop::RSpec::Cop
|
563
|
+
def autocorrect(node); end
|
564
|
+
def example_inclusion_offense(node = nil, param1); end
|
565
|
+
def message(_node); end
|
566
|
+
def on_send(node); end
|
567
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
568
|
+
end
|
569
|
+
class RuboCop::Cop::RSpec::IteratedExpectation < RuboCop::Cop::RSpec::Cop
|
570
|
+
def each?(node = nil); end
|
571
|
+
def expectation?(node = nil, param1); end
|
572
|
+
def on_block(node); end
|
573
|
+
def only_expectations?(body, arg); end
|
574
|
+
def single_expectation?(body, arg); end
|
575
|
+
end
|
576
|
+
class RuboCop::Cop::RSpec::LeadingSubject < RuboCop::Cop::RSpec::Cop
|
577
|
+
def autocorrect(node); end
|
578
|
+
def check_previous_nodes(node); end
|
579
|
+
def find_first_offending_node(node); end
|
580
|
+
def in_spec_block?(node); end
|
581
|
+
def node_range(node); end
|
582
|
+
def offending?(node); end
|
583
|
+
def on_block(node); end
|
584
|
+
include RuboCop::Cop::RangeHelp
|
585
|
+
end
|
586
|
+
class RuboCop::Cop::RSpec::LeakyConstantDeclaration < RuboCop::Cop::RSpec::Cop
|
587
|
+
def in_example_or_shared_group?(node = nil); end
|
588
|
+
def inside_describe_block?(node); end
|
589
|
+
def on_casgn(node); end
|
590
|
+
def on_class(node); end
|
591
|
+
def on_module(node); end
|
592
|
+
end
|
593
|
+
class RuboCop::Cop::RSpec::LetBeforeExamples < RuboCop::Cop::RSpec::Cop
|
594
|
+
def autocorrect(node); end
|
595
|
+
def check_let_declarations(node); end
|
596
|
+
def example_or_group?(node = nil); end
|
597
|
+
def find_first_example(node); end
|
598
|
+
def multiline_block?(block); end
|
599
|
+
def node_range(node); end
|
600
|
+
def node_range_with_surrounding_space(node); end
|
601
|
+
def on_block(node); end
|
602
|
+
def source(node); end
|
603
|
+
include RuboCop::Cop::RangeHelp
|
604
|
+
include RuboCop::RSpec::FinalEndLocation
|
605
|
+
end
|
606
|
+
class RuboCop::Cop::RSpec::LetSetup < RuboCop::Cop::RSpec::Cop
|
607
|
+
def let_bang(node0); end
|
608
|
+
def method_called?(node0, param1); end
|
609
|
+
def on_block(node); end
|
610
|
+
def unused_let_bang(node); end
|
611
|
+
end
|
612
|
+
class RuboCop::Cop::RSpec::MessageChain < RuboCop::Cop::RSpec::Cop
|
613
|
+
def message(node); end
|
614
|
+
def message_chain(node = nil); end
|
615
|
+
def on_send(node); end
|
616
|
+
end
|
617
|
+
class RuboCop::Cop::RSpec::MessageExpectation < RuboCop::Cop::RSpec::Cop
|
618
|
+
def message_expectation(node = nil); end
|
619
|
+
def on_send(node); end
|
620
|
+
def preferred_style?(expectation); end
|
621
|
+
def receive_message?(node0); end
|
622
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
623
|
+
end
|
624
|
+
class RuboCop::Cop::RSpec::MessageSpies < RuboCop::Cop::RSpec::Cop
|
625
|
+
def error_message(receiver); end
|
626
|
+
def message_expectation(node = nil); end
|
627
|
+
def on_send(node); end
|
628
|
+
def preferred_style?(expectation); end
|
629
|
+
def receive_message(node0); end
|
630
|
+
def receive_message_matcher(node); end
|
631
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
632
|
+
end
|
633
|
+
class RuboCop::Cop::RSpec::MissingExampleGroupArgument < RuboCop::Cop::RSpec::Cop
|
634
|
+
def on_block(node); end
|
635
|
+
end
|
636
|
+
class RuboCop::Cop::RSpec::MultipleDescribes < RuboCop::Cop::RSpec::Cop
|
637
|
+
def on_top_level_describe(node, _args); end
|
638
|
+
include RuboCop::RSpec::TopLevelDescribe
|
639
|
+
end
|
640
|
+
class RuboCop::Cop::RSpec::MultipleExpectations < RuboCop::Cop::RSpec::Cop
|
641
|
+
def aggregate_failures?(node = nil); end
|
642
|
+
def aggregate_failures_block?(node = nil); end
|
643
|
+
def aggregate_failures_present?(node = nil); end
|
644
|
+
def example_with_aggregate_failures?(example_node); end
|
645
|
+
def expect?(node = nil); end
|
646
|
+
def find_aggregate_failures(example_node); end
|
647
|
+
def find_expectation(node, &block); end
|
648
|
+
def flag_example(node, expectation_count:); end
|
649
|
+
def max_expectations; end
|
650
|
+
def on_block(node); end
|
651
|
+
include RuboCop::Cop::ConfigurableMax
|
652
|
+
end
|
653
|
+
class RuboCop::Cop::RSpec::MultipleSubjects < RuboCop::Cop::RSpec::Cop
|
654
|
+
def autocorrect(node); end
|
655
|
+
def named_subject?(node); end
|
656
|
+
def on_block(node); end
|
657
|
+
def remove_autocorrect(node); end
|
658
|
+
def rename_autocorrect(node); end
|
659
|
+
include RuboCop::Cop::RangeHelp
|
660
|
+
end
|
661
|
+
class RuboCop::Cop::RSpec::NamedSubject < RuboCop::Cop::RSpec::Cop
|
662
|
+
def ignored_shared_example?(node); end
|
663
|
+
def on_block(node); end
|
664
|
+
def rspec_block?(node = nil); end
|
665
|
+
def shared_example?(node = nil); end
|
666
|
+
def subject_usage(node0); end
|
667
|
+
end
|
668
|
+
class RuboCop::Cop::RSpec::NestedGroups < RuboCop::Cop::RSpec::Cop
|
669
|
+
def find_contexts(node0); end
|
670
|
+
def find_nested_contexts(node, nesting: nil, &block); end
|
671
|
+
def max_nesting; end
|
672
|
+
def max_nesting_config; end
|
673
|
+
def message(nesting); end
|
674
|
+
def on_top_level_describe(node, _args); end
|
675
|
+
include RuboCop::Cop::ConfigurableMax
|
676
|
+
include RuboCop::RSpec::TopLevelDescribe
|
677
|
+
end
|
678
|
+
class RuboCop::Cop::RSpec::NotToNot < RuboCop::Cop::RSpec::Cop
|
679
|
+
def autocorrect(node); end
|
680
|
+
def message(_node); end
|
681
|
+
def not_to_not_offense(node = nil, param1); end
|
682
|
+
def on_send(node); end
|
683
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
684
|
+
end
|
685
|
+
class RuboCop::Cop::RSpec::OverwritingSetup < RuboCop::Cop::RSpec::Cop
|
686
|
+
def common_setup?(node); end
|
687
|
+
def find_duplicates(node); end
|
688
|
+
def first_argument_name(node = nil); end
|
689
|
+
def on_block(node); end
|
690
|
+
def setup?(node = nil); end
|
691
|
+
end
|
692
|
+
class RuboCop::Cop::RSpec::Pending < RuboCop::Cop::RSpec::Cop
|
693
|
+
def on_send(node); end
|
694
|
+
def pending_block?(node = nil); end
|
695
|
+
def skip_or_pending?(node = nil); end
|
696
|
+
def skippable?(node = nil); end
|
697
|
+
def skipped?(node); end
|
698
|
+
def skipped_in_metadata?(node = nil); end
|
699
|
+
end
|
700
|
+
module RuboCop::Cop::RSpec::InflectedHelper
|
701
|
+
def autocorrect_inflected(node); end
|
702
|
+
def be_bool?(node = nil); end
|
703
|
+
def be_boolthy?(node = nil); end
|
704
|
+
def boolean_matcher?(node); end
|
705
|
+
def check_inflected(node); end
|
706
|
+
def message_inflected(predicate); end
|
707
|
+
def predicate?(sym); end
|
708
|
+
def predicate_in_actual?(node = nil); end
|
709
|
+
def remove_predicate(corrector, predicate); end
|
710
|
+
def rewrite_matcher(corrector, predicate, matcher); end
|
711
|
+
def to_predicate_matcher(name); end
|
712
|
+
def true?(to_symbol, matcher); end
|
713
|
+
extend RuboCop::NodePattern::Macros
|
714
|
+
include RuboCop::RSpec::Language
|
715
|
+
end
|
716
|
+
module RuboCop::Cop::RSpec::ExplicitHelper
|
717
|
+
def allowed_explicit_matchers; end
|
718
|
+
def autocorrect_explicit(node); end
|
719
|
+
def autocorrect_explicit_block(node); end
|
720
|
+
def autocorrect_explicit_send(node); end
|
721
|
+
def check_explicit(node); end
|
722
|
+
def corrector_explicit(to_node, actual, matcher, block_child); end
|
723
|
+
def message_explicit(matcher); end
|
724
|
+
def move_predicate(corrector, actual, matcher, block_child); end
|
725
|
+
def predicate_matcher?(node = nil); end
|
726
|
+
def predicate_matcher_block?(node = nil); end
|
727
|
+
def predicate_matcher_name?(name); end
|
728
|
+
def replacement_matcher(node); end
|
729
|
+
def to_predicate_method(matcher); end
|
730
|
+
extend RuboCop::NodePattern::Macros
|
731
|
+
include RuboCop::RSpec::Language
|
732
|
+
end
|
733
|
+
class RuboCop::Cop::RSpec::PredicateMatcher < RuboCop::Cop::RSpec::Cop
|
734
|
+
def args_loc(send_node); end
|
735
|
+
def autocorrect(node); end
|
736
|
+
def block_loc(send_node); end
|
737
|
+
def on_block(node); end
|
738
|
+
def on_send(node); end
|
739
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
740
|
+
include RuboCop::Cop::RSpec::ExplicitHelper
|
741
|
+
include RuboCop::Cop::RSpec::InflectedHelper
|
742
|
+
end
|
743
|
+
class RuboCop::Cop::RSpec::ReceiveCounts < RuboCop::Cop::RSpec::Cop
|
744
|
+
def autocorrect(node); end
|
745
|
+
def matcher_for(method, count); end
|
746
|
+
def message_for(node, source); end
|
747
|
+
def on_send(node); end
|
748
|
+
def range(node, offending_node); end
|
749
|
+
def receive_counts(node = nil); end
|
750
|
+
def stub?(node0); end
|
751
|
+
end
|
752
|
+
class RuboCop::Cop::RSpec::ReceiveNever < RuboCop::Cop::RSpec::Cop
|
753
|
+
def autocorrect(node); end
|
754
|
+
def method_on_stub?(node0); end
|
755
|
+
def on_send(node); end
|
756
|
+
end
|
757
|
+
class RuboCop::Cop::RSpec::RepeatedDescription < RuboCop::Cop::RSpec::Cop
|
758
|
+
def on_block(node); end
|
759
|
+
def repeated_descriptions(node); end
|
760
|
+
end
|
761
|
+
class RuboCop::Cop::RSpec::RepeatedExample < RuboCop::Cop::RSpec::Cop
|
762
|
+
def example_signature(example); end
|
763
|
+
def on_block(node); end
|
764
|
+
def repeated_examples(node); end
|
765
|
+
end
|
766
|
+
class RuboCop::Cop::RSpec::ReturnFromStub < RuboCop::Cop::RSpec::Cop
|
767
|
+
def and_return_value(node0); end
|
768
|
+
def autocorrect(node); end
|
769
|
+
def check_and_return_call(node); end
|
770
|
+
def check_block_body(block); end
|
771
|
+
def contains_stub?(node0); end
|
772
|
+
def dynamic?(node); end
|
773
|
+
def on_block(node); end
|
774
|
+
def on_send(node); end
|
775
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
776
|
+
end
|
777
|
+
class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector
|
778
|
+
def arg; end
|
779
|
+
def call(corrector); end
|
780
|
+
def hash_without_braces?; end
|
781
|
+
def heredoc?; end
|
782
|
+
def initialize(node); end
|
783
|
+
def node; end
|
784
|
+
def range; end
|
785
|
+
def receiver; end
|
786
|
+
def replacement; end
|
787
|
+
end
|
788
|
+
class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector
|
789
|
+
def block; end
|
790
|
+
def body; end
|
791
|
+
def call(corrector); end
|
792
|
+
def heredoc?; end
|
793
|
+
def initialize(block); end
|
794
|
+
def node; end
|
795
|
+
end
|
796
|
+
class RuboCop::Cop::RSpec::ScatteredLet < RuboCop::Cop::RSpec::Cop
|
797
|
+
def check_let_declarations(body); end
|
798
|
+
def on_block(node); end
|
799
|
+
end
|
800
|
+
class RuboCop::Cop::RSpec::ScatteredSetup < RuboCop::Cop::RSpec::Cop
|
801
|
+
def analyzable_hooks(node); end
|
802
|
+
def on_block(node); end
|
803
|
+
end
|
804
|
+
class RuboCop::Cop::RSpec::SharedContext < RuboCop::Cop::RSpec::Cop
|
805
|
+
def add_shared_item_offense(node, message); end
|
806
|
+
def autocorrect(node); end
|
807
|
+
def context?(node0); end
|
808
|
+
def context_with_only_examples(node); end
|
809
|
+
def examples?(node0); end
|
810
|
+
def examples_with_only_context(node); end
|
811
|
+
def on_block(node); end
|
812
|
+
def shared_context(node = nil); end
|
813
|
+
def shared_example(node = nil); end
|
814
|
+
end
|
815
|
+
class RuboCop::Cop::RSpec::SharedExamples < RuboCop::Cop::RSpec::Cop
|
816
|
+
def autocorrect(node); end
|
817
|
+
def on_send(node); end
|
818
|
+
def shared_examples(node = nil); end
|
819
|
+
end
|
820
|
+
class RuboCop::Cop::RSpec::SharedExamples::Checker
|
821
|
+
def initialize(node); end
|
822
|
+
def message; end
|
823
|
+
def node; end
|
824
|
+
def preferred_style; end
|
825
|
+
def symbol; end
|
826
|
+
def wrap_with_single_quotes(string); end
|
827
|
+
end
|
828
|
+
class RuboCop::Cop::RSpec::SingleArgumentMessageChain < RuboCop::Cop::RSpec::Cop
|
829
|
+
def autocorrect(node); end
|
830
|
+
def autocorrect_array_arg(corrector, arg); end
|
831
|
+
def autocorrect_hash_arg(corrector, arg); end
|
832
|
+
def key_to_arg(node); end
|
833
|
+
def message(node); end
|
834
|
+
def message_chain(node = nil); end
|
835
|
+
def on_send(node); end
|
836
|
+
def replacement(method); end
|
837
|
+
def single_element_array?(node); end
|
838
|
+
def single_key_hash?(node = nil); end
|
839
|
+
def valid_usage?(node); end
|
840
|
+
end
|
841
|
+
class RuboCop::Cop::RSpec::SubjectStub < RuboCop::Cop::RSpec::Cop
|
842
|
+
def find_subject(node, parent: nil, &block); end
|
843
|
+
def find_subject_expectation(node, subject_name, &block); end
|
844
|
+
def find_subject_stub(node, &block); end
|
845
|
+
def message_expectation?(node = nil, param1); end
|
846
|
+
def message_expectation_matcher?(node0); end
|
847
|
+
def on_block(node); end
|
848
|
+
def redefines_subject?(node); end
|
849
|
+
def subject(node = nil); end
|
850
|
+
end
|
851
|
+
class RuboCop::Cop::RSpec::UnspecifiedException < RuboCop::Cop::RSpec::Cop
|
852
|
+
def block_with_args?(node); end
|
853
|
+
def empty_exception_matcher?(node); end
|
854
|
+
def empty_raise_error_or_exception(node = nil); end
|
855
|
+
def on_send(node); end
|
856
|
+
end
|
857
|
+
class RuboCop::Cop::RSpec::VerifiedDoubles < RuboCop::Cop::RSpec::Cop
|
858
|
+
def on_send(node); end
|
859
|
+
def symbol?(name); end
|
860
|
+
def unverified_double(node = nil); end
|
861
|
+
end
|
862
|
+
class RuboCop::Cop::RSpec::VoidExpect < RuboCop::Cop::RSpec::Cop
|
863
|
+
def check_expect(node); end
|
864
|
+
def expect?(node = nil); end
|
865
|
+
def expect_block?(node = nil); end
|
866
|
+
def on_block(node); end
|
867
|
+
def on_send(node); end
|
868
|
+
def void?(expect); end
|
869
|
+
end
|
870
|
+
class RuboCop::Cop::RSpec::Yield < RuboCop::Cop::RSpec::Cop
|
871
|
+
def autocorrect(node); end
|
872
|
+
def block_arg(node = nil); end
|
873
|
+
def block_call?(node = nil, param1); end
|
874
|
+
def block_range(node); end
|
875
|
+
def calling_block?(node, block); end
|
876
|
+
def convert_block_to_yield(node); end
|
877
|
+
def generate_replacement(node); end
|
878
|
+
def method_on_stub?(node0); end
|
879
|
+
def on_block(node); end
|
880
|
+
include RuboCop::Cop::RangeHelp
|
881
|
+
end
|
882
|
+
module RuboCop::Cop::Layout
|
883
|
+
end
|
884
|
+
class RuboCop::Cop::Layout::ExtraSpacing < RuboCop::Cop::Cop
|
885
|
+
def self.autocorrect_incompatible_with; end
|
886
|
+
end
|
887
|
+
class RuboCop::AST::Node < Parser::AST::Node
|
888
|
+
include RuboCop::RSpec::Node
|
889
|
+
end
|