Sha256: 81f6a469f16cc8fb15d6e4511649123b5b6efa1e761eca9a0126048f1f0f5995

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Cop
    class Tab < Cop
      MSG = 'Tab detected.'

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

Version data entries

4 entries across 4 versions & 1 rubygems

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