Repository navigation
docs: shorten the lib file headers to two lines - #85
Merged
Merged
Conversation
Each lib file now starts with what it is for and which files use it. The details the long headers held moved next to the code they describe. CONTRIBUTING.md and the pull request template no longer ask contributors to keep a long header up to date.
|
🎉 This PR is included in version 0.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The header comment at the top of each
lib/file had grown into a long description of the whole file (up to 100 lines), which was a lot to ask contributors to keep up to date.Each file now starts with two lines: what it is for, and which files use it. The details worth keeping (the list's options and item fields, the config and history file formats, the npm and Yarn
--rules, the mouse support levels, how tests inject fakes) moved into comments above the function they describe. Everything else repeated the comments already on each function.CONTRIBUTING.md describes the new rule, and the pull request template no longer asks for an up-to-date header. The same checkbox was removed from the open issues.
No code changes.
AI use
I decided to cut the headers down and how short they should be, and reviewed the result. Claude Code helped me rewrite the headers, move the details next to the code and update CONTRIBUTING.md and the template.
Checklist
feat:,fix:,docs:, …) and is lowercaseDEV_WORKSPACE_CONFIG), if the change affects what the CLI shows or does🤖 Generated with Claude Code