123456789_123456789_123456789_123456789_123456789_

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

Class Method Summary

Constructor Details

.new(name, origin, badges) ⇒ AmbiguousCopName

[ GitHub ]

  
# 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