Class: RuboCop::CLI::Command::LSP Private

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/cli/command/lsp.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Start Language Server Protocol of RuboCop.

Instance Attribute Summary

Attributes inherited from Base

#env

Instance Method Summary collapse

Methods inherited from Base

by_command_name, inherited, #initialize

Constructor Details

This class inherits a constructor from RuboCop::CLI::Command::Base

Instance Method Details

#runObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
14
15
# File 'lib/rubocop/cli/command/lsp.rb', line 11

def run
  # Load on demand, `languge-server-protocol` is heavy to require.
  require_relative '../../lsp/server'
  RuboCop::LSP::Server.new(@config_store).start
end