dry-monads-sorbet 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +14 -22
- data/.gitignore +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -6
- data/bin/tapioca +29 -0
- data/dry-monads-sorbet.gemspec +3 -2
- data/lib/bundled_rbi/dry-monads.rbi +3 -3
- data/lib/dry/monads/sorbet/version.rb +1 -1
- data/nix/sources.json +14 -0
- data/nix/sources.nix +174 -0
- data/run_ci.sh +7 -0
- data/shell.nix +20 -0
- data/sorbet/config +6 -0
- data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +915 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
- data/sorbet/rbi/gems/dry-core@0.7.1.rbi +92 -0
- data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +28 -0
- data/sorbet/rbi/gems/dry-monads@1.4.0.rbi +697 -0
- data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
- data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
- data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
- data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
- data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
- data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
- data/sorbet/rbi/gems/rb-readline@0.5.5.rbi +884 -0
- data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
- data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
- data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2345 -1766
- data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
- data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
- data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
- data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
- data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
- data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
- data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +65 -68
- data/.ruby-version +0 -1
- data/sorbet/rbi/gems/activesupport.rbi +0 -1722
- data/sorbet/rbi/gems/byebug.rbi +0 -1041
- data/sorbet/rbi/gems/coderay.rbi +0 -285
- data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
- data/sorbet/rbi/gems/docile.rbi +0 -32
- data/sorbet/rbi/gems/dry-core.rbi +0 -38
- data/sorbet/rbi/gems/dry-equalizer.rbi +0 -26
- data/sorbet/rbi/gems/dry-monads.rbi +0 -510
- data/sorbet/rbi/gems/em-websocket.rbi +0 -225
- data/sorbet/rbi/gems/eventmachine.rbi +0 -489
- data/sorbet/rbi/gems/ffaker.rbi +0 -60
- data/sorbet/rbi/gems/guard.rbi +0 -397
- data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
- data/sorbet/rbi/gems/i18n.rbi +0 -133
- data/sorbet/rbi/gems/kwalify.rbi +0 -340
- data/sorbet/rbi/gems/listen.rbi +0 -324
- data/sorbet/rbi/gems/lumberjack.rbi +0 -300
- data/sorbet/rbi/gems/method_source.rbi +0 -64
- data/sorbet/rbi/gems/multi_json.rbi +0 -62
- data/sorbet/rbi/gems/nenv.rbi +0 -60
- data/sorbet/rbi/gems/notiffany.rbi +0 -215
- data/sorbet/rbi/gems/parallel.rbi +0 -82
- data/sorbet/rbi/gems/parser.rbi +0 -1846
- data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
- data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
- data/sorbet/rbi/gems/rb-readline.rbi +0 -767
- data/sorbet/rbi/gems/reek.rbi +0 -1027
- data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
- data/sorbet/rbi/gems/rspec-support.rbi +0 -280
- data/sorbet/rbi/gems/rspec.rbi +0 -15
- data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
- data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
- data/sorbet/rbi/gems/rubocop.rbi +0 -6841
- data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
- data/sorbet/rbi/gems/shellany.rbi +0 -29
- data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
- data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
- data/sorbet/rbi/gems/simplecov.rbi +0 -361
- data/sorbet/rbi/gems/sqlite3.rbi +0 -354
- data/sorbet/rbi/gems/stackprof.rbi +0 -52
- data/sorbet/rbi/gems/thor.rbi +0 -32
- data/sorbet/rbi/gems/thread_safe.rbi +0 -82
- data/sorbet/rbi/gems/timecop.rbi +0 -98
- data/sorbet/rbi/gems/tzinfo.rbi +0 -406
- data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
- data/sorbet/rbi/hidden-definitions/errors.txt +0 -7267
- data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14661
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
- data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
- data/sorbet/rbi/todo.rbi +0 -8
@@ -1,937 +0,0 @@
|
|
1
|
-
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
-
# srb rbi gems
|
3
|
-
|
4
|
-
# typed: strict
|
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.42.0
|
11
|
-
|
12
|
-
module RuboCop
|
13
|
-
end
|
14
|
-
module RuboCop::RSpec
|
15
|
-
end
|
16
|
-
module RuboCop::RSpec::Version
|
17
|
-
end
|
18
|
-
module RuboCop::RSpec::Inject
|
19
|
-
def self.defaults!; end
|
20
|
-
end
|
21
|
-
module RuboCop::RSpec::Node
|
22
|
-
def recursive_literal_or_const?; end
|
23
|
-
end
|
24
|
-
module RuboCop::RSpec::TopLevelDescribe
|
25
|
-
def describe_statement_children(node); end
|
26
|
-
def on_send(node); end
|
27
|
-
def root_node; end
|
28
|
-
def single_top_level_describe?; end
|
29
|
-
def top_level_describe?(node); end
|
30
|
-
def top_level_nodes; end
|
31
|
-
extend RuboCop::AST::NodePattern::Macros
|
32
|
-
end
|
33
|
-
class RuboCop::RSpec::Wording
|
34
|
-
def append_suffix(word, suffix); end
|
35
|
-
def ignored_word?(word); end
|
36
|
-
def ignores; end
|
37
|
-
def initialize(text, ignore:, replace:); end
|
38
|
-
def remove_should_and_pluralize; end
|
39
|
-
def replace_prefix(pattern, replacement); end
|
40
|
-
def replacements; end
|
41
|
-
def rewrite; end
|
42
|
-
def substitute(word); end
|
43
|
-
def text; end
|
44
|
-
def uppercase?(word); end
|
45
|
-
end
|
46
|
-
module RuboCop::RSpec::Language
|
47
|
-
end
|
48
|
-
class RuboCop::RSpec::Language::SelectorSet
|
49
|
-
def +(other); end
|
50
|
-
def ==(other); end
|
51
|
-
def block_or_block_pass_pattern; end
|
52
|
-
def block_pass_pattern; end
|
53
|
-
def block_pattern; end
|
54
|
-
def include?(selector); end
|
55
|
-
def initialize(selectors); end
|
56
|
-
def node_pattern; end
|
57
|
-
def node_pattern_union; end
|
58
|
-
def selectors; end
|
59
|
-
def send_pattern; end
|
60
|
-
end
|
61
|
-
module RuboCop::RSpec::Language::ExampleGroups
|
62
|
-
end
|
63
|
-
module RuboCop::RSpec::Language::SharedGroups
|
64
|
-
end
|
65
|
-
module RuboCop::RSpec::Language::Includes
|
66
|
-
end
|
67
|
-
module RuboCop::RSpec::Language::Examples
|
68
|
-
end
|
69
|
-
module RuboCop::RSpec::Language::Hooks
|
70
|
-
end
|
71
|
-
module RuboCop::RSpec::Language::Hooks::Scopes
|
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 shared_group?(node = nil); end
|
88
|
-
def spec_group?(node = nil); end
|
89
|
-
def subject?(node = nil); end
|
90
|
-
extend RuboCop::AST::NodePattern::Macros
|
91
|
-
end
|
92
|
-
module RuboCop::RSpec::TopLevelGroup
|
93
|
-
def example_or_shared_group?(node = nil); end
|
94
|
-
def on_block(node); end
|
95
|
-
def root_node; end
|
96
|
-
def top_level_group?(node); end
|
97
|
-
def top_level_groups; end
|
98
|
-
def top_level_nodes; end
|
99
|
-
extend RuboCop::AST::NodePattern::Macros
|
100
|
-
include RuboCop::RSpec::Language
|
101
|
-
end
|
102
|
-
class RuboCop::RSpec::Concept
|
103
|
-
def ==(other); end
|
104
|
-
def eql?(other); end
|
105
|
-
def hash; end
|
106
|
-
def initialize(node); end
|
107
|
-
def node; end
|
108
|
-
def to_node; end
|
109
|
-
extend RuboCop::AST::NodePattern::Macros
|
110
|
-
include RuboCop::RSpec::Language
|
111
|
-
include RuboCop::RSpec::Language::NodePattern
|
112
|
-
end
|
113
|
-
class RuboCop::RSpec::ExampleGroup < RuboCop::RSpec::Concept
|
114
|
-
def examples; end
|
115
|
-
def find_all(node, predicate); end
|
116
|
-
def find_all_in_scope(node, predicate); end
|
117
|
-
def hooks; end
|
118
|
-
def lets; end
|
119
|
-
def scope_change?(node = nil); end
|
120
|
-
def subjects; end
|
121
|
-
end
|
122
|
-
class RuboCop::RSpec::Example < RuboCop::RSpec::Concept
|
123
|
-
def definition; end
|
124
|
-
def doc_string; end
|
125
|
-
def extract_doc_string(node = nil); end
|
126
|
-
def extract_implementation(node = nil); end
|
127
|
-
def extract_metadata(node = nil); end
|
128
|
-
def implementation; end
|
129
|
-
def metadata; end
|
130
|
-
end
|
131
|
-
class RuboCop::RSpec::Hook < RuboCop::RSpec::Concept
|
132
|
-
def example?; end
|
133
|
-
def extract_metadata(node = nil); end
|
134
|
-
def knowable_scope?; end
|
135
|
-
def metadata; end
|
136
|
-
def name; end
|
137
|
-
def scope; end
|
138
|
-
def scope_argument; end
|
139
|
-
def scope_name; end
|
140
|
-
def transform_metadata(meta); end
|
141
|
-
def transform_true(node); end
|
142
|
-
def valid_scope?(node); end
|
143
|
-
end
|
144
|
-
module RuboCop::RSpec::Variable
|
145
|
-
def variable_definition?(node = nil); end
|
146
|
-
extend RuboCop::AST::NodePattern::Macros
|
147
|
-
include RuboCop::RSpec::Language
|
148
|
-
end
|
149
|
-
module RuboCop::Cop
|
150
|
-
end
|
151
|
-
module RuboCop::Cop::RSpec
|
152
|
-
end
|
153
|
-
class RuboCop::Cop::RSpec::Cop < RuboCop::Cop::Base
|
154
|
-
def all_cops_config; end
|
155
|
-
def relevant_file?(file); end
|
156
|
-
def relevant_rubocop_rspec_file?(file); end
|
157
|
-
def rspec_pattern; end
|
158
|
-
def rspec_pattern_config; end
|
159
|
-
def rspec_pattern_config?; end
|
160
|
-
def self.inherited(subclass); end
|
161
|
-
include RuboCop::RSpec::Language
|
162
|
-
include RuboCop::RSpec::Language::NodePattern
|
163
|
-
end
|
164
|
-
class RuboCop::RSpec::AlignLetBrace
|
165
|
-
def adjacent_let_chunks; end
|
166
|
-
def indent_for(node); end
|
167
|
-
def initialize(root, token); end
|
168
|
-
def let_group_for(let); end
|
169
|
-
def let_token(node); end
|
170
|
-
def offending_tokens; end
|
171
|
-
def root; end
|
172
|
-
def single_line_lets; end
|
173
|
-
def target_column_for(let); end
|
174
|
-
def token; end
|
175
|
-
include RuboCop::RSpec::Language::NodePattern
|
176
|
-
end
|
177
|
-
module RuboCop::RSpec::FactoryBot
|
178
|
-
def self.attribute_defining_methods; end
|
179
|
-
def self.reserved_methods; end
|
180
|
-
end
|
181
|
-
module RuboCop::RSpec::FinalEndLocation
|
182
|
-
def final_end_location(start_node); end
|
183
|
-
end
|
184
|
-
module RuboCop::RSpec::BlankLineSeparation
|
185
|
-
def last_child?(node); end
|
186
|
-
def missing_separating_line(node); end
|
187
|
-
def offending_loc(last_line); end
|
188
|
-
include RuboCop::Cop::RangeHelp
|
189
|
-
include RuboCop::RSpec::FinalEndLocation
|
190
|
-
end
|
191
|
-
module RuboCop::RSpec::Corrector
|
192
|
-
end
|
193
|
-
class RuboCop::RSpec::Corrector::MoveNode
|
194
|
-
def corrector; end
|
195
|
-
def initialize(node, corrector, processed_source); end
|
196
|
-
def move_after(other); end
|
197
|
-
def move_before(other); end
|
198
|
-
def node_range(node); end
|
199
|
-
def node_range_with_surrounding_space(node); end
|
200
|
-
def original; end
|
201
|
-
def processed_source; end
|
202
|
-
def source(node); 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(corrector, 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
|
-
extend RuboCop::Cop::AutoCorrector
|
218
|
-
end
|
219
|
-
class RuboCop::Cop::RSpec::Capybara::FeatureMethods < RuboCop::Cop::RSpec::Cop
|
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 message(range); end
|
225
|
-
def on_block(node); end
|
226
|
-
def root_node?(node); end
|
227
|
-
def root_with_siblings?(node); end
|
228
|
-
def spec?(node = nil); end
|
229
|
-
extend RuboCop::Cop::AutoCorrector
|
230
|
-
end
|
231
|
-
class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < RuboCop::Cop::RSpec::Cop
|
232
|
-
def capybara_matcher?(method_name); end
|
233
|
-
def on_send(node); end
|
234
|
-
def visible_false?(node = nil); end
|
235
|
-
def visible_true?(node = nil); end
|
236
|
-
end
|
237
|
-
module RuboCop::Cop::RSpec::FactoryBot
|
238
|
-
end
|
239
|
-
class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < RuboCop::Cop::RSpec::Cop
|
240
|
-
def association?(node = nil); end
|
241
|
-
def attribute_defining_method?(method_name); end
|
242
|
-
def autocorrect(corrector, node); end
|
243
|
-
def autocorrect_replacing_parens(corrector, node); end
|
244
|
-
def autocorrect_without_parens(corrector, node); end
|
245
|
-
def braces(node); end
|
246
|
-
def factory_attributes(node = nil); end
|
247
|
-
def offensive_receiver?(receiver, node); end
|
248
|
-
def on_block(node); end
|
249
|
-
def proc?(attribute); end
|
250
|
-
def receiver_matches_first_block_argument?(receiver, node); end
|
251
|
-
def reserved_method?(method_name); end
|
252
|
-
def value_hash_without_braces?(node); end
|
253
|
-
def value_matcher(node = nil); end
|
254
|
-
extend RuboCop::Cop::AutoCorrector
|
255
|
-
end
|
256
|
-
class RuboCop::Cop::RSpec::FactoryBot::CreateList < RuboCop::Cop::RSpec::Cop
|
257
|
-
def contains_only_factory?(node); end
|
258
|
-
def factory_call(node = nil); end
|
259
|
-
def factory_list_call(node = nil); end
|
260
|
-
def n_times_block_without_arg?(node = nil); end
|
261
|
-
def on_block(node); end
|
262
|
-
def on_send(node); end
|
263
|
-
extend RuboCop::Cop::AutoCorrector
|
264
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
265
|
-
end
|
266
|
-
class RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
|
267
|
-
def build_options_string(options); end
|
268
|
-
def format_method_call(node, method, arguments); end
|
269
|
-
def format_receiver(receiver); end
|
270
|
-
end
|
271
|
-
class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector < RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
|
272
|
-
def call(corrector); end
|
273
|
-
def generate_n_times_block(node); end
|
274
|
-
def initialize(node); end
|
275
|
-
def node; end
|
276
|
-
end
|
277
|
-
class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector < RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
|
278
|
-
def build_arguments(node, count); end
|
279
|
-
def call(corrector); end
|
280
|
-
def call_replacement(node); end
|
281
|
-
def call_with_block_replacement(node); end
|
282
|
-
def format_block(node); end
|
283
|
-
def format_multiline_block(node); end
|
284
|
-
def format_singeline_block(node); end
|
285
|
-
def initialize(node); end
|
286
|
-
def node; end
|
287
|
-
end
|
288
|
-
class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < RuboCop::Cop::RSpec::Cop
|
289
|
-
def allowed?(const_name); end
|
290
|
-
def class_name(node = nil); end
|
291
|
-
def on_send(node); end
|
292
|
-
extend RuboCop::Cop::AutoCorrector
|
293
|
-
end
|
294
|
-
class RuboCop::Cop::RSpec::AlignLeftLetBrace < RuboCop::Cop::RSpec::Cop
|
295
|
-
def on_new_investigation; end
|
296
|
-
def self.autocorrect_incompatible_with; end
|
297
|
-
extend RuboCop::Cop::AutoCorrector
|
298
|
-
end
|
299
|
-
class RuboCop::Cop::RSpec::AlignRightLetBrace < RuboCop::Cop::RSpec::Cop
|
300
|
-
def on_new_investigation; end
|
301
|
-
def self.autocorrect_incompatible_with; end
|
302
|
-
extend RuboCop::Cop::AutoCorrector
|
303
|
-
end
|
304
|
-
class RuboCop::Cop::RSpec::AnyInstance < RuboCop::Cop::RSpec::Cop
|
305
|
-
def disallowed_stub(node = nil); end
|
306
|
-
def on_send(node); end
|
307
|
-
end
|
308
|
-
class RuboCop::Cop::RSpec::AroundBlock < RuboCop::Cop::RSpec::Cop
|
309
|
-
def add_no_arg_offense(node); end
|
310
|
-
def check_for_unused_proxy(block, proxy); end
|
311
|
-
def find_arg_usage(node0); end
|
312
|
-
def hook(node = nil); end
|
313
|
-
def on_block(node); end
|
314
|
-
end
|
315
|
-
class RuboCop::Cop::RSpec::Be < RuboCop::Cop::RSpec::Cop
|
316
|
-
def be_without_args(node = nil); end
|
317
|
-
def on_send(node); end
|
318
|
-
end
|
319
|
-
class RuboCop::Cop::RSpec::BeEql < RuboCop::Cop::RSpec::Cop
|
320
|
-
def eql_type_with_identity(node = nil); end
|
321
|
-
def on_send(node); end
|
322
|
-
extend RuboCop::Cop::AutoCorrector
|
323
|
-
end
|
324
|
-
class RuboCop::Cop::RSpec::BeforeAfterAll < RuboCop::Cop::RSpec::Cop
|
325
|
-
def before_or_after_all(node = nil); end
|
326
|
-
def on_send(node); end
|
327
|
-
end
|
328
|
-
class RuboCop::Cop::RSpec::ContextMethod < RuboCop::Cop::RSpec::Cop
|
329
|
-
def context_method(node = nil); end
|
330
|
-
def method_name?(description); end
|
331
|
-
def on_block(node); end
|
332
|
-
extend RuboCop::Cop::AutoCorrector
|
333
|
-
end
|
334
|
-
class RuboCop::Cop::RSpec::ContextWording < RuboCop::Cop::RSpec::Cop
|
335
|
-
def bad_prefix?(description); end
|
336
|
-
def context_wording(node = nil); end
|
337
|
-
def joined_prefixes; end
|
338
|
-
def on_block(node); end
|
339
|
-
def prefixes; end
|
340
|
-
end
|
341
|
-
class RuboCop::Cop::RSpec::DescribeClass < RuboCop::Cop::RSpec::Cop
|
342
|
-
def describe_with_rails_metadata?(node = nil); end
|
343
|
-
def on_top_level_describe(node, arg1); end
|
344
|
-
def rails_metadata?(node = nil); end
|
345
|
-
def string_constant_describe?(described_value); end
|
346
|
-
def valid_describe?(node = nil); end
|
347
|
-
include RuboCop::RSpec::TopLevelDescribe
|
348
|
-
end
|
349
|
-
class RuboCop::Cop::RSpec::DescribeMethod < RuboCop::Cop::RSpec::Cop
|
350
|
-
def on_top_level_describe(_node, arg1); end
|
351
|
-
include RuboCop::RSpec::TopLevelDescribe
|
352
|
-
end
|
353
|
-
class RuboCop::Cop::RSpec::DescribeSymbol < RuboCop::Cop::RSpec::Cop
|
354
|
-
def describe_symbol?(node = nil); end
|
355
|
-
def on_send(node); end
|
356
|
-
end
|
357
|
-
class RuboCop::Cop::RSpec::DescribedClass < RuboCop::Cop::RSpec::Cop
|
358
|
-
def autocorrect(corrector, match); end
|
359
|
-
def collapse_namespace(namespace, const); end
|
360
|
-
def common_instance_exec_closure?(node = nil); end
|
361
|
-
def const_name(node); end
|
362
|
-
def contains_described_class?(node0); end
|
363
|
-
def described_constant(node = nil); end
|
364
|
-
def find_usage(node, &block); end
|
365
|
-
def full_const_name(node); end
|
366
|
-
def message(offense); end
|
367
|
-
def namespace(node); end
|
368
|
-
def offensive?(node); end
|
369
|
-
def offensive_described_class?(node); end
|
370
|
-
def on_block(node); end
|
371
|
-
def rspec_block?(node = nil); end
|
372
|
-
def scope_change?(node); end
|
373
|
-
def scope_changing_syntax?(node = nil); end
|
374
|
-
def skip_blocks?; end
|
375
|
-
def skippable_block?(node); end
|
376
|
-
extend RuboCop::Cop::AutoCorrector
|
377
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
378
|
-
end
|
379
|
-
class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < RuboCop::Cop::RSpec::Cop
|
380
|
-
def find_rspec_blocks(node0); end
|
381
|
-
def on_module(node); end
|
382
|
-
end
|
383
|
-
class RuboCop::Cop::RSpec::Dialect < RuboCop::Cop::RSpec::Cop
|
384
|
-
def on_send(node); end
|
385
|
-
def rspec_method?(node = nil); end
|
386
|
-
extend RuboCop::Cop::AutoCorrector
|
387
|
-
include RuboCop::Cop::MethodPreference
|
388
|
-
end
|
389
|
-
class RuboCop::Cop::RSpec::EmptyExampleGroup < RuboCop::Cop::RSpec::Cop
|
390
|
-
def contains_example?(node0); end
|
391
|
-
def custom_include?(method_name); end
|
392
|
-
def custom_include_methods; end
|
393
|
-
def on_block(node); end
|
394
|
-
end
|
395
|
-
class RuboCop::Cop::RSpec::EmptyHook < RuboCop::Cop::RSpec::Cop
|
396
|
-
def empty_hook?(node = nil); end
|
397
|
-
def on_block(node); end
|
398
|
-
extend RuboCop::Cop::AutoCorrector
|
399
|
-
include RuboCop::Cop::RangeHelp
|
400
|
-
end
|
401
|
-
class RuboCop::Cop::RSpec::EmptyLineAfterExample < RuboCop::Cop::RSpec::Cop
|
402
|
-
def allow_consecutive_one_liners?; end
|
403
|
-
def allowed_one_liner?(node); end
|
404
|
-
def consecutive_one_liner?(node); end
|
405
|
-
def next_one_line_example?(node); end
|
406
|
-
def next_sibling(node); end
|
407
|
-
def on_block(node); end
|
408
|
-
extend RuboCop::Cop::AutoCorrector
|
409
|
-
include RuboCop::RSpec::BlankLineSeparation
|
410
|
-
end
|
411
|
-
class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < RuboCop::Cop::RSpec::Cop
|
412
|
-
def on_block(node); end
|
413
|
-
extend RuboCop::Cop::AutoCorrector
|
414
|
-
include RuboCop::RSpec::BlankLineSeparation
|
415
|
-
end
|
416
|
-
class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < RuboCop::Cop::RSpec::Cop
|
417
|
-
def on_block(node); end
|
418
|
-
extend RuboCop::Cop::AutoCorrector
|
419
|
-
include RuboCop::RSpec::BlankLineSeparation
|
420
|
-
end
|
421
|
-
class RuboCop::Cop::RSpec::EmptyLineAfterHook < RuboCop::Cop::RSpec::Cop
|
422
|
-
def on_block(node); end
|
423
|
-
extend RuboCop::Cop::AutoCorrector
|
424
|
-
include RuboCop::RSpec::BlankLineSeparation
|
425
|
-
end
|
426
|
-
class RuboCop::Cop::RSpec::EmptyLineAfterSubject < RuboCop::Cop::RSpec::Cop
|
427
|
-
def in_spec_block?(node); end
|
428
|
-
def on_block(node); end
|
429
|
-
extend RuboCop::Cop::AutoCorrector
|
430
|
-
include RuboCop::RSpec::BlankLineSeparation
|
431
|
-
end
|
432
|
-
class RuboCop::Cop::RSpec::ExampleLength < RuboCop::Cop::RSpec::Cop
|
433
|
-
def code_length(node); end
|
434
|
-
def message(length); end
|
435
|
-
def on_block(node); end
|
436
|
-
include RuboCop::Cop::CodeLength
|
437
|
-
end
|
438
|
-
class RuboCop::Cop::RSpec::ExampleWithoutDescription < RuboCop::Cop::RSpec::Cop
|
439
|
-
def check_example_without_description(node); end
|
440
|
-
def disallow_empty_description?(node); end
|
441
|
-
def example_description(node = nil); end
|
442
|
-
def on_block(node); end
|
443
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
444
|
-
end
|
445
|
-
class RuboCop::Cop::RSpec::ExampleWording < RuboCop::Cop::RSpec::Cop
|
446
|
-
def add_wording_offense(node, message); end
|
447
|
-
def custom_transform; end
|
448
|
-
def docstring(node); end
|
449
|
-
def ignored_words; end
|
450
|
-
def it_description(node = nil); end
|
451
|
-
def on_block(node); end
|
452
|
-
def replacement_text(node); end
|
453
|
-
def text(node); end
|
454
|
-
extend RuboCop::Cop::AutoCorrector
|
455
|
-
end
|
456
|
-
class RuboCop::Cop::RSpec::ExpectActual < RuboCop::Cop::RSpec::Cop
|
457
|
-
def complex_literal?(node); end
|
458
|
-
def expect_literal(node = nil); end
|
459
|
-
def literal?(node); end
|
460
|
-
def on_send(node); end
|
461
|
-
def simple_literal?(node); end
|
462
|
-
def swap(corrector, actual, expected); end
|
463
|
-
extend RuboCop::Cop::AutoCorrector
|
464
|
-
end
|
465
|
-
class RuboCop::Cop::RSpec::ExpectChange < RuboCop::Cop::RSpec::Cop
|
466
|
-
def expect_change_with_arguments(node = nil); end
|
467
|
-
def expect_change_with_block(node = nil); end
|
468
|
-
def on_block(node); end
|
469
|
-
def on_send(node); end
|
470
|
-
extend RuboCop::Cop::AutoCorrector
|
471
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
472
|
-
end
|
473
|
-
class RuboCop::Cop::RSpec::ExpectInHook < RuboCop::Cop::RSpec::Cop
|
474
|
-
def expectation(node0); end
|
475
|
-
def message(expect, hook); end
|
476
|
-
def on_block(node); end
|
477
|
-
end
|
478
|
-
class RuboCop::Cop::RSpec::ExpectOutput < RuboCop::Cop::RSpec::Cop
|
479
|
-
def inside_example_scope?(node); end
|
480
|
-
def on_gvasgn(node); end
|
481
|
-
end
|
482
|
-
class RuboCop::Cop::RSpec::FilePath < RuboCop::Cop::RSpec::Cop
|
483
|
-
def camel_to_snake_case(string); end
|
484
|
-
def const_described?(node0); end
|
485
|
-
def custom_transform; end
|
486
|
-
def expected_path(constant); end
|
487
|
-
def filename_ends_with?(glob); end
|
488
|
-
def glob_for(arg0); end
|
489
|
-
def glob_for_spec_suffix_only?; end
|
490
|
-
def ignore_methods?; end
|
491
|
-
def name_glob(name); end
|
492
|
-
def on_top_level_describe(node, args); end
|
493
|
-
def relevant_rubocop_rspec_file?(_file); end
|
494
|
-
def routing_metadata?(node0); end
|
495
|
-
def routing_spec?(args); end
|
496
|
-
def spec_suffix_only?; end
|
497
|
-
include RuboCop::RSpec::TopLevelDescribe
|
498
|
-
end
|
499
|
-
class RuboCop::Cop::RSpec::Focus < RuboCop::Cop::RSpec::Cop
|
500
|
-
def focus_metadata(node, &block); end
|
501
|
-
def focused_block?(node = nil); end
|
502
|
-
def metadata(node = nil); end
|
503
|
-
def on_send(node); end
|
504
|
-
end
|
505
|
-
class RuboCop::Cop::RSpec::HookArgument < RuboCop::Cop::RSpec::Cop
|
506
|
-
def argument_range(send_node); end
|
507
|
-
def check_implicit(method_send); end
|
508
|
-
def explicit_message(scope); end
|
509
|
-
def hook(node, &block); end
|
510
|
-
def implicit_style?; end
|
511
|
-
def on_block(node); end
|
512
|
-
def scoped_hook(node = nil); end
|
513
|
-
def unscoped_hook(node = nil); end
|
514
|
-
extend RuboCop::Cop::AutoCorrector
|
515
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
516
|
-
end
|
517
|
-
class RuboCop::Cop::RSpec::HooksBeforeExamples < RuboCop::Cop::RSpec::Cop
|
518
|
-
def autocorrect(corrector, node, first_example); end
|
519
|
-
def check_hooks(node); end
|
520
|
-
def example_or_group?(node = nil); end
|
521
|
-
def find_first_example(node); end
|
522
|
-
def multiline_block?(block); end
|
523
|
-
def on_block(node); end
|
524
|
-
extend RuboCop::Cop::AutoCorrector
|
525
|
-
end
|
526
|
-
class RuboCop::Cop::RSpec::ImplicitBlockExpectation < RuboCop::Cop::RSpec::Cop
|
527
|
-
def find_subject(block_node); end
|
528
|
-
def implicit_expect(node = nil); end
|
529
|
-
def lambda?(node = nil); end
|
530
|
-
def lambda_subject?(node = nil); end
|
531
|
-
def multi_statement_example_group?(node); end
|
532
|
-
def nearest_subject(node); end
|
533
|
-
def on_send(node); end
|
534
|
-
end
|
535
|
-
class RuboCop::Cop::RSpec::ImplicitExpect < RuboCop::Cop::RSpec::Cop
|
536
|
-
def implicit_expect(node = nil); end
|
537
|
-
def is_expected_range(source_map); end
|
538
|
-
def offending_expect(node); end
|
539
|
-
def offense_message(offending_source); end
|
540
|
-
def on_send(node); end
|
541
|
-
def replacement_source(offending_source); end
|
542
|
-
extend RuboCop::Cop::AutoCorrector
|
543
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
544
|
-
end
|
545
|
-
class RuboCop::Cop::RSpec::ImplicitSubject < RuboCop::Cop::RSpec::Cop
|
546
|
-
def allowed_by_style?(example); end
|
547
|
-
def autocorrect(corrector, node); end
|
548
|
-
def implicit_subject?(node = nil); end
|
549
|
-
def on_send(node); end
|
550
|
-
def valid_usage?(node); end
|
551
|
-
extend RuboCop::Cop::AutoCorrector
|
552
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
553
|
-
end
|
554
|
-
class RuboCop::Cop::RSpec::InstanceSpy < RuboCop::Cop::RSpec::Cop
|
555
|
-
def autocorrect(corrector, node); end
|
556
|
-
def have_received_usage(node0); end
|
557
|
-
def null_double(node0); end
|
558
|
-
def on_block(node); end
|
559
|
-
extend RuboCop::Cop::AutoCorrector
|
560
|
-
end
|
561
|
-
class RuboCop::Cop::RSpec::InstanceVariable < RuboCop::Cop::RSpec::Cop
|
562
|
-
def assignment_only?; end
|
563
|
-
def custom_matcher?(node = nil); end
|
564
|
-
def dynamic_class?(node = nil); end
|
565
|
-
def ivar_assigned?(node0, param1); end
|
566
|
-
def ivar_usage(node0); end
|
567
|
-
def on_top_level_group(node); end
|
568
|
-
def valid_usage?(node); end
|
569
|
-
include RuboCop::RSpec::TopLevelGroup
|
570
|
-
end
|
571
|
-
class RuboCop::Cop::RSpec::InvalidPredicateMatcher < RuboCop::Cop::RSpec::Cop
|
572
|
-
def invalid_predicate_matcher?(node = nil); end
|
573
|
-
def on_send(node); end
|
574
|
-
def predicate?(name); end
|
575
|
-
end
|
576
|
-
class RuboCop::Cop::RSpec::ItBehavesLike < RuboCop::Cop::RSpec::Cop
|
577
|
-
def example_inclusion_offense(node = nil, param1); end
|
578
|
-
def message(_node); end
|
579
|
-
def on_send(node); end
|
580
|
-
extend RuboCop::Cop::AutoCorrector
|
581
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
582
|
-
end
|
583
|
-
class RuboCop::Cop::RSpec::IteratedExpectation < RuboCop::Cop::RSpec::Cop
|
584
|
-
def each?(node = nil); end
|
585
|
-
def expectation?(node = nil, param1); end
|
586
|
-
def on_block(node); end
|
587
|
-
def only_expectations?(body, arg); end
|
588
|
-
def single_expectation?(body, arg); end
|
589
|
-
end
|
590
|
-
class RuboCop::Cop::RSpec::LeadingSubject < RuboCop::Cop::RSpec::Cop
|
591
|
-
def autocorrect(corrector, node); end
|
592
|
-
def check_previous_nodes(node); end
|
593
|
-
def find_first_offending_node(node); end
|
594
|
-
def in_spec_block?(node); end
|
595
|
-
def offending?(node); end
|
596
|
-
def on_block(node); end
|
597
|
-
extend RuboCop::Cop::AutoCorrector
|
598
|
-
end
|
599
|
-
class RuboCop::Cop::RSpec::LeakyConstantDeclaration < RuboCop::Cop::RSpec::Cop
|
600
|
-
def inside_describe_block?(node); end
|
601
|
-
def on_casgn(node); end
|
602
|
-
def on_class(node); end
|
603
|
-
def on_module(node); end
|
604
|
-
end
|
605
|
-
class RuboCop::Cop::RSpec::LetBeforeExamples < RuboCop::Cop::RSpec::Cop
|
606
|
-
def autocorrect(corrector, node, first_example); end
|
607
|
-
def check_let_declarations(node); end
|
608
|
-
def example_or_group?(node = nil); end
|
609
|
-
def find_first_example(node); end
|
610
|
-
def multiline_block?(block); end
|
611
|
-
def on_block(node); end
|
612
|
-
extend RuboCop::Cop::AutoCorrector
|
613
|
-
end
|
614
|
-
class RuboCop::Cop::RSpec::LetSetup < RuboCop::Cop::RSpec::Cop
|
615
|
-
def child_let_bang(node, &block); end
|
616
|
-
def example_or_shared_group_or_including?(node = nil); end
|
617
|
-
def let_bang(node = nil); end
|
618
|
-
def method_called?(node0, param1); end
|
619
|
-
def on_block(node); end
|
620
|
-
def unused_let_bang(node); end
|
621
|
-
end
|
622
|
-
class RuboCop::Cop::RSpec::MessageChain < RuboCop::Cop::RSpec::Cop
|
623
|
-
def message_chain(node = nil); end
|
624
|
-
def on_send(node); end
|
625
|
-
end
|
626
|
-
class RuboCop::Cop::RSpec::MessageExpectation < RuboCop::Cop::RSpec::Cop
|
627
|
-
def message_expectation(node = nil); end
|
628
|
-
def on_send(node); end
|
629
|
-
def preferred_style?(expectation); end
|
630
|
-
def receive_message?(node0); end
|
631
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
632
|
-
end
|
633
|
-
class RuboCop::Cop::RSpec::MessageSpies < RuboCop::Cop::RSpec::Cop
|
634
|
-
def error_message(receiver); end
|
635
|
-
def message_expectation(node = nil); end
|
636
|
-
def on_send(node); end
|
637
|
-
def preferred_style?(expectation); end
|
638
|
-
def receive_message(node0); end
|
639
|
-
def receive_message_matcher(node); end
|
640
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
641
|
-
end
|
642
|
-
class RuboCop::Cop::RSpec::MissingExampleGroupArgument < RuboCop::Cop::RSpec::Cop
|
643
|
-
def on_block(node); end
|
644
|
-
end
|
645
|
-
class RuboCop::Cop::RSpec::MultipleDescribes < RuboCop::Cop::RSpec::Cop
|
646
|
-
def on_top_level_describe(node, _args); end
|
647
|
-
include RuboCop::RSpec::TopLevelDescribe
|
648
|
-
end
|
649
|
-
class RuboCop::Cop::RSpec::MultipleExpectations < RuboCop::Cop::RSpec::Cop
|
650
|
-
def aggregate_failures?(node = nil); end
|
651
|
-
def aggregate_failures_block?(node = nil); end
|
652
|
-
def aggregate_failures_present?(node = nil); end
|
653
|
-
def example_with_aggregate_failures?(example_node); end
|
654
|
-
def expect?(node = nil); end
|
655
|
-
def find_aggregate_failures(example_node); end
|
656
|
-
def find_expectation(node, &block); end
|
657
|
-
def flag_example(node, expectation_count:); end
|
658
|
-
def max_expectations; end
|
659
|
-
def on_block(node); end
|
660
|
-
include RuboCop::Cop::ConfigurableMax
|
661
|
-
end
|
662
|
-
class RuboCop::Cop::RSpec::MultipleSubjects < RuboCop::Cop::RSpec::Cop
|
663
|
-
def autocorrect(corrector, subject); end
|
664
|
-
def named_subject?(node); end
|
665
|
-
def on_block(node); end
|
666
|
-
def remove_autocorrect(corrector, node); end
|
667
|
-
def rename_autocorrect(corrector, node); end
|
668
|
-
extend RuboCop::Cop::AutoCorrector
|
669
|
-
include RuboCop::Cop::RangeHelp
|
670
|
-
end
|
671
|
-
class RuboCop::Cop::RSpec::NamedSubject < RuboCop::Cop::RSpec::Cop
|
672
|
-
def ignored_shared_example?(node); end
|
673
|
-
def on_block(node); end
|
674
|
-
def rspec_block?(node = nil); end
|
675
|
-
def shared_example?(node = nil); end
|
676
|
-
def subject_usage(node0); end
|
677
|
-
end
|
678
|
-
class RuboCop::Cop::RSpec::NestedGroups < RuboCop::Cop::RSpec::Cop
|
679
|
-
def find_nested_example_groups(node, nesting: nil, &block); end
|
680
|
-
def max_nesting; end
|
681
|
-
def max_nesting_config; end
|
682
|
-
def message(nesting); end
|
683
|
-
def on_top_level_describe(node, _args); end
|
684
|
-
include RuboCop::Cop::ConfigurableMax
|
685
|
-
include RuboCop::RSpec::TopLevelDescribe
|
686
|
-
end
|
687
|
-
class RuboCop::Cop::RSpec::NotToNot < RuboCop::Cop::RSpec::Cop
|
688
|
-
def message(_node); end
|
689
|
-
def not_to_not_offense(node = nil, param1); end
|
690
|
-
def on_send(node); end
|
691
|
-
extend RuboCop::Cop::AutoCorrector
|
692
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
693
|
-
end
|
694
|
-
class RuboCop::Cop::RSpec::OverwritingSetup < RuboCop::Cop::RSpec::Cop
|
695
|
-
def common_setup?(node); end
|
696
|
-
def find_duplicates(node); end
|
697
|
-
def first_argument_name(node = nil); end
|
698
|
-
def on_block(node); end
|
699
|
-
def setup?(node = nil); end
|
700
|
-
end
|
701
|
-
class RuboCop::Cop::RSpec::Pending < RuboCop::Cop::RSpec::Cop
|
702
|
-
def on_send(node); end
|
703
|
-
def pending_block?(node = nil); end
|
704
|
-
def skip_or_pending?(node = nil); end
|
705
|
-
def skippable?(node = nil); end
|
706
|
-
def skipped?(node); end
|
707
|
-
def skipped_in_metadata?(node = nil); end
|
708
|
-
end
|
709
|
-
module RuboCop::Cop::RSpec::InflectedHelper
|
710
|
-
def be_bool?(node = nil); end
|
711
|
-
def be_boolthy?(node = nil); end
|
712
|
-
def boolean_matcher?(node); end
|
713
|
-
def check_inflected(node); end
|
714
|
-
def message_inflected(predicate); end
|
715
|
-
def predicate?(sym); end
|
716
|
-
def predicate_in_actual?(node = nil); end
|
717
|
-
def remove_predicate(corrector, predicate); end
|
718
|
-
def rewrite_matcher(corrector, predicate, matcher); end
|
719
|
-
def to_predicate_matcher(name); end
|
720
|
-
def true?(to_symbol, matcher); end
|
721
|
-
extend RuboCop::AST::NodePattern::Macros
|
722
|
-
include RuboCop::RSpec::Language
|
723
|
-
end
|
724
|
-
module RuboCop::Cop::RSpec::ExplicitHelper
|
725
|
-
def allowed_explicit_matchers; end
|
726
|
-
def check_explicit(node); end
|
727
|
-
def corrector_explicit(corrector, to_node, actual, matcher, block_child); end
|
728
|
-
def message_explicit(matcher); end
|
729
|
-
def move_predicate(corrector, actual, matcher, block_child); end
|
730
|
-
def predicate_matcher?(node = nil); end
|
731
|
-
def predicate_matcher_block?(node = nil); end
|
732
|
-
def predicate_matcher_name?(name); end
|
733
|
-
def replacement_matcher(node); end
|
734
|
-
def to_predicate_method(matcher); end
|
735
|
-
extend RuboCop::AST::NodePattern::Macros
|
736
|
-
include RuboCop::RSpec::Language
|
737
|
-
end
|
738
|
-
class RuboCop::Cop::RSpec::PredicateMatcher < RuboCop::Cop::RSpec::Cop
|
739
|
-
def args_loc(send_node); end
|
740
|
-
def autocorrect(node); end
|
741
|
-
def block_loc(send_node); end
|
742
|
-
def on_block(node); end
|
743
|
-
def on_send(node); end
|
744
|
-
extend RuboCop::Cop::AutoCorrector
|
745
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
746
|
-
include RuboCop::Cop::RSpec::ExplicitHelper
|
747
|
-
include RuboCop::Cop::RSpec::InflectedHelper
|
748
|
-
end
|
749
|
-
class RuboCop::Cop::RSpec::ReceiveCounts < RuboCop::Cop::RSpec::Cop
|
750
|
-
def autocorrect(corrector, node, range); end
|
751
|
-
def matcher_for(method, count); end
|
752
|
-
def message_for(node, source); end
|
753
|
-
def on_send(node); end
|
754
|
-
def range(node, offending_node); end
|
755
|
-
def receive_counts(node = nil); end
|
756
|
-
def stub?(node0); end
|
757
|
-
extend RuboCop::Cop::AutoCorrector
|
758
|
-
end
|
759
|
-
class RuboCop::Cop::RSpec::ReceiveNever < RuboCop::Cop::RSpec::Cop
|
760
|
-
def autocorrect(corrector, node); end
|
761
|
-
def method_on_stub?(node0); end
|
762
|
-
def on_send(node); end
|
763
|
-
extend RuboCop::Cop::AutoCorrector
|
764
|
-
end
|
765
|
-
class RuboCop::Cop::RSpec::RepeatedDescription < RuboCop::Cop::RSpec::Cop
|
766
|
-
def example_signature(example); end
|
767
|
-
def on_block(node); end
|
768
|
-
def repeated_descriptions(node); end
|
769
|
-
end
|
770
|
-
class RuboCop::Cop::RSpec::RepeatedExample < RuboCop::Cop::RSpec::Cop
|
771
|
-
def example_signature(example); end
|
772
|
-
def on_block(node); end
|
773
|
-
def repeated_examples(node); end
|
774
|
-
end
|
775
|
-
class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < RuboCop::Cop::RSpec::Cop
|
776
|
-
def add_repeated_lines(groups); end
|
777
|
-
def body(node = nil); end
|
778
|
-
def const_arg(node = nil); end
|
779
|
-
def message(group, repeats); end
|
780
|
-
def metadata(node = nil); end
|
781
|
-
def on_begin(node); end
|
782
|
-
def repeated_group_bodies(node); end
|
783
|
-
def several_example_groups?(node = nil); end
|
784
|
-
def signature_keys(group); end
|
785
|
-
def skip_or_pending?(node = nil); end
|
786
|
-
end
|
787
|
-
class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < RuboCop::Cop::RSpec::Cop
|
788
|
-
def add_repeated_lines(groups); end
|
789
|
-
def doc_string_and_metadata(node = nil); end
|
790
|
-
def empty_description?(node = nil); end
|
791
|
-
def message(group, repeats); end
|
792
|
-
def on_begin(node); end
|
793
|
-
def repeated_group_descriptions(node); end
|
794
|
-
def several_example_groups?(node = nil); end
|
795
|
-
def skip_or_pending?(node = nil); end
|
796
|
-
end
|
797
|
-
class RuboCop::Cop::RSpec::ReturnFromStub < RuboCop::Cop::RSpec::Cop
|
798
|
-
def and_return_value(node0); end
|
799
|
-
def check_and_return_call(node); end
|
800
|
-
def check_block_body(block); end
|
801
|
-
def contains_stub?(node0); end
|
802
|
-
def dynamic?(node); end
|
803
|
-
def on_block(node); end
|
804
|
-
def on_send(node); end
|
805
|
-
def stub_with_block?(node = nil); end
|
806
|
-
extend RuboCop::Cop::AutoCorrector
|
807
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
808
|
-
end
|
809
|
-
class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector
|
810
|
-
def arg; end
|
811
|
-
def call(corrector); end
|
812
|
-
def hash_without_braces?; end
|
813
|
-
def heredoc?; end
|
814
|
-
def initialize(node); end
|
815
|
-
def node; end
|
816
|
-
def range; end
|
817
|
-
def receiver; end
|
818
|
-
def replacement; end
|
819
|
-
end
|
820
|
-
class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector
|
821
|
-
def block; end
|
822
|
-
def body; end
|
823
|
-
def call(corrector); end
|
824
|
-
def heredoc?; end
|
825
|
-
def initialize(block); end
|
826
|
-
def node; end
|
827
|
-
end
|
828
|
-
class RuboCop::Cop::RSpec::ScatteredLet < RuboCop::Cop::RSpec::Cop
|
829
|
-
def check_let_declarations(body); end
|
830
|
-
def find_first_let(node); end
|
831
|
-
def on_block(node); end
|
832
|
-
extend RuboCop::Cop::AutoCorrector
|
833
|
-
end
|
834
|
-
class RuboCop::Cop::RSpec::ScatteredSetup < RuboCop::Cop::RSpec::Cop
|
835
|
-
def lines_msg(numbers); end
|
836
|
-
def on_block(node); end
|
837
|
-
def repeated_hooks(node); end
|
838
|
-
end
|
839
|
-
class RuboCop::Cop::RSpec::SharedContext < RuboCop::Cop::RSpec::Cop
|
840
|
-
def context?(node0); end
|
841
|
-
def context_with_only_examples(node); end
|
842
|
-
def examples?(node0); end
|
843
|
-
def examples_with_only_context(node); end
|
844
|
-
def on_block(node); end
|
845
|
-
def shared_context(node = nil); end
|
846
|
-
def shared_example(node = nil); end
|
847
|
-
extend RuboCop::Cop::AutoCorrector
|
848
|
-
end
|
849
|
-
class RuboCop::Cop::RSpec::SharedExamples < RuboCop::Cop::RSpec::Cop
|
850
|
-
def on_send(node); end
|
851
|
-
def shared_examples(node = nil); end
|
852
|
-
extend RuboCop::Cop::AutoCorrector
|
853
|
-
end
|
854
|
-
class RuboCop::Cop::RSpec::SharedExamples::Checker
|
855
|
-
def initialize(node); end
|
856
|
-
def message; end
|
857
|
-
def node; end
|
858
|
-
def preferred_style; end
|
859
|
-
def symbol; end
|
860
|
-
def wrap_with_single_quotes(string); end
|
861
|
-
end
|
862
|
-
class RuboCop::Cop::RSpec::SingleArgumentMessageChain < RuboCop::Cop::RSpec::Cop
|
863
|
-
def autocorrect(corrector, node, method, arg); end
|
864
|
-
def autocorrect_array_arg(corrector, arg); end
|
865
|
-
def autocorrect_hash_arg(corrector, arg); end
|
866
|
-
def key_to_arg(node); end
|
867
|
-
def message_chain(node = nil); end
|
868
|
-
def on_send(node); end
|
869
|
-
def replacement(method); end
|
870
|
-
def single_element_array?(node); end
|
871
|
-
def single_key_hash?(node = nil); end
|
872
|
-
def valid_usage?(node); end
|
873
|
-
extend RuboCop::Cop::AutoCorrector
|
874
|
-
end
|
875
|
-
class RuboCop::Cop::RSpec::SubjectStub < RuboCop::Cop::RSpec::Cop
|
876
|
-
def find_all_explicit_subjects(node); end
|
877
|
-
def find_subject_expectations(node, subject_names = nil, &block); end
|
878
|
-
def message_expectation?(node = nil, param1); end
|
879
|
-
def message_expectation_matcher?(node0); end
|
880
|
-
def on_top_level_group(node); end
|
881
|
-
def subject(node = nil); end
|
882
|
-
include RuboCop::RSpec::TopLevelGroup
|
883
|
-
end
|
884
|
-
class RuboCop::Cop::RSpec::UnspecifiedException < RuboCop::Cop::RSpec::Cop
|
885
|
-
def block_with_args?(node); end
|
886
|
-
def empty_exception_matcher?(node); end
|
887
|
-
def empty_raise_error_or_exception(node = nil); end
|
888
|
-
def on_send(node); end
|
889
|
-
end
|
890
|
-
class RuboCop::Cop::RSpec::VariableDefinition < RuboCop::Cop::RSpec::Cop
|
891
|
-
def on_send(node); end
|
892
|
-
def string?(node); end
|
893
|
-
def style_violation?(variable); end
|
894
|
-
def symbol?(node); end
|
895
|
-
include RuboCop::Cop::ConfigurableEnforcedStyle
|
896
|
-
include RuboCop::RSpec::Variable
|
897
|
-
end
|
898
|
-
class RuboCop::Cop::RSpec::VariableName < RuboCop::Cop::RSpec::Cop
|
899
|
-
def message(style); end
|
900
|
-
def on_send(node); end
|
901
|
-
include RuboCop::Cop::ConfigurableNaming
|
902
|
-
include RuboCop::RSpec::Variable
|
903
|
-
end
|
904
|
-
class RuboCop::Cop::RSpec::VerifiedDoubles < RuboCop::Cop::RSpec::Cop
|
905
|
-
def on_send(node); end
|
906
|
-
def symbol?(name); end
|
907
|
-
def unverified_double(node = nil); end
|
908
|
-
end
|
909
|
-
class RuboCop::Cop::RSpec::VoidExpect < RuboCop::Cop::RSpec::Cop
|
910
|
-
def check_expect(node); end
|
911
|
-
def expect?(node = nil); end
|
912
|
-
def expect_block?(node = nil); end
|
913
|
-
def on_block(node); end
|
914
|
-
def on_send(node); end
|
915
|
-
def void?(expect); end
|
916
|
-
end
|
917
|
-
class RuboCop::Cop::RSpec::Yield < RuboCop::Cop::RSpec::Cop
|
918
|
-
def autocorrect(corrector, node, range); end
|
919
|
-
def block_arg(node = nil); end
|
920
|
-
def block_call?(node = nil, param1); end
|
921
|
-
def block_range(node); end
|
922
|
-
def calling_block?(node, block); end
|
923
|
-
def convert_block_to_yield(node); end
|
924
|
-
def generate_replacement(node); end
|
925
|
-
def method_on_stub?(node0); end
|
926
|
-
def on_block(node); end
|
927
|
-
extend RuboCop::Cop::AutoCorrector
|
928
|
-
include RuboCop::Cop::RangeHelp
|
929
|
-
end
|
930
|
-
module RuboCop::Cop::Layout
|
931
|
-
end
|
932
|
-
class RuboCop::Cop::Layout::ExtraSpacing < RuboCop::Cop::Cop
|
933
|
-
def self.autocorrect_incompatible_with; end
|
934
|
-
end
|
935
|
-
class RuboCop::AST::Node < Parser::AST::Node
|
936
|
-
include RuboCop::RSpec::Node
|
937
|
-
end
|