class RuboCop::Cop::Metrics::ModuleLength
The maximum allowed length is configurable.
Comment lines can optionally be ignored.
This cop checks if the length a module exceeds some maximum value.
def message(length, max_length)
def message(length, max_length) format('Module has too many lines. [%<length>d/%<max>d]', length: length, max: max_length) end
def on_module(node)
def on_module(node) check_code_length(node) end