Commit d95c939
The MVP requested by #161 — a single-site suppression diagnosis at
`react-doctor --why <file:line>` — was already implemented as a
hidden alias for `--explain`. Promote it to a documented option so
users can reach it without reading the source.
Updates the README's CLI reference and suppressions section to make
the discovery story explicit:
- `--explain <file:line>` (and its `--why` alias) classify what the
scanner sees at a single location, matching every status in the
issue's classifier table (MISSING, WRONG_RULE, GAP_CODE, etc.).
- `--verbose` mode already surfaces the same suppression hint
inline next to every flagged site, and `--json` mode includes it
on each diagnostic as `suppressionHint`. A single scan therefore
doubles as a suppression audit without a separate flag, which
covers the "Bonus" and most of the "Maximum" goals from the
request.
Removes the unused `Option` import that the previous
`addOption(...).hideHelp()` wiring left behind.
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>
1 parent 7db0805 commit d95c939
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments