# File lib/puppet-lint.rb, line 54 def run if @data.nil? raise PuppetLint::NoCodeError end PuppetLint::CheckPlugin.repository.each do |plugin| problems = plugin.new.run(@data) problems[:errors].each { |error| report :errors, error } problems[:warnings].each { |warning| report :warnings, warning } end end