Class Roodi::Checks::ClassLineCountCheck
In: lib/roodi/checks/class_line_count_check.rb
Parent: Roodi::Checks::LineCountCheck

Checks a class to make sure the number of lines it has is under the specified limit.

A class 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 classes.

Methods

new  

Constants

DEFAULT_LINE_COUNT = 300

Public Class methods

[Source]

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

[Validate]