Sha256: 77f97ff64ea12465435fab3aa1a90ee43ccd36808fb866828ec4e9dbf25bfb5e
Contents?: true
Size: 329 Bytes
Versions: 4
Compression:
Stored size: 329 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class EndOfLine < Cop MSG = 'Carriage return character detected.' def inspect(source, tokens, ast, comments) source.each_with_index do |line, index| add_offence(:convention, index + 1, MSG) if line =~ /\r$/ end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.8.3 | lib/rubocop/cop/end_of_line.rb |
rubocop-0.8.2 | lib/rubocop/cop/end_of_line.rb |
rubocop-0.8.1 | lib/rubocop/cop/end_of_line.rb |
rubocop-0.8.0 | lib/rubocop/cop/end_of_line.rb |