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