Sha256: 63bf1c107356f0d3614c494860f69d35806d302988c83c539a7685daed94448a
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
PuppetLint.new_check(:leading_zero) do def check tokens.each do |token| next unless 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 def fix(problem) problem[:token].type = :SSTRING end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-leading_zero-check-2.0.0 | lib/puppet-lint/plugins/check_leading_zero.rb |