Best Test-prof_ruby code snippet using RuboCop.Cop.RSpec.on_block
rubocop-rspec@2.12.1.rbi
Source:rubocop-rspec@2.12.1.rbi
...33RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)34class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base35 def find_arg_usage(param0); end36 def hook(param0 = T.unsafe(nil)); end37 def on_block(node); end38 private39 def add_no_arg_offense(node); end40 def check_for_unused_proxy(block, proxy); end41end42RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String)43RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String)44class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base45 include ::RuboCop::RSpec::Language46 extend ::RuboCop::RSpec::Language::NodePattern47 def on_new_investigation; end48 class << self49 def inherited(subclass); end50 end51end52class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base53 def be_without_args(param0 = T.unsafe(nil)); end54 def on_send(node); end55end56RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String)57class RuboCop::Cop::RSpec::BeEq < ::RuboCop::Cop::RSpec::Base58 extend ::RuboCop::Cop::AutoCorrector59 def eq_type_with_identity?(param0 = T.unsafe(nil)); end60 def on_send(node); end61end62RuboCop::Cop::RSpec::BeEq::MSG = T.let(T.unsafe(nil), String)63RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)64class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base65 extend ::RuboCop::Cop::AutoCorrector66 def eql_type_with_identity(param0 = T.unsafe(nil)); end67 def on_send(node); end68end69RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String)70RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)71class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base72 include ::RuboCop::Cop::ConfigurableEnforcedStyle73 extend ::RuboCop::Cop::AutoCorrector74 def be_nil_matcher?(param0 = T.unsafe(nil)); end75 def nil_value_expectation?(param0 = T.unsafe(nil)); end76 def on_send(node); end77 private78 def check_be_nil_style(node); end79 def check_be_style(node); end80end81RuboCop::Cop::RSpec::BeNil::BE_MSG = T.let(T.unsafe(nil), String)82RuboCop::Cop::RSpec::BeNil::BE_NIL_MSG = T.let(T.unsafe(nil), String)83RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)84class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base85 def before_or_after_all(param0 = T.unsafe(nil)); end86 def on_send(node); end87end88RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String)89RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)90module RuboCop::Cop::RSpec::Capybara; end91class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Base92 extend ::RuboCop::Cop::AutoCorrector93 def as_is_matcher(param0 = T.unsafe(nil)); end94 def expectation_set_on_current_path(param0 = T.unsafe(nil)); end95 def on_send(node); end96 def regexp_str_matcher(param0 = T.unsafe(nil)); end97 private98 def add_ignore_query_options(corrector, node); end99 def autocorrect(corrector, node); end100 def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end101 def rewrite_expectation(corrector, node, to_symbol, matcher_node); end102 class << self103 def autocorrect_incompatible_with; end104 end105end106RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String)107RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)108class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base109 include ::RuboCop::Cop::RSpec::InsideExampleGroup110 extend ::RuboCop::Cop::AutoCorrector111 def capybara_speak(param0 = T.unsafe(nil)); end112 def feature_method(param0 = T.unsafe(nil)); end113 def message(range); end114 def on_block(node); end115 private116 def enabled?(method_name); end117 def enabled_methods; end118end119RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash)120RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String)121class RuboCop::Cop::RSpec::Capybara::SpecificMatcher < ::RuboCop::Cop::RSpec::Base122 def first_argument(param0 = T.unsafe(nil)); end123 def on_send(node); end124 private125 def acceptable_pattern?(arg); end126 def good_matcher(node, matcher); end127 def message(node, matcher); end128 def specific_matcher(arg); end129end130RuboCop::Cop::RSpec::Capybara::SpecificMatcher::MSG = T.let(T.unsafe(nil), String)131RuboCop::Cop::RSpec::Capybara::SpecificMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)132RuboCop::Cop::RSpec::Capybara::SpecificMatcher::SPECIFIC_MATCHER = T.let(T.unsafe(nil), Hash)133class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::RSpec::Base134 def on_send(node); end135 def visible_false?(param0 = T.unsafe(nil)); end136 def visible_true?(param0 = T.unsafe(nil)); end137 private138 def capybara_matcher?(method_name); end139end140RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array)141RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil), String)142RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String)143RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)144class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base145 extend ::RuboCop::Cop::AutoCorrector146 def expect_change_with_arguments(param0 = T.unsafe(nil)); end147 def expect_change_with_block(param0 = T.unsafe(nil)); end148 def on_send(node); end149 private150 def autocorrect(corrector, node); end151 def check_offense(node); end152 def compound_expectations?(node); end153end154RuboCop::Cop::RSpec::ChangeByZero::MSG = T.let(T.unsafe(nil), String)155RuboCop::Cop::RSpec::ChangeByZero::MSG_COMPOUND = T.let(T.unsafe(nil), String)156RuboCop::Cop::RSpec::ChangeByZero::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)157module RuboCop::Cop::RSpec::CommentsHelp158 include ::RuboCop::Cop::RSpec::FinalEndLocation159 def begin_pos_with_comment(node); end160 def buffer; end161 def end_line_position(node); end162 def source_range_with_comment(node); end163 def start_line_position(node); end164end165class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Base166 extend ::RuboCop::Cop::AutoCorrector167 def context_method(param0 = T.unsafe(nil)); end168 def on_block(node); end169 private170 def method_name?(description); end171end172RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String)173class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base174 def context_wording(param0 = T.unsafe(nil)); end175 def on_block(node); end176 private177 def bad_prefix?(description); end178 def joined_prefixes; end179 def prefix_regex; end180 def prefixes; end181end182RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String)183class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base184 include ::RuboCop::Cop::RSpec::TopLevelGroup185 def example_group_with_ignored_metadata?(param0 = T.unsafe(nil)); end186 def not_a_const_described(param0 = T.unsafe(nil)); end187 def on_top_level_group(node); end188 def sym_pair(param0 = T.unsafe(nil)); end189 private190 def ignored_metadata; end191 def ignored_metadata?(node); end192 def string_constant?(described); end193end194RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String)195class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base196 include ::RuboCop::Cop::RSpec::TopLevelGroup197 def on_top_level_group(node); end198 def second_argument(param0 = T.unsafe(nil)); end199end200RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String)201class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base202 def describe_symbol?(param0 = T.unsafe(nil)); end203 def on_send(node); end204end205RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String)206RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)207class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base208 include ::RuboCop::Cop::ConfigurableEnforcedStyle209 extend ::RuboCop::Cop::AutoCorrector210 def common_instance_exec_closure?(param0 = T.unsafe(nil)); end211 def contains_described_class?(param0); end212 def described_constant(param0 = T.unsafe(nil)); end213 def on_block(node); end214 def rspec_block?(param0 = T.unsafe(nil)); end215 def scope_changing_syntax?(param0 = T.unsafe(nil)); end216 private217 def autocorrect(corrector, match); end218 def collapse_namespace(namespace, const); end219 def const_name(node); end220 def find_usage(node, &block); end221 def full_const_name(node); end222 def message(offense); end223 def namespace(node); end224 def offensive?(node); end225 def offensive_described_class?(node); end226 def scope_change?(node); end227 def skippable_block?(node); end228end229RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String)230RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String)231class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base232 def find_rspec_blocks(param0); end233 def on_module(node); end234end235RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String)236class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base237 include ::RuboCop::Cop::MethodPreference238 extend ::RuboCop::Cop::AutoCorrector239 def on_send(node); end240 def rspec_method?(param0 = T.unsafe(nil)); end241end242RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String)243class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base244 def example_group_body(param0 = T.unsafe(nil)); end245 def example_or_group_or_include?(param0 = T.unsafe(nil)); end246 def examples?(param0 = T.unsafe(nil)); end247 def examples_directly_or_in_block?(param0 = T.unsafe(nil)); end248 def examples_inside_block?(param0 = T.unsafe(nil)); end249 def on_block(node); end250 private251 def conditionals_with_examples?(body); end252 def examples_in_branches?(condition_node); end253 def offensive?(body); end254end255RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String)256class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Base257 include ::RuboCop::Cop::RangeHelp258 extend ::RuboCop::Cop::AutoCorrector259 def empty_hook?(param0 = T.unsafe(nil)); end260 def on_block(node); end261end262RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String)263class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base264 include ::RuboCop::Cop::RSpec::FinalEndLocation265 include ::RuboCop::Cop::RangeHelp266 include ::RuboCop::Cop::RSpec::EmptyLineSeparation267 extend ::RuboCop::Cop::AutoCorrector268 def allow_consecutive_one_liners?; end269 def allowed_one_liner?(node); end270 def consecutive_one_liner?(node); end271 def next_one_line_example?(node); end272 def next_sibling(node); end273 def on_block(node); end274end275RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String)276class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base277 include ::RuboCop::Cop::RSpec::FinalEndLocation278 include ::RuboCop::Cop::RangeHelp279 include ::RuboCop::Cop::RSpec::EmptyLineSeparation280 extend ::RuboCop::Cop::AutoCorrector281 def on_block(node); end282end283RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String)284class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base285 include ::RuboCop::Cop::RSpec::FinalEndLocation286 include ::RuboCop::Cop::RangeHelp287 include ::RuboCop::Cop::RSpec::EmptyLineSeparation288 extend ::RuboCop::Cop::AutoCorrector289 def on_block(node); end290end291RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String)292class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base293 include ::RuboCop::Cop::RSpec::FinalEndLocation294 include ::RuboCop::Cop::RangeHelp295 include ::RuboCop::Cop::RSpec::EmptyLineSeparation296 extend ::RuboCop::Cop::AutoCorrector297 def on_block(node); end298end299RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String)300class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base301 include ::RuboCop::Cop::RSpec::FinalEndLocation302 include ::RuboCop::Cop::RangeHelp303 include ::RuboCop::Cop::RSpec::EmptyLineSeparation304 include ::RuboCop::Cop::RSpec::InsideExampleGroup305 extend ::RuboCop::Cop::AutoCorrector306 def on_block(node); end307end308RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String)309module RuboCop::Cop::RSpec::EmptyLineSeparation310 include ::RuboCop::Cop::RSpec::FinalEndLocation311 include ::RuboCop::Cop::RangeHelp312 def last_child?(node); end313 def missing_separating_line(node); end314 def missing_separating_line_offense(node); end315 def offending_loc(last_line); end316end317class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base318 include ::RuboCop::Cop::CodeLength319 def on_block(node); end320 private321 def cop_label; end322end323RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String)324class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base325 include ::RuboCop::Cop::ConfigurableEnforcedStyle326 def example_description(param0 = T.unsafe(nil)); end327 def on_block(node); end328 private329 def check_example_without_description(node); end330 def disallow_empty_description?(node); end331end332RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.unsafe(nil), String)333RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String)334class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base335 extend ::RuboCop::Cop::AutoCorrector336 def it_description(param0 = T.unsafe(nil)); end337 def on_block(node); end338 private339 def add_wording_offense(node, message); end340 def custom_transform; end341 def docstring(node); end342 def ignored_words; end343 def replacement_text(node); end344 def text(node); end345end346RuboCop::Cop::RSpec::ExampleWording::IT_PREFIX = T.let(T.unsafe(nil), Regexp)347RuboCop::Cop::RSpec::ExampleWording::MSG_IT = T.let(T.unsafe(nil), String)348RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String)349RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp)350class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Base351 extend ::RuboCop::Cop::AutoCorrector352 def example_description(param0 = T.unsafe(nil)); end353 def on_send(node); end354 private355 def add_whitespace_offense(node, text); end356 def docstring(node); end357 def excessive_whitespace?(text); end358 def strip_excessive_whitespace(text); end359 def text(node); end360end361RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), String)362class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base363 extend ::RuboCop::Cop::AutoCorrector364 def expect_literal(param0 = T.unsafe(nil)); end365 def on_send(node); end366 private367 def complex_literal?(node); end368 def literal?(node); end369 def simple_literal?(node); end370 def swap(corrector, actual, expected); end371end372RuboCop::Cop::RSpec::ExpectActual::COMPLEX_LITERALS = T.let(T.unsafe(nil), Array)373RuboCop::Cop::RSpec::ExpectActual::MSG = T.let(T.unsafe(nil), String)374RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array)375RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Array)376class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base377 include ::RuboCop::Cop::ConfigurableEnforcedStyle378 extend ::RuboCop::Cop::AutoCorrector379 def expect_change_with_arguments(param0 = T.unsafe(nil)); end380 def expect_change_with_block(param0 = T.unsafe(nil)); end381 def on_block(node); end382 def on_send(node); end383end384RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String)385RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String)386RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)387class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base388 def expectation(param0); end389 def on_block(node); end390 private391 def message(expect, hook); end392end393RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String)394class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base395 def on_gvasgn(node); end396 private397 def inside_example_scope?(node); end398end399RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String)400module RuboCop::Cop::RSpec::ExplicitHelper401 include ::RuboCop::RSpec::Language402 extend ::RuboCop::AST::NodePattern::Macros403 def predicate_matcher?(param0 = T.unsafe(nil)); end404 def predicate_matcher_block?(param0 = T.unsafe(nil)); end405 private406 def allowed_explicit_matchers; end407 def check_explicit(node); end408 def corrector_explicit(corrector, to_node, actual, matcher, block_child); end409 def message_explicit(matcher); end410 def move_predicate(corrector, actual, matcher, block_child); end411 def predicate_matcher_name?(name); end412 def replacement_matcher(node); end413 def to_predicate_method(matcher); end414end415RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array)416RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String)417module RuboCop::Cop::RSpec::FactoryBot; end418class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Base419 extend ::RuboCop::Cop::AutoCorrector420 def association?(param0 = T.unsafe(nil)); end421 def factory_attributes(param0 = T.unsafe(nil)); end422 def on_block(node); end423 def value_matcher(param0 = T.unsafe(nil)); end424 private425 def attribute_defining_method?(method_name); end426 def autocorrect(corrector, node); end427 def autocorrect_replacing_parens(corrector, node); end428 def autocorrect_without_parens(corrector, node); end429 def braces(node); end430 def offensive_receiver?(receiver, node); end431 def proc?(attribute); end432 def receiver_matches_first_block_argument?(receiver, node); end433 def reserved_method?(method_name); end434 def value_hash_without_braces?(node); end435end436RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String)437class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Base438 include ::RuboCop::Cop::ConfigurableEnforcedStyle439 include ::RuboCop::RSpec::FactoryBot::Language440 extend ::RuboCop::Cop::AutoCorrector441 def arguments_include_method_call?(param0 = T.unsafe(nil)); end442 def factory_call(param0 = T.unsafe(nil)); end443 def factory_list_call(param0 = T.unsafe(nil)); end444 def n_times_block?(param0 = T.unsafe(nil)); end445 def n_times_block_with_arg_and_used?(param0 = T.unsafe(nil)); end446 def on_block(node); end447 def on_send(node); end448 private449 def contains_only_factory?(node); end450end451module RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector452 private453 def build_options_string(options); end454 def format_method_call(node, method, arguments); end455 def format_receiver(receiver); end456end457class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector458 include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector459 def initialize(node); end460 def call(corrector); end461 private462 def build_arguments(node, count); end463 def call_replacement(node); end464 def call_with_block_replacement(node); end465 def format_block(node); end466 def format_multiline_block(node); end467 def format_singleline_block(node); end468 def node; end469end470RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String)471RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String)472RuboCop::Cop::RSpec::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)473class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector474 include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector475 def initialize(node); end476 def call(corrector); end477 private478 def generate_n_times_block(node); end479 def node; end480end481class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Base482 extend ::RuboCop::Cop::AutoCorrector483 def class_name(param0 = T.unsafe(nil)); end484 def on_send(node); end485 private486 def allowed?(const_name); end487end488RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array)489RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String)490RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)491class RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods < ::RuboCop::Cop::RSpec::Base492 include ::RuboCop::Cop::RSpec::InsideExampleGroup493 include ::RuboCop::Cop::RangeHelp494 include ::RuboCop::RSpec::FactoryBot::Language495 extend ::RuboCop::Cop::AutoCorrector496 def on_send(node); end497 private498 def crime_scene(node); end499 def offense(node); end500end501RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String)502RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)503class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base504 include ::RuboCop::Cop::RSpec::TopLevelGroup505 def example_group(param0 = T.unsafe(nil)); end506 def on_top_level_example_group(node); end507 def routing_metadata?(param0); end508 private509 def camel_to_snake_case(string); end510 def custom_transform; end511 def ensure_correct_file_path(send_node, example_group, arguments); end512 def expected_path(constant); end513 def filename_ends_with?(pattern); end514 def ignore_methods?; end515 def name_pattern(method_name); end516 def pattern_for(example_group, method_name); end517 def pattern_for_spec_suffix_only?; end518 def relevant_rubocop_rspec_file?(_file); end519 def routing_spec?(args); end520 def spec_suffix_only?; end521end522RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String)523module RuboCop::Cop::RSpec::FinalEndLocation524 def final_end_location(start_node); end525end526class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base527 include ::RuboCop::Cop::RangeHelp528 extend ::RuboCop::Cop::AutoCorrector529 def focusable_selector?(param0 = T.unsafe(nil)); end530 def focused_block?(param0 = T.unsafe(nil)); end531 def metadata(param0 = T.unsafe(nil)); end532 def on_send(node); end533 private534 def correct_send(corrector, focus); end535 def focus_metadata(node, &block); end536 def with_surrounding(focus); end537end538RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String)539class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base540 include ::RuboCop::Cop::ConfigurableEnforcedStyle541 extend ::RuboCop::Cop::AutoCorrector542 def on_block(node); end543 def scoped_hook(param0 = T.unsafe(nil)); end544 def unscoped_hook(param0 = T.unsafe(nil)); end545 private546 def argument_range(send_node); end547 def check_implicit(method_send); end548 def explicit_message(scope); end549 def hook(node, &block); end550 def implicit_style?; end551end552RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String)553RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String)554class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base555 extend ::RuboCop::Cop::AutoCorrector556 def example_or_group?(param0 = T.unsafe(nil)); end557 def on_block(node); end558 private559 def autocorrect(corrector, node, first_example); end560 def check_hooks(node); end561 def find_first_example(node); end562 def multiline_block?(block); end563end564RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String)565class RuboCop::Cop::RSpec::IdenticalEqualityAssertion < ::RuboCop::Cop::RSpec::Base566 def equality_check?(param0 = T.unsafe(nil)); end567 def on_send(node); end568end569RuboCop::Cop::RSpec::IdenticalEqualityAssertion::MSG = T.let(T.unsafe(nil), String)570RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)571class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base572 def implicit_expect(param0 = T.unsafe(nil)); end573 def lambda?(param0 = T.unsafe(nil)); end574 def lambda_subject?(param0 = T.unsafe(nil)); end575 def on_send(node); end576 private577 def find_subject(block_node); end578 def multi_statement_example_group?(node); end579 def nearest_subject(node); end580end581RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String)582RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)583class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base584 include ::RuboCop::Cop::ConfigurableEnforcedStyle585 extend ::RuboCop::Cop::AutoCorrector586 def implicit_expect(param0 = T.unsafe(nil)); end587 def on_send(node); end588 private589 def is_expected_range(source_map); end590 def offending_expect(node); end591 def offense_message(offending_source); end592 def replacement_source(offending_source); end593end594RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil), Hash)595RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String)596class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base597 include ::RuboCop::Cop::ConfigurableEnforcedStyle598 extend ::RuboCop::Cop::AutoCorrector599 def implicit_subject?(param0 = T.unsafe(nil)); end600 def on_send(node); end601 private602 def allowed_by_style?(example); end603 def autocorrect(corrector, node); end604 def valid_usage?(node); end605end606RuboCop::Cop::RSpec::ImplicitSubject::MSG = T.let(T.unsafe(nil), String)607RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)608module RuboCop::Cop::RSpec::InflectedHelper609 include ::RuboCop::RSpec::Language610 extend ::RuboCop::AST::NodePattern::Macros611 def be_bool?(param0 = T.unsafe(nil)); end612 def be_boolthy?(param0 = T.unsafe(nil)); end613 def predicate_in_actual?(param0 = T.unsafe(nil)); end614 private615 def boolean_matcher?(node); end616 def check_inflected(node); end617 def message_inflected(predicate); end618 def predicate?(sym); end619 def remove_predicate(corrector, predicate); end620 def rewrite_matcher(corrector, predicate, matcher); end621 def to_predicate_matcher(name); end622 def true?(to_symbol, matcher); end623end624RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String)625module RuboCop::Cop::RSpec::InsideExampleGroup626 private627 def example_group_root?(node); end628 def example_group_root_with_siblings?(node); end629 def inside_example_group?(node); end630end631class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base632 extend ::RuboCop::Cop::AutoCorrector633 def have_received_usage(param0); end634 def null_double(param0); end635 def on_block(node); end636 private637 def autocorrect(corrector, node); end638end639RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String)640class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base641 include ::RuboCop::Cop::RSpec::TopLevelGroup642 def custom_matcher?(param0 = T.unsafe(nil)); end643 def dynamic_class?(param0 = T.unsafe(nil)); end644 def ivar_assigned?(param0, param1); end645 def ivar_usage(param0); end646 def on_top_level_group(node); end647 private648 def assignment_only?; end649 def valid_usage?(node); end650end651RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String)652class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Base653 include ::RuboCop::Cop::ConfigurableEnforcedStyle654 extend ::RuboCop::Cop::AutoCorrector655 def example_inclusion_offense(param0 = T.unsafe(nil), param1); end656 def on_send(node); end657 private658 def message(_node); end659end660RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String)661RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)662class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base663 def each?(param0 = T.unsafe(nil)); end664 def expectation?(param0 = T.unsafe(nil), param1); end665 def on_block(node); end666 private667 def only_expectations?(body, arg); end668 def single_expectation?(body, arg); end669end670RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String)671class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base672 include ::RuboCop::Cop::RSpec::InsideExampleGroup673 extend ::RuboCop::Cop::AutoCorrector674 def check_previous_nodes(node); end675 def on_block(node); end676 private677 def autocorrect(corrector, node, sibling); end678 def offending?(node); end679 def offending_node(node); end680 def parent(node); end681end682RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String)683class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base684 def on_casgn(node); end685 def on_class(node); end686 def on_module(node); end687 private688 def inside_describe_block?(node); end689end690RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CLASS = T.let(T.unsafe(nil), String)691RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), String)692RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String)693class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Base694 extend ::RuboCop::Cop::AutoCorrector695 def example_or_group?(param0 = T.unsafe(nil)); end696 def on_block(node); end697 private698 def autocorrect(corrector, node, first_example); end699 def check_let_declarations(node); end700 def find_first_example(node); end701 def multiline_block?(block); end702end703RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String)704class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base705 def example_or_shared_group_or_including?(param0 = T.unsafe(nil)); end706 def let_bang(param0 = T.unsafe(nil)); end707 def method_called?(param0, param1); end708 def on_block(node); end709 private710 def child_let_bang(node, &block); end711 def unused_let_bang(node); end712end713RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String)714class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Base715 def on_send(node); end716end717RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String)718RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)719class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base720 include ::RuboCop::Cop::ConfigurableEnforcedStyle721 def message_expectation(param0 = T.unsafe(nil)); end722 def on_send(node); end723 def receive_message?(param0); end724 private725 def preferred_style?(expectation); end726end727RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String)728RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)729RuboCop::Cop::RSpec::MessageExpectation::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array)730class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base731 include ::RuboCop::Cop::ConfigurableEnforcedStyle732 def message_expectation(param0 = T.unsafe(nil)); end733 def on_send(node); end734 def receive_message(param0); end735 private736 def error_message(receiver); end737 def preferred_style?(expectation); end738 def receive_message_matcher(node); end739end740RuboCop::Cop::RSpec::MessageSpies::MSG_HAVE_RECEIVED = T.let(T.unsafe(nil), String)741RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String)742RuboCop::Cop::RSpec::MessageSpies::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array)743class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base744 def on_block(node); end745end746RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String)747class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base748 include ::RuboCop::Cop::RSpec::TopLevelGroup749 def on_top_level_group(node); end750end751RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String)752class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base753 include ::RuboCop::Cop::ConfigurableMax754 def aggregate_failures?(param0 = T.unsafe(nil), param1); end755 def aggregate_failures_block?(param0 = T.unsafe(nil)); end756 def expect?(param0 = T.unsafe(nil)); end757 def on_block(node); end758 private759 def example_with_aggregate_failures?(example_node); end760 def find_aggregate_failures(example_node); end761 def find_expectation(node, &block); end762 def flag_example(node, expectation_count:); end763 def max_expectations; end764end765RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc)766RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String)767RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc)768class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base769 include ::RuboCop::Cop::ConfigurableMax770 include ::RuboCop::Cop::RSpec::Variable771 def on_block(node); end772 def on_new_investigation; end773 private774 def all_helpers(node); end775 def allow_subject?; end776 def example_group_memoized_helpers; end777 def helpers(node); end778 def max; end779 def variable_nodes(node); end780end781RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String)782class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base783 include ::RuboCop::Cop::RangeHelp784 extend ::RuboCop::Cop::AutoCorrector785 def on_block(node); end786 private787 def autocorrect(corrector, subject); end788 def named_subject?(node); end789 def remove_autocorrect(corrector, node); end790 def rename_autocorrect(corrector, node); end791end792RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String)793class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base794 def example_or_hook_block?(param0 = T.unsafe(nil)); end795 def ignored_shared_example?(node); end796 def on_block(node); end797 def shared_example?(param0 = T.unsafe(nil)); end798 def subject_usage(param0); end799end800RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String)801class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base802 include ::RuboCop::Cop::ConfigurableMax803 include ::RuboCop::Cop::RSpec::TopLevelGroup804 def on_top_level_group(node); end805 private806 def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end807 def max_nesting; end808 def max_nesting_config; end809 def message(nesting); end810end811RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String)812RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)813RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String)814class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Base815 include ::RuboCop::Cop::ConfigurableEnforcedStyle816 extend ::RuboCop::Cop::AutoCorrector817 def not_to_not_offense(param0 = T.unsafe(nil), param1); end818 def on_send(node); end819 private820 def message(_node); end821end822RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String)823RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)824class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base825 def first_argument_name(param0 = T.unsafe(nil)); end826 def on_block(node); end827 def setup?(param0 = T.unsafe(nil)); end828 private829 def common_setup?(node); end830 def find_duplicates(node); end831end832RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String)833class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base834 def on_send(node); end835 def pending_block?(param0 = T.unsafe(nil)); end836 def skip_or_pending?(param0 = T.unsafe(nil)); end837 def skippable?(param0 = T.unsafe(nil)); end838 def skipped_in_metadata?(param0 = T.unsafe(nil)); end839 private840 def skipped?(node); end841end842RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String)843class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base844 include ::RuboCop::Cop::ConfigurableEnforcedStyle845 include ::RuboCop::Cop::RSpec::InflectedHelper846 include ::RuboCop::Cop::RSpec::ExplicitHelper847 extend ::RuboCop::Cop::AutoCorrector848 def on_block(node); end849 def on_send(node); end850 private851 def args_loc(send_node); end852 def block_loc(send_node); end853end854module RuboCop::Cop::RSpec::Rails; end855class RuboCop::Cop::RSpec::Rails::AvoidSetupHook < ::RuboCop::Cop::RSpec::Base856 extend ::RuboCop::Cop::AutoCorrector857 def on_block(node); end858 def setup_call(param0 = T.unsafe(nil)); end859end860RuboCop::Cop::RSpec::Rails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String)861class RuboCop::Cop::RSpec::Rails::HaveHttpStatus < ::RuboCop::Cop::RSpec::Base862 extend ::RuboCop::Cop::AutoCorrector863 def match_status(param0 = T.unsafe(nil)); end864 def on_send(node); end865end866RuboCop::Cop::RSpec::Rails::HaveHttpStatus::MSG = T.let(T.unsafe(nil), String)867class RuboCop::Cop::RSpec::Rails::HttpStatus < ::RuboCop::Cop::RSpec::Base868 include ::RuboCop::Cop::ConfigurableEnforcedStyle869 extend ::RuboCop::Cop::AutoCorrector870 def http_status(param0 = T.unsafe(nil)); end871 def on_send(node); end872 private873 def checker_class; end874end875class RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker876 def initialize(node); end877 def message; end878 def node; end879 def offensive?; end880 def preferred_style; end881 private882 def allowed_symbol?; end883 def number; end884 def symbol; end885end886RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::ALLOWED_STATUSES = T.let(T.unsafe(nil), Array)887RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::MSG = T.let(T.unsafe(nil), String)888RuboCop::Cop::RSpec::Rails::HttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)889class RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker890 def initialize(node); end891 def message; end892 def node; end893 def offensive?; end894 def preferred_style; end895 private896 def custom_http_status_code?; end897 def number; end898 def symbol; end899end900RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker::MSG = T.let(T.unsafe(nil), String)901class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base902 extend ::RuboCop::Cop::AutoCorrector903 def on_send(node); end904 def receive_counts(param0 = T.unsafe(nil)); end905 def stub?(param0); end906 private907 def autocorrect(corrector, node, range); end908 def matcher_for(method, count); end909 def message_for(node, source); end910 def range(node, offending_node); end911end912RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String)913RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)914class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Base915 extend ::RuboCop::Cop::AutoCorrector916 def method_on_stub?(param0); end917 def on_send(node); end918 private919 def autocorrect(corrector, node); end920end921RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String)922RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)923class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base924 def on_block(node); end925 private926 def example_signature(example); end927 def repeated_descriptions(node); end928end929RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String)930class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base931 def on_block(node); end932 private933 def example_signature(example); end934 def repeated_examples(node); end935end936RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String)937class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base938 def body(param0 = T.unsafe(nil)); end939 def const_arg(param0 = T.unsafe(nil)); end940 def metadata(param0 = T.unsafe(nil)); end941 def on_begin(node); end942 def several_example_groups?(param0 = T.unsafe(nil)); end943 def skip_or_pending?(param0 = T.unsafe(nil)); end944 private945 def add_repeated_lines(groups); end946 def message(group, repeats); end947 def repeated_group_bodies(node); end948 def signature_keys(group); end949end950RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String)951class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base952 def doc_string_and_metadata(param0 = T.unsafe(nil)); end953 def empty_description?(param0 = T.unsafe(nil)); end954 def on_begin(node); end955 def several_example_groups?(param0 = T.unsafe(nil)); end956 def skip_or_pending?(param0 = T.unsafe(nil)); end957 private958 def add_repeated_lines(groups); end959 def message(group, repeats); end960 def repeated_group_descriptions(node); end961end962RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String)963class RuboCop::Cop::RSpec::RepeatedIncludeExample < ::RuboCop::Cop::RSpec::Base964 def include_examples?(param0 = T.unsafe(nil)); end965 def on_begin(node); end966 def several_include_examples?(param0 = T.unsafe(nil)); end967 def shared_examples_name(param0 = T.unsafe(nil)); end968 private969 def add_repeated_lines(items); end970 def literal_include_examples?(node); end971 def message(item, repeats); end972 def repeated_include_examples(node); end973 def signature_keys(item); end974end975RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String)976class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base977 include ::RuboCop::Cop::ConfigurableEnforcedStyle978 extend ::RuboCop::Cop::AutoCorrector979 def and_return_value(param0); end980 def contains_stub?(param0); end981 def on_block(node); end982 def on_send(node); end983 def stub_with_block?(param0 = T.unsafe(nil)); end984 private985 def check_and_return_call(node); end986 def check_block_body(block); end987 def dynamic?(node); end988end989class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector990 def initialize(node); end991 def call(corrector); end992 private993 def arg; end994 def hash_without_braces?; end995 def heredoc?; end996 def node; end997 def range; end998 def receiver; end999 def replacement; end1000end1001class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector1002 def initialize(block); end1003 def call(corrector); end1004 private1005 def block; end1006 def body; end1007 def heredoc?; end1008 def node; end1009end1010RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector::NULL_BLOCK_BODY = T.let(T.unsafe(nil), T.untyped)1011RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), String)1012RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String)1013RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1014class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base1015 extend ::RuboCop::Cop::AutoCorrector1016 def on_block(node); end1017 private1018 def check_let_declarations(body); end1019 def find_first_let(node); end1020end1021RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String)1022class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base1023 def lines_msg(numbers); end1024 def on_block(node); end1025 def repeated_hooks(node); end1026end1027RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String)1028class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Base1029 extend ::RuboCop::Cop::AutoCorrector1030 def context?(param0); end1031 def examples?(param0); end1032 def on_block(node); end1033 def shared_context(param0 = T.unsafe(nil)); end1034 def shared_example(param0 = T.unsafe(nil)); end1035 private1036 def context_with_only_examples(node); end1037 def examples_with_only_context(node); end1038end1039RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String)1040RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String)1041class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Base1042 extend ::RuboCop::Cop::AutoCorrector1043 def on_send(node); end1044 def shared_examples(param0 = T.unsafe(nil)); end1045end1046class RuboCop::Cop::RSpec::SharedExamples::Checker1047 def initialize(node); end1048 def message; end1049 def node; end1050 def preferred_style; end1051 private1052 def symbol; end1053 def wrap_with_single_quotes(string); end1054end1055RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String)1056class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Base1057 extend ::RuboCop::Cop::AutoCorrector1058 def message_chain(param0 = T.unsafe(nil)); end1059 def on_send(node); end1060 def single_key_hash?(param0 = T.unsafe(nil)); end1061 private1062 def autocorrect(corrector, node, method, arg); end1063 def autocorrect_array_arg(corrector, arg); end1064 def autocorrect_hash_arg(corrector, arg); end1065 def key_to_arg(node); end1066 def replacement(method); end1067 def single_element_array?(node); end1068 def valid_usage?(node); end1069end1070RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String)1071RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1072class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base1073 def configured_response?(param0 = T.unsafe(nil)); end1074 def expectation(param0 = T.unsafe(nil)); end1075 def matcher_with_blockpass(param0 = T.unsafe(nil)); end1076 def matcher_with_configured_response(param0 = T.unsafe(nil)); end1077 def matcher_with_hash(param0 = T.unsafe(nil)); end1078 def matcher_with_return_block(param0 = T.unsafe(nil)); end1079 def message_expectation?(param0 = T.unsafe(nil)); end1080 def on_send(node); end1081 private1082 def msg(method_name); end1083 def on_expectation(expectation, method_name, matcher); end1084 def replacement(method_name); end1085end1086RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String)1087class RuboCop::Cop::RSpec::SubjectDeclaration < ::RuboCop::Cop::RSpec::Base1088 def offensive_subject_declaration?(param0 = T.unsafe(nil)); end1089 def on_send(node); end1090 private1091 def message_for(offense); end1092end1093RuboCop::Cop::RSpec::SubjectDeclaration::MSG_LET = T.let(T.unsafe(nil), String)1094RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), String)1095class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base1096 include ::RuboCop::Cop::RSpec::TopLevelGroup1097 def let?(param0 = T.unsafe(nil)); end1098 def message_expectation?(param0 = T.unsafe(nil), param1); end1099 def message_expectation_matcher?(param0); end1100 def on_top_level_group(node); end1101 def subject?(param0 = T.unsafe(nil)); end1102 private1103 def find_all_explicit(node); end1104 def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end1105end1106RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String)1107module RuboCop::Cop::RSpec::TopLevelGroup1108 extend ::RuboCop::AST::NodePattern::Macros1109 def on_new_investigation; end1110 def top_level_groups; end1111 private1112 def on_top_level_example_group(_node); end1113 def on_top_level_group(_node); end1114 def root_node; end1115 def top_level_group?(node); end1116 def top_level_nodes(node); end1117end1118class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base1119 def block_with_args?(node); end1120 def empty_exception_matcher?(node); end1121 def empty_raise_error_or_exception(param0 = T.unsafe(nil)); end1122 def on_send(node); end1123end1124RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String)1125RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1126module RuboCop::Cop::RSpec::Variable1127 extend ::RuboCop::AST::NodePattern::Macros1128 def variable_definition?(param0 = T.unsafe(nil)); end1129end1130RuboCop::Cop::RSpec::Variable::Helpers = RuboCop::RSpec::Language::Helpers1131RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects1132class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base1133 include ::RuboCop::Cop::ConfigurableEnforcedStyle1134 include ::RuboCop::Cop::RSpec::Variable1135 extend ::RuboCop::Cop::AutoCorrector1136 def on_send(node); end1137 private1138 def correct_variable(variable); end1139 def string?(node); end1140 def style_violation?(variable); end1141 def symbol?(node); end1142end1143RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String)1144class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base1145 include ::RuboCop::Cop::ConfigurableEnforcedStyle1146 include ::RuboCop::Cop::ConfigurableFormatting1147 include ::RuboCop::Cop::ConfigurableNaming1148 include ::RuboCop::Cop::AllowedPattern1149 include ::RuboCop::Cop::RSpec::Variable1150 def on_send(node); end1151 private1152 def message(style); end1153end1154RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String)1155class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base1156 include ::RuboCop::Cop::ConfigurableEnforcedStyle1157 extend ::RuboCop::Cop::AutoCorrector1158 def on_send(node); end1159 def verified_double(param0 = T.unsafe(nil)); end1160 private1161 def correct_style(violation); end1162 def opposing_style?(class_reference); end1163end1164RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String)1165RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash)1166RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)1167class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base1168 def on_send(node); end1169 def unverified_double(param0 = T.unsafe(nil)); end1170 private1171 def symbol?(name); end1172end1173RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String)1174RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1175class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base1176 def expect?(param0 = T.unsafe(nil)); end1177 def expect_block?(param0 = T.unsafe(nil)); end1178 def on_block(node); end1179 def on_send(node); end1180 private1181 def check_expect(node); end1182 def void?(expect); end1183end1184RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String)1185RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1186class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Base1187 include ::RuboCop::Cop::RangeHelp1188 extend ::RuboCop::Cop::AutoCorrector1189 def block_arg(param0 = T.unsafe(nil)); end1190 def block_call?(param0 = T.unsafe(nil), param1); end1191 def method_on_stub?(param0); end1192 def on_block(node); end1193 private1194 def autocorrect(corrector, node, range); end1195 def block_range(node); end1196 def calling_block?(node, block); end1197 def convert_block_to_yield(node); end1198 def generate_replacement(node); end1199end1200RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String)1201RuboCop::NodePattern = RuboCop::AST::NodePattern1202RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource1203module RuboCop::RSpec; end1204class RuboCop::RSpec::AlignLetBrace1205 include ::RuboCop::RSpec::Language1206 include ::RuboCop::PathUtil...
rubocop-rspec@2.10.0.rbi
Source:rubocop-rspec@2.10.0.rbi
...33RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)34class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base35 def find_arg_usage(param0); end36 def hook(param0 = T.unsafe(nil)); end37 def on_block(node); end38 private39 def add_no_arg_offense(node); end40 def check_for_unused_proxy(block, proxy); end41end42RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String)43RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String)44class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base45 include ::RuboCop::RSpec::Language46 extend ::RuboCop::RSpec::Language::NodePattern47 def on_new_investigation; end48 class << self49 def inherited(subclass); end50 end51end52class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base53 def be_without_args(param0 = T.unsafe(nil)); end54 def on_send(node); end55end56RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String)57class RuboCop::Cop::RSpec::BeEq < ::RuboCop::Cop::RSpec::Base58 extend ::RuboCop::Cop::AutoCorrector59 def eq_type_with_identity?(param0 = T.unsafe(nil)); end60 def on_send(node); end61end62RuboCop::Cop::RSpec::BeEq::MSG = T.let(T.unsafe(nil), String)63RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)64class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base65 extend ::RuboCop::Cop::AutoCorrector66 def eql_type_with_identity(param0 = T.unsafe(nil)); end67 def on_send(node); end68end69RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String)70RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)71class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base72 include ::RuboCop::Cop::ConfigurableEnforcedStyle73 extend ::RuboCop::Cop::AutoCorrector74 def be_nil_matcher?(param0 = T.unsafe(nil)); end75 def nil_value_expectation?(param0 = T.unsafe(nil)); end76 def on_send(node); end77 private78 def check_be_nil_style(node); end79 def check_be_style(node); end80end81RuboCop::Cop::RSpec::BeNil::BE_MSG = T.let(T.unsafe(nil), String)82RuboCop::Cop::RSpec::BeNil::BE_NIL_MSG = T.let(T.unsafe(nil), String)83RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)84class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base85 def before_or_after_all(param0 = T.unsafe(nil)); end86 def on_send(node); end87end88RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String)89RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)90module RuboCop::Cop::RSpec::Capybara; end91class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Base92 extend ::RuboCop::Cop::AutoCorrector93 def as_is_matcher(param0 = T.unsafe(nil)); end94 def expectation_set_on_current_path(param0 = T.unsafe(nil)); end95 def on_send(node); end96 def regexp_str_matcher(param0 = T.unsafe(nil)); end97 private98 def add_ignore_query_options(corrector, node); end99 def autocorrect(corrector, node); end100 def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end101 def rewrite_expectation(corrector, node, to_symbol, matcher_node); end102 class << self103 def autocorrect_incompatible_with; end104 end105end106RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String)107RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)108class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base109 include ::RuboCop::Cop::RSpec::InsideExampleGroup110 extend ::RuboCop::Cop::AutoCorrector111 def capybara_speak(param0 = T.unsafe(nil)); end112 def feature_method(param0 = T.unsafe(nil)); end113 def message(range); end114 def on_block(node); end115 private116 def enabled?(method_name); end117 def enabled_methods; end118end119RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash)120RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String)121class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::RSpec::Base122 def on_send(node); end123 def visible_false?(param0 = T.unsafe(nil)); end124 def visible_true?(param0 = T.unsafe(nil)); end125 private126 def capybara_matcher?(method_name); end127end128RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array)129RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil), String)130RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String)131RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)132module RuboCop::Cop::RSpec::CommentsHelp133 include ::RuboCop::Cop::RSpec::FinalEndLocation134 def begin_pos_with_comment(node); end135 def buffer; end136 def end_line_position(node); end137 def source_range_with_comment(node); end138 def start_line_position(node); end139end140class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Base141 extend ::RuboCop::Cop::AutoCorrector142 def context_method(param0 = T.unsafe(nil)); end143 def on_block(node); end144 private145 def method_name?(description); end146end147RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String)148class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base149 def context_wording(param0 = T.unsafe(nil)); end150 def on_block(node); end151 private152 def bad_prefix?(description); end153 def joined_prefixes; end154 def prefix_regex; end155 def prefixes; end156end157RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String)158class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base159 include ::RuboCop::Cop::RSpec::TopLevelGroup160 def example_group_with_ignored_metadata?(param0 = T.unsafe(nil)); end161 def not_a_const_described(param0 = T.unsafe(nil)); end162 def on_top_level_group(node); end163 def sym_pair(param0 = T.unsafe(nil)); end164 private165 def ignored_metadata; end166 def ignored_metadata?(node); end167 def string_constant?(described); end168end169RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String)170class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base171 include ::RuboCop::Cop::RSpec::TopLevelGroup172 def on_top_level_group(node); end173 def second_argument(param0 = T.unsafe(nil)); end174end175RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String)176class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base177 def describe_symbol?(param0 = T.unsafe(nil)); end178 def on_send(node); end179end180RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String)181RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)182class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base183 include ::RuboCop::Cop::ConfigurableEnforcedStyle184 extend ::RuboCop::Cop::AutoCorrector185 def common_instance_exec_closure?(param0 = T.unsafe(nil)); end186 def contains_described_class?(param0); end187 def described_constant(param0 = T.unsafe(nil)); end188 def on_block(node); end189 def rspec_block?(param0 = T.unsafe(nil)); end190 def scope_changing_syntax?(param0 = T.unsafe(nil)); end191 private192 def autocorrect(corrector, match); end193 def collapse_namespace(namespace, const); end194 def const_name(node); end195 def find_usage(node, &block); end196 def full_const_name(node); end197 def message(offense); end198 def namespace(node); end199 def offensive?(node); end200 def offensive_described_class?(node); end201 def scope_change?(node); end202 def skip_blocks?; end203 def skippable_block?(node); end204end205RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String)206RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String)207class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base208 def find_rspec_blocks(param0); end209 def on_module(node); end210end211RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String)212class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base213 include ::RuboCop::Cop::MethodPreference214 extend ::RuboCop::Cop::AutoCorrector215 def on_send(node); end216 def rspec_method?(param0 = T.unsafe(nil)); end217end218RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String)219class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base220 def example_group_body(param0 = T.unsafe(nil)); end221 def example_or_group_or_include?(param0 = T.unsafe(nil)); end222 def examples?(param0 = T.unsafe(nil)); end223 def examples_directly_or_in_block?(param0 = T.unsafe(nil)); end224 def examples_inside_block?(param0 = T.unsafe(nil)); end225 def on_block(node); end226 private227 def conditionals_with_examples?(body); end228 def examples_in_branches?(condition_node); end229 def offensive?(body); end230end231RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String)232class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Base233 include ::RuboCop::Cop::RangeHelp234 extend ::RuboCop::Cop::AutoCorrector235 def empty_hook?(param0 = T.unsafe(nil)); end236 def on_block(node); end237end238RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String)239class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base240 include ::RuboCop::Cop::RSpec::FinalEndLocation241 include ::RuboCop::Cop::RangeHelp242 include ::RuboCop::Cop::RSpec::EmptyLineSeparation243 extend ::RuboCop::Cop::AutoCorrector244 def allow_consecutive_one_liners?; end245 def allowed_one_liner?(node); end246 def consecutive_one_liner?(node); end247 def next_one_line_example?(node); end248 def next_sibling(node); end249 def on_block(node); end250end251RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String)252class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base253 include ::RuboCop::Cop::RSpec::FinalEndLocation254 include ::RuboCop::Cop::RangeHelp255 include ::RuboCop::Cop::RSpec::EmptyLineSeparation256 extend ::RuboCop::Cop::AutoCorrector257 def on_block(node); end258end259RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String)260class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base261 include ::RuboCop::Cop::RSpec::FinalEndLocation262 include ::RuboCop::Cop::RangeHelp263 include ::RuboCop::Cop::RSpec::EmptyLineSeparation264 extend ::RuboCop::Cop::AutoCorrector265 def on_block(node); end266end267RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String)268class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base269 include ::RuboCop::Cop::RSpec::FinalEndLocation270 include ::RuboCop::Cop::RangeHelp271 include ::RuboCop::Cop::RSpec::EmptyLineSeparation272 extend ::RuboCop::Cop::AutoCorrector273 def on_block(node); end274end275RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String)276class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base277 include ::RuboCop::Cop::RSpec::FinalEndLocation278 include ::RuboCop::Cop::RangeHelp279 include ::RuboCop::Cop::RSpec::EmptyLineSeparation280 include ::RuboCop::Cop::RSpec::InsideExampleGroup281 extend ::RuboCop::Cop::AutoCorrector282 def on_block(node); end283end284RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String)285module RuboCop::Cop::RSpec::EmptyLineSeparation286 include ::RuboCop::Cop::RSpec::FinalEndLocation287 include ::RuboCop::Cop::RangeHelp288 def last_child?(node); end289 def missing_separating_line(node); end290 def missing_separating_line_offense(node); end291 def offending_loc(last_line); end292end293class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base294 include ::RuboCop::Cop::CodeLength295 def on_block(node); end296 private297 def cop_label; end298end299RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String)300class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base301 include ::RuboCop::Cop::ConfigurableEnforcedStyle302 def example_description(param0 = T.unsafe(nil)); end303 def on_block(node); end304 private305 def check_example_without_description(node); end306 def disallow_empty_description?(node); end307end308RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.unsafe(nil), String)309RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String)310class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base311 extend ::RuboCop::Cop::AutoCorrector312 def it_description(param0 = T.unsafe(nil)); end313 def on_block(node); end314 private315 def add_wording_offense(node, message); end316 def custom_transform; end317 def docstring(node); end318 def ignored_words; end319 def replacement_text(node); end320 def text(node); end321end322RuboCop::Cop::RSpec::ExampleWording::IT_PREFIX = T.let(T.unsafe(nil), Regexp)323RuboCop::Cop::RSpec::ExampleWording::MSG_IT = T.let(T.unsafe(nil), String)324RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String)325RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp)326class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Base327 extend ::RuboCop::Cop::AutoCorrector328 def example_description(param0 = T.unsafe(nil)); end329 def on_send(node); end330 private331 def add_whitespace_offense(node, text); end332 def docstring(node); end333 def excessive_whitespace?(text); end334 def strip_excessive_whitespace(text); end335 def text(node); end336end337RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), String)338class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base339 extend ::RuboCop::Cop::AutoCorrector340 def expect_literal(param0 = T.unsafe(nil)); end341 def on_send(node); end342 private343 def complex_literal?(node); end344 def literal?(node); end345 def simple_literal?(node); end346 def swap(corrector, actual, expected); end347end348RuboCop::Cop::RSpec::ExpectActual::COMPLEX_LITERALS = T.let(T.unsafe(nil), Array)349RuboCop::Cop::RSpec::ExpectActual::MSG = T.let(T.unsafe(nil), String)350RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array)351RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Array)352class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base353 include ::RuboCop::Cop::ConfigurableEnforcedStyle354 extend ::RuboCop::Cop::AutoCorrector355 def expect_change_with_arguments(param0 = T.unsafe(nil)); end356 def expect_change_with_block(param0 = T.unsafe(nil)); end357 def on_block(node); end358 def on_send(node); end359end360RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String)361RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String)362RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)363class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base364 def expectation(param0); end365 def on_block(node); end366 private367 def message(expect, hook); end368end369RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String)370class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base371 def on_gvasgn(node); end372 private373 def inside_example_scope?(node); end374end375RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String)376module RuboCop::Cop::RSpec::ExplicitHelper377 include ::RuboCop::RSpec::Language378 extend ::RuboCop::AST::NodePattern::Macros379 def predicate_matcher?(param0 = T.unsafe(nil)); end380 def predicate_matcher_block?(param0 = T.unsafe(nil)); end381 private382 def allowed_explicit_matchers; end383 def check_explicit(node); end384 def corrector_explicit(corrector, to_node, actual, matcher, block_child); end385 def message_explicit(matcher); end386 def move_predicate(corrector, actual, matcher, block_child); end387 def predicate_matcher_name?(name); end388 def replacement_matcher(node); end389 def to_predicate_method(matcher); end390end391RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array)392RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String)393module RuboCop::Cop::RSpec::FactoryBot; end394class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Base395 extend ::RuboCop::Cop::AutoCorrector396 def association?(param0 = T.unsafe(nil)); end397 def factory_attributes(param0 = T.unsafe(nil)); end398 def on_block(node); end399 def value_matcher(param0 = T.unsafe(nil)); end400 private401 def attribute_defining_method?(method_name); end402 def autocorrect(corrector, node); end403 def autocorrect_replacing_parens(corrector, node); end404 def autocorrect_without_parens(corrector, node); end405 def braces(node); end406 def offensive_receiver?(receiver, node); end407 def proc?(attribute); end408 def receiver_matches_first_block_argument?(receiver, node); end409 def reserved_method?(method_name); end410 def value_hash_without_braces?(node); end411end412RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String)413class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Base414 include ::RuboCop::Cop::ConfigurableEnforcedStyle415 include ::RuboCop::RSpec::FactoryBot::Language416 extend ::RuboCop::Cop::AutoCorrector417 def factory_call(param0 = T.unsafe(nil)); end418 def factory_list_call(param0 = T.unsafe(nil)); end419 def n_times_block_without_arg?(param0 = T.unsafe(nil)); end420 def on_block(node); end421 def on_send(node); end422 private423 def contains_only_factory?(node); end424end425module RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector426 private427 def build_options_string(options); end428 def format_method_call(node, method, arguments); end429 def format_receiver(receiver); end430end431class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector432 include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector433 def initialize(node); end434 def call(corrector); end435 private436 def build_arguments(node, count); end437 def call_replacement(node); end438 def call_with_block_replacement(node); end439 def format_block(node); end440 def format_multiline_block(node); end441 def format_singeline_block(node); end442 def node; end443end444RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String)445RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String)446RuboCop::Cop::RSpec::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)447class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector448 include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector449 def initialize(node); end450 def call(corrector); end451 private452 def generate_n_times_block(node); end453 def node; end454end455class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Base456 extend ::RuboCop::Cop::AutoCorrector457 def class_name(param0 = T.unsafe(nil)); end458 def on_send(node); end459 private460 def allowed?(const_name); end461end462RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array)463RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String)464RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)465class RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods < ::RuboCop::Cop::RSpec::Base466 include ::RuboCop::Cop::RSpec::InsideExampleGroup467 include ::RuboCop::Cop::RangeHelp468 include ::RuboCop::RSpec::FactoryBot::Language469 extend ::RuboCop::Cop::AutoCorrector470 def on_send(node); end471 private472 def crime_scene(node); end473 def offense(node); end474end475RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String)476RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)477class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base478 include ::RuboCop::Cop::RSpec::TopLevelGroup479 def example_group(param0 = T.unsafe(nil)); end480 def on_top_level_example_group(node); end481 def routing_metadata?(param0); end482 private483 def camel_to_snake_case(string); end484 def custom_transform; end485 def ensure_correct_file_path(send_node, example_group, arguments); end486 def expected_path(constant); end487 def filename_ends_with?(pattern); end488 def ignore_methods?; end489 def name_pattern(method_name); end490 def pattern_for(example_group, method_name); end491 def pattern_for_spec_suffix_only?; end492 def relevant_rubocop_rspec_file?(_file); end493 def routing_spec?(args); end494 def spec_suffix_only?; end495end496RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String)497module RuboCop::Cop::RSpec::FinalEndLocation498 def final_end_location(start_node); end499end500class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base501 include ::RuboCop::Cop::RangeHelp502 extend ::RuboCop::Cop::AutoCorrector503 def focusable_selector?(param0 = T.unsafe(nil)); end504 def focused_block?(param0 = T.unsafe(nil)); end505 def metadata(param0 = T.unsafe(nil)); end506 def on_send(node); end507 private508 def correct_send(corrector, focus); end509 def focus_metadata(node, &block); end510 def with_surrounding(focus); end511end512RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String)513class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base514 include ::RuboCop::Cop::ConfigurableEnforcedStyle515 extend ::RuboCop::Cop::AutoCorrector516 def on_block(node); end517 def scoped_hook(param0 = T.unsafe(nil)); end518 def unscoped_hook(param0 = T.unsafe(nil)); end519 private520 def argument_range(send_node); end521 def check_implicit(method_send); end522 def explicit_message(scope); end523 def hook(node, &block); end524 def implicit_style?; end525end526RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String)527RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String)528class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base529 extend ::RuboCop::Cop::AutoCorrector530 def example_or_group?(param0 = T.unsafe(nil)); end531 def on_block(node); end532 private533 def autocorrect(corrector, node, first_example); end534 def check_hooks(node); end535 def find_first_example(node); end536 def multiline_block?(block); end537end538RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String)539class RuboCop::Cop::RSpec::IdenticalEqualityAssertion < ::RuboCop::Cop::RSpec::Base540 def equality_check?(param0 = T.unsafe(nil)); end541 def on_send(node); end542end543RuboCop::Cop::RSpec::IdenticalEqualityAssertion::MSG = T.let(T.unsafe(nil), String)544RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)545class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base546 def implicit_expect(param0 = T.unsafe(nil)); end547 def lambda?(param0 = T.unsafe(nil)); end548 def lambda_subject?(param0 = T.unsafe(nil)); end549 def on_send(node); end550 private551 def find_subject(block_node); end552 def multi_statement_example_group?(node); end553 def nearest_subject(node); end554end555RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String)556RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)557class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base558 include ::RuboCop::Cop::ConfigurableEnforcedStyle559 extend ::RuboCop::Cop::AutoCorrector560 def implicit_expect(param0 = T.unsafe(nil)); end561 def on_send(node); end562 private563 def is_expected_range(source_map); end564 def offending_expect(node); end565 def offense_message(offending_source); end566 def replacement_source(offending_source); end567end568RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil), Hash)569RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String)570class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base571 include ::RuboCop::Cop::ConfigurableEnforcedStyle572 extend ::RuboCop::Cop::AutoCorrector573 def implicit_subject?(param0 = T.unsafe(nil)); end574 def on_send(node); end575 private576 def allowed_by_style?(example); end577 def autocorrect(corrector, node); end578 def valid_usage?(node); end579end580RuboCop::Cop::RSpec::ImplicitSubject::MSG = T.let(T.unsafe(nil), String)581RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)582module RuboCop::Cop::RSpec::InflectedHelper583 include ::RuboCop::RSpec::Language584 extend ::RuboCop::AST::NodePattern::Macros585 def be_bool?(param0 = T.unsafe(nil)); end586 def be_boolthy?(param0 = T.unsafe(nil)); end587 def predicate_in_actual?(param0 = T.unsafe(nil)); end588 private589 def boolean_matcher?(node); end590 def check_inflected(node); end591 def message_inflected(predicate); end592 def predicate?(sym); end593 def remove_predicate(corrector, predicate); end594 def rewrite_matcher(corrector, predicate, matcher); end595 def to_predicate_matcher(name); end596 def true?(to_symbol, matcher); end597end598RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String)599module RuboCop::Cop::RSpec::InsideExampleGroup600 private601 def example_group_root?(node); end602 def example_group_root_with_siblings?(node); end603 def inside_example_group?(node); end604end605class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base606 extend ::RuboCop::Cop::AutoCorrector607 def have_received_usage(param0); end608 def null_double(param0); end609 def on_block(node); end610 private611 def autocorrect(corrector, node); end612end613RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String)614class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base615 include ::RuboCop::Cop::RSpec::TopLevelGroup616 def custom_matcher?(param0 = T.unsafe(nil)); end617 def dynamic_class?(param0 = T.unsafe(nil)); end618 def ivar_assigned?(param0, param1); end619 def ivar_usage(param0); end620 def on_top_level_group(node); end621 private622 def assignment_only?; end623 def valid_usage?(node); end624end625RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String)626class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Base627 include ::RuboCop::Cop::ConfigurableEnforcedStyle628 extend ::RuboCop::Cop::AutoCorrector629 def example_inclusion_offense(param0 = T.unsafe(nil), param1); end630 def on_send(node); end631 private632 def message(_node); end633end634RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String)635RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)636class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base637 def each?(param0 = T.unsafe(nil)); end638 def expectation?(param0 = T.unsafe(nil), param1); end639 def on_block(node); end640 private641 def only_expectations?(body, arg); end642 def single_expectation?(body, arg); end643end644RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String)645class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base646 include ::RuboCop::Cop::RSpec::InsideExampleGroup647 extend ::RuboCop::Cop::AutoCorrector648 def check_previous_nodes(node); end649 def on_block(node); end650 private651 def autocorrect(corrector, node, sibling); end652 def offending?(node); end653 def offending_node(node); end654 def parent(node); end655end656RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String)657class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base658 def on_casgn(node); end659 def on_class(node); end660 def on_module(node); end661 private662 def inside_describe_block?(node); end663end664RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CLASS = T.let(T.unsafe(nil), String)665RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), String)666RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String)667class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Base668 extend ::RuboCop::Cop::AutoCorrector669 def example_or_group?(param0 = T.unsafe(nil)); end670 def on_block(node); end671 private672 def autocorrect(corrector, node, first_example); end673 def check_let_declarations(node); end674 def find_first_example(node); end675 def multiline_block?(block); end676end677RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String)678class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base679 def example_or_shared_group_or_including?(param0 = T.unsafe(nil)); end680 def let_bang(param0 = T.unsafe(nil)); end681 def method_called?(param0, param1); end682 def on_block(node); end683 private684 def child_let_bang(node, &block); end685 def unused_let_bang(node); end686end687RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String)688class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Base689 def on_send(node); end690end691RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String)692RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)693class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base694 include ::RuboCop::Cop::ConfigurableEnforcedStyle695 def message_expectation(param0 = T.unsafe(nil)); end696 def on_send(node); end697 def receive_message?(param0); end698 private699 def preferred_style?(expectation); end700end701RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String)702RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)703RuboCop::Cop::RSpec::MessageExpectation::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array)704class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base705 include ::RuboCop::Cop::ConfigurableEnforcedStyle706 def message_expectation(param0 = T.unsafe(nil)); end707 def on_send(node); end708 def receive_message(param0); end709 private710 def error_message(receiver); end711 def preferred_style?(expectation); end712 def receive_message_matcher(node); end713end714RuboCop::Cop::RSpec::MessageSpies::MSG_HAVE_RECEIVED = T.let(T.unsafe(nil), String)715RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String)716RuboCop::Cop::RSpec::MessageSpies::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array)717class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base718 def on_block(node); end719end720RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String)721class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base722 include ::RuboCop::Cop::RSpec::TopLevelGroup723 def on_top_level_group(node); end724end725RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String)726class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base727 include ::RuboCop::Cop::ConfigurableMax728 def aggregate_failures?(param0 = T.unsafe(nil), param1); end729 def aggregate_failures_block?(param0 = T.unsafe(nil)); end730 def expect?(param0 = T.unsafe(nil)); end731 def on_block(node); end732 private733 def example_with_aggregate_failures?(example_node); end734 def find_aggregate_failures(example_node); end735 def find_expectation(node, &block); end736 def flag_example(node, expectation_count:); end737 def max_expectations; end738end739RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc)740RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String)741RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc)742class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base743 include ::RuboCop::Cop::ConfigurableMax744 include ::RuboCop::Cop::RSpec::Variable745 def on_block(node); end746 def on_new_investigation; end747 private748 def all_helpers(node); end749 def allow_subject?; end750 def example_group_memoized_helpers; end751 def helpers(node); end752 def max; end753 def variable_nodes(node); end754end755RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String)756class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base757 include ::RuboCop::Cop::RangeHelp758 extend ::RuboCop::Cop::AutoCorrector759 def on_block(node); end760 private761 def autocorrect(corrector, subject); end762 def named_subject?(node); end763 def remove_autocorrect(corrector, node); end764 def rename_autocorrect(corrector, node); end765end766RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String)767class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base768 def example_or_hook_block?(param0 = T.unsafe(nil)); end769 def ignored_shared_example?(node); end770 def on_block(node); end771 def shared_example?(param0 = T.unsafe(nil)); end772 def subject_usage(param0); end773end774RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String)775class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base776 include ::RuboCop::Cop::ConfigurableMax777 include ::RuboCop::Cop::RSpec::TopLevelGroup778 def on_top_level_group(node); end779 private780 def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end781 def max_nesting; end782 def max_nesting_config; end783 def message(nesting); end784end785RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String)786RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)787RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String)788class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Base789 include ::RuboCop::Cop::ConfigurableEnforcedStyle790 extend ::RuboCop::Cop::AutoCorrector791 def not_to_not_offense(param0 = T.unsafe(nil), param1); end792 def on_send(node); end793 private794 def message(_node); end795end796RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String)797RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)798class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base799 def first_argument_name(param0 = T.unsafe(nil)); end800 def on_block(node); end801 def setup?(param0 = T.unsafe(nil)); end802 private803 def common_setup?(node); end804 def find_duplicates(node); end805end806RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String)807class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base808 def on_send(node); end809 def pending_block?(param0 = T.unsafe(nil)); end810 def skip_or_pending?(param0 = T.unsafe(nil)); end811 def skippable?(param0 = T.unsafe(nil)); end812 def skipped_in_metadata?(param0 = T.unsafe(nil)); end813 private814 def skipped?(node); end815end816RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String)817class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base818 include ::RuboCop::Cop::ConfigurableEnforcedStyle819 include ::RuboCop::Cop::RSpec::InflectedHelper820 include ::RuboCop::Cop::RSpec::ExplicitHelper821 extend ::RuboCop::Cop::AutoCorrector822 def on_block(node); end823 def on_send(node); end824 private825 def args_loc(send_node); end826 def block_loc(send_node); end827end828module RuboCop::Cop::RSpec::Rails; end829class RuboCop::Cop::RSpec::Rails::AvoidSetupHook < ::RuboCop::Cop::RSpec::Base830 extend ::RuboCop::Cop::AutoCorrector831 def on_block(node); end832 def setup_call(param0 = T.unsafe(nil)); end833end834RuboCop::Cop::RSpec::Rails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String)835class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base836 extend ::RuboCop::Cop::AutoCorrector837 def on_send(node); end838 def receive_counts(param0 = T.unsafe(nil)); end839 def stub?(param0); end840 private841 def autocorrect(corrector, node, range); end842 def matcher_for(method, count); end843 def message_for(node, source); end844 def range(node, offending_node); end845end846RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String)847RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)848class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Base849 extend ::RuboCop::Cop::AutoCorrector850 def method_on_stub?(param0); end851 def on_send(node); end852 private853 def autocorrect(corrector, node); end854end855RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String)856RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)857class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base858 def on_block(node); end859 private860 def example_signature(example); end861 def repeated_descriptions(node); end862end863RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String)864class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base865 def on_block(node); end866 private867 def example_signature(example); end868 def repeated_examples(node); end869end870RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String)871class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base872 def body(param0 = T.unsafe(nil)); end873 def const_arg(param0 = T.unsafe(nil)); end874 def metadata(param0 = T.unsafe(nil)); end875 def on_begin(node); end876 def several_example_groups?(param0 = T.unsafe(nil)); end877 def skip_or_pending?(param0 = T.unsafe(nil)); end878 private879 def add_repeated_lines(groups); end880 def message(group, repeats); end881 def repeated_group_bodies(node); end882 def signature_keys(group); end883end884RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String)885class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base886 def doc_string_and_metadata(param0 = T.unsafe(nil)); end887 def empty_description?(param0 = T.unsafe(nil)); end888 def on_begin(node); end889 def several_example_groups?(param0 = T.unsafe(nil)); end890 def skip_or_pending?(param0 = T.unsafe(nil)); end891 private892 def add_repeated_lines(groups); end893 def message(group, repeats); end894 def repeated_group_descriptions(node); end895end896RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String)897class RuboCop::Cop::RSpec::RepeatedIncludeExample < ::RuboCop::Cop::RSpec::Base898 def include_examples?(param0 = T.unsafe(nil)); end899 def on_begin(node); end900 def several_include_examples?(param0 = T.unsafe(nil)); end901 def shared_examples_name(param0 = T.unsafe(nil)); end902 private903 def add_repeated_lines(items); end904 def literal_include_examples?(node); end905 def message(item, repeats); end906 def repeated_include_examples(node); end907 def signature_keys(item); end908end909RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String)910class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base911 include ::RuboCop::Cop::ConfigurableEnforcedStyle912 extend ::RuboCop::Cop::AutoCorrector913 def and_return_value(param0); end914 def contains_stub?(param0); end915 def on_block(node); end916 def on_send(node); end917 def stub_with_block?(param0 = T.unsafe(nil)); end918 private919 def check_and_return_call(node); end920 def check_block_body(block); end921 def dynamic?(node); end922end923class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector924 def initialize(node); end925 def call(corrector); end926 private927 def arg; end928 def hash_without_braces?; end929 def heredoc?; end930 def node; end931 def range; end932 def receiver; end933 def replacement; end934end935class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector936 def initialize(block); end937 def call(corrector); end938 private939 def block; end940 def body; end941 def heredoc?; end942 def node; end943end944RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector::NULL_BLOCK_BODY = T.let(T.unsafe(nil), T.untyped)945RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), String)946RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String)947RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)948class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base949 extend ::RuboCop::Cop::AutoCorrector950 def on_block(node); end951 private952 def check_let_declarations(body); end953 def find_first_let(node); end954end955RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String)956class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base957 def lines_msg(numbers); end958 def on_block(node); end959 def repeated_hooks(node); end960end961RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String)962class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Base963 extend ::RuboCop::Cop::AutoCorrector964 def context?(param0); end965 def examples?(param0); end966 def on_block(node); end967 def shared_context(param0 = T.unsafe(nil)); end968 def shared_example(param0 = T.unsafe(nil)); end969 private970 def context_with_only_examples(node); end971 def examples_with_only_context(node); end972end973RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String)974RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String)975class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Base976 extend ::RuboCop::Cop::AutoCorrector977 def on_send(node); end978 def shared_examples(param0 = T.unsafe(nil)); end979end980class RuboCop::Cop::RSpec::SharedExamples::Checker981 def initialize(node); end982 def message; end983 def node; end984 def preferred_style; end985 private986 def symbol; end987 def wrap_with_single_quotes(string); end988end989RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String)990class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Base991 extend ::RuboCop::Cop::AutoCorrector992 def message_chain(param0 = T.unsafe(nil)); end993 def on_send(node); end994 def single_key_hash?(param0 = T.unsafe(nil)); end995 private996 def autocorrect(corrector, node, method, arg); end997 def autocorrect_array_arg(corrector, arg); end998 def autocorrect_hash_arg(corrector, arg); end999 def key_to_arg(node); end1000 def replacement(method); end1001 def single_element_array?(node); end1002 def valid_usage?(node); end1003end1004RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String)1005RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1006class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base1007 def configured_response?(param0 = T.unsafe(nil)); end1008 def expectation(param0 = T.unsafe(nil)); end1009 def matcher_with_blockpass(param0 = T.unsafe(nil)); end1010 def matcher_with_configured_response(param0 = T.unsafe(nil)); end1011 def matcher_with_hash(param0 = T.unsafe(nil)); end1012 def matcher_with_return_block(param0 = T.unsafe(nil)); end1013 def message_expectation?(param0 = T.unsafe(nil)); end1014 def on_send(node); end1015 private1016 def msg(method_name); end1017 def on_expectation(expectation, method_name, matcher); end1018 def replacement(method_name); end1019end1020RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String)1021class RuboCop::Cop::RSpec::SubjectDeclaration < ::RuboCop::Cop::RSpec::Base1022 def offensive_subject_declaration?(param0 = T.unsafe(nil)); end1023 def on_send(node); end1024 private1025 def message_for(offense); end1026end1027RuboCop::Cop::RSpec::SubjectDeclaration::MSG_LET = T.let(T.unsafe(nil), String)1028RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), String)1029class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base1030 include ::RuboCop::Cop::RSpec::TopLevelGroup1031 def let?(param0 = T.unsafe(nil)); end1032 def message_expectation?(param0 = T.unsafe(nil), param1); end1033 def message_expectation_matcher?(param0); end1034 def on_top_level_group(node); end1035 def subject?(param0 = T.unsafe(nil)); end1036 private1037 def find_all_explicit(node); end1038 def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end1039end1040RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String)1041module RuboCop::Cop::RSpec::TopLevelGroup1042 extend ::RuboCop::AST::NodePattern::Macros1043 def on_new_investigation; end1044 def top_level_groups; end1045 private1046 def on_top_level_example_group(_node); end1047 def on_top_level_group(_node); end1048 def root_node; end1049 def top_level_group?(node); end1050 def top_level_nodes(node); end1051end1052class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base1053 def block_with_args?(node); end1054 def empty_exception_matcher?(node); end1055 def empty_raise_error_or_exception(param0 = T.unsafe(nil)); end1056 def on_send(node); end1057end1058RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String)1059RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1060module RuboCop::Cop::RSpec::Variable1061 extend ::RuboCop::AST::NodePattern::Macros1062 def variable_definition?(param0 = T.unsafe(nil)); end1063end1064RuboCop::Cop::RSpec::Variable::Helpers = RuboCop::RSpec::Language::Helpers1065RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects1066class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base1067 include ::RuboCop::Cop::ConfigurableEnforcedStyle1068 include ::RuboCop::Cop::RSpec::Variable1069 extend ::RuboCop::Cop::AutoCorrector1070 def on_send(node); end1071 private1072 def correct_variable(variable); end1073 def string?(node); end1074 def style_violation?(variable); end1075 def symbol?(node); end1076end1077RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String)1078class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base1079 include ::RuboCop::Cop::ConfigurableEnforcedStyle1080 include ::RuboCop::Cop::ConfigurableFormatting1081 include ::RuboCop::Cop::ConfigurableNaming1082 include ::RuboCop::Cop::AllowedPattern1083 include ::RuboCop::Cop::RSpec::Variable1084 def on_send(node); end1085 private1086 def message(style); end1087end1088RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String)1089class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base1090 include ::RuboCop::Cop::ConfigurableEnforcedStyle1091 extend ::RuboCop::Cop::AutoCorrector1092 def on_send(node); end1093 def verified_double(param0 = T.unsafe(nil)); end1094 private1095 def correct_style(violation); end1096 def opposing_style?(class_reference); end1097end1098RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String)1099RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash)1100RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)1101class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base1102 def on_send(node); end1103 def unverified_double(param0 = T.unsafe(nil)); end1104 private1105 def symbol?(name); end1106end1107RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String)1108RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1109class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base1110 def expect?(param0 = T.unsafe(nil)); end1111 def expect_block?(param0 = T.unsafe(nil)); end1112 def on_block(node); end1113 def on_send(node); end1114 private1115 def check_expect(node); end1116 def void?(expect); end1117end1118RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String)1119RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)1120class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Base1121 include ::RuboCop::Cop::RangeHelp1122 extend ::RuboCop::Cop::AutoCorrector1123 def block_arg(param0 = T.unsafe(nil)); end1124 def block_call?(param0 = T.unsafe(nil), param1); end1125 def method_on_stub?(param0); end1126 def on_block(node); end1127 private1128 def autocorrect(corrector, node, range); end1129 def block_range(node); end1130 def calling_block?(node, block); end1131 def convert_block_to_yield(node); end1132 def generate_replacement(node); end1133end1134RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String)1135RuboCop::NodePattern = RuboCop::AST::NodePattern1136RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource1137module RuboCop::RSpec; end1138class RuboCop::RSpec::AlignLetBrace1139 include ::RuboCop::RSpec::Language1140 include ::RuboCop::PathUtil...
rubocop-rspec.rbi
Source:rubocop-rspec.rbi
...233 def enabled_methods; end234 def feature_method(param0 = nil); end235 def inside_spec?(node); end236 def message(range); end237 def on_block(node); end238 def root_node?(node); end239 def root_with_siblings?(node); end240 def spec?(param0 = nil); end241 extend RuboCop::Cop::AutoCorrector242end243class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < RuboCop::Cop::RSpec::Base244 def capybara_matcher?(method_name); end245 def on_send(node); end246 def visible_false?(param0 = nil); end247 def visible_true?(param0 = nil); end248end249module RuboCop::Cop::RSpec::FactoryBot250end251class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < RuboCop::Cop::RSpec::Base252 def association?(param0 = nil); end253 def attribute_defining_method?(method_name); end254 def autocorrect(corrector, node); end255 def autocorrect_replacing_parens(corrector, node); end256 def autocorrect_without_parens(corrector, node); end257 def braces(node); end258 def factory_attributes(param0 = nil); end259 def offensive_receiver?(receiver, node); end260 def on_block(node); end261 def proc?(attribute); end262 def receiver_matches_first_block_argument?(receiver, node); end263 def reserved_method?(method_name); end264 def value_hash_without_braces?(node); end265 def value_matcher(param0 = nil); end266 extend RuboCop::Cop::AutoCorrector267end268class RuboCop::Cop::RSpec::FactoryBot::CreateList < RuboCop::Cop::RSpec::Base269 def contains_only_factory?(node); end270 def factory_call(param0 = nil); end271 def factory_list_call(param0 = nil); end272 def n_times_block_without_arg?(param0 = nil); end273 def on_block(node); end274 def on_send(node); end275 extend RuboCop::Cop::AutoCorrector276 include RuboCop::Cop::ConfigurableEnforcedStyle277end278module RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector279 def build_options_string(options); end280 def format_method_call(node, method, arguments); end281 def format_receiver(receiver); end282end283class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector284 def call(corrector); end285 def generate_n_times_block(node); end286 def initialize(node); end287 def node; end288 include RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector289end290class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector291 def build_arguments(node, count); end292 def call(corrector); end293 def call_replacement(node); end294 def call_with_block_replacement(node); end295 def format_block(node); end296 def format_multiline_block(node); end297 def format_singeline_block(node); end298 def initialize(node); end299 def node; end300 include RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector301end302class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < RuboCop::Cop::RSpec::Base303 def allowed?(const_name); end304 def class_name(param0 = nil); end305 def on_send(node); end306 extend RuboCop::Cop::AutoCorrector307end308module RuboCop::Cop::RSpec::Rails309end310class RuboCop::Cop::RSpec::Rails::HttpStatus < RuboCop::Cop::RSpec::Base311 def checker_class; end312 def http_status(param0 = nil); end313 def on_send(node); end314 extend RuboCop::Cop::AutoCorrector315 include RuboCop::Cop::ConfigurableEnforcedStyle316end317class RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker318 def custom_http_status_code?; end319 def initialize(node); end320 def message; end321 def node; end322 def number; end323 def offensive?; end324 def preferred_style; end325 def symbol; end326end327class RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker328 def allowed_symbol?; end329 def initialize(node); end330 def message; end331 def node; end332 def number; end333 def offensive?; end334 def preferred_style; end335 def symbol; end336end337class RuboCop::Cop::RSpec::AlignLeftLetBrace < RuboCop::Cop::RSpec::Base338 def on_new_investigation; end339 def self.autocorrect_incompatible_with; end340 def token_aligner; end341 extend RuboCop::Cop::AutoCorrector342end343class RuboCop::Cop::RSpec::AlignRightLetBrace < RuboCop::Cop::RSpec::Base344 def on_new_investigation; end345 def self.autocorrect_incompatible_with; end346 def token_aligner; end347 extend RuboCop::Cop::AutoCorrector348end349class RuboCop::Cop::RSpec::AnyInstance < RuboCop::Cop::RSpec::Base350 def on_send(node); end351end352class RuboCop::Cop::RSpec::AroundBlock < RuboCop::Cop::RSpec::Base353 def add_no_arg_offense(node); end354 def check_for_unused_proxy(block, proxy); end355 def find_arg_usage(param0); end356 def hook(param0 = nil); end357 def on_block(node); end358end359class RuboCop::Cop::RSpec::Be < RuboCop::Cop::RSpec::Base360 def be_without_args(param0 = nil); end361 def on_send(node); end362end363class RuboCop::Cop::RSpec::BeEql < RuboCop::Cop::RSpec::Base364 def eql_type_with_identity(param0 = nil); end365 def on_send(node); end366 extend RuboCop::Cop::AutoCorrector367end368class RuboCop::Cop::RSpec::BeforeAfterAll < RuboCop::Cop::RSpec::Base369 def before_or_after_all(param0 = nil); end370 def on_send(node); end371end372class RuboCop::Cop::RSpec::ContextMethod < RuboCop::Cop::RSpec::Base373 def context_method(param0 = nil); end374 def method_name?(description); end375 def on_block(node); end376 extend RuboCop::Cop::AutoCorrector377end378class RuboCop::Cop::RSpec::ContextWording < RuboCop::Cop::RSpec::Base379 def bad_prefix?(description); end380 def context_wording(param0 = nil); end381 def joined_prefixes; end382 def on_block(node); end383 def prefixes; end384end385class RuboCop::Cop::RSpec::DescribeClass < RuboCop::Cop::RSpec::Base386 def example_group_with_ignored_metadata?(param0 = nil); end387 def ignored_metadata; end388 def ignored_metadata?(node); end389 def not_a_const_described(param0 = nil); end390 def on_top_level_group(node); end391 def string_constant?(described); end392 def sym_pair(param0 = nil); end393 include RuboCop::Cop::RSpec::TopLevelGroup394end395class RuboCop::Cop::RSpec::DescribeMethod < RuboCop::Cop::RSpec::Base396 def on_top_level_group(node); end397 def second_argument(param0 = nil); end398 include RuboCop::Cop::RSpec::TopLevelGroup399end400class RuboCop::Cop::RSpec::DescribeSymbol < RuboCop::Cop::RSpec::Base401 def describe_symbol?(param0 = nil); end402 def on_send(node); end403end404class RuboCop::Cop::RSpec::DescribedClass < RuboCop::Cop::RSpec::Base405 def autocorrect(corrector, match); end406 def collapse_namespace(namespace, const); end407 def common_instance_exec_closure?(param0 = nil); end408 def const_name(node); end409 def contains_described_class?(param0); end410 def described_constant(param0 = nil); end411 def find_usage(node, &block); end412 def full_const_name(node); end413 def message(offense); end414 def namespace(node); end415 def offensive?(node); end416 def offensive_described_class?(node); end417 def on_block(node); end418 def rspec_block?(param0 = nil); end419 def scope_change?(node); end420 def scope_changing_syntax?(param0 = nil); end421 def skip_blocks?; end422 def skippable_block?(node); end423 extend RuboCop::Cop::AutoCorrector424 include RuboCop::Cop::ConfigurableEnforcedStyle425end426class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < RuboCop::Cop::RSpec::Base427 def find_rspec_blocks(param0); end428 def on_module(node); end429end430class RuboCop::Cop::RSpec::Dialect < RuboCop::Cop::RSpec::Base431 def on_send(node); end432 def rspec_method?(param0 = nil); end433 extend RuboCop::Cop::AutoCorrector434 include RuboCop::Cop::MethodPreference435end436class RuboCop::Cop::RSpec::EmptyExampleGroup < RuboCop::Cop::RSpec::Base437 def conditionals_with_examples?(body); end438 def example_group_body(param0 = nil); end439 def example_or_group_or_include?(param0 = nil); end440 def examples?(param0 = nil); end441 def examples_directly_or_in_block?(param0 = nil); end442 def examples_in_branches?(if_node); end443 def examples_inside_block?(param0 = nil); end444 def offensive?(body); end445 def on_block(node); end446end447class RuboCop::Cop::RSpec::EmptyHook < RuboCop::Cop::RSpec::Base448 def empty_hook?(param0 = nil); end449 def on_block(node); end450 extend RuboCop::Cop::AutoCorrector451 include RuboCop::Cop::RangeHelp452end453class RuboCop::Cop::RSpec::EmptyLineAfterExample < RuboCop::Cop::RSpec::Base454 def allow_consecutive_one_liners?; end455 def allowed_one_liner?(node); end456 def consecutive_one_liner?(node); end457 def next_one_line_example?(node); end458 def next_sibling(node); end459 def on_block(node); end460 extend RuboCop::Cop::AutoCorrector461 include RuboCop::Cop::RSpec::EmptyLineSeparation462end463class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < RuboCop::Cop::RSpec::Base464 def on_block(node); end465 extend RuboCop::Cop::AutoCorrector466 include RuboCop::Cop::RSpec::EmptyLineSeparation467end468class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < RuboCop::Cop::RSpec::Base469 def on_block(node); end470 extend RuboCop::Cop::AutoCorrector471 include RuboCop::Cop::RSpec::EmptyLineSeparation472end473class RuboCop::Cop::RSpec::EmptyLineAfterHook < RuboCop::Cop::RSpec::Base474 def on_block(node); end475 extend RuboCop::Cop::AutoCorrector476 include RuboCop::Cop::RSpec::EmptyLineSeparation477end478class RuboCop::Cop::RSpec::EmptyLineAfterSubject < RuboCop::Cop::RSpec::Base479 def in_spec_block?(node); end480 def on_block(node); end481 extend RuboCop::Cop::AutoCorrector482 include RuboCop::Cop::RSpec::EmptyLineSeparation483end484class RuboCop::Cop::RSpec::ExampleLength < RuboCop::Cop::RSpec::Base485 def code_length(node); end486 def message(length); end487 def on_block(node); end488 include RuboCop::Cop::CodeLength489end490class RuboCop::Cop::RSpec::ExampleWithoutDescription < RuboCop::Cop::RSpec::Base491 def check_example_without_description(node); end492 def disallow_empty_description?(node); end493 def example_description(param0 = nil); end494 def on_block(node); end495 include RuboCop::Cop::ConfigurableEnforcedStyle496end497class RuboCop::Cop::RSpec::ExampleWording < RuboCop::Cop::RSpec::Base498 def add_wording_offense(node, message); end499 def custom_transform; end500 def docstring(node); end501 def ignored_words; end502 def it_description(param0 = nil); end503 def on_block(node); end504 def replacement_text(node); end505 def text(node); end506 extend RuboCop::Cop::AutoCorrector507end508class RuboCop::Cop::RSpec::ExpectActual < RuboCop::Cop::RSpec::Base509 def complex_literal?(node); end510 def expect_literal(param0 = nil); end511 def literal?(node); end512 def on_send(node); end513 def simple_literal?(node); end514 def swap(corrector, actual, expected); end515 extend RuboCop::Cop::AutoCorrector516end517class RuboCop::Cop::RSpec::ExpectChange < RuboCop::Cop::RSpec::Base518 def expect_change_with_arguments(param0 = nil); end519 def expect_change_with_block(param0 = nil); end520 def on_block(node); end521 def on_send(node); end522 extend RuboCop::Cop::AutoCorrector523 include RuboCop::Cop::ConfigurableEnforcedStyle524end525class RuboCop::Cop::RSpec::ExpectInHook < RuboCop::Cop::RSpec::Base526 def expectation(param0); end527 def message(expect, hook); end528 def on_block(node); end529end530class RuboCop::Cop::RSpec::ExpectOutput < RuboCop::Cop::RSpec::Base531 def inside_example_scope?(node); end532 def on_gvasgn(node); end533end534class RuboCop::Cop::RSpec::FilePath < RuboCop::Cop::RSpec::Base535 def camel_to_snake_case(string); end536 def const_described(param0 = nil); end537 def custom_transform; end538 def ensure_correct_file_path(send_node, described_class, arguments); end539 def expected_path(constant); end540 def filename_ends_with?(pattern); end541 def ignore_methods?; end542 def name_pattern(method_name); end543 def on_top_level_example_group(node); end544 def pattern_for(described_class, method_name); end545 def pattern_for_spec_suffix_only?; end546 def relevant_rubocop_rspec_file?(_file); end547 def routing_metadata?(param0); end548 def routing_spec?(args); end549 def spec_suffix_only?; end550 include RuboCop::Cop::RSpec::TopLevelGroup551end552class RuboCop::Cop::RSpec::Focus < RuboCop::Cop::RSpec::Base553 def correct_send(corrector, focus); end554 def focus_metadata(node, &block); end555 def focusable_selector?(param0 = nil); end556 def focused_block?(param0 = nil); end557 def metadata(param0 = nil); end558 def on_send(node); end559 def with_surrounding(focus); end560 extend RuboCop::Cop::AutoCorrector561 include RuboCop::Cop::RangeHelp562end563class RuboCop::Cop::RSpec::HookArgument < RuboCop::Cop::RSpec::Base564 def argument_range(send_node); end565 def check_implicit(method_send); end566 def explicit_message(scope); end567 def hook(node, &block); end568 def implicit_style?; end569 def on_block(node); end570 def scoped_hook(param0 = nil); end571 def unscoped_hook(param0 = nil); end572 extend RuboCop::Cop::AutoCorrector573 include RuboCop::Cop::ConfigurableEnforcedStyle574end575class RuboCop::Cop::RSpec::HooksBeforeExamples < RuboCop::Cop::RSpec::Base576 def autocorrect(corrector, node, first_example); end577 def check_hooks(node); end578 def example_or_group?(param0 = nil); end579 def find_first_example(node); end580 def multiline_block?(block); end581 def on_block(node); end582 extend RuboCop::Cop::AutoCorrector583end584class RuboCop::Cop::RSpec::ImplicitBlockExpectation < RuboCop::Cop::RSpec::Base585 def find_subject(block_node); end586 def implicit_expect(param0 = nil); end587 def lambda?(param0 = nil); end588 def lambda_subject?(param0 = nil); end589 def multi_statement_example_group?(node); end590 def nearest_subject(node); end591 def on_send(node); end592end593class RuboCop::Cop::RSpec::ImplicitExpect < RuboCop::Cop::RSpec::Base594 def implicit_expect(param0 = nil); end595 def is_expected_range(source_map); end596 def offending_expect(node); end597 def offense_message(offending_source); end598 def on_send(node); end599 def replacement_source(offending_source); end600 extend RuboCop::Cop::AutoCorrector601 include RuboCop::Cop::ConfigurableEnforcedStyle602end603class RuboCop::Cop::RSpec::ImplicitSubject < RuboCop::Cop::RSpec::Base604 def allowed_by_style?(example); end605 def autocorrect(corrector, node); end606 def implicit_subject?(param0 = nil); end607 def on_send(node); end608 def valid_usage?(node); end609 extend RuboCop::Cop::AutoCorrector610 include RuboCop::Cop::ConfigurableEnforcedStyle611end612class RuboCop::Cop::RSpec::InstanceSpy < RuboCop::Cop::RSpec::Base613 def autocorrect(corrector, node); end614 def have_received_usage(param0); end615 def null_double(param0); end616 def on_block(node); end617 extend RuboCop::Cop::AutoCorrector618end619class RuboCop::Cop::RSpec::InstanceVariable < RuboCop::Cop::RSpec::Base620 def assignment_only?; end621 def custom_matcher?(param0 = nil); end622 def dynamic_class?(param0 = nil); end623 def ivar_assigned?(param0, param1); end624 def ivar_usage(param0); end625 def on_top_level_group(node); end626 def valid_usage?(node); end627 include RuboCop::Cop::RSpec::TopLevelGroup628end629class RuboCop::Cop::RSpec::ItBehavesLike < RuboCop::Cop::RSpec::Base630 def example_inclusion_offense(param0 = nil, param1); end631 def message(_node); end632 def on_send(node); end633 extend RuboCop::Cop::AutoCorrector634 include RuboCop::Cop::ConfigurableEnforcedStyle635end636class RuboCop::Cop::RSpec::IteratedExpectation < RuboCop::Cop::RSpec::Base637 def each?(param0 = nil); end638 def expectation?(param0 = nil, param1); end639 def on_block(node); end640 def only_expectations?(body, arg); end641 def single_expectation?(body, arg); end642end643class RuboCop::Cop::RSpec::LeadingSubject < RuboCop::Cop::RSpec::Base644 def autocorrect(corrector, node, sibling); end645 def check_previous_nodes(node); end646 def in_spec_block?(node); end647 def offending?(node); end648 def offending_node(node); end649 def on_block(node); end650 def parent(node); end651 extend RuboCop::Cop::AutoCorrector652end653class RuboCop::Cop::RSpec::LeakyConstantDeclaration < RuboCop::Cop::RSpec::Base654 def inside_describe_block?(node); end655 def on_casgn(node); end656 def on_class(node); end657 def on_module(node); end658end659class RuboCop::Cop::RSpec::LetBeforeExamples < RuboCop::Cop::RSpec::Base660 def autocorrect(corrector, node, first_example); end661 def check_let_declarations(node); end662 def example_or_group?(param0 = nil); end663 def find_first_example(node); end664 def multiline_block?(block); end665 def on_block(node); end666 extend RuboCop::Cop::AutoCorrector667end668class RuboCop::Cop::RSpec::LetSetup < RuboCop::Cop::RSpec::Base669 def child_let_bang(node, &block); end670 def example_or_shared_group_or_including?(param0 = nil); end671 def let_bang(param0 = nil); end672 def method_called?(param0, param1); end673 def on_block(node); end674 def unused_let_bang(node); end675end676class RuboCop::Cop::RSpec::MessageChain < RuboCop::Cop::RSpec::Base677 def on_send(node); end678end679class RuboCop::Cop::RSpec::MessageExpectation < RuboCop::Cop::RSpec::Base680 def message_expectation(param0 = nil); end681 def on_send(node); end682 def preferred_style?(expectation); end683 def receive_message?(param0); end684 include RuboCop::Cop::ConfigurableEnforcedStyle685end686class RuboCop::Cop::RSpec::MessageSpies < RuboCop::Cop::RSpec::Base687 def error_message(receiver); end688 def message_expectation(param0 = nil); end689 def on_send(node); end690 def preferred_style?(expectation); end691 def receive_message(param0); end692 def receive_message_matcher(node); end693 include RuboCop::Cop::ConfigurableEnforcedStyle694end695class RuboCop::Cop::RSpec::MissingExampleGroupArgument < RuboCop::Cop::RSpec::Base696 def on_block(node); end697end698class RuboCop::Cop::RSpec::MultipleDescribes < RuboCop::Cop::RSpec::Base699 def on_top_level_group(node); end700 include RuboCop::Cop::RSpec::TopLevelGroup701end702class RuboCop::Cop::RSpec::MultipleExpectations < RuboCop::Cop::RSpec::Base703 def aggregate_failures?(param0 = nil, param1); end704 def aggregate_failures_block?(param0 = nil); end705 def example_with_aggregate_failures?(example_node); end706 def expect?(param0 = nil); end707 def find_aggregate_failures(example_node); end708 def find_expectation(node, &block); end709 def flag_example(node, expectation_count:); end710 def max_expectations; end711 def on_block(node); end712 include RuboCop::Cop::ConfigurableMax713end714class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < RuboCop::Cop::RSpec::Base715 def all_helpers(node); end716 def allow_subject?; end717 def example_group_memoized_helpers; end718 def helpers(node); end719 def max; end720 def on_block(node); end721 def on_new_investigation; end722 def variable_nodes(node); end723 include RuboCop::Cop::ConfigurableMax724 include RuboCop::Cop::RSpec::Variable725end726class RuboCop::Cop::RSpec::MultipleSubjects < RuboCop::Cop::RSpec::Base727 def autocorrect(corrector, subject); end728 def named_subject?(node); end729 def on_block(node); end730 def remove_autocorrect(corrector, node); end731 def rename_autocorrect(corrector, node); end732 extend RuboCop::Cop::AutoCorrector733 include RuboCop::Cop::RangeHelp734end735class RuboCop::Cop::RSpec::NamedSubject < RuboCop::Cop::RSpec::Base736 def example_or_hook_block?(param0 = nil); end737 def ignored_shared_example?(node); end738 def on_block(node); end739 def shared_example?(param0 = nil); end740 def subject_usage(param0); end741end742class RuboCop::Cop::RSpec::NestedGroups < RuboCop::Cop::RSpec::Base743 def find_nested_example_groups(node, nesting: nil, &block); end744 def max_nesting; end745 def max_nesting_config; end746 def message(nesting); end747 def on_top_level_group(node); end748 include RuboCop::Cop::ConfigurableMax749 include RuboCop::Cop::RSpec::TopLevelGroup750end751class RuboCop::Cop::RSpec::NotToNot < RuboCop::Cop::RSpec::Base752 def message(_node); end753 def not_to_not_offense(param0 = nil, param1); end754 def on_send(node); end755 extend RuboCop::Cop::AutoCorrector756 include RuboCop::Cop::ConfigurableEnforcedStyle757end758class RuboCop::Cop::RSpec::OverwritingSetup < RuboCop::Cop::RSpec::Base759 def common_setup?(node); end760 def find_duplicates(node); end761 def first_argument_name(param0 = nil); end762 def on_block(node); end763 def setup?(param0 = nil); end764end765class RuboCop::Cop::RSpec::Pending < RuboCop::Cop::RSpec::Base766 def on_send(node); end767 def pending_block?(param0 = nil); end768 def skip_or_pending?(param0 = nil); end769 def skippable?(param0 = nil); end770 def skipped?(node); end771 def skipped_in_metadata?(param0 = nil); end772end773module RuboCop::Cop::RSpec::InflectedHelper774 def be_bool?(param0 = nil); end775 def be_boolthy?(param0 = nil); end776 def boolean_matcher?(node); end777 def check_inflected(node); end778 def message_inflected(predicate); end779 def predicate?(sym); end780 def predicate_in_actual?(param0 = nil); end781 def remove_predicate(corrector, predicate); end782 def rewrite_matcher(corrector, predicate, matcher); end783 def to_predicate_matcher(name); end784 def true?(to_symbol, matcher); end785 extend RuboCop::AST::NodePattern::Macros786 include RuboCop::RSpec::Language787end788module RuboCop::Cop::RSpec::ExplicitHelper789 def allowed_explicit_matchers; end790 def check_explicit(node); end791 def corrector_explicit(corrector, to_node, actual, matcher, block_child); end792 def message_explicit(matcher); end793 def move_predicate(corrector, actual, matcher, block_child); end794 def predicate_matcher?(param0 = nil); end795 def predicate_matcher_block?(param0 = nil); end796 def predicate_matcher_name?(name); end797 def replacement_matcher(node); end798 def to_predicate_method(matcher); end799 extend RuboCop::AST::NodePattern::Macros800 include RuboCop::RSpec::Language801end802class RuboCop::Cop::RSpec::PredicateMatcher < RuboCop::Cop::RSpec::Base803 def args_loc(send_node); end804 def block_loc(send_node); end805 def on_block(node); end806 def on_send(node); end807 extend RuboCop::Cop::AutoCorrector808 include RuboCop::Cop::ConfigurableEnforcedStyle809 include RuboCop::Cop::RSpec::ExplicitHelper810 include RuboCop::Cop::RSpec::InflectedHelper811end812class RuboCop::Cop::RSpec::ReceiveCounts < RuboCop::Cop::RSpec::Base813 def autocorrect(corrector, node, range); end814 def matcher_for(method, count); end815 def message_for(node, source); end816 def on_send(node); end817 def range(node, offending_node); end818 def receive_counts(param0 = nil); end819 def stub?(param0); end820 extend RuboCop::Cop::AutoCorrector821end822class RuboCop::Cop::RSpec::ReceiveNever < RuboCop::Cop::RSpec::Base823 def autocorrect(corrector, node); end824 def method_on_stub?(param0); end825 def on_send(node); end826 extend RuboCop::Cop::AutoCorrector827end828class RuboCop::Cop::RSpec::RepeatedDescription < RuboCop::Cop::RSpec::Base829 def example_signature(example); end830 def on_block(node); end831 def repeated_descriptions(node); end832end833class RuboCop::Cop::RSpec::RepeatedExample < RuboCop::Cop::RSpec::Base834 def example_signature(example); end835 def on_block(node); end836 def repeated_examples(node); end837end838class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < RuboCop::Cop::RSpec::Base839 def add_repeated_lines(groups); end840 def body(param0 = nil); end841 def const_arg(param0 = nil); end842 def message(group, repeats); end843 def metadata(param0 = nil); end844 def on_begin(node); end845 def repeated_group_bodies(node); end846 def several_example_groups?(param0 = nil); end847 def signature_keys(group); end848 def skip_or_pending?(param0 = nil); end849end850class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < RuboCop::Cop::RSpec::Base851 def add_repeated_lines(groups); end852 def doc_string_and_metadata(param0 = nil); end853 def empty_description?(param0 = nil); end854 def message(group, repeats); end855 def on_begin(node); end856 def repeated_group_descriptions(node); end857 def several_example_groups?(param0 = nil); end858 def skip_or_pending?(param0 = nil); end859end860class RuboCop::Cop::RSpec::RepeatedIncludeExample < RuboCop::Cop::RSpec::Base861 def add_repeated_lines(items); end862 def include_examples?(param0 = nil); end863 def literal_include_examples?(node); end864 def message(item, repeats); end865 def on_begin(node); end866 def repeated_include_examples(node); end867 def several_include_examples?(param0 = nil); end868 def shared_examples_name(param0 = nil); end869 def signature_keys(item); end870end871class RuboCop::Cop::RSpec::ReturnFromStub < RuboCop::Cop::RSpec::Base872 def and_return_value(param0); end873 def check_and_return_call(node); end874 def check_block_body(block); end875 def contains_stub?(param0); end876 def dynamic?(node); end877 def on_block(node); end878 def on_send(node); end879 def stub_with_block?(param0 = nil); end880 extend RuboCop::Cop::AutoCorrector881 include RuboCop::Cop::ConfigurableEnforcedStyle882end883class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector884 def arg; end885 def call(corrector); end886 def hash_without_braces?; end887 def heredoc?; end888 def initialize(node); end889 def node; end890 def range; end891 def receiver; end892 def replacement; end893end894class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector895 def block; end896 def body; end897 def call(corrector); end898 def heredoc?; end899 def initialize(block); end900 def node; end901end902class RuboCop::Cop::RSpec::ScatteredLet < RuboCop::Cop::RSpec::Base903 def check_let_declarations(body); end904 def find_first_let(node); end905 def on_block(node); end906 extend RuboCop::Cop::AutoCorrector907end908class RuboCop::Cop::RSpec::ScatteredSetup < RuboCop::Cop::RSpec::Base909 def lines_msg(numbers); end910 def on_block(node); end911 def repeated_hooks(node); end912end913class RuboCop::Cop::RSpec::SharedContext < RuboCop::Cop::RSpec::Base914 def context?(param0); end915 def context_with_only_examples(node); end916 def examples?(param0); end917 def examples_with_only_context(node); end918 def on_block(node); end919 def shared_context(param0 = nil); end920 def shared_example(param0 = nil); end921 extend RuboCop::Cop::AutoCorrector922end923class RuboCop::Cop::RSpec::SharedExamples < RuboCop::Cop::RSpec::Base924 def on_send(node); end925 def shared_examples(param0 = nil); end926 extend RuboCop::Cop::AutoCorrector927end928class RuboCop::Cop::RSpec::SharedExamples::Checker929 def initialize(node); end930 def message; end931 def node; end932 def preferred_style; end933 def symbol; end934 def wrap_with_single_quotes(string); end935end936class RuboCop::Cop::RSpec::SingleArgumentMessageChain < RuboCop::Cop::RSpec::Base937 def autocorrect(corrector, node, method, arg); end938 def autocorrect_array_arg(corrector, arg); end939 def autocorrect_hash_arg(corrector, arg); end940 def key_to_arg(node); end941 def message_chain(param0 = nil); end942 def on_send(node); end943 def replacement(method); end944 def single_element_array?(node); end945 def single_key_hash?(param0 = nil); end946 def valid_usage?(node); end947 extend RuboCop::Cop::AutoCorrector948end949class RuboCop::Cop::RSpec::StubbedMock < RuboCop::Cop::RSpec::Base950 def configured_response?(param0 = nil); end951 def expectation(param0 = nil); end952 def matcher_with_blockpass(param0 = nil); end953 def matcher_with_configured_response(param0 = nil); end954 def matcher_with_hash(param0 = nil); end955 def matcher_with_return_block(param0 = nil); end956 def message_expectation?(param0 = nil); end957 def msg(method_name); end958 def on_expectation(expectation, method_name, matcher); end959 def on_send(node); end960 def replacement(method_name); end961end962class RuboCop::Cop::RSpec::SubjectStub < RuboCop::Cop::RSpec::Base963 def find_all_explicit_subjects(node); end964 def find_subject_expectations(node, subject_names = nil, &block); end965 def message_expectation?(param0 = nil, param1); end966 def message_expectation_matcher?(param0); end967 def on_top_level_group(node); end968 def subject(param0 = nil); end969 include RuboCop::Cop::RSpec::TopLevelGroup970end971class RuboCop::Cop::RSpec::UnspecifiedException < RuboCop::Cop::RSpec::Base972 def block_with_args?(node); end973 def empty_exception_matcher?(node); end974 def empty_raise_error_or_exception(param0 = nil); end975 def on_send(node); end976end977class RuboCop::Cop::RSpec::VariableDefinition < RuboCop::Cop::RSpec::Base978 def on_send(node); end979 def string?(node); end980 def style_violation?(variable); end981 def symbol?(node); end982 include RuboCop::Cop::ConfigurableEnforcedStyle983 include RuboCop::Cop::RSpec::Variable984end985class RuboCop::Cop::RSpec::VariableName < RuboCop::Cop::RSpec::Base986 def message(style); end987 def on_send(node); end988 include RuboCop::Cop::ConfigurableNaming989 include RuboCop::Cop::IgnoredPattern990 include RuboCop::Cop::RSpec::Variable991end992class RuboCop::Cop::RSpec::VerifiedDoubles < RuboCop::Cop::RSpec::Base993 def on_send(node); end994 def symbol?(name); end995 def unverified_double(param0 = nil); end996end997class RuboCop::Cop::RSpec::VoidExpect < RuboCop::Cop::RSpec::Base998 def check_expect(node); end999 def expect?(param0 = nil); end1000 def expect_block?(param0 = nil); end1001 def on_block(node); end1002 def on_send(node); end1003 def void?(expect); end1004end1005class RuboCop::Cop::RSpec::Yield < RuboCop::Cop::RSpec::Base1006 def autocorrect(corrector, node, range); end1007 def block_arg(param0 = nil); end1008 def block_call?(param0 = nil, param1); end1009 def block_range(node); end1010 def calling_block?(node, block); end1011 def convert_block_to_yield(node); end1012 def generate_replacement(node); end1013 def method_on_stub?(param0); end1014 def on_block(node); end1015 extend RuboCop::Cop::AutoCorrector1016 include RuboCop::Cop::RangeHelp1017end1018module RuboCop::Cop::Layout1019end1020class RuboCop::Cop::Layout::ExtraSpacing < RuboCop::Cop::Base1021 def self.autocorrect_incompatible_with; end1022end1023class RuboCop::AST::Node < Parser::AST::Node1024 include RuboCop::RSpec::Node1025end
on_block
Using AI Code Generation
1 (send nil? :expect ...)2 def on_block(node)3 return unless top_level_describe?(node)4 return unless custom_matcher(node)5 add_offense(node, location: :expression)6 def message(_node)7 expect(1).to eq(1)8 expect(1).to eq(1)
on_block
Using AI Code Generation
1 def on_block(node)2 def on_send(node)3 def on_send(node)
on_block
Using AI Code Generation
1 def_node_matcher :first_argument, '(send nil? _ (send nil? _ $...))'2 def on_block(node)3 first_argument(node) do |arg|4 {:debug=>false,
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!