class RubyLsp::Requests::Support::InternalRuboCopError
def initialize(rubocop_error)
def initialize(rubocop_error) message = case rubocop_error when RuboCop::ErrorWithAnalyzedFileLocation format(MESSAGE, "for the #{rubocop_error.cop.name} cop") when StandardError format(MESSAGE, rubocop_error.message) end super(message) end