Sha256: df7777c4d44a529fe195df6f7e671343bef0e6cb66a696efa5509fdad952142c
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class Tab < Cop ERROR_MESSAGE = 'Tab detected.' def inspect(file, source, tokens, sexp) source.each_with_index do |line, index| if line =~ /^ *\t/ 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/tab.rb |
rubocop-0.2.1 | lib/rubocop/cop/tab.rb |
rubocop-0.2.0 | lib/rubocop/cop/tab.rb |