class Rubocop::Cop::Style::EndOfLine

This cop checks for Windows-style line endings in the source code.

def investigate(processed_source)

def investigate(processed_source)
  processed_source.lines.each_with_index do |line, index|
    if line =~ /\r$/
      convention(nil,
                 source_range(processed_source.buffer,
                              processed_source[0...index],
                              line.length - 1, 1),
                 MSG)
    end
  end
end