Exception: RuboCop::Cop::Badge::InvalidBadge
- 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`.'.freeze
Instance Method Summary collapse
-
#initialize(token) ⇒ InvalidBadge
constructor
A new instance of InvalidBadge.
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 |