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

Ruby documentation #1682

Open
shorowit opened this issue Apr 10, 2024 · 4 comments
Open

Ruby documentation #1682

shorowit opened this issue Apr 10, 2024 · 4 comments

Comments

@shorowit
Copy link
Contributor

Use consistent documentation of ruby methods, classes, etc. YARD is popular, but RDoc comes with ruby. We're not looking to host documentation for our code, just ensure the code is documented well.

Could use rdoc -C to ensure everything is properly documented in a CI test: "X.XX% documented".

@joseph-robertson
Copy link
Collaborator

joseph-robertson commented Apr 10, 2024

@joseph-robertson
Copy link
Collaborator

Another idea is to use rubocop to enforce documentation comments. For example, add 'Style/DocumentationMethod' to tasks.rb, and you see C: 11: 3: Style/DocumentationMethod: Missing method documentation comment. when running update_measures.

@shorowit
Copy link
Contributor Author

Cool! I wasn't aware of that. Looks like we'd also want to use 'Style/Documentation'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

2 participants