Exception: RuboCop::Cop::Badge::InvalidBadge

Inherits:
Error
  • Object
show all
Defined in:
lib/rubocop/cop/badge.rb

Overview

Error raised when a badge parse fails.

Constant Summary collapse

MSG =
'Invalid badge %<badge>p. ' \
'Expected `Department/CopName` or `CopName`.'

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ InvalidBadge

Returns a new instance of InvalidBadge



18
19
20
# File 'lib/rubocop/cop/badge.rb', line 18

def initialize(token)
  super(format(MSG, badge: token))
end