module RuboCop::Cop::CodeLength

def check_code_length(node)

def check_code_length(node)
  length = code_length(node)
  return unless length > max_length
  add_offense(node, message: message(length, max_length)) do
    self.max = length
  end
end

def count_comments?

def count_comments?
  cop_config['CountComments']
end

def irrelevant_line(source_line)

Returns true for lines that shall not be included in the count.
def irrelevant_line(source_line)
  source_line.blank? || !count_comments? && comment_line?(source_line)
end

def max_length

def max_length
  cop_config['Max']
end