Sha256: d76328a269a91cc76df52e57488df9e4ca19b7d8faad14a40c3f4240bc8ef616
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
require_relative '../ruler' class Tailor module Rulers class AllowHardTabsRuler < Tailor::Ruler def sp_update(token, lineno, column) measure(token, lineno, column) end # Checks to see if the space(s) contains hard tabs. # # @param [Fixnum] token The space(s). # @param [Fixnum] lineno Line the problem was found on. # @param [Fixnum] column Column the problem was found on. def measure(token, lineno, column) if token.contains_hard_tab? @problems << Problem.new(:hard_tab, lineno, column) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.0.0.alpha2 | lib/tailor/rulers/allow_hard_tabs_ruler.rb |
tailor-1.0.0.alpha | lib/tailor/rulers/allow_hard_tabs_ruler.rb |