Exception: RuboCop::Cop::AmbiguousCopName
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           ::RuboCop::Error,
          StandardError | |
| Instance Chain: 
          self,
           ::RuboCop::Error,
          StandardError | |
| Inherits: | RuboCop::Error 
 | 
| Defined in: | lib/rubocop/cop/registry.rb | 
Overview
Error raised when an unqualified cop name is used that could refer to two or more cops under different departments
Constant Summary
- 
    MSG =
    
 # File 'lib/rubocop/cop/registry.rb', line 8'Ambiguous cop name `%<name>s` used in %<origin>s needs ' \ 'department qualifier. Did you mean %<options>s?' 
Class Method Summary
- .new(name, origin, badges) ⇒ AmbiguousCopName constructor
Constructor Details
    .new(name, origin, badges)  ⇒ AmbiguousCopName 
  
# File 'lib/rubocop/cop/registry.rb', line 11
def initialize(name, origin, badges) super( format(MSG, name: name, origin: origin, options: badges.to_a.join(' or ')) ) end