Merge pull request #9399 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rspec-2.0.1
build(deps): bump rubocop-rspec from 2.0.0 to 2.0.1 in /Library/Homebrew
This commit is contained in:
commit
89bd08ab3e
@ -111,7 +111,7 @@ GEM
|
|||||||
rubocop-ast (>= 1.1.1)
|
rubocop-ast (>= 1.1.1)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 2.0)
|
unicode-display_width (>= 1.4.0, < 2.0)
|
||||||
rubocop-ast (1.2.0)
|
rubocop-ast (1.3.0)
|
||||||
parser (>= 2.7.1.5)
|
parser (>= 2.7.1.5)
|
||||||
rubocop-performance (1.9.1)
|
rubocop-performance (1.9.1)
|
||||||
rubocop (>= 0.90.0, < 2.0)
|
rubocop (>= 0.90.0, < 2.0)
|
||||||
@ -120,7 +120,7 @@ GEM
|
|||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 0.87.0)
|
rubocop (>= 0.87.0)
|
||||||
rubocop-rspec (2.0.0)
|
rubocop-rspec (2.0.1)
|
||||||
rubocop (~> 1.0)
|
rubocop (~> 1.0)
|
||||||
rubocop-ast (>= 1.1.0)
|
rubocop-ast (>= 1.1.0)
|
||||||
rubocop-sorbet (0.5.1)
|
rubocop-sorbet (0.5.1)
|
||||||
|
|||||||
@ -1116,6 +1116,8 @@ RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
|
|||||||
class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError
|
class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp)
|
||||||
@ -1350,6 +1352,8 @@ RuboCop::AST::NodePattern::Sets::SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = T.let(T
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_AFTER_ACTION_APPEND_AFTER_ACTION_APPEND_AROUND_ACTION_ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set)
|
||||||
@ -1358,6 +1362,8 @@ RuboCop::AST::NodePattern::Sets::SET_ANY_ALL_NORETURN_ETC = T.let(T.unsafe(nil),
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_ANY_INSTANCE_ALLOW_ANY_INSTANCE_OF_EXPECT_ANY_INSTANCE_OF = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_ANY_INSTANCE_ALLOW_ANY_INSTANCE_OF_EXPECT_ANY_INSTANCE_OF = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_AP_P_PP_ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
|
||||||
@ -1366,10 +1372,14 @@ RuboCop::AST::NodePattern::Sets::SET_BACKGROUND_SCENARIO_XSCENARIO_ETC = T.let(T
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_BEFORE_AFTER = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_BEFORE_AFTER = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_BELONGS_TO_HAS_ONE_HAS_MANY_HAS_AND_BELONGS_TO_MANY = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_BE_TRUTHY_BE_FALSEY_BE_FALSY_ETC = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_BE_TRUTHY_BE_FALSEY_BE_FALSY_ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_BINWRITE_SYSWRITE_WRITE_WRITE_NONBLOCK = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_CALLER_CALLER_LOCATIONS = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_CALLER_CALLER_LOCATIONS = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set)
|
||||||
@ -1392,6 +1402,10 @@ RuboCop::AST::NodePattern::Sets::SET_CONTEXT_SHARED_CONTEXT = T.let(T.unsafe(nil
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT_2 = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_DESCRIBE_FEATURE = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_DESCRIBE_FEATURE = T.let(T.unsafe(nil), Set)
|
||||||
@ -1412,12 +1426,16 @@ RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.uns
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_EXECUTE_REMOVE_BELONGS_TO = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_FACTORYGIRL_FACTORYBOT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_FACTORYGIRL_FACTORYBOT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_FIRST_TAKE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_FLATTEN_FLATTEN = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_FLATTEN_FLATTEN = T.let(T.unsafe(nil), Set)
|
||||||
@ -1426,14 +1444,22 @@ RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil)
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_GEMCUTTER_RUBYGEMS_RUBYFORGE = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_GEMCUTTER_RUBYGEMS_RUBYFORGE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_GET_POST_PUT_ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB_SUB_SUB = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB_SUB_SUB = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE_BELONGS_TO = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_INCLUDE_MEMBER = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_INCLUDE_MEMBER = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_INSERT_INSERT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set)
|
||||||
@ -1464,6 +1490,8 @@ RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set)
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_ONLY_EXCEPT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Set)
|
||||||
@ -1494,10 +1522,16 @@ RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.uns
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_REFERER_REFERRER = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_RENDER_REDIRECT_TO = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_RETURNING_UNIQUE_BY = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
|
||||||
@ -1506,6 +1540,10 @@ RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_SINCE_FROM_NOW_AFTER_ETC = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_SKIP_AFTER_ACTION_SKIP_AROUND_ACTION_SKIP_BEFORE_ACTION_SKIP_ACTION_CALLBACK = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_SKIP_PENDING = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_SKIP_PENDING = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set)
|
||||||
@ -1530,10 +1568,16 @@ RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_TRANSLATE_LOCALIZE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_TRY_TRY = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_TYPE_TEMPLATE_TYPE_MEMBER = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_TYPE_TEMPLATE_TYPE_MEMBER = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Sets::SET_UNIQ_DISTINCT = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set)
|
RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set)
|
||||||
@ -1112,6 +1112,57 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base
|
|||||||
def block_loc(send_node); end
|
def block_loc(send_node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
module RuboCop::Cop::RSpec::Rails
|
||||||
|
end
|
||||||
|
|
||||||
|
class RuboCop::Cop::RSpec::Rails::HttpStatus < ::RuboCop::Cop::RSpec::Base
|
||||||
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
|
def http_status(param0 = T.unsafe(nil)); end
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def checker_class; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker
|
||||||
|
def initialize(node); end
|
||||||
|
|
||||||
|
def message; end
|
||||||
|
def node; end
|
||||||
|
def offensive?; end
|
||||||
|
def preferred_style; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def allowed_symbol?; end
|
||||||
|
def number; end
|
||||||
|
def symbol; end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::ALLOWED_STATUSES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker
|
||||||
|
def initialize(node); end
|
||||||
|
|
||||||
|
def message; end
|
||||||
|
def node; end
|
||||||
|
def offensive?; end
|
||||||
|
def preferred_style; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def custom_http_status_code?; end
|
||||||
|
def number; end
|
||||||
|
def symbol; end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base
|
class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base
|
||||||
extend(::RuboCop::Cop::AutoCorrector)
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
@ -28085,31 +28085,10 @@ class RuboCop::AST::NodePattern::Parser
|
|||||||
end
|
end
|
||||||
|
|
||||||
module RuboCop::AST::NodePattern::Sets
|
module RuboCop::AST::NodePattern::Sets
|
||||||
SET_AFTER_ACTION_APPEND_AFTER_ACTION_APPEND_AROUND_ACTION_ETC = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_AP_P_PP_ETC = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_BELONGS_TO_HAS_ONE_HAS_MANY_HAS_AND_BELONGS_TO_MANY = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_BINWRITE_SYSWRITE_WRITE_WRITE_NONBLOCK = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped)
|
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped)
|
||||||
SET_CREATED_AT_UPDATED_AT = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_CREATED_AT_UPDATED_AT_2 = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
|
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
|
||||||
SET_EXECUTE_REMOVE_BELONGS_TO = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_FIRST_TAKE = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_GET_POST_PUT_ETC = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_HAS_MANY_HAS_ONE = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_HAS_MANY_HAS_ONE_BELONGS_TO = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
|
SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
|
||||||
SET_INSERT_INSERT = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_ONLY_EXCEPT = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_REFERER_REFERRER = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_RENDER_REDIRECT_TO = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_RETURNING_UNIQUE_BY = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_SINCE_FROM_NOW_AFTER_ETC = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_SKIP_AFTER_ACTION_SKIP_AROUND_ACTION_SKIP_BEFORE_ACTION_SKIP_ACTION_CALLBACK = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped)
|
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped)
|
||||||
SET_TRANSLATE_LOCALIZE = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_TRY_TRY = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_UNIQ_DISTINCT = ::T.let(nil, ::T.untyped)
|
|
||||||
SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
|
SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -28309,56 +28288,6 @@ class RuboCop::Cop::FormulaCop
|
|||||||
def required_dependency_name?(param0, param1); end
|
def required_dependency_name?(param0, param1); end
|
||||||
end
|
end
|
||||||
|
|
||||||
module RuboCop::Cop::RSpec::Rails
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Rails::HttpStatus
|
|
||||||
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
|
||||||
def http_status(param0=T.unsafe(nil)); end
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker
|
|
||||||
def initialize(node); end
|
|
||||||
|
|
||||||
def message(); end
|
|
||||||
|
|
||||||
def node(); end
|
|
||||||
|
|
||||||
def offensive?(); end
|
|
||||||
|
|
||||||
def preferred_style(); end
|
|
||||||
ALLOWED_STATUSES = ::T.let(nil, ::T.untyped)
|
|
||||||
MSG = ::T.let(nil, ::T.untyped)
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker
|
|
||||||
def initialize(node); end
|
|
||||||
|
|
||||||
def message(); end
|
|
||||||
|
|
||||||
def node(); end
|
|
||||||
|
|
||||||
def offensive?(); end
|
|
||||||
|
|
||||||
def preferred_style(); end
|
|
||||||
MSG = ::T.let(nil, ::T.untyped)
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Rails::HttpStatus
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
end
|
|
||||||
|
|
||||||
module RuboCop::Cop::RSpec::Rails
|
|
||||||
end
|
|
||||||
|
|
||||||
module RuboCop::RSpec::ExpectOffense
|
module RuboCop::RSpec::ExpectOffense
|
||||||
def expect_correction(correction, loop: T.unsafe(nil)); end
|
def expect_correction(correction, loop: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
|||||||
@ -74,13 +74,13 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-static-0.5.612
|
|||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-0.5.6124/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-0.5.6124/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-sorbet-1.7.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-sorbet-1.7.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.2.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.3.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-1.7.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-1.7.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.3.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.3.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.9.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.9.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.8.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.8.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.0.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.0.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.5.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.5.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.5.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.5.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-runtime-stub-0.2.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-runtime-stub-0.2.0/lib"
|
||||||
|
|||||||
@ -27,7 +27,7 @@ module RuboCop
|
|||||||
# end
|
# end
|
||||||
class AroundBlock < Base
|
class AroundBlock < Base
|
||||||
MSG_NO_ARG = 'Test object should be passed to around block.'
|
MSG_NO_ARG = 'Test object should be passed to around block.'
|
||||||
MSG_UNUSED_ARG = 'You should call `%<arg>s.call` '\
|
MSG_UNUSED_ARG = 'You should call `%<arg>s.call` ' \
|
||||||
'or `%<arg>s.run`.'
|
'or `%<arg>s.run`.'
|
||||||
|
|
||||||
def_node_matcher :hook, <<-PATTERN
|
def_node_matcher :hook, <<-PATTERN
|
||||||
@ -20,7 +20,7 @@ module RuboCop
|
|||||||
# expect(foo).to be(true)
|
# expect(foo).to be(true)
|
||||||
#
|
#
|
||||||
class Be < Base
|
class Be < Base
|
||||||
MSG = 'Don\'t use `be` without an argument.'
|
MSG = "Don't use `be` without an argument."
|
||||||
|
|
||||||
def_node_matcher :be_without_args, <<-PATTERN
|
def_node_matcher :be_without_args, <<-PATTERN
|
||||||
(send _ #Runners.all $(send nil? :be))
|
(send _ #Runners.all $(send nil? :be))
|
||||||
@ -24,9 +24,9 @@ module RuboCop
|
|||||||
# after(:each) { Widget.delete_all }
|
# after(:each) { Widget.delete_all }
|
||||||
# end
|
# end
|
||||||
class BeforeAfterAll < Base
|
class BeforeAfterAll < Base
|
||||||
MSG = 'Beware of using `%<hook>s` as it may cause state to leak '\
|
MSG = 'Beware of using `%<hook>s` as it may cause state to leak ' \
|
||||||
'between tests. If you are using `rspec-rails`, and '\
|
'between tests. If you are using `rspec-rails`, and ' \
|
||||||
'`use_transactional_fixtures` is enabled, then records created '\
|
'`use_transactional_fixtures` is enabled, then records created ' \
|
||||||
'in `%<hook>s` are not automatically rolled back.'
|
'in `%<hook>s` are not automatically rolled back.'
|
||||||
|
|
||||||
def_node_matcher :before_or_after_all, <<-PATTERN
|
def_node_matcher :before_or_after_all, <<-PATTERN
|
||||||
@ -37,7 +37,7 @@ module RuboCop
|
|||||||
class DescribeClass < Base
|
class DescribeClass < Base
|
||||||
include TopLevelGroup
|
include TopLevelGroup
|
||||||
|
|
||||||
MSG = 'The first argument to describe should be '\
|
MSG = 'The first argument to describe should be ' \
|
||||||
'the class or module being tested.'
|
'the class or module being tested.'
|
||||||
|
|
||||||
def_node_matcher :example_group_with_ignored_metadata?, <<~PATTERN
|
def_node_matcher :example_group_with_ignored_metadata?, <<~PATTERN
|
||||||
@ -19,7 +19,7 @@ module RuboCop
|
|||||||
class DescribeMethod < Base
|
class DescribeMethod < Base
|
||||||
include TopLevelGroup
|
include TopLevelGroup
|
||||||
|
|
||||||
MSG = 'The second argument to describe should be the method '\
|
MSG = 'The second argument to describe should be the method ' \
|
||||||
"being tested. '#instance' or '.class'."
|
"being tested. '#instance' or '.class'."
|
||||||
|
|
||||||
def_node_matcher :second_argument, <<~PATTERN
|
def_node_matcher :second_argument, <<~PATTERN
|
||||||
@ -60,6 +60,7 @@ module RuboCop
|
|||||||
expect_literal(node) do |actual, matcher, expected|
|
expect_literal(node) do |actual, matcher, expected|
|
||||||
add_offense(actual.source_range) do |corrector|
|
add_offense(actual.source_range) do |corrector|
|
||||||
next unless SUPPORTED_MATCHERS.include?(matcher)
|
next unless SUPPORTED_MATCHERS.include?(matcher)
|
||||||
|
next if literal?(expected)
|
||||||
|
|
||||||
swap(corrector, actual, expected)
|
swap(corrector, actual, expected)
|
||||||
end
|
end
|
||||||
@ -15,7 +15,7 @@ module RuboCop
|
|||||||
# # good
|
# # good
|
||||||
# expect { my_app.print_report }.to output('Hello World').to_stdout
|
# expect { my_app.print_report }.to output('Hello World').to_stdout
|
||||||
class ExpectOutput < Base
|
class ExpectOutput < Base
|
||||||
MSG = 'Use `expect { ... }.to output(...).to_%<name>s` '\
|
MSG = 'Use `expect { ... }.to output(...).to_%<name>s` ' \
|
||||||
'instead of mutating $%<name>s.'
|
'instead of mutating $%<name>s.'
|
||||||
|
|
||||||
def on_gvasgn(node)
|
def on_gvasgn(node)
|
||||||
@ -21,7 +21,7 @@ module RuboCop
|
|||||||
class InstanceSpy < Base
|
class InstanceSpy < Base
|
||||||
extend AutoCorrector
|
extend AutoCorrector
|
||||||
|
|
||||||
MSG = 'Use `instance_spy` when you check your double '\
|
MSG = 'Use `instance_spy` when you check your double ' \
|
||||||
'with `have_received`.'
|
'with `have_received`.'
|
||||||
|
|
||||||
def_node_search :null_double, <<-PATTERN
|
def_node_search :null_double, <<-PATTERN
|
||||||
@ -22,7 +22,7 @@ module RuboCop
|
|||||||
extend AutoCorrector
|
extend AutoCorrector
|
||||||
include ConfigurableEnforcedStyle
|
include ConfigurableEnforcedStyle
|
||||||
|
|
||||||
MSG = 'Prefer `%<replacement>s` over `%<original>s` when including '\
|
MSG = 'Prefer `%<replacement>s` over `%<original>s` when including ' \
|
||||||
'examples in a nested context.'
|
'examples in a nested context.'
|
||||||
|
|
||||||
def_node_matcher :example_inclusion_offense, '(send _ % ...)'
|
def_node_matcher :example_inclusion_offense, '(send _ % ...)'
|
||||||
@ -29,8 +29,8 @@ module RuboCop
|
|||||||
|
|
||||||
MSG_RECEIVE = 'Prefer `receive` for setting message expectations.'
|
MSG_RECEIVE = 'Prefer `receive` for setting message expectations.'
|
||||||
|
|
||||||
MSG_HAVE_RECEIVED = 'Prefer `have_received` for setting message '\
|
MSG_HAVE_RECEIVED = 'Prefer `have_received` for setting message ' \
|
||||||
'expectations. Setup `%<source>s` as a spy using '\
|
'expectations. Setup `%<source>s` as a spy using ' \
|
||||||
'`allow` or `instance_spy`.'
|
'`allow` or `instance_spy`.'
|
||||||
|
|
||||||
SUPPORTED_STYLES = %w[have_received receive].freeze
|
SUPPORTED_STYLES = %w[have_received receive].freeze
|
||||||
@ -25,8 +25,7 @@ module RuboCop
|
|||||||
class MultipleDescribes < Base
|
class MultipleDescribes < Base
|
||||||
include TopLevelGroup
|
include TopLevelGroup
|
||||||
|
|
||||||
MSG = 'Do not use multiple top-level example groups - '\
|
MSG = 'Do not use multiple top-level example groups - try to nest them.'
|
||||||
'try to nest them.'
|
|
||||||
|
|
||||||
def on_top_level_group(node)
|
def on_top_level_group(node)
|
||||||
top_level_example_groups =
|
top_level_example_groups =
|
||||||
@ -23,7 +23,7 @@ module RuboCop
|
|||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
class ScatteredSetup < Base
|
class ScatteredSetup < Base
|
||||||
MSG = 'Do not define multiple `%<hook_name>s` hooks in the same '\
|
MSG = 'Do not define multiple `%<hook_name>s` hooks in the same ' \
|
||||||
'example group (also defined on %<lines>s).'
|
'example group (also defined on %<lines>s).'
|
||||||
|
|
||||||
def on_block(node)
|
def on_block(node)
|
||||||
@ -53,11 +53,8 @@ module RuboCop
|
|||||||
class SharedContext < Base
|
class SharedContext < Base
|
||||||
extend AutoCorrector
|
extend AutoCorrector
|
||||||
|
|
||||||
MSG_EXAMPLES = "Use `shared_examples` when you don't "\
|
MSG_EXAMPLES = "Use `shared_examples` when you don't define context."
|
||||||
'define context.'
|
MSG_CONTEXT = "Use `shared_context` when you don't define examples."
|
||||||
|
|
||||||
MSG_CONTEXT = "Use `shared_context` when you don't "\
|
|
||||||
'define examples.'
|
|
||||||
|
|
||||||
def_node_search :examples?,
|
def_node_search :examples?,
|
||||||
send_pattern('{#Includes.examples #Examples.all}')
|
send_pattern('{#Includes.examples #Examples.all}')
|
||||||
@ -19,7 +19,7 @@ module RuboCop
|
|||||||
class SingleArgumentMessageChain < Base
|
class SingleArgumentMessageChain < Base
|
||||||
extend AutoCorrector
|
extend AutoCorrector
|
||||||
|
|
||||||
MSG = 'Use `%<recommended>s` instead of calling '\
|
MSG = 'Use `%<recommended>s` instead of calling ' \
|
||||||
'`%<called>s` with a single argument.'
|
'`%<called>s` with a single argument.'
|
||||||
|
|
||||||
def_node_matcher :message_chain, <<-PATTERN
|
def_node_matcher :message_chain, <<-PATTERN
|
||||||
@ -13,11 +13,21 @@ module RuboCop
|
|||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# # bad
|
# # bad
|
||||||
# describe Foo do
|
# describe Article do
|
||||||
# subject(:bar) { baz }
|
# subject(:article) { Article.new }
|
||||||
#
|
#
|
||||||
# before do
|
# it 'indicates that the author is unknown' do
|
||||||
# allow(bar).to receive(:qux?).and_return(true)
|
# allow(article).to receive(:author).and_return(nil)
|
||||||
|
# expect(article.description).to include('by an unknown author')
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# describe Article do
|
||||||
|
# subject(:article) { Article.new(author: nil) }
|
||||||
|
#
|
||||||
|
# it 'indicates that the author is unknown' do
|
||||||
|
# expect(article.description).to include('by an unknown author')
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user