Category: clean-code Severity: minor
Location: packages/sdk/src/cli.ts:163-165
What
void readFileSync; merely references the imported function and performs no filesystem access; the comment claims it 'ensures the package can find its own version on disk,' which is false. readFileSync is otherwise unused.
Evidence
// Self-check ensures the package can find its own version on disk; no-op
// otherwise, but kept here for readers of the CLI to reason about packaging.
void readFileSync;
Proposed fix
Remove the unused import and misleading comment, or implement an actual version self-check that reads package.json.
Acceptance criteria
Category: clean-code Severity: minor
Location:
packages/sdk/src/cli.ts:163-165What
void readFileSync;merely references the imported function and performs no filesystem access; the comment claims it 'ensures the package can find its own version on disk,' which is false. readFileSync is otherwise unused.Evidence
Proposed fix
Remove the unused import and misleading comment, or implement an actual version self-check that reads package.json.
Acceptance criteria
void readFileSync;statement and any retained comment is accurate.