Automattic / Automattic/harper
"B" is flagged to expand to "byte" or "bytes", but it very often actually means "billion"
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 106
Description
**Describe the bug**
> because at 70B parameters that's way too large for most home computers!
The "B" to "byte(s)" linter doesn't seem like the right place to add the "B" to "billion" expansion.
We could have a dedicated one for "B" that offers both "byte(s)" and "billion" and does its best to decide which would be correct in context. But that might lead to inconsistent `message` wording between the "B" linter and the one that lints all other memory size abbreviations.
I'm not sure how reliable it is to have two linters flag the same thing. I've seen this but I know we have code to deal with "overlapping" lints which might prevent that now. We might need a way for linters (or lint groups?) to declare that they can overlap with each other?
Contributor guide
Research direction
The issue provides no file or test entry point. Start by locating the linter for byte abbreviations and the handling of overlapping lints; establish expected behavior for “B” meaning billion versus bytes and decide how competing diagnostics should be resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100