Skip to content

fix(lint): wcat-bin-name skips a short bin beside a wcat-<name> on the same file - #709

Merged
leemour merged 1 commit into
mainfrom
fix/wcat-bin-name-pair
Nov 23, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/wcat-bin-name-pair

Conversation

@leemour

@leemour leemour commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

cli-dev lint warned package.json "bin" ydisk: install the command as wcat-ydisk although ydisk's bin already has both ydisk and wcat-ydisk on the same file — the pair the template writes.

What

  • binNameWarnings skips a short key when wcat-<key> points at the same file. A short key alone, or one pointing elsewhere, still warns.
  • WC-CMD-29 exceptions and docs/TOOLING.md updated to match.
  • Changelog under Changed — may break callers: the wcat-bin-name overrides in asterisk-cli (pbx), beeline-cli and gcal-cli become stale on the next bump, and cli-dev lint fails until they are removed.

Testing

  • New unit cases in src/dev/wcat-lint.test.ts: pair on same file → no warning; different file → warning; short only → warning.
  • The override test in src/dev/lint.test.ts now uses a pair on different files.
  • pnpm typecheck, pnpm lint, pnpm docs:check, full vitest run (6 failures in scripts/release-checks.test.ts also fail on main locally, exit 126).

🤖 Generated with Claude Code

…e same file

The template writes both "ydisk" and "wcat-ydisk" pointing at one file, and
cli-dev lint still warned "install the command as wcat-ydisk". A short "bin"
key now draws no warning when a wcat-<name> key runs the same file. A short
key alone, or one that runs another file, still warns.

The standard (WC-CMD-29 exceptions) and TOOLING.md say the same now. The
overrides asterisk-cli, beeline-cli and gcal-cli keep for such a pair become
stale, so cli-dev lint fails there until the entry is removed; the changelog
says so under "Changed — may break callers".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 784905a into main Nov 23, 2026
10 checks passed
@leemour
leemour deleted the fix/wcat-bin-name-pair branch November 23, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant