-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sord strips important information from included constants #87
Comments
You can also see something similar happen in |
Changing class ListCommand < LibraryCommand
include YARD::Templates::Helpers::BaseHelper
# ...
end This is probably better than the current behaviour, but still not identical to the original |
With that change (after #90), it goes from 209 errors to 175 in sord_examples. |
Here's a related test: it 'returns fully qualified classes' do
YARD.parse_string(<<-RUBY)
class Alphabet
end
class Letters < Alphabet
end
class A < Alphabet::Letters
# @return [void]
def x; end
end
RUBY
expect(subject.generate.strip).to eq fix_heredoc(<<-RUBY)
# typed: strong
class Alphabet
end
class Letters < Alphabet
end
class A < Alphabet::Letters
sig { void }
def x; end
end
RUBY
end |
Describe the bug
In YARD, this file can be found at
lib/yard/server/commands/list_command.rb
:To Reproduce
Run Sord on YARD and search for
include BaseHelper
inclass ListCommand
.Expected behavior
Actual behavior
Just
BaseHelper
is generated, which causes an error:The text was updated successfully, but these errors were encountered: