Class Roodi::Checks::MethodLineCountCheck
In: lib/roodi/checks/method_line_count_check.rb
Parent: Roodi::Checks::LineCountCheck

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

A method getting too large is a code smell that indicates it might be doing more than one thing and becoming hard to test. It should probably be refactored into multiple methods that each do a single thing well.

Methods

new  

Constants

DEFAULT_LINE_COUNT = 20

Public Class methods

[Source]

# File lib/roodi/checks/method_line_count_check.rb, line 13
      def initialize(options = {})
        line_count = options['line_count'] || DEFAULT_LINE_COUNT
        super([:defn], line_count, 'Method')
      end

[Validate]