# File lib/puppet-lint.rb, line 162
  def run
    if @code.nil?
      raise PuppetLint::NoCodeError
    end

    linter = PuppetLint::Checks.new
    @problems = linter.run(@path, @code)
    @problems.each { |problem| @statistics[problem[:kind]] += 1 }

    @manifest = linter.manifest if PuppetLint.configuration.fix
  end