Automattic / Automattic/harper

" (Why the dist-tag can't be latest. The final dist-tag always starts with dev-<YYYYMMDD>. Suffix validation rejects anything outside [A-Za-z0-9-]. Even suffix="" produces dev-<YYYYMMDD>, not latest) marked as formatting problem

Open
#4,167 0 comments 0 reactions 0 assignees View on GitHub
bug false-positive harper-core linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**What got flagged?**
"

**Why is this incorrect?**
" (Why the dist-tag can't be latest. The final dist-tag always starts with dev-. Suffix validation rejects anything outside [A-Za-z0-9-]. Even suffix="" produces dev-, not latest) marked as formatting problem. (First ".)

The final dist-tag cannot be "latest" because it is designed to always start with "dev-", and any suffix validation restricts it to alphanumeric characters and hyphens. Therefore, even an empty suffix results in "dev-" instead of "latest."

**Example of correct usage:**
No formatting problems.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by reproducing the reported formatting warning for the quoted dist-tag explanation, then trace which rule classifies the text and add a regression test if the project’s existing tests show where such cases belong. Done means the example produces no formatting problem while other invalid formatting remains detectable.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.