# File lib/puppet-lint/plugins/check_nodes.rb, line 4 def check node_tokens = tokens.select { |token| token.type == :NODE } node_tokens.each do |node| node_token_idx = tokens.index(node) node_lbrace_idx = tokens.index(tokens.find { |token| token.type == :LBRACE }) tokens[node_token_idx..node_lbrace_idx].select { |token| token.type == :NAME }.each do |token| unless token.value == 'default' notify :warning, { :message => 'unquoted node name found', :line => token.line, :column => token.column, :token => token, } end end end end