class Object
Constants
- NUMERIC_VAR_TYPES
Public Instance Methods
check()
click to toggle source
# File lib/puppet-lint/plugins/numeric_variable.rb, line 3 def check tokens.select { |r| NUMERIC_VAR_TYPES.include? r.type }.each do |token| if token.value.match(/^[0-9]+$/) notify :warning, { :message => 'variable is solely numeric', :line => token.line, :column => token.column, } end end end