# File lib/puppet-lint/plugins/check_variables.rb, line 6 def check tokens.select { |r| VARIABLE_TYPES.include? r.type }.each do |token| if token.value.gsub(/\[.+?\]/, '').match(/-/) notify :warning, { :message => 'variable contains a dash', :line => token.line, :column => token.column, } end end end