class Standard::Lsp::StdinRubocopRunner

def run(path, contents)

def run(path, contents)
  @errors = []
  @warnings = []
  @offenses = []
  @options[:stdin] = contents
  super([path])
  raise Interrupt if aborting?
rescue ::RuboCop::Runner::InfiniteCorrectionLoop => error
  if defined?(::RubyLsp::Requests::Formatting::Error)
    raise ::RubyLsp::Requests::Formatting::Error, error.message
  else
    raise error
  end
rescue ::RuboCop::ValidationError => error
  raise ConfigurationError, error.message
rescue => error
  if defined?(::RubyLsp::Requests::Formatting::Error)
    raise ::RubyLsp::Requests::Support::InternalRuboCopError, error
  else
    raise error
  end
end