Skip to content

refactor(analyzer): use the shared lockfile names for config-file discovery - #151

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:chore/lockfile-rest
Nov 16, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:chore/lockfile-rest

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Part of #97.

discoverConfigFiles in src/repo/analyzer.ts had its own copy of the lockfile names, and it was missing npm-shrinkwrap.json. It now spreads LOCKFILE_NAMES from src/repo/lockfiles.ts into the config-name set, so a repository's inventory (profile.configFiles, stats.configFiles) lists a shrinkwrap file like the other lockfiles. Nothing else reads configFiles, so planning doesn't change.

New test file, tests/repo/analyzer-lockfiles.test.ts:

  • For every name in LOCKFILE_NAMES, a root copy and a packages/web/ copy are both listed, and stats.configFiles matches the list.
  • A lookalike (package-lock.json.bak) isn't listed.

Mutation check: without the source change, the npm-shrinkwrap.json case fails and the other six pass. Added to release-files.json.

npm test (1087 pass, 0 fail), npm run typecheck and npm run audit:boundary pass.

One copy is left in src/: isConfigFile in src/repo/impact.ts. Changing it would move npm-shrinkwrap.json from "unknown" to "config" in impact classification, which changes behaviour, so it belongs in a separate PR.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T09:40:08.003345Z 9bac295 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adityankale190895
adityankale190895 merged commit 3d5535e into DiffCI:main Nov 16, 2026
13 checks passed
@adityankale190895

Copy link
Copy Markdown
Member

Merged, thank you! Pointing the analyzer at the shared lockfile names, along with the mutation check and the lookalike test, made this an easy review.

adityankale190895 added a commit that referenced this pull request Nov 16, 2026
…le work

Fold #151 and #152, which the credit job appended as raw titles, into the
shared lockfile sentence of the README entry, which now names #97.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
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.

2 participants