Sha256: d8524c90ecf21bee0b03cce0eabc61133f574cd462acbace3b0d29d67e6609f6
Contents?: true
Size: 377 Bytes
Versions: 2
Compression:
Stored size: 377 Bytes
Contents
PuppetLint.new_check(:variable_contains_upcase) do def check tokens.select { |r| VARIABLE_TYPES.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
2 entries across 2 versions & 1 rubygems