class RuboCop::Cop::Decko::EventLength
Checks that the lines of a view block don't exceed the allowed maximum @example
event :some_event, :store do ... end
Public Instance Methods
on_block(node)
click to toggle source
# File lib/rubocop/cop/decko/event_length.rb, line 14 def on_block(node) check_block_length node, only: :event end
Private Instance Methods
message(length, max_length)
click to toggle source
# File lib/rubocop/cop/decko/event_length.rb, line 20 def message(length, max_length) format('Event has too many lines. [%d/%d]', length, max_length) end