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. [%d/%d]', length, max_length)
end

def on_module(node)

def on_module(node)
  check_code_length(node)
end