Skip to content

docs: shorten the lib file headers to two lines - #85

Merged
versnic merged 1 commit into
mainfrom
docs/short-lib-headers
Nov 11, 2026
Merged

versnic merged 1 commit into
mainfrom
docs/short-lib-headers

Conversation

@versnic

@versnic versnic commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

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

  • No AI tool was used
  • AI tools were used, as described here:

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

  • The title follows Conventional Commits (feat:, fix:, docs:, …) and is lowercase
  • Tests cover the change, or it needs none
  • The README describes the change
  • The roadmap is updated if this completes a roadmap item
  • Tested in a real terminal with a temporary configuration (DEV_WORKSPACE_CONFIG), if the change affects what the CLI shows or does

🤖 Generated with Claude Code

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.
@versnic versnic self-assigned this Nov 11, 2026
@github-actions github-actions Bot added documentation README, guides and code comments release: none Merging publishes nothing labels Nov 11, 2026
@versnic
versnic merged commit 6b0c7d0 into main Nov 11, 2026
19 checks passed
@versnic
versnic deleted the docs/short-lib-headers branch November 11, 2026 13:48
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Included in a published release (added by semantic-release) label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation README, guides and code comments release: none Merging publishes nothing released Included in a published release (added by semantic-release)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant