Class: RuboCop::Cop::Kata::GoodModuleName

Inherits:
Base
  • Object
show all
Includes:
AgentNoun
Defined in:
lib/rubocop/cop/kata/good_module_name.rb

Constant Summary collapse

LAYER_MSG =
"`%s` names a layer or a junk drawer; a module names a domain vocabulary."
CROWD_MSG =
"`%s` packs %d concepts into one name; a module names one domain — " \
"or, if `%s` reads as one concept here, add it to `Terms`."

Constants included from AgentNoun

AgentNoun::DERIVATIONS, AgentNoun::DOER, AgentNoun::DOER_HINT, AgentNoun::DOER_MSG, AgentNoun::SEGMENT

Instance Method Summary collapse

Instance Method Details

#on_module(node) ⇒ Object



10
# File 'lib/rubocop/cop/kata/good_module_name.rb', line 10

def on_module(node) = check(node)