class Object
Public Instance Methods
check()
click to toggle source
# File lib/puppet-lint/plugins/check_leading_zero.rb, line 2 def check tokens.each do |token| if token.type == :NUMBER and token.value =~ /^0\d/ notify :warning, { :message => 'unquoted number with leading zero', :line => token.line, :column => token.column, :token => token, } end end end
fix(problem)
click to toggle source
# File lib/puppet-lint/plugins/check_leading_zero.rb, line 15 def fix(problem) problem[:token].type = :SSTRING end