Sha256: 68c2af6ad070e5f6243f20063b80eb56e0bf1b8f6e412ccfc1b0da78cd72fc0f
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
# Check for resource references PuppetLint.new_check(:resource_reference_without_whitespace) do def check resource_indexes.each do |_resource| tokens.select do |token| [:CLASSREF].include? token.type end.each do |param_token| check = param_token case check.type when :CLASSREF 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-resource_reference_syntax-2.0.0 | lib/puppet-lint/plugins/resource_reference_without_whitespace.rb |