class RuboCop::Runner

def get_processed_source(file)

def get_processed_source(file)
  ruby_version = @config_store.for_file(file).target_ruby_version
  if @options[:stdin]
    ProcessedSource.new(@options[:stdin], ruby_version, file)
  else
    begin
      ProcessedSource.from_file(file, ruby_version)
    rescue Errno::ENOENT
      raise RuboCop::Error, "No such file or directory: #{file}"
    end
  end
end