Sha256: 47308b5fd1774764a6035de9db467ee2c9590ae8b0b93e9c847652757aca3f9e
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
# Check for resource references PuppetLint.new_check(:resource_reference_without_whitespace) do def check resource_indexes.each do |resource| tokens.select { |token| [:CLASSREF].include? token.type }.each do |param_token| check = param_token case check.type when :CLASSREF begin if check.next_token.type == :WHITESPACE and check.next_code_token.type == :LBRACK notify :error, { :message => 'whitespce between reference type and title', :line => check.line, :column => check.column } end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems