Sha256: 7976d6d2a16214c20f0ceac762b4f60ccd36d289d3b7d6f666b9c61721a93cee
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
PuppetLint.new_check(:variable_contains_upcase) do def check tokens.select { |r| Set[:VARIABLE, :UNENC_VARIABLE].include? r.type }.each do |token| if token.value.match(/[A-Z]/) notify :warning, { :message => 'variable contains a capital letter', :line => token.line, :column => token.column, } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-variable_contains_upcase-1.0.2 | lib/puppet-lint/plugins/variable_contains_upcase.rb |