Module: RuboCop::Cop::Kata::AgentNoun

Included in:
GoodClassName, GoodModuleName
Defined in:
lib/rubocop/cop/kata/agent_noun.rb

Constant Summary collapse

DOER_MSG =
"`%s` names a doer; name the %s for the thing it is, not the work it does."
DOER_HINT =
"#{DOER_MSG} Try `%s`.".freeze
DOER =
/(?:er|or)\z/
SEGMENT =
/[A-Z]+(?=[A-Z][a-z]|\z)|[A-Z][a-z0-9]*/
DERIVATIONS =
[[/ator\z/, "ation"], [/ector\z/, "ection"], [/isor\z/, "ision"], [/i[zs]er\z/, "is"]].freeze