Skip to content
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

Fix multiple doc comment parse issues #2390

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Fix multiple doc comment parse issues #2390

merged 1 commit into from
Aug 30, 2024

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Aug 29, 2024

This commit fixes several issues where documentation comments were not emitting events individually, an issue where a valid documentation comment was being declared invalid, and an invalid documentation comment was being prepended to a valid documtation comment on the next member.

Resolves #2388


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit fixes several issues where documentation comments were
not emitting events individually, an issue where a valid documentation
comment was being declared invalid, and an invalid documentation
comment was being prepended to a valid documtation comment on the next
member.
@kstich kstich requested a review from a team as a code owner August 29, 2024 23:56
Comment on lines +4 to +5
[WARNING] -: Found documentation comments ('///') attached to nothing. Documentation comments must appear on their own lines, directly before shapes and members, and before any traits. The invalid comments were: Invalid 4 (inside trait)\nInvalid 5 (not before traits) | Model.BadDocumentationComment
[WARNING] -: Found documentation comments ('///') attached to nothing. Documentation comments must appear on their own lines, directly before shapes and members, and before any traits. The invalid comments were: Invalid 6 (not before traits)\nInvalid 7 (inside shape line) | Model.BadDocumentationComment
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These two events still have combined invalid doc comments, but we're also in a better state than before.

@kstich kstich merged commit ac4c95d into main Aug 30, 2024
14 checks passed
@kstich kstich deleted the bad_doc_comment_fixes branch August 30, 2024 16:30
This pull request was closed.
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.

triple-slash docs accidentally merged when put in the wrong position
3 participants