class RuboCop::Cop::Layout::EndOfLine

def unimportant_missing_cr?(index, last_line, line)

If there is no LF on the last line, we don't care if there's no CR.
def unimportant_missing_cr?(index, last_line, line)
  style == :crlf && index == last_line - 1 && line !~ /\n$/
end