Class Roodi::Checks::ModuleLineCountCheck
In: lib/roodi/checks/module_line_count_check.rb
Parent: Roodi::Checks::LineCountCheck

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.

Methods

new  

Constants

DEFAULT_LINE_COUNT = 300

Public Class methods

[Source]

# File lib/roodi/checks/module_line_count_check.rb, line 12
      def initialize(options = {})
        line_count = options['line_count'] || DEFAULT_LINE_COUNT
        super([:module], line_count, 'Module')
      end

[Validate]