LivelyKernel / LivelyKernel/lively.next

Uniform Formatting of DocStrings

Open
#458 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

✨ enhancement 👶 good first issue 📚 documentation
Dominant language
JavaScript
Stars
90
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Our Linter is quite good at enforcing a uniform code style. However, this does not (or very rudimentary) apply to DocStrings.

I propose the following:

  1. Use https://eslint.org/docs/latest/rules/max-len to generally enforce a maximum line length. Our code is quite good in that regard, but for comments this would be useful.
  2. Set up https://github.com/gajus/eslint-plugin-jsdoc to take care of the rest.

I think, that with the ESLint-JSDoc-Plugin and a dry run with require-jsdoc enabled inside of a GitHub Action we can also get a good approximation on the status of our documentation with regards to completeness.

@merryman thoughts? What line-length would you propose? A lot of people use 80, that might be a bit aggressive, I propose 100? :D

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files are named. Start by locating the repository's ESLint configuration and GitHub Actions workflows, then review how comments and DocStrings are currently linted. Compare the proposed max-len and eslint-plugin-jsdoc setup, including require-jsdoc in a dry run; done means the chosen rules run in CI without unexpectedly failing existing code.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, github-actions, javascript
Domain
ci-cd, documentation, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.