Class: RuboCop::Cop::Sidekiq::ConstArgument
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Sidekiq::ConstArgument
- Includes:
- Helpers
- Defined in:
- lib/rubocop/cop/sidekiq/const_argument.rb
Overview
This cop checks for Sidekiq worker perform arguments that look like classes or modules. These cannot be serialized for Redis, and should not be used with Sidekiq.
Constants other than classes/modules are not flagged by this cop.
Constant Summary collapse
- CONSTANT_NAME =
/\A[A-Z0-9_]+\z/.freeze
- MSG =
'Objects are not Sidekiq-serializable.'
- MSG_SELF =
'`self` is not Sidekiq-serializable.'
Constants included from Helpers
Instance Method Summary collapse
Methods included from Helpers
#approve_node, #expand_arguments, #in_sidekiq_worker?, included, #node_approved?, #sidekiq_arguments, #within?