Skip to content

Follow-up to #182: R-6EA94 still fires on SCREAMING_CASE status-enum references (e.g. 'PENDING') in prose comments #210

Description

@acknex2

Follow-up to #182 (thanks for the fix — and for #205). Confirming results from our repo on CLI 0.9.1 (remote scan, 2026-07-22): the narrowing works as designed — our finding count dropped from 27 (R-5EC1A + R-6EA94) to 3, string-literal hits (domain blocklists, UI copy like "Bug report") are gone, lowercase prose words ("later", "temp") no longer match, and R-5EC1A reports zero.

Residual FP class: R-6EA94 still fires when a comment references a status/state enum value in prose. In TypeScript/Prisma codebases these are conventionally SCREAMING_CASE, so they pass the new uppercase + word-boundary checks. Synthetic reproducers (mirror the 3 hits in our private repo):

// A row stays PENDING until a reviewer approves it.
const x = 1;

// PENDING or RUNNING. If the job is just leaving the queue, re-anchor the bar.
const y = 2;

Both are accurate descriptive comments about runtime state — nothing "leftover" to clean up.

Suggestion — either:

  1. Drop PENDING from the tag lexicon. Unlike TODO/FIXME/HACK/XXX it's a very common domain/state word (order status, job status, DB enums), and it wasn't part of the conventional tag set; or
  2. Keep the word but require tag form, not just the token: comment-leading position and/or colon suffix (// PENDING: migrate this later), the same shape most linters use for TODO detection. Mid-sentence enum references then pass while real leftover tags still match.

Happy to re-test a pre-release build, as before.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions