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

Yardoc formatting for comments on database attributes #162

Open
bryanmetzger opened this issue Nov 12, 2024 · 2 comments
Open

Yardoc formatting for comments on database attributes #162

bryanmetzger opened this issue Nov 12, 2024 · 2 comments

Comments

@bryanmetzger
Copy link

we were testing out using this with yardoc and this was breaking when we had database comments, I'm not 100% sure, but my understanding of yardoc is that the format for something with comments would be like this:

# @!attribute id
#  [is commented]
#  @return [Integer]

instead of

# @!attribute id([is commented])
#   @return [Integer]
@drwl
Copy link
Owner

drwl commented Nov 15, 2024

Thanks for reporting this, I'll look into adding a fix.

@drwl
Copy link
Owner

drwl commented Nov 16, 2024

@bryanmetzger I'm working on adding a fix for this now, it should be straight forward. But for my own knowledge, can you share with me where I can learn more about how proper yardoc should be formatted?

I poked around on the YARD website [1] and didn't see anything related. I did see this though [2], referenced from a yard cheatsheet, but doesn't recommend how the [is commented] should be formatted.

[1] https://yardoc.org/
[2] https://github.com/chriscz/cheatsheets/blob/main/yard/index.md#meta-programming

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

No branches or pull requests

2 participants