-
Notifications
You must be signed in to change notification settings - Fork 156
Skip RBS comments in YardDoc listener #2310
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
Conversation
704c7bb to
2c0bd92
Compare
| "shareable_constant_value:", | ||
| "rubocop:", | ||
| "@requires_ancestor:", | ||
| ": ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used with an include? call down below. I want to make sure I'm not ignoring more comments than necessary so added the space. But it's not perfect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think prefer a fully fledge rbs_comment? method we call from documentation_comments.
Or at least a comment explaining what is this : :
| ": ", | |
| ": ", # ignore RBS signature comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should | be included here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Done.
2c0bd92 to
c0659f6
Compare
YardDoc listener thinks they are method comments and adds it to the RBI when they are already translated to sigs.
c0659f6 to
bd0a552
Compare
Motivation
YardDoc listener thinks they are method comments and adds it to the RBI when they are already translated to sigs.
Implementation
I'm trying to naively identify RBS comments through
:and|Tests