Class: RuboCop::Cop::Kata::GoodClassName
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Kata::GoodClassName
- Includes:
- AgentNoun
- Defined in:
- lib/rubocop/cop/kata/good_class_name.rb
Constant Summary collapse
- BUCKET_MSG =
"`%s` is a junk drawer; it hides the concept the code is missing."- CROWD_MSG =
"`%s` packs %d concepts into one name; a class names one object that exists " \ "in the model — 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_class(node) ⇒ Object
10 |
# File 'lib/rubocop/cop/kata/good_class_name.rb', line 10 def on_class(node) = check(node) |