Opened 13 minutes ago
#37565 assigned Cleanup/optimization
Enforce bullet style as * instead of - in documentation
| Reported by: | Tim Schilling | Owned by: | Django Sprints |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Low | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The preference in our documentation is to use * instead of -. We should have a linting rule for this. Our docs/lint.py has a few of these rules and one to check for this isn't super difficult to add. There aren't existing linting rules n doc8 or rstcheck for bullet style that we could enable.
This would remove the need for a type of nitpick code review comments and/or trying to decide whether a reviewer should just push a commit fixing that themselves.
If accepted, I suspect the change should be 2 commits:
- Add the new bullet style checker
- Update the existing 200+ instances where we are using
-
I've implemented the checker myself, it's about 20 lines of code that's fairly straightforward. It's less if we decide to not catch the nested lists.