`doctor` must exit non-zero when a check fails

Open Beginner friendly
#751 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@fcasibu is already working on this.

Since Nov 30, 2026.

  • #787 by @fcasibu — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Find the doctor command implementation, its tests, and the documentation for doctor. Start by tracing how check results determine the top-level status and process exit code; add coverage for one failed check and warnings only. Done when failed checks produce a non-zero exit and non-ok status, warnings keep exit 0, and the docs explain the exit codes.

Written by the indexing model from the issue text.

Description

area:dx good first issue help wanted roadmap

Problem

wigolo doctor --json can report ok_with_warnings and exit 0 while individual checks say failed. A setup script cannot rely on the exit code.

Change

  • Exit non-zero when any check has status failed.
  • Keep exit 0 for warnings.
  • Make the top-level status agree with the checks.

Done when

  • A test with one failing check asserts a non-zero exit and a top-level status that is not ok.
  • A test with only warnings asserts exit 0.
  • The docs for doctor describe the exit codes.

Out of scope

New checks.

Dominant language
TypeScript
Stars
5.4k
Forks
445
Avg merge
20h 41m
Merged PRs (30d)
85

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KnockOutEZ/wigolo

All issues in KnockOutEZ/wigolo

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.