Sha256: 5ff3dfa9c9f609a9ab6cdd53edb7ee8ddb4ad5499433d24b98594767ddb297a2
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 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.3 | lib/puppet-lint/plugins/resource_reference_without_title_capital.rb |