eml 1.0.0
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 +7 -0
- data/.editorconfig +10 -0
- data/.env.example +6 -0
- data/.gitignore +5 -0
- data/.rspec +5 -0
- data/.rubocop.yml +90 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +87 -0
- data/eml.gemspec +37 -0
- data/lib/eml.rb +22 -0
- data/lib/eml/config.rb +49 -0
- data/lib/eml/data/countries.rb +260 -0
- data/lib/eml/data/currencies.rb +176 -0
- data/lib/eml/data/states.rb +4055 -0
- data/lib/eml/environment.rb +54 -0
- data/lib/eml/error.rb +25 -0
- data/lib/eml/error/rest.rb +42 -0
- data/lib/eml/error/rest/authentication.rb +21 -0
- data/lib/eml/error/rest/bad_request.rb +20 -0
- data/lib/eml/error/rest/daily_funding_limit.rb +19 -0
- data/lib/eml/error/rest/forbidden.rb +20 -0
- data/lib/eml/error/rest/internal_server.rb +9 -0
- data/lib/eml/error/rest/not_found.rb +20 -0
- data/lib/eml/error/rest/unprocessable_entity.rb +20 -0
- data/lib/eml/lib/endpoint_class.rb +42 -0
- data/lib/eml/parameters.rb +153 -0
- data/lib/eml/payload.rb +137 -0
- data/lib/eml/response.rb +103 -0
- data/lib/eml/uk.rb +51 -0
- data/lib/eml/uk/api_resource.rb +94 -0
- data/lib/eml/uk/config.rb +52 -0
- data/lib/eml/uk/lib/endpoint_class.rb +19 -0
- data/lib/eml/uk/lib/parse_date.rb +35 -0
- data/lib/eml/uk/model/transaction.rb +56 -0
- data/lib/eml/uk/parameters.rb +99 -0
- data/lib/eml/uk/parameters/agreement/show.rb +22 -0
- data/lib/eml/uk/parameters/card/activation.rb +24 -0
- data/lib/eml/uk/parameters/card/lock.rb +26 -0
- data/lib/eml/uk/parameters/card/register.rb +24 -0
- data/lib/eml/uk/parameters/card/reload.rb +24 -0
- data/lib/eml/uk/parameters/card/show.rb +102 -0
- data/lib/eml/uk/parameters/card/transaction.rb +59 -0
- data/lib/eml/uk/parameters/card/unload.rb +26 -0
- data/lib/eml/uk/parameters/card/unlock.rb +26 -0
- data/lib/eml/uk/parameters/card/void.rb +26 -0
- data/lib/eml/uk/payload.rb +94 -0
- data/lib/eml/uk/payload/agreement/show.rb +46 -0
- data/lib/eml/uk/payload/card/activation.rb +73 -0
- data/lib/eml/uk/payload/card/lock.rb +34 -0
- data/lib/eml/uk/payload/card/register.rb +70 -0
- data/lib/eml/uk/payload/card/reload.rb +38 -0
- data/lib/eml/uk/payload/card/show.rb +12 -0
- data/lib/eml/uk/payload/card/transaction.rb +12 -0
- data/lib/eml/uk/payload/card/unload.rb +38 -0
- data/lib/eml/uk/payload/card/unlock.rb +23 -0
- data/lib/eml/uk/payload/card/void.rb +23 -0
- data/lib/eml/uk/payload/contactentity.rb +64 -0
- data/lib/eml/uk/payload/iso.rb +48 -0
- data/lib/eml/uk/payload/location.rb +30 -0
- data/lib/eml/uk/resources/agreement.rb +32 -0
- data/lib/eml/uk/resources/card.rb +181 -0
- data/lib/eml/uk/response.rb +29 -0
- data/lib/eml/uk/responses/agreement/show.rb +16 -0
- data/lib/eml/uk/responses/card/reload.rb +19 -0
- data/lib/eml/uk/responses/card/show.rb +53 -0
- data/lib/eml/uk/responses/card/transaction.rb +24 -0
- data/lib/eml/version.rb +6 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/addressable.rbi +198 -0
- data/sorbet/rbi/gems/ast.rbi +47 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +218 -0
- data/sorbet/rbi/gems/crack.rbi +47 -0
- data/sorbet/rbi/gems/docile.rbi +31 -0
- data/sorbet/rbi/gems/domain_name.rbi +51 -0
- data/sorbet/rbi/gems/dotenv.rbi +67 -0
- data/sorbet/rbi/gems/faker.rbi +1350 -0
- data/sorbet/rbi/gems/hashdiff.rbi +65 -0
- data/sorbet/rbi/gems/http-cookie.rbi +92 -0
- data/sorbet/rbi/gems/http-form_data.rbi +73 -0
- data/sorbet/rbi/gems/http.rbi +609 -0
- data/sorbet/rbi/gems/http_parser.rb.rbi +36 -0
- data/sorbet/rbi/gems/i18n.rbi +191 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
- data/sorbet/rbi/gems/parallel.rbi +81 -0
- data/sorbet/rbi/gems/parser.rbi +835 -0
- data/sorbet/rbi/gems/public_suffix.rbi +103 -0
- data/sorbet/rbi/gems/rainbow.rbi +117 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1655 -0
- data/sorbet/rbi/gems/rspec-support.rbi +126 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/gems/rubocop-performance.rbi +276 -0
- data/sorbet/rbi/gems/rubocop-rspec.rbi +860 -0
- data/sorbet/rbi/gems/rubocop.rbi +6943 -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/unf.rbi +18 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
- data/sorbet/rbi/gems/vcr.rbi +503 -0
- data/sorbet/rbi/gems/webmock.rbi +521 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +4802 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +10700 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8682 -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 +24 -0
- data/spec/config_spec.rb +26 -0
- data/spec/helpers/config_helper.rb +21 -0
- data/spec/helpers/vcr_helper.rb +19 -0
- data/spec/spec_helper.rb +120 -0
- data/spec/uk/api_resource_spec.rb +39 -0
- data/spec/uk/resources/agreement_spec.rb +23 -0
- data/spec/uk/resources/card_spec.rb +197 -0
- metadata +339 -0
|
@@ -0,0 +1,126 @@
|
|
|
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-support/all/rspec-support.rbi
|
|
9
|
+
#
|
|
10
|
+
# rspec-support-3.8.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.failure_notifier; end
|
|
18
|
+
def self.failure_notifier=(callable); end
|
|
19
|
+
def self.method_handle_for(object, method_name); end
|
|
20
|
+
def self.notify_failure(failure, options = nil); end
|
|
21
|
+
def self.require_rspec_support(f); end
|
|
22
|
+
def self.thread_local_data; end
|
|
23
|
+
def self.warning_notifier; end
|
|
24
|
+
def self.warning_notifier=(arg0); end
|
|
25
|
+
def self.with_failure_notifier(callable); end
|
|
26
|
+
end
|
|
27
|
+
module RSpec::Support::Version
|
|
28
|
+
end
|
|
29
|
+
class RSpec::Support::ComparableVersion
|
|
30
|
+
def <=>(other); end
|
|
31
|
+
def initialize(string); end
|
|
32
|
+
def segments; end
|
|
33
|
+
def string; end
|
|
34
|
+
include Comparable
|
|
35
|
+
end
|
|
36
|
+
module RSpec::Support::OS
|
|
37
|
+
def self.windows?; end
|
|
38
|
+
def self.windows_file_path?; end
|
|
39
|
+
def windows?; end
|
|
40
|
+
def windows_file_path?; end
|
|
41
|
+
end
|
|
42
|
+
module RSpec::Support::Ruby
|
|
43
|
+
def jruby?; end
|
|
44
|
+
def jruby_9000?; end
|
|
45
|
+
def jruby_version; end
|
|
46
|
+
def mri?; end
|
|
47
|
+
def non_mri?; end
|
|
48
|
+
def rbx?; end
|
|
49
|
+
def self.jruby?; end
|
|
50
|
+
def self.jruby_9000?; end
|
|
51
|
+
def self.jruby_version; end
|
|
52
|
+
def self.mri?; end
|
|
53
|
+
def self.non_mri?; end
|
|
54
|
+
def self.rbx?; end
|
|
55
|
+
end
|
|
56
|
+
module RSpec::Support::RubyFeatures
|
|
57
|
+
def caller_locations_supported?; end
|
|
58
|
+
def fork_supported?; end
|
|
59
|
+
def kw_args_supported?; end
|
|
60
|
+
def module_prepends_supported?; end
|
|
61
|
+
def module_refinement_supported?; end
|
|
62
|
+
def optional_and_splat_args_supported?; end
|
|
63
|
+
def required_kw_args_supported?; end
|
|
64
|
+
def ripper_supported?; end
|
|
65
|
+
def self.caller_locations_supported?; end
|
|
66
|
+
def self.fork_supported?; end
|
|
67
|
+
def self.kw_args_supported?; end
|
|
68
|
+
def self.module_prepends_supported?; end
|
|
69
|
+
def self.module_refinement_supported?; end
|
|
70
|
+
def self.optional_and_splat_args_supported?; end
|
|
71
|
+
def self.required_kw_args_supported?; end
|
|
72
|
+
def self.ripper_supported?; end
|
|
73
|
+
def self.supports_exception_cause?; end
|
|
74
|
+
def self.supports_rebinding_module_methods?; end
|
|
75
|
+
def supports_exception_cause?; end
|
|
76
|
+
def supports_rebinding_module_methods?; end
|
|
77
|
+
end
|
|
78
|
+
module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
|
79
|
+
def self.===(exception); end
|
|
80
|
+
end
|
|
81
|
+
class RSpec::CallerFilter
|
|
82
|
+
def self.first_non_rspec_line(skip_frames = nil, increment = nil); end
|
|
83
|
+
end
|
|
84
|
+
module RSpec::Support::Warnings
|
|
85
|
+
def deprecate(deprecated, options = nil); end
|
|
86
|
+
def warn_deprecation(message, options = nil); end
|
|
87
|
+
def warn_with(message, options = nil); end
|
|
88
|
+
def warning(text, options = nil); end
|
|
89
|
+
end
|
|
90
|
+
class RSpec::Support::EncodedString
|
|
91
|
+
def <<(string); end
|
|
92
|
+
def ==(*args, &block); end
|
|
93
|
+
def detect_source_encoding(string); end
|
|
94
|
+
def empty?(*args, &block); end
|
|
95
|
+
def encoding(*args, &block); end
|
|
96
|
+
def eql?(*args, &block); end
|
|
97
|
+
def initialize(string, encoding = nil); end
|
|
98
|
+
def lines(*args, &block); end
|
|
99
|
+
def matching_encoding(string); end
|
|
100
|
+
def remove_invalid_bytes(string); end
|
|
101
|
+
def self.pick_encoding(source_a, source_b); end
|
|
102
|
+
def source_encoding; end
|
|
103
|
+
def split(regex_or_string); end
|
|
104
|
+
def to_s; end
|
|
105
|
+
def to_str; end
|
|
106
|
+
end
|
|
107
|
+
class RSpec::Support::ReentrantMutex
|
|
108
|
+
def enter; end
|
|
109
|
+
def exit; end
|
|
110
|
+
def initialize; end
|
|
111
|
+
def synchronize; end
|
|
112
|
+
end
|
|
113
|
+
class RSpec::Support::DirectoryMaker
|
|
114
|
+
def self.directory_exists?(dirname); end
|
|
115
|
+
def self.generate_path(stack, part); end
|
|
116
|
+
def self.generate_stack(path); end
|
|
117
|
+
def self.mkdir_p(path); end
|
|
118
|
+
end
|
|
119
|
+
module RSpec::Support::RecursiveConstMethods
|
|
120
|
+
def const_defined_on?(mod, const_name); end
|
|
121
|
+
def constants_defined_on(mod); end
|
|
122
|
+
def get_const_defined_on(mod, const_name); end
|
|
123
|
+
def normalize_const_name(const_name); end
|
|
124
|
+
def recursive_const_defined?(const_name); end
|
|
125
|
+
def recursive_const_get(const_name); end
|
|
126
|
+
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.8.0
|
|
11
|
+
module RSpec
|
|
12
|
+
end
|
|
13
|
+
module RSpec::Version
|
|
14
|
+
end
|
|
@@ -0,0 +1,276 @@
|
|
|
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-performance/all/rubocop-performance.rbi
|
|
9
|
+
#
|
|
10
|
+
# rubocop-performance-1.4.1
|
|
11
|
+
module RuboCop
|
|
12
|
+
end
|
|
13
|
+
module RuboCop::Performance
|
|
14
|
+
end
|
|
15
|
+
module RuboCop::Performance::Version
|
|
16
|
+
end
|
|
17
|
+
module RuboCop::Performance::Inject
|
|
18
|
+
def self.defaults!; end
|
|
19
|
+
end
|
|
20
|
+
module RuboCop::Cop
|
|
21
|
+
end
|
|
22
|
+
module RuboCop::Cop::Performance
|
|
23
|
+
end
|
|
24
|
+
class RuboCop::Cop::Performance::Caller < RuboCop::Cop::Cop
|
|
25
|
+
def caller_with_scope_method?(node = nil); end
|
|
26
|
+
def int_value(node); end
|
|
27
|
+
def message(node); end
|
|
28
|
+
def on_send(node); end
|
|
29
|
+
def slow_caller?(node = nil); end
|
|
30
|
+
end
|
|
31
|
+
class RuboCop::Cop::Performance::CaseWhenSplat < RuboCop::Cop::Cop
|
|
32
|
+
def autocorrect(when_node); end
|
|
33
|
+
def indent_for(node); end
|
|
34
|
+
def inline_fix_branch(corrector, when_node); end
|
|
35
|
+
def needs_reorder?(when_node); end
|
|
36
|
+
def new_branch_without_then(node, new_condition); end
|
|
37
|
+
def new_condition_with_then(node, new_condition); end
|
|
38
|
+
def non_splat?(condition); end
|
|
39
|
+
def on_case(case_node); end
|
|
40
|
+
def reorder_condition(corrector, when_node); end
|
|
41
|
+
def reordering_correction(when_node); end
|
|
42
|
+
def replacement(conditions); end
|
|
43
|
+
def splat_offenses(when_conditions); end
|
|
44
|
+
def when_branch_range(when_node); end
|
|
45
|
+
include RuboCop::Cop::Alignment
|
|
46
|
+
include RuboCop::Cop::RangeHelp
|
|
47
|
+
end
|
|
48
|
+
class RuboCop::Cop::Performance::Casecmp < RuboCop::Cop::Cop
|
|
49
|
+
def autocorrect(node); end
|
|
50
|
+
def build_good_method(arg, variable); end
|
|
51
|
+
def correction(node, _receiver, method, arg, variable); end
|
|
52
|
+
def downcase_downcase(node = nil); end
|
|
53
|
+
def downcase_eq(node = nil); end
|
|
54
|
+
def eq_downcase(node = nil); end
|
|
55
|
+
def on_send(node); end
|
|
56
|
+
def take_method_apart(node); end
|
|
57
|
+
end
|
|
58
|
+
class RuboCop::Cop::Performance::CompareWithBlock < RuboCop::Cop::Cop
|
|
59
|
+
def autocorrect(node); end
|
|
60
|
+
def compare?(node = nil); end
|
|
61
|
+
def compare_range(send, node); end
|
|
62
|
+
def message(send, method, var_a, var_b, args); end
|
|
63
|
+
def on_block(node); end
|
|
64
|
+
def replaceable_body?(node = nil, param1, param2); end
|
|
65
|
+
def slow_compare?(method, args_a, args_b); end
|
|
66
|
+
include RuboCop::Cop::RangeHelp
|
|
67
|
+
end
|
|
68
|
+
class RuboCop::Cop::Performance::Count < RuboCop::Cop::Cop
|
|
69
|
+
def autocorrect(node); end
|
|
70
|
+
def count_candidate?(node = nil); end
|
|
71
|
+
def eligible_node?(node); end
|
|
72
|
+
def on_send(node); end
|
|
73
|
+
def source_starting_at(node); end
|
|
74
|
+
include RuboCop::Cop::RangeHelp
|
|
75
|
+
include RuboCop::Cop::SafeMode
|
|
76
|
+
end
|
|
77
|
+
class RuboCop::Cop::Performance::Detect < RuboCop::Cop::Cop
|
|
78
|
+
def accept_first_call?(receiver, body); end
|
|
79
|
+
def autocorrect(node); end
|
|
80
|
+
def detect_candidate?(node = nil); end
|
|
81
|
+
def lazy?(node); end
|
|
82
|
+
def on_send(node); end
|
|
83
|
+
def preferred_method; end
|
|
84
|
+
def register_offense(node, receiver, second_method); end
|
|
85
|
+
include RuboCop::Cop::SafeMode
|
|
86
|
+
end
|
|
87
|
+
class RuboCop::Cop::Performance::DoubleStartEndWith < RuboCop::Cop::Cop
|
|
88
|
+
def add_offense_for_double_call(node, receiver, method, combined_args); end
|
|
89
|
+
def autocorrect(node); end
|
|
90
|
+
def check_for_active_support_aliases?; end
|
|
91
|
+
def check_with_active_support_aliases(node = nil); end
|
|
92
|
+
def combine_args(first_call_args, second_call_args); end
|
|
93
|
+
def on_or(node); end
|
|
94
|
+
def process_source(node); end
|
|
95
|
+
def two_start_end_with_calls(node = nil); end
|
|
96
|
+
end
|
|
97
|
+
class RuboCop::Cop::Performance::EndWith < RuboCop::Cop::Cop
|
|
98
|
+
def autocorrect(node); end
|
|
99
|
+
def literal_at_end?(regex_str); end
|
|
100
|
+
def on_send(node); end
|
|
101
|
+
def redundant_regex?(node = nil); end
|
|
102
|
+
end
|
|
103
|
+
class RuboCop::Cop::Performance::FixedSize < RuboCop::Cop::Cop
|
|
104
|
+
def allowed_argument?(arg); end
|
|
105
|
+
def allowed_parent?(node); end
|
|
106
|
+
def allowed_variable?(var); end
|
|
107
|
+
def contains_double_splat?(node); end
|
|
108
|
+
def contains_splat?(node); end
|
|
109
|
+
def counter(node = nil); end
|
|
110
|
+
def non_string_argument?(node); end
|
|
111
|
+
def on_send(node); end
|
|
112
|
+
end
|
|
113
|
+
class RuboCop::Cop::Performance::FlatMap < RuboCop::Cop::Cop
|
|
114
|
+
def autocorrect(node); end
|
|
115
|
+
def flat_map_candidate?(node = nil); end
|
|
116
|
+
def offense_for_levels(node, map_node, first_method, flatten); end
|
|
117
|
+
def offense_for_method(node, map_node, first_method, flatten); end
|
|
118
|
+
def on_send(node); end
|
|
119
|
+
def register_offense(node, map_node, first_method, flatten, message); end
|
|
120
|
+
include RuboCop::Cop::RangeHelp
|
|
121
|
+
end
|
|
122
|
+
class RuboCop::Cop::Performance::InefficientHashSearch < RuboCop::Cop::Cop
|
|
123
|
+
def autocorrect(node); end
|
|
124
|
+
def autocorrect_argument(node); end
|
|
125
|
+
def autocorrect_hash_expression(node); end
|
|
126
|
+
def autocorrect_method(node); end
|
|
127
|
+
def current_method(node); end
|
|
128
|
+
def inefficient_include?(node = nil); end
|
|
129
|
+
def message(node); end
|
|
130
|
+
def on_send(node); end
|
|
131
|
+
def use_long_method; end
|
|
132
|
+
end
|
|
133
|
+
class RuboCop::Cop::Performance::OpenStruct < RuboCop::Cop::Cop
|
|
134
|
+
def on_send(node); end
|
|
135
|
+
def open_struct(node = nil); end
|
|
136
|
+
end
|
|
137
|
+
class RuboCop::Cop::Performance::RangeInclude < RuboCop::Cop::Cop
|
|
138
|
+
def autocorrect(node); end
|
|
139
|
+
def on_send(node); end
|
|
140
|
+
def range_include(node = nil); end
|
|
141
|
+
end
|
|
142
|
+
class RuboCop::Cop::Performance::RedundantBlockCall < RuboCop::Cop::Cop
|
|
143
|
+
def args_include_block_pass?(blockcall); end
|
|
144
|
+
def autocorrect(node); end
|
|
145
|
+
def blockarg_assigned?(node0, param1); end
|
|
146
|
+
def blockarg_calls(node0, param1); end
|
|
147
|
+
def blockarg_def(node = nil); end
|
|
148
|
+
def calls_to_report(argname, body); end
|
|
149
|
+
def on_def(node); end
|
|
150
|
+
end
|
|
151
|
+
class RuboCop::Cop::Performance::RedundantMatch < RuboCop::Cop::Cop
|
|
152
|
+
def autocorrect(node); end
|
|
153
|
+
def match_call?(node = nil); end
|
|
154
|
+
def on_send(node); end
|
|
155
|
+
def only_truthiness_matters?(node = nil); end
|
|
156
|
+
end
|
|
157
|
+
class RuboCop::Cop::Performance::RedundantMerge < RuboCop::Cop::Cop
|
|
158
|
+
def autocorrect(node); end
|
|
159
|
+
def correct_multiple_elements(node, parent, new_source); end
|
|
160
|
+
def correct_single_element(node, new_source); end
|
|
161
|
+
def each_redundant_merge(node); end
|
|
162
|
+
def indent_width; end
|
|
163
|
+
def kwsplat_used?(pairs); end
|
|
164
|
+
def leading_spaces(node); end
|
|
165
|
+
def max_key_value_pairs; end
|
|
166
|
+
def message(node); end
|
|
167
|
+
def modifier_flow_control?(node = nil); end
|
|
168
|
+
def non_redundant_merge?(node, receiver, pairs); end
|
|
169
|
+
def non_redundant_pairs?(receiver, pairs); end
|
|
170
|
+
def non_redundant_value_used?(receiver, node); end
|
|
171
|
+
def on_send(node); end
|
|
172
|
+
def redundant_merge_candidate(node = nil); end
|
|
173
|
+
def rewrite_with_modifier(node, parent, new_source); end
|
|
174
|
+
def to_assignments(receiver, pairs); end
|
|
175
|
+
end
|
|
176
|
+
class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector
|
|
177
|
+
def each_with_object_node(node = nil); end
|
|
178
|
+
def eligible_receiver?; end
|
|
179
|
+
def initialize(node, receiver); end
|
|
180
|
+
def node; end
|
|
181
|
+
def receiver; end
|
|
182
|
+
def second_argument; end
|
|
183
|
+
def unwind(receiver); end
|
|
184
|
+
def value_used?; end
|
|
185
|
+
extend RuboCop::NodePattern::Macros
|
|
186
|
+
end
|
|
187
|
+
class RuboCop::Cop::Performance::RegexpMatch < RuboCop::Cop::Cop
|
|
188
|
+
def autocorrect(node); end
|
|
189
|
+
def check_condition(cond); end
|
|
190
|
+
def correct_operator(corrector, recv, arg, oper = nil); end
|
|
191
|
+
def correction_range(recv, arg); end
|
|
192
|
+
def find_last_match(body, range, scope_root); end
|
|
193
|
+
def last_match_used?(match_node); end
|
|
194
|
+
def last_matches(node0); end
|
|
195
|
+
def match_gvar?(sym); end
|
|
196
|
+
def match_method?(node = nil); end
|
|
197
|
+
def match_node?(node = nil); end
|
|
198
|
+
def match_operator?(node = nil); end
|
|
199
|
+
def match_threequals?(node = nil); end
|
|
200
|
+
def match_with_int_arg_method?(node = nil); end
|
|
201
|
+
def match_with_lvasgn?(node); end
|
|
202
|
+
def message(node); end
|
|
203
|
+
def modifier_form?(match_node); end
|
|
204
|
+
def next_match_pos(body, match_node_pos, scope_root); end
|
|
205
|
+
def on_case(node); end
|
|
206
|
+
def on_if(node); end
|
|
207
|
+
def range_to_search_for_last_matches(match_node, body, scope_root); end
|
|
208
|
+
def scope_body(node); end
|
|
209
|
+
def scope_root(node); end
|
|
210
|
+
def search_match_nodes(node0); end
|
|
211
|
+
def swap_receiver_and_arg(corrector, recv, arg); end
|
|
212
|
+
extend RuboCop::Cop::TargetRubyVersion
|
|
213
|
+
end
|
|
214
|
+
class RuboCop::Cop::Performance::ReverseEach < RuboCop::Cop::Cop
|
|
215
|
+
def autocorrect(node); end
|
|
216
|
+
def on_send(node); end
|
|
217
|
+
def reverse_each?(node = nil); end
|
|
218
|
+
include RuboCop::Cop::RangeHelp
|
|
219
|
+
end
|
|
220
|
+
class RuboCop::Cop::Performance::Size < RuboCop::Cop::Cop
|
|
221
|
+
def allowed_parent?(node); end
|
|
222
|
+
def array?(node); end
|
|
223
|
+
def autocorrect(node); end
|
|
224
|
+
def eligible_node?(node); end
|
|
225
|
+
def eligible_receiver?(node); end
|
|
226
|
+
def hash?(node); end
|
|
227
|
+
def on_send(node); end
|
|
228
|
+
end
|
|
229
|
+
class RuboCop::Cop::Performance::StartWith < RuboCop::Cop::Cop
|
|
230
|
+
def autocorrect(node); end
|
|
231
|
+
def literal_at_start?(regex_str); end
|
|
232
|
+
def on_send(node); end
|
|
233
|
+
def redundant_regex?(node = nil); end
|
|
234
|
+
end
|
|
235
|
+
class RuboCop::Cop::Performance::StringReplacement < RuboCop::Cop::Cop
|
|
236
|
+
def accept_first_param?(first_param); end
|
|
237
|
+
def accept_second_param?(second_param); end
|
|
238
|
+
def autocorrect(node); end
|
|
239
|
+
def first_source(first_param); end
|
|
240
|
+
def message(node, first_source, second_source); end
|
|
241
|
+
def method_suffix(node); end
|
|
242
|
+
def offense(node, first_param, second_param); end
|
|
243
|
+
def on_send(node); end
|
|
244
|
+
def range(node); end
|
|
245
|
+
def remove_second_param(corrector, node, first_param); end
|
|
246
|
+
def replace_method(node, first, second, first_param, replacement); end
|
|
247
|
+
def replacement_method(node, first_source, second_source); end
|
|
248
|
+
def source_from_regex_constructor(node); end
|
|
249
|
+
def source_from_regex_literal(node); end
|
|
250
|
+
def string_replacement?(node = nil); end
|
|
251
|
+
include RuboCop::Cop::RangeHelp
|
|
252
|
+
end
|
|
253
|
+
class RuboCop::Cop::Performance::TimesMap < RuboCop::Cop::Cop
|
|
254
|
+
def autocorrect(node); end
|
|
255
|
+
def check(node); end
|
|
256
|
+
def message(map_or_collect, count); end
|
|
257
|
+
def on_block(node); end
|
|
258
|
+
def on_send(node); end
|
|
259
|
+
def times_map_call(node = nil); end
|
|
260
|
+
end
|
|
261
|
+
class RuboCop::Cop::Performance::UnfreezeString < RuboCop::Cop::Cop
|
|
262
|
+
def dup_string?(node = nil); end
|
|
263
|
+
def on_send(node); end
|
|
264
|
+
def string_new?(node = nil); end
|
|
265
|
+
extend RuboCop::Cop::TargetRubyVersion
|
|
266
|
+
end
|
|
267
|
+
class RuboCop::Cop::Performance::UriDefaultParser < RuboCop::Cop::Cop
|
|
268
|
+
def autocorrect(node); end
|
|
269
|
+
def on_send(node); end
|
|
270
|
+
def uri_parser_new?(node = nil); end
|
|
271
|
+
end
|
|
272
|
+
class RuboCop::Cop::Performance::ChainArrayAllocation < RuboCop::Cop::Cop
|
|
273
|
+
def flat_map_candidate?(node = nil); end
|
|
274
|
+
def on_send(node); end
|
|
275
|
+
include RuboCop::Cop::RangeHelp
|
|
276
|
+
end
|
|
@@ -0,0 +1,860 @@
|
|
|
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.35.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 as_is_matcher(node = nil); end
|
|
210
|
+
def autocorrect(node); end
|
|
211
|
+
def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end
|
|
212
|
+
def expectation_set_on_current_path(node = nil); end
|
|
213
|
+
def on_send(node); end
|
|
214
|
+
def regexp_str_matcher(node = nil); end
|
|
215
|
+
def rewrite_expectation(corrector, node, to_symbol, matcher_node); end
|
|
216
|
+
end
|
|
217
|
+
class RuboCop::Cop::RSpec::Capybara::FeatureMethods < RuboCop::Cop::RSpec::Cop
|
|
218
|
+
def autocorrect(node); end
|
|
219
|
+
def enabled?(method_name); end
|
|
220
|
+
def enabled_methods; end
|
|
221
|
+
def feature_method(node = nil); end
|
|
222
|
+
def inside_spec?(node); end
|
|
223
|
+
def on_block(node); end
|
|
224
|
+
def root_node?(node); end
|
|
225
|
+
def root_with_siblings?(node); end
|
|
226
|
+
def spec?(node = nil); end
|
|
227
|
+
end
|
|
228
|
+
module RuboCop::Cop::RSpec::FactoryBot
|
|
229
|
+
end
|
|
230
|
+
class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < RuboCop::Cop::RSpec::Cop
|
|
231
|
+
def association?(attribute); end
|
|
232
|
+
def attribute_defining_method?(method_name); end
|
|
233
|
+
def autocorrect(node); end
|
|
234
|
+
def autocorrect_replacing_parens(node); end
|
|
235
|
+
def autocorrect_without_parens(node); end
|
|
236
|
+
def braces(node); end
|
|
237
|
+
def factory_attributes(node0); end
|
|
238
|
+
def factory_key?(hash_node); 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::ContextWording < RuboCop::Cop::RSpec::Cop
|
|
316
|
+
def bad_prefix?(description); end
|
|
317
|
+
def context_wording(node = nil); end
|
|
318
|
+
def joined_prefixes; end
|
|
319
|
+
def on_block(node); end
|
|
320
|
+
def prefixes; end
|
|
321
|
+
end
|
|
322
|
+
class RuboCop::Cop::RSpec::DescribeClass < RuboCop::Cop::RSpec::Cop
|
|
323
|
+
def describe_with_metadata(node = nil); end
|
|
324
|
+
def on_top_level_describe(node, args); end
|
|
325
|
+
def rails_metadata?(node = nil); end
|
|
326
|
+
def shared_group?(node = nil); end
|
|
327
|
+
def valid_describe?(node = nil); end
|
|
328
|
+
include RuboCop::RSpec::TopLevelDescribe
|
|
329
|
+
end
|
|
330
|
+
class RuboCop::Cop::RSpec::DescribeMethod < RuboCop::Cop::RSpec::Cop
|
|
331
|
+
def on_top_level_describe(_node, arg1); end
|
|
332
|
+
include RuboCop::RSpec::TopLevelDescribe
|
|
333
|
+
include RuboCop::RSpec::Util
|
|
334
|
+
end
|
|
335
|
+
class RuboCop::Cop::RSpec::DescribeSymbol < RuboCop::Cop::RSpec::Cop
|
|
336
|
+
def describe_symbol?(node = nil); end
|
|
337
|
+
def on_send(node); end
|
|
338
|
+
end
|
|
339
|
+
class RuboCop::Cop::RSpec::DescribedClass < RuboCop::Cop::RSpec::Cop
|
|
340
|
+
def autocorrect(node); end
|
|
341
|
+
def collapse_namespace(namespace, const); end
|
|
342
|
+
def common_instance_exec_closure?(node = nil); end
|
|
343
|
+
def const_name(node); end
|
|
344
|
+
def described_constant(node = nil); end
|
|
345
|
+
def find_usage(node, &block); end
|
|
346
|
+
def full_const_name(node); end
|
|
347
|
+
def message(offense); end
|
|
348
|
+
def namespace(node); end
|
|
349
|
+
def offensive?(node); end
|
|
350
|
+
def offensive_described_class?(node); end
|
|
351
|
+
def on_block(node); end
|
|
352
|
+
def rspec_block?(node = nil); end
|
|
353
|
+
def scope_change?(node); end
|
|
354
|
+
def scope_changing_syntax?(node = nil); end
|
|
355
|
+
def skip_blocks?; end
|
|
356
|
+
def skippable_block?(node); end
|
|
357
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
358
|
+
end
|
|
359
|
+
class RuboCop::Cop::RSpec::Dialect < RuboCop::Cop::RSpec::Cop
|
|
360
|
+
def autocorrect(node); end
|
|
361
|
+
def message(node); end
|
|
362
|
+
def on_send(node); end
|
|
363
|
+
def rspec_method?(node = nil); end
|
|
364
|
+
include RuboCop::Cop::MethodPreference
|
|
365
|
+
end
|
|
366
|
+
class RuboCop::Cop::RSpec::EmptyExampleGroup < RuboCop::Cop::RSpec::Cop
|
|
367
|
+
def contains_example?(node0); end
|
|
368
|
+
def custom_include?(method_name); end
|
|
369
|
+
def custom_include_methods; end
|
|
370
|
+
def on_block(node); end
|
|
371
|
+
end
|
|
372
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < RuboCop::Cop::RSpec::Cop
|
|
373
|
+
def on_block(node); end
|
|
374
|
+
include RuboCop::RSpec::BlankLineSeparation
|
|
375
|
+
end
|
|
376
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < RuboCop::Cop::RSpec::Cop
|
|
377
|
+
def on_block(node); end
|
|
378
|
+
include RuboCop::RSpec::BlankLineSeparation
|
|
379
|
+
end
|
|
380
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterHook < RuboCop::Cop::RSpec::Cop
|
|
381
|
+
def on_block(node); end
|
|
382
|
+
include RuboCop::RSpec::BlankLineSeparation
|
|
383
|
+
end
|
|
384
|
+
class RuboCop::Cop::RSpec::EmptyLineAfterSubject < RuboCop::Cop::RSpec::Cop
|
|
385
|
+
def in_spec_block?(node); end
|
|
386
|
+
def on_block(node); end
|
|
387
|
+
include RuboCop::RSpec::BlankLineSeparation
|
|
388
|
+
end
|
|
389
|
+
class RuboCop::Cop::RSpec::ExampleLength < RuboCop::Cop::RSpec::Cop
|
|
390
|
+
def code_length(node); end
|
|
391
|
+
def message(length); end
|
|
392
|
+
def on_block(node); end
|
|
393
|
+
include RuboCop::Cop::CodeLength
|
|
394
|
+
end
|
|
395
|
+
class RuboCop::Cop::RSpec::ExampleWithoutDescription < RuboCop::Cop::RSpec::Cop
|
|
396
|
+
def check_example_without_description(node); end
|
|
397
|
+
def disallow_empty_description?(node); end
|
|
398
|
+
def example_description(node = nil); end
|
|
399
|
+
def on_block(node); end
|
|
400
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
401
|
+
end
|
|
402
|
+
class RuboCop::Cop::RSpec::ExampleWording < RuboCop::Cop::RSpec::Cop
|
|
403
|
+
def add_wording_offense(node, message); end
|
|
404
|
+
def autocorrect(range); end
|
|
405
|
+
def custom_transform; end
|
|
406
|
+
def ignored_words; end
|
|
407
|
+
def it_description(node = nil); end
|
|
408
|
+
def on_block(node); end
|
|
409
|
+
def replacement_text(range); end
|
|
410
|
+
end
|
|
411
|
+
class RuboCop::Cop::RSpec::ExpectActual < RuboCop::Cop::RSpec::Cop
|
|
412
|
+
def complex_literal?(node); end
|
|
413
|
+
def expect_literal(node = nil); end
|
|
414
|
+
def literal?(node); end
|
|
415
|
+
def on_send(node); end
|
|
416
|
+
def simple_literal?(node); end
|
|
417
|
+
end
|
|
418
|
+
class RuboCop::Cop::RSpec::ExpectChange < RuboCop::Cop::RSpec::Cop
|
|
419
|
+
def autocorrect(node); end
|
|
420
|
+
def autocorrect_block_to_method_call(node); end
|
|
421
|
+
def autocorrect_method_call_to_block(node); end
|
|
422
|
+
def expect_change_with_arguments(node = nil); end
|
|
423
|
+
def expect_change_with_block(node = nil); end
|
|
424
|
+
def on_block(node); end
|
|
425
|
+
def on_send(node); end
|
|
426
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
427
|
+
end
|
|
428
|
+
class RuboCop::Cop::RSpec::ExpectInHook < RuboCop::Cop::RSpec::Cop
|
|
429
|
+
def expectation(node0); end
|
|
430
|
+
def message(expect, hook); end
|
|
431
|
+
def on_block(node); end
|
|
432
|
+
end
|
|
433
|
+
class RuboCop::Cop::RSpec::ExpectOutput < RuboCop::Cop::RSpec::Cop
|
|
434
|
+
def inside_example_scope?(node); end
|
|
435
|
+
def on_gvasgn(node); end
|
|
436
|
+
end
|
|
437
|
+
class RuboCop::Cop::RSpec::FilePath < RuboCop::Cop::RSpec::Cop
|
|
438
|
+
def camel_to_snake_case(string); end
|
|
439
|
+
def const_described?(node0); end
|
|
440
|
+
def custom_transform; end
|
|
441
|
+
def expected_path(constant); end
|
|
442
|
+
def filename_ends_with?(glob); end
|
|
443
|
+
def glob_for(arg0); end
|
|
444
|
+
def ignore_methods?; end
|
|
445
|
+
def name_glob(name); end
|
|
446
|
+
def on_top_level_describe(node, args); end
|
|
447
|
+
def relevant_rubocop_rspec_file?(_file); end
|
|
448
|
+
def routing_metadata?(node0); end
|
|
449
|
+
def routing_spec?(args); end
|
|
450
|
+
include RuboCop::RSpec::TopLevelDescribe
|
|
451
|
+
end
|
|
452
|
+
class RuboCop::Cop::RSpec::Focus < RuboCop::Cop::RSpec::Cop
|
|
453
|
+
def focus_metadata(node, &block); end
|
|
454
|
+
def focused_block?(node = nil); end
|
|
455
|
+
def metadata(node = nil); end
|
|
456
|
+
def on_send(node); end
|
|
457
|
+
end
|
|
458
|
+
class RuboCop::Cop::RSpec::HookArgument < RuboCop::Cop::RSpec::Cop
|
|
459
|
+
def argument_range(send_node); end
|
|
460
|
+
def autocorrect(node); end
|
|
461
|
+
def check_implicit(method_send); end
|
|
462
|
+
def explicit_message(scope); end
|
|
463
|
+
def hook(node, &block); end
|
|
464
|
+
def implicit_style?; end
|
|
465
|
+
def on_block(node); end
|
|
466
|
+
def scoped_hook(node = nil); end
|
|
467
|
+
def unscoped_hook(node = nil); end
|
|
468
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
469
|
+
end
|
|
470
|
+
class RuboCop::Cop::RSpec::HooksBeforeExamples < RuboCop::Cop::RSpec::Cop
|
|
471
|
+
def autocorrect(node); end
|
|
472
|
+
def check_hooks(node); end
|
|
473
|
+
def example_or_group?(node = nil); end
|
|
474
|
+
def find_first_example(node); end
|
|
475
|
+
def multiline_block?(block); end
|
|
476
|
+
def node_range(node); end
|
|
477
|
+
def node_range_with_surrounding_space(node); end
|
|
478
|
+
def on_block(node); end
|
|
479
|
+
def source(node); end
|
|
480
|
+
include RuboCop::Cop::RangeHelp
|
|
481
|
+
include RuboCop::RSpec::FinalEndLocation
|
|
482
|
+
end
|
|
483
|
+
class RuboCop::Cop::RSpec::ImplicitBlockExpectation < RuboCop::Cop::RSpec::Cop
|
|
484
|
+
def find_subject(block_node); end
|
|
485
|
+
def implicit_expect(node = nil); end
|
|
486
|
+
def lambda?(node = nil); end
|
|
487
|
+
def lambda_subject?(node = nil); end
|
|
488
|
+
def multi_statement_example_group?(node); end
|
|
489
|
+
def nearest_subject(node); end
|
|
490
|
+
def on_send(node); end
|
|
491
|
+
end
|
|
492
|
+
class RuboCop::Cop::RSpec::ImplicitExpect < RuboCop::Cop::RSpec::Cop
|
|
493
|
+
def autocorrect(node); end
|
|
494
|
+
def implicit_expect(node = nil); end
|
|
495
|
+
def is_expected_range(source_map); end
|
|
496
|
+
def offending_expect(node); end
|
|
497
|
+
def offense_message(offending_source); end
|
|
498
|
+
def on_send(node); end
|
|
499
|
+
def replacement_source(offending_source); end
|
|
500
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
501
|
+
end
|
|
502
|
+
class RuboCop::Cop::RSpec::ImplicitSubject < RuboCop::Cop::RSpec::Cop
|
|
503
|
+
def allowed_by_style?(example); end
|
|
504
|
+
def autocorrect(node); end
|
|
505
|
+
def implicit_subject?(node = nil); end
|
|
506
|
+
def on_send(node); end
|
|
507
|
+
def valid_usage?(node); end
|
|
508
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
509
|
+
end
|
|
510
|
+
class RuboCop::Cop::RSpec::InstanceSpy < RuboCop::Cop::RSpec::Cop
|
|
511
|
+
def autocorrect(node); end
|
|
512
|
+
def have_received_usage(node0); end
|
|
513
|
+
def null_double(node0); end
|
|
514
|
+
def on_block(node); end
|
|
515
|
+
end
|
|
516
|
+
class RuboCop::Cop::RSpec::InstanceVariable < RuboCop::Cop::RSpec::Cop
|
|
517
|
+
def assignment_only?; end
|
|
518
|
+
def dynamic_class?(node = nil); end
|
|
519
|
+
def inside_dynamic_class?(node); end
|
|
520
|
+
def ivar_assigned?(node0, param1); end
|
|
521
|
+
def ivar_usage(node0); end
|
|
522
|
+
def on_block(node); end
|
|
523
|
+
def spec_group?(node = nil); end
|
|
524
|
+
end
|
|
525
|
+
class RuboCop::Cop::RSpec::InvalidPredicateMatcher < RuboCop::Cop::RSpec::Cop
|
|
526
|
+
def invalid_predicate_matcher?(node = nil); end
|
|
527
|
+
def message(predicate); end
|
|
528
|
+
def on_send(node); end
|
|
529
|
+
def predicate?(name); end
|
|
530
|
+
end
|
|
531
|
+
class RuboCop::Cop::RSpec::ItBehavesLike < RuboCop::Cop::RSpec::Cop
|
|
532
|
+
def autocorrect(node); end
|
|
533
|
+
def example_inclusion_offense(node = nil, param1); end
|
|
534
|
+
def message(_node); end
|
|
535
|
+
def on_send(node); end
|
|
536
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
537
|
+
end
|
|
538
|
+
class RuboCop::Cop::RSpec::IteratedExpectation < RuboCop::Cop::RSpec::Cop
|
|
539
|
+
def each?(node = nil); end
|
|
540
|
+
def expectation?(node = nil, param1); end
|
|
541
|
+
def on_block(node); end
|
|
542
|
+
def only_expectations?(body, arg); end
|
|
543
|
+
def single_expectation?(body, arg); end
|
|
544
|
+
end
|
|
545
|
+
class RuboCop::Cop::RSpec::LeadingSubject < RuboCop::Cop::RSpec::Cop
|
|
546
|
+
def autocorrect(node); end
|
|
547
|
+
def check_previous_nodes(node); end
|
|
548
|
+
def find_first_offending_node(node); end
|
|
549
|
+
def in_spec_block?(node); end
|
|
550
|
+
def node_range(node); end
|
|
551
|
+
def offending?(node); end
|
|
552
|
+
def on_block(node); end
|
|
553
|
+
include RuboCop::Cop::RangeHelp
|
|
554
|
+
end
|
|
555
|
+
class RuboCop::Cop::RSpec::LeakyConstantDeclaration < RuboCop::Cop::RSpec::Cop
|
|
556
|
+
def in_example_or_shared_group?(node = nil); end
|
|
557
|
+
def inside_describe_block?(node); end
|
|
558
|
+
def on_casgn(node); end
|
|
559
|
+
def on_class(node); end
|
|
560
|
+
def on_module(node); end
|
|
561
|
+
end
|
|
562
|
+
class RuboCop::Cop::RSpec::LetBeforeExamples < RuboCop::Cop::RSpec::Cop
|
|
563
|
+
def autocorrect(node); end
|
|
564
|
+
def check_let_declarations(node); end
|
|
565
|
+
def example_or_group?(node = nil); end
|
|
566
|
+
def find_first_example(node); end
|
|
567
|
+
def multiline_block?(block); end
|
|
568
|
+
def node_range(node); end
|
|
569
|
+
def node_range_with_surrounding_space(node); end
|
|
570
|
+
def on_block(node); end
|
|
571
|
+
def source(node); end
|
|
572
|
+
include RuboCop::Cop::RangeHelp
|
|
573
|
+
include RuboCop::RSpec::FinalEndLocation
|
|
574
|
+
end
|
|
575
|
+
class RuboCop::Cop::RSpec::LetSetup < RuboCop::Cop::RSpec::Cop
|
|
576
|
+
def let_bang(node0); end
|
|
577
|
+
def method_called?(node0, param1); end
|
|
578
|
+
def on_block(node); end
|
|
579
|
+
def unused_let_bang(node); end
|
|
580
|
+
end
|
|
581
|
+
class RuboCop::Cop::RSpec::MessageChain < RuboCop::Cop::RSpec::Cop
|
|
582
|
+
def message(node); end
|
|
583
|
+
def message_chain(node = nil); end
|
|
584
|
+
def on_send(node); end
|
|
585
|
+
end
|
|
586
|
+
class RuboCop::Cop::RSpec::MessageExpectation < RuboCop::Cop::RSpec::Cop
|
|
587
|
+
def message_expectation(node = nil); end
|
|
588
|
+
def on_send(node); end
|
|
589
|
+
def preferred_style?(expectation); end
|
|
590
|
+
def receive_message?(node0); end
|
|
591
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
592
|
+
end
|
|
593
|
+
class RuboCop::Cop::RSpec::MessageSpies < RuboCop::Cop::RSpec::Cop
|
|
594
|
+
def error_message(receiver); end
|
|
595
|
+
def message_expectation(node = nil); end
|
|
596
|
+
def on_send(node); end
|
|
597
|
+
def preferred_style?(expectation); end
|
|
598
|
+
def receive_message(node0); end
|
|
599
|
+
def receive_message_matcher(node); end
|
|
600
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
601
|
+
end
|
|
602
|
+
class RuboCop::Cop::RSpec::MissingExampleGroupArgument < RuboCop::Cop::RSpec::Cop
|
|
603
|
+
def on_block(node); end
|
|
604
|
+
end
|
|
605
|
+
class RuboCop::Cop::RSpec::MultipleDescribes < RuboCop::Cop::RSpec::Cop
|
|
606
|
+
def on_top_level_describe(node, _args); end
|
|
607
|
+
include RuboCop::RSpec::TopLevelDescribe
|
|
608
|
+
end
|
|
609
|
+
class RuboCop::Cop::RSpec::MultipleExpectations < RuboCop::Cop::RSpec::Cop
|
|
610
|
+
def aggregate_failures?(example_or_group_node); end
|
|
611
|
+
def aggregate_failures_block?(node = nil); end
|
|
612
|
+
def aggregate_failures_present?(node); end
|
|
613
|
+
def disabled_aggregate_failures?(node0); end
|
|
614
|
+
def example_with_aggregate_failures?(example_node); end
|
|
615
|
+
def expect?(node = nil); end
|
|
616
|
+
def find_aggregate_failures(example_node); end
|
|
617
|
+
def find_expectation(node, &block); end
|
|
618
|
+
def flag_example(node, expectation_count:); end
|
|
619
|
+
def max_expectations; end
|
|
620
|
+
def metadata(example_or_group_node); end
|
|
621
|
+
def on_block(node); end
|
|
622
|
+
def with_aggregate_failures?(node0); end
|
|
623
|
+
include RuboCop::Cop::ConfigurableMax
|
|
624
|
+
end
|
|
625
|
+
class RuboCop::Cop::RSpec::MultipleSubjects < RuboCop::Cop::RSpec::Cop
|
|
626
|
+
def autocorrect(node); end
|
|
627
|
+
def named_subject?(node); end
|
|
628
|
+
def on_block(node); end
|
|
629
|
+
def remove_autocorrect(node); end
|
|
630
|
+
def rename_autocorrect(node); end
|
|
631
|
+
include RuboCop::Cop::RangeHelp
|
|
632
|
+
end
|
|
633
|
+
class RuboCop::Cop::RSpec::NamedSubject < RuboCop::Cop::RSpec::Cop
|
|
634
|
+
def ignored_shared_example?(node); end
|
|
635
|
+
def on_block(node); end
|
|
636
|
+
def rspec_block?(node = nil); end
|
|
637
|
+
def shared_example?(node = nil); end
|
|
638
|
+
def subject_usage(node0); end
|
|
639
|
+
end
|
|
640
|
+
class RuboCop::Cop::RSpec::NestedGroups < RuboCop::Cop::RSpec::Cop
|
|
641
|
+
def find_contexts(node0); end
|
|
642
|
+
def find_nested_contexts(node, nesting: nil, &block); end
|
|
643
|
+
def max_nesting; end
|
|
644
|
+
def max_nesting_config; end
|
|
645
|
+
def message(nesting); end
|
|
646
|
+
def on_top_level_describe(node, _args); end
|
|
647
|
+
include RuboCop::Cop::ConfigurableMax
|
|
648
|
+
include RuboCop::RSpec::TopLevelDescribe
|
|
649
|
+
end
|
|
650
|
+
class RuboCop::Cop::RSpec::NotToNot < RuboCop::Cop::RSpec::Cop
|
|
651
|
+
def autocorrect(node); end
|
|
652
|
+
def message(_node); end
|
|
653
|
+
def not_to_not_offense(node = nil, param1); end
|
|
654
|
+
def on_send(node); end
|
|
655
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
656
|
+
end
|
|
657
|
+
class RuboCop::Cop::RSpec::OverwritingSetup < RuboCop::Cop::RSpec::Cop
|
|
658
|
+
def common_setup?(node); end
|
|
659
|
+
def find_duplicates(node); end
|
|
660
|
+
def first_argument_name(node = nil); end
|
|
661
|
+
def on_block(node); end
|
|
662
|
+
def setup?(node = nil); end
|
|
663
|
+
end
|
|
664
|
+
class RuboCop::Cop::RSpec::Pending < RuboCop::Cop::RSpec::Cop
|
|
665
|
+
def metadata(node = nil); end
|
|
666
|
+
def on_send(node); end
|
|
667
|
+
def pending_block?(node = nil); end
|
|
668
|
+
def skip_node?(node); end
|
|
669
|
+
def skip_symbol?(symbol_node); end
|
|
670
|
+
def skipped_from_metadata?(node); end
|
|
671
|
+
end
|
|
672
|
+
module RuboCop::Cop::RSpec::InflectedHelper
|
|
673
|
+
def autocorrect_inflected(node); end
|
|
674
|
+
def be_bool?(node = nil); end
|
|
675
|
+
def be_boolthy?(node = nil); end
|
|
676
|
+
def boolean_matcher?(node); end
|
|
677
|
+
def check_inflected(node); end
|
|
678
|
+
def message_inflected(predicate); end
|
|
679
|
+
def predicate?(sym); end
|
|
680
|
+
def predicate_in_actual?(node = nil); end
|
|
681
|
+
def remove_predicate(corrector, predicate); end
|
|
682
|
+
def rewrite_matcher(corrector, predicate, matcher); end
|
|
683
|
+
def to_predicate_matcher(name); end
|
|
684
|
+
def true?(to_symbol, matcher); end
|
|
685
|
+
extend RuboCop::NodePattern::Macros
|
|
686
|
+
include RuboCop::RSpec::Language
|
|
687
|
+
end
|
|
688
|
+
module RuboCop::Cop::RSpec::ExplicitHelper
|
|
689
|
+
def autocorrect_explicit(node); end
|
|
690
|
+
def autocorrect_explicit_block(node); end
|
|
691
|
+
def autocorrect_explicit_send(node); end
|
|
692
|
+
def check_explicit(node); end
|
|
693
|
+
def corrector_explicit(to_node, actual, matcher, block_child); end
|
|
694
|
+
def message_explicit(matcher); end
|
|
695
|
+
def move_predicate(corrector, actual, matcher, block_child); end
|
|
696
|
+
def predicate_matcher?(node = nil); end
|
|
697
|
+
def predicate_matcher_block?(node = nil); end
|
|
698
|
+
def predicate_matcher_name?(name); end
|
|
699
|
+
def replacement_matcher(node); end
|
|
700
|
+
def to_predicate_method(matcher); end
|
|
701
|
+
extend RuboCop::NodePattern::Macros
|
|
702
|
+
include RuboCop::RSpec::Language
|
|
703
|
+
end
|
|
704
|
+
class RuboCop::Cop::RSpec::PredicateMatcher < RuboCop::Cop::RSpec::Cop
|
|
705
|
+
def args_loc(send_node); end
|
|
706
|
+
def autocorrect(node); end
|
|
707
|
+
def block_loc(send_node); end
|
|
708
|
+
def on_block(node); end
|
|
709
|
+
def on_send(node); end
|
|
710
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
711
|
+
include RuboCop::Cop::RSpec::ExplicitHelper
|
|
712
|
+
include RuboCop::Cop::RSpec::InflectedHelper
|
|
713
|
+
end
|
|
714
|
+
class RuboCop::Cop::RSpec::ReceiveCounts < RuboCop::Cop::RSpec::Cop
|
|
715
|
+
def autocorrect(node); end
|
|
716
|
+
def matcher_for(method, count); end
|
|
717
|
+
def message_for(node, source); end
|
|
718
|
+
def on_send(node); end
|
|
719
|
+
def range(node, offending_node); end
|
|
720
|
+
def receive_counts(node = nil); end
|
|
721
|
+
def stub?(node0); end
|
|
722
|
+
end
|
|
723
|
+
class RuboCop::Cop::RSpec::ReceiveNever < RuboCop::Cop::RSpec::Cop
|
|
724
|
+
def autocorrect(node); end
|
|
725
|
+
def method_on_stub?(node0); end
|
|
726
|
+
def on_send(node); end
|
|
727
|
+
end
|
|
728
|
+
class RuboCop::Cop::RSpec::RepeatedDescription < RuboCop::Cop::RSpec::Cop
|
|
729
|
+
def on_block(node); end
|
|
730
|
+
def repeated_descriptions(node); end
|
|
731
|
+
end
|
|
732
|
+
class RuboCop::Cop::RSpec::RepeatedExample < RuboCop::Cop::RSpec::Cop
|
|
733
|
+
def example_signature(example); end
|
|
734
|
+
def on_block(node); end
|
|
735
|
+
def repeated_examples(node); end
|
|
736
|
+
end
|
|
737
|
+
class RuboCop::Cop::RSpec::ReturnFromStub < RuboCop::Cop::RSpec::Cop
|
|
738
|
+
def and_return_value(node0); end
|
|
739
|
+
def autocorrect(node); end
|
|
740
|
+
def check_and_return_call(node); end
|
|
741
|
+
def check_block_body(block); end
|
|
742
|
+
def contains_stub?(node0); end
|
|
743
|
+
def dynamic?(node); end
|
|
744
|
+
def on_block(node); end
|
|
745
|
+
def on_send(node); end
|
|
746
|
+
include RuboCop::Cop::ConfigurableEnforcedStyle
|
|
747
|
+
end
|
|
748
|
+
class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector
|
|
749
|
+
def arg; end
|
|
750
|
+
def call(corrector); end
|
|
751
|
+
def hash_without_braces?; end
|
|
752
|
+
def heredoc?; end
|
|
753
|
+
def initialize(node); end
|
|
754
|
+
def node; end
|
|
755
|
+
def range; end
|
|
756
|
+
def receiver; end
|
|
757
|
+
def replacement; end
|
|
758
|
+
end
|
|
759
|
+
class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector
|
|
760
|
+
def block; end
|
|
761
|
+
def body; end
|
|
762
|
+
def call(corrector); end
|
|
763
|
+
def heredoc?; end
|
|
764
|
+
def initialize(block); end
|
|
765
|
+
def node; end
|
|
766
|
+
end
|
|
767
|
+
class RuboCop::Cop::RSpec::ScatteredLet < RuboCop::Cop::RSpec::Cop
|
|
768
|
+
def check_let_declarations(body); end
|
|
769
|
+
def on_block(node); end
|
|
770
|
+
end
|
|
771
|
+
class RuboCop::Cop::RSpec::ScatteredSetup < RuboCop::Cop::RSpec::Cop
|
|
772
|
+
def analyzable_hooks(node); end
|
|
773
|
+
def on_block(node); end
|
|
774
|
+
end
|
|
775
|
+
class RuboCop::Cop::RSpec::SharedContext < RuboCop::Cop::RSpec::Cop
|
|
776
|
+
def add_shared_item_offense(node, message); end
|
|
777
|
+
def autocorrect(node); end
|
|
778
|
+
def context?(node0); end
|
|
779
|
+
def context_with_only_examples(node); end
|
|
780
|
+
def examples?(node0); end
|
|
781
|
+
def examples_with_only_context(node); end
|
|
782
|
+
def on_block(node); end
|
|
783
|
+
def shared_context(node = nil); end
|
|
784
|
+
def shared_example(node = nil); end
|
|
785
|
+
end
|
|
786
|
+
class RuboCop::Cop::RSpec::SharedExamples < RuboCop::Cop::RSpec::Cop
|
|
787
|
+
def autocorrect(node); end
|
|
788
|
+
def on_send(node); end
|
|
789
|
+
def shared_examples(node = nil); end
|
|
790
|
+
end
|
|
791
|
+
class RuboCop::Cop::RSpec::SharedExamples::Checker
|
|
792
|
+
def initialize(node); end
|
|
793
|
+
def message; end
|
|
794
|
+
def node; end
|
|
795
|
+
def preferred_style; end
|
|
796
|
+
def symbol; end
|
|
797
|
+
def wrap_with_single_quotes(string); end
|
|
798
|
+
end
|
|
799
|
+
class RuboCop::Cop::RSpec::SingleArgumentMessageChain < RuboCop::Cop::RSpec::Cop
|
|
800
|
+
def autocorrect(node); end
|
|
801
|
+
def autocorrect_array_arg(corrector, arg); end
|
|
802
|
+
def autocorrect_hash_arg(corrector, arg); end
|
|
803
|
+
def key_to_arg(node); end
|
|
804
|
+
def message(node); end
|
|
805
|
+
def message_chain(node = nil); end
|
|
806
|
+
def on_send(node); end
|
|
807
|
+
def replacement(method); end
|
|
808
|
+
def single_element_array?(node); end
|
|
809
|
+
def single_key_hash?(node = nil); end
|
|
810
|
+
def valid_usage?(node); end
|
|
811
|
+
end
|
|
812
|
+
class RuboCop::Cop::RSpec::SubjectStub < RuboCop::Cop::RSpec::Cop
|
|
813
|
+
def find_subject(node, parent: nil, &block); end
|
|
814
|
+
def find_subject_expectation(node, subject_name, &block); end
|
|
815
|
+
def find_subject_stub(node, &block); end
|
|
816
|
+
def message_expectation?(node = nil, param1); end
|
|
817
|
+
def message_expectation_matcher?(node0); end
|
|
818
|
+
def on_block(node); end
|
|
819
|
+
def redefines_subject?(node); end
|
|
820
|
+
def subject(node = nil); end
|
|
821
|
+
end
|
|
822
|
+
class RuboCop::Cop::RSpec::UnspecifiedException < RuboCop::Cop::RSpec::Cop
|
|
823
|
+
def block_with_args?(node); end
|
|
824
|
+
def empty_exception_matcher?(node); end
|
|
825
|
+
def empty_raise_error_or_exception(node = nil); end
|
|
826
|
+
def on_send(node); end
|
|
827
|
+
end
|
|
828
|
+
class RuboCop::Cop::RSpec::VerifiedDoubles < RuboCop::Cop::RSpec::Cop
|
|
829
|
+
def on_send(node); end
|
|
830
|
+
def symbol?(name); end
|
|
831
|
+
def unverified_double(node = nil); end
|
|
832
|
+
end
|
|
833
|
+
class RuboCop::Cop::RSpec::VoidExpect < RuboCop::Cop::RSpec::Cop
|
|
834
|
+
def check_expect(node); end
|
|
835
|
+
def expect?(node = nil); end
|
|
836
|
+
def expect_block?(node = nil); end
|
|
837
|
+
def on_block(node); end
|
|
838
|
+
def on_send(node); end
|
|
839
|
+
def void?(expect); end
|
|
840
|
+
end
|
|
841
|
+
class RuboCop::Cop::RSpec::Yield < RuboCop::Cop::RSpec::Cop
|
|
842
|
+
def autocorrect(node); end
|
|
843
|
+
def block_arg(node = nil); end
|
|
844
|
+
def block_call?(node = nil, param1); end
|
|
845
|
+
def block_range(node); end
|
|
846
|
+
def calling_block?(node, block); end
|
|
847
|
+
def convert_block_to_yield(node); end
|
|
848
|
+
def generate_replacement(node); end
|
|
849
|
+
def method_on_stub?(node0); end
|
|
850
|
+
def on_block(node); end
|
|
851
|
+
include RuboCop::Cop::RangeHelp
|
|
852
|
+
end
|
|
853
|
+
module RuboCop::Cop::Layout
|
|
854
|
+
end
|
|
855
|
+
class RuboCop::Cop::Layout::ExtraSpacing < RuboCop::Cop::Cop
|
|
856
|
+
def self.autocorrect_incompatible_with; end
|
|
857
|
+
end
|
|
858
|
+
class RuboCop::AST::Node < Parser::AST::Node
|
|
859
|
+
include RuboCop::RSpec::Node
|
|
860
|
+
end
|