Automattic / Automattic/harper

"B" is flagged to expand to "byte" or "bytes", but it very often actually means "billion"

Open
#2,015 1 comment 0 reactions 0 assignees View on GitHub
bug linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**Describe the bug**

Image

> 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.