Method: RuboCop::Cop::CodeLength#irrelevant_line

Defined in:
lib/rubocop/cop/mixin/code_length.rb

#irrelevant_line(source_line) ⇒ Object

Returns true for lines that shall not be included in the count.



27
28
29
# File 'lib/rubocop/cop/mixin/code_length.rb', line 27

def irrelevant_line(source_line)
  source_line.blank? || !count_comments? && comment_line?(source_line)
end