Sha256: 84e7829fe1d3cbd8f1dffc28f130893421deef013b5ccf155bd52587cca452fe
Contents?: true
Size: 372 Bytes
Versions: 3
Compression:
Stored size: 372 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class EndOfLine < Cop ERROR_MESSAGE = 'Carriage return character detected.' def inspect(file, source, tokens, sexp) source.each_with_index do |line, index| if line =~ /\r$/ add_offence(:convention, index + 1, ERROR_MESSAGE) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.3.0 | lib/rubocop/cop/end_of_line.rb |
rubocop-0.2.1 | lib/rubocop/cop/end_of_line.rb |
rubocop-0.2.0 | lib/rubocop/cop/end_of_line.rb |