Class: RuboCop::ConfigObsoletion::RenamedCop Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
RuboCop::ConfigObsoletion::CopRule
|
Defined in: | lib/rubocop/config_obsoletion/renamed_cop.rb |
Overview
Encapsulation of a ConfigObsoletion rule for renaming a cop or moving it to a new department.
Class Method Summary
- .new(config, old_name, new_name) ⇒ RenamedCop constructor Internal use only
CopRule
- Inherited
Rule
- Inherited
Instance Attribute Summary
- #new_name readonly Internal use only
- #moved? ⇒ Boolean readonly private Internal use only
CopRule
- Inherited
#cop_rule?, #old_name, #violated?, | |
#warning? | Cop rules currently can only be failures, not warnings. |
Rule
- Inherited
#cop_rule? | Does this rule relate to cops? |
#parameter_rule? | Does this rule relate to parameters? |
#violated?, #config |
Instance Method Summary
- #rule_message Internal use only
- #verb private Internal use only
CopRule
- Inherited
Rule
- Inherited
Instance Attribute Details
#moved? ⇒ Boolean
(readonly, private)
#new_name (readonly)
[ GitHub ]# File 'lib/rubocop/config_obsoletion/renamed_cop.rb', line 9
attr_reader :new_name
Instance Method Details
#rule_message
[ GitHub ]#verb (private)
[ GitHub ]# File 'lib/rubocop/config_obsoletion/renamed_cop.rb', line 29
def verb moved? ? 'moved' : 'renamed' end