# File lib/puppet-lint/plugins/check_conditionals.rb, line 4 def check resource_indexes.each do |resource| resource[:tokens].each do |token| if token.type == :FARROW if token.next_code_token.type == :VARIABLE unless token.next_code_token.next_code_token.nil? if token.next_code_token.next_code_token.type == :QMARK notify :warning, { :message => 'selector inside resource block', :line => token.line, :column => token.column, } end end end end end end end