Skip to content

Commit

Permalink
Only require RuboCop diagnostic inside the formatter (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock authored Sep 24, 2024
1 parent d037674 commit 0ef3713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/ruby_lsp/internal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
require "ruby_lsp/response_builders/signature_help"

# Request support
require "ruby_lsp/requests/support/rubocop_diagnostic"
require "ruby_lsp/requests/support/selection_range"
require "ruby_lsp/requests/support/annotation"
require "ruby_lsp/requests/support/sorbet"
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_lsp/requests/support/rubocop_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

return unless defined?(RubyLsp::Requests::Support::RuboCopRunner)

require "ruby_lsp/requests/support/rubocop_diagnostic"

module RubyLsp
module Requests
module Support
Expand Down

0 comments on commit 0ef3713

Please sign in to comment.