Sha256: 5de2b67a736359f235c34f2bb1b693ee11e1452c06fd0a8095970b82ff679485

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Cop
    class LineContinuation < Cop
      MSG = 'Avoid the use of the line continuation character(\).'

      def inspect(source, tokens, ast, comments)
        source.each_with_index do |line, index|
          add_offence(:convention, index + 1, MSG) if line =~ /.*\\\z/
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-0.8.3 lib/rubocop/cop/line_continuation.rb
rubocop-0.8.2 lib/rubocop/cop/line_continuation.rb
rubocop-0.8.1 lib/rubocop/cop/line_continuation.rb