Sha256: 2e9d6b6f020eef814c7d0fb0ab1662b2acca78d8d4625e0242ea2a9e1dde585b
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
PuppetLint.new_check(:resource_reference_without_title_capital) do def check resource_indexes.each do |resource| resource[:param_tokens].select { |param_token| ['require', 'subscribe', 'notify', 'before'].include? param_token.value }.each do |param_token| value_token = param_token.next_code_token.next_code_token.next_code_token.next_token unless value_token.type == :SSTRING unless value_token.value =~ (/^[a-z]*$/) notify :error, { :message => 'resource reference with title with capital letter', :line => value_token.line, :column => value_token.column } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-resource_reference_syntax-1.0.2 | lib/puppet-lint/plugins/resource_reference_without_title_capital.rb |