Sha256: 10e8c5f120373b0b41b654f204e736f0c2fc9120d56649aab167615c273d7ef1
Contents?: true
Size: 616 Bytes
Versions: 13
Compression:
Stored size: 616 Bytes
Contents
require 'roodi/checks/line_count_check' module Roodi module Checks # Checks a module to make sure the number of lines it has is under the specified limit. # # A module getting too large is a code smell that indicates it might be taking on too many # responsibilities. It should probably be refactored into multiple smaller modules. class ModuleLineCountCheck < LineCountCheck DEFAULT_LINE_COUNT = 300 def initialize(options = {}) line_count = options['line_count'] || DEFAULT_LINE_COUNT super([:module], line_count, 'Module') end end end end
Version data entries
13 entries across 13 versions & 3 rubygems