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