Skip to content

refactor!: remove dead code and flags that never did anything - #8

Open
AjayBThorat-20 wants to merge 1 commit into
fix/node24-support-4.1.9from
refactor/remove-dead-code
Open

AjayBThorat-20 wants to merge 1 commit into
fix/node24-support-4.1.9from
refactor/remove-dead-code

Conversation

@AjayBThorat-20

@AjayBThorat-20 AjayBThorat-20 commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

What and why

Removes flags and code that never did what they claimed:

  • analyze --ai / --ai-provider only ever printed a fixed template sentence; no model was called. Use devcompass ai recommend instead. analyze --json no longer carries the always-null metadata.aiInsight.
  • fix --batch, --batch-mode, --only, --skip only printed "Batch mode features are not yet available".
  • Unreachable collectors and services, plus the two data files only they read. One of them, the supply-chain fixer, would have "fixed" a flagged typosquat by installing the look-alike it matched.
  • The local-install warning, which also fired for global installs and npx, and discouraged the recommended devDependency setup.

Breaking: the removed flags now fail with "unknown option". README, llms.txt, CHANGELOG and MIGRATION are updated.

Stacked on #5.

Merging the stack: use Create a merge commit, not squash (squashing makes every later PR show these commits again). After merging the PR below this one, click Delete branch on it; GitHub then retargets this PR to main and CI runs.

How I tested it

🤖 Generated with Claude Code

- analyze --ai / --ai-provider only ever printed a fixed template sentence;
  no model was called. Use `devcompass ai recommend`. analyze --json no
  longer carries the always-null metadata.aiInsight field.
- fix --batch / --batch-mode / --only / --skip only ever printed "Batch mode
  features are not yet available".
- Delete the unreachable npm-audit/outdated collectors, recommendation
  service and batch-fix services (plus the two data files only they read).
  The supply-chain fixer would have "fixed" a typosquat by installing the
  look-alike it matched against.
- Drop the local-install warning, which also fired for global installs and
  npx and discouraged the recommended devDependency setup.

BREAKING CHANGE: the removed CLI flags now fail with "unknown option".
README, llms.txt, CHANGELOG and MIGRATION updated.
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