Class: RuboCop::Cop::UnusedIncludedModules

Inherits:
BaseInteractorCop show all
Defined in:
lib/interactor_support/rubocop/cop/unused_included_modules.rb

Constant Summary collapse

MSG_SINGLE =
'Module `%<module>s` is included but its methods are not used in this class.'
MSG_GROUP =
'Use `%<correct_modules>s` instead.'
GROUP_MODULES =
{
  'InteractorSupport' => [
    'InteractorSupport::Concerns::Findable',
    'InteractorSupport::Concerns::Skippable',
    'InteractorSupport::Concerns::Transactionable',
    'InteractorSupport::Concerns::Transformable',
    'InteractorSupport::Concerns::Updatable',
    'InteractorSupport::Validations',
  ],
  'InteractorSupport::Actions' => [
    'InteractorSupport::Concerns::Skippable',
    'InteractorSupport::Concerns::Transactionable',
    'InteractorSupport::Concerns::Updatable',
    'InteractorSupport::Concerns::Findable',
    'InteractorSupport::Concerns::Transformable',
  ],
}.freeze

Method Summary

Methods inherited from BaseInteractorCop

#on_class, #on_module