rubocop-hq/rubocop

View on GitHub
lib/rubocop/cli/command/lsp.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
87%
# frozen_string_literal: true

require_relative '../../lsp/server'

module RuboCop
  class CLI
    module Command
      # Start Language Server Protocol of RuboCop.
      # @api private
      class LSP < Base
        self.command_name = :lsp

        def run
          RuboCop::LSP::Server.new(@config_store).start
        end
      end
    end
  end
end