Sha256: d9785f7d7a7a7f4b44cc070586f8c7593f266968e0d249714602d6824a2cc7d3
Contents?: true
Size: 624 Bytes
Versions: 15
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks if the length a module exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. class ModuleLength < Cop include ClassishLength def on_module(node) check_code_length(node) end private def message(length, max_length) format('Module has too many lines. [%<length>d/%<max>d]', length: length, max: max_length) end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems