Skip to content

fix: full-pass punch list + prettier format#9

Merged
jeffyaw merged 4 commits intomainfrom
fix/prettier-format
Apr 23, 2026
Merged

fix: full-pass punch list + prettier format#9
jeffyaw merged 4 commits intomainfrom
fix/prettier-format

Conversation

@jeffyaw
Copy link
Copy Markdown
Member

@jeffyaw jeffyaw commented Apr 19, 2026

Summary

  • Ships the original prettier-format fix that this branch opened for (commit 969d233).
  • Plus the /full-pass review punch list:
    • mcp-env Continue false-positive, ci-secrets regex tightening, mcph-gitignore inert-fix removal
    • CtxlintConfig gains mcph*/session*/mcpOnly keys; --config routes through the shared parser for JSON line/col + unknown-key warnings
    • findRenames tracks commit header while scanning (fixes multi-rename hash attribution); dead getCommitsSince deleted
    • session diverged-file / duplicate-memory switched to Jaccard; duplicate-memory scoped to pairs touching the current project
    • mcph-parser.checkGitignored delegates to git check-ignore
    • fixer.ts descending-line sort removed (mutates in place, order doesn't shift indices)
    • Terminal output: swapped Unicode icons for ASCII (Windows ConPTY mojibake)
  • .pre-commit-hooks.yaml pin resynced to 0.9.17 (had drifted since the v0.9.15/v0.9.16 bumps)

Test plan

  • pnpm run lint
  • pnpm run test:run (457 pass)
  • npx tsc --noEmit
  • pnpm run build

jeffyaw and others added 3 commits April 19, 2026 14:57
Applies prettier formatting to 7 files flagged by CI's `prettier --check src/` step.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Drifted since v0.9.15/0.9.16 bumps skipped release.sh, leaving
consumers who install via `rev: vX.Y.Z` executing @0.9.14 through
the pre-commit framework.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- mcp-env: skip unset-variable for Continue (its ${{ secrets.X }} refs
  resolve from GitHub Actions secrets, not process.env, so every correct
  Continue config false-positived)
- ci-secrets: tighten contextMentionsSecret regex -- require a separator
  for `_` and anchor with \b, so `NPM_TOKEN` no longer matches bare prose
  like `npmtoken` anywhere in a file
- mcph-gitignore: drop the inert `fix` action (oldText: '', line: 0 was
  silently skipped by the fixer's bounds check; suggestion stays)
- config: add mcph/mcphOnly/mcphGlobal/mcphStrictEnvToken/session/
  sessionOnly/mcpOnly to CtxlintConfig + KNOWN_CONFIG_KEYS; route
  --config <path> through shared parser so it reports JSON line/col and
  warns on unknown keys
- cli: fold config-sourced booleans into the local flag vars so
  effectiveMcp/Mcph/Session and the ignore filter stay consistent when
  only a config enables a domain
- git: track current commit header while scanning findRenames so
  multi-rename commits attribute the right hash; drop unused
  getCommitsSince (superseded by getCommitsSinceBatch)
- session/diverged-file, session/duplicate-memory: switch to Jaccard
  (|A n B| / |A u B|) to match the redundancy check; the prior
  matches/max(|A|,|B|) was asymmetric (array vs. set on the two sides)
- session/duplicate-memory: scope pairs to those touching the current
  project so `ctxlint --session` doesn't echo unrelated cross-project
  duplicates every run
- mcph-parser: delegate checkGitignored to `git check-ignore` so the
  full gitignore grammar (globs, negation, ancestor files) is honored
- fixer: remove the misleading descending line sort (we mutate lines in
  place, so fix order across lines can't shift indices)
- reporter/fixer/loop-detection: swap user-facing Unicode icons
  (checkmark/cross/warning/info/arrow/box-draw) for ASCII so Windows
  ConPTY doesn't render mojibake

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jeffyaw jeffyaw changed the title style: format with prettier fix: full-pass punch list + prettier format Apr 23, 2026
Prior fix commit introduced formatting drift the CI prettier check caught.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jeffyaw jeffyaw merged commit d73fc12 into main Apr 23, 2026
3 checks passed
@jeffyaw jeffyaw deleted the fix/prettier-format branch April 23, 2026 19:50
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