Skip to content

Commit

Permalink
Ignore ConstantsFromStrings in check_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed May 31, 2022
1 parent 32c602f commit 4cc5409
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rakelib/check_docs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ task :check_docs do
end

spec_matcher = %r{\(https://microsoft.github.io/language-server-protocol/specification#.*\)}
error_messages = RubyLsp::Requests.constants.each_with_object(Hash.new { |h, k| h[k] = [] }) do |request, errors|
error_messages = RubyLsp::Requests
.constants # rubocop:disable Sorbet/ConstantsFromStrings
.each_with_object(Hash.new { |h, k| h[k] = [] }) do |request, errors|
full_name = "RubyLsp::Requests::#{request}"
docs = YARD::Registry.at(full_name).docstring
next if /:nodoc:/.match?(docs)
Expand Down

0 comments on commit 4cc5409

Please sign in to comment.