Skip to content

Remove now unneeded rdoc private annotations - #4212

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:reduce-rdoc-private
Aug 26, 2026
Merged

Remove now unneeded rdoc private annotations#4212
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:reduce-rdoc-private

Conversation

@Earlopain

Copy link
Copy Markdown
Collaborator

RDoc 8 parses rbs (including inline) and so
automatically removes the annotations for us

RDoc 8 parses rbs (including inline) and so
automatically removes the annotations for us
@Earlopain
Earlopain force-pushed the reduce-rdoc-private branch from dfd511a to 9dcdafd Compare August 26, 2026 19:32
Comment thread rakelib/typecheck.rake
when /\A:/
# skip RBS type annotations
# skip RBS type annotations and remove preceeding empty line
comments.pop if comments.last&.text&.empty?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hid an actual change here. It's just to keep rbi files as they are currently. Previously the line was removed because it was the private annotation (see above)

@kddnewton

Copy link
Copy Markdown
Collaborator

I get that it works now, but do we need to do this? It's a pretty large change. Is it better looking in the docs now if we remove the --?

@Earlopain

Copy link
Copy Markdown
Collaborator Author

It's only so large because of the generated rbi (don't know why rbs inline doesn't exclude its own type hints 🤷). It looks exactly the same in the docs.

I don't want these in new code but if there're everywhere its just gonna get copy-pasted

@kddnewton

Copy link
Copy Markdown
Collaborator

alrighty

@kddnewton
kddnewton merged commit 5f4d156 into ruby:main Aug 26, 2026
128 of 129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants