Fill in missing JSDoc #149
Labels
No labels
Bug
Cleanup/Refactor
Core Feature
Documentation
Feature
Performance Improvement
Security Improvement
UX/Accessibility
Unreproducable Bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rainbownapkin/canopy#149
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code comments are a good start, but we should annotate classes, methods, and functions with JSDoc (https://jsdoc.app/howto-es2015-classes).
A build step should be added in NPM to generate browser-friendly documentation from the JSDoc comments, making them publicly available at the /dev/ endpoint.
added #137 as parent issue
changed the description
Started work on filling in JSDoc, src/app partially documented:
fd760e4dabchanged the description
Completed JSDoc for src/app:
2303c89bcfI will at least document the following:
7b8c44158f)Things like routes, validators, and controllers are probably fine to leave undocumented for now. I'm lazy XP
Properly marked exported classes to fix JSDoc (
514b00a714)We should run through src/app to make sure all exported classes member's are properly documented, because you know they're fucking not.
We should also, in the future, consider moving util code to bespoke classes, instead of just functions/variables given to module.exports.
Unfortunately Mongoose Schemas may be stuck in the Global namespace as far as JSDoc is concerned :(