Sha256: 5b0854194c79fb251138d006450146695610a5e0e6e4a0fd793ebef0314af5ca
Contents?: true
Size: 420 Bytes
Versions: 4
Compression:
Stored size: 420 Bytes
Contents
PuppetLint.new_check(:leading_zero) do 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 def fix(problem) problem[:token].type = :SSTRING end end
Version data entries
4 entries across 4 versions & 1 rubygems