Exception: RubyLsp::Requests::Support::InternalRuboCopError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ruby_lsp/requests/support/rubocop_runner.rb

Constant Summary collapse

MESSAGE =
<<~EOS
  An internal error occurred for the %s cop.
  Updating to a newer version of RuboCop may solve this.
  For more details, run RuboCop on the command line.
EOS

Instance Method Summary collapse

Constructor Details

#initialize(rubocop_error) ⇒ InternalRuboCopError

Returns a new instance of InternalRuboCopError.

[View source]

29
30
31
32
# File 'lib/ruby_lsp/requests/support/rubocop_runner.rb', line 29

def initialize(rubocop_error)
  message = format(MESSAGE, rubocop_error.cop.name)
  super(message)
end