Sha256: 1eaba5b5940c3f3456024076874cf52b5ed881f01d1c2a56980f9b161fbbeee4
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
# Check for Class references PuppetLint.new_check(:resource_reference_chain_without_whitespace) do def check tokens.select { |token| [:TYPE].include? token.type }.each do |param_token| check = param_token case check.type when :TYPE 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
Version data entries
3 entries across 3 versions & 1 rubygems