Commit 2da2901
feat(cli):
* feat(cli): `os lint --strict` fails the run on warning-severity findings
Only an error failed the run; with the flag a warning does too, suggestions
stay advisory and the default is unchanged. The --json face publishes the
verdict as `strict` + `failing` beside `passed`, and the console names the
count and the flag when the flag alone decided the exit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DuzfS5chho38Yx1jxx9DEj
* test(cli): pin `os lint --strict` as a pair on one warning-only stack
Eight e2e pins over four fixtures: the stack REALLY warns (2 warnings, 0
errors) before either half is read; without the flag exit 0 / passed:true,
with it exit 1 / passed:false / failing === warnings; the console names the
count and the flag; suggestions stay advisory; errors still fail and
`failing` sums under the flag; a clean stack stays 0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DuzfS5chho38Yx1jxx9DEj
---------
Co-authored-by: Claude <noreply@anthropic.com>os lint --strict — warning-severity findings fail the run (#15967)1 parent f50c394 commit 2da2901
4 files changed
Lines changed: 375 additions & 11 deletions
File tree
- .changeset
- content/docs/deployment
- packages/cli
- src/commands
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| 1354 | + | |
1354 | 1355 | | |
1355 | 1356 | | |
1356 | 1357 | | |
| |||
1362 | 1363 | | |
1363 | 1364 | | |
1364 | 1365 | | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1365 | 1378 | | |
1366 | 1379 | | |
1367 | 1380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
| |||
612 | 616 | | |
613 | 617 | | |
614 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
615 | 634 | | |
616 | 635 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | 636 | | |
621 | | - | |
| 637 | + | |
622 | 638 | | |
623 | 639 | | |
624 | 640 | | |
625 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
626 | 651 | | |
627 | 652 | | |
628 | 653 | | |
| |||
635 | 660 | | |
636 | 661 | | |
637 | 662 | | |
638 | | - | |
| 663 | + | |
639 | 664 | | |
640 | 665 | | |
641 | 666 | | |
| |||
659 | 684 | | |
660 | 685 | | |
661 | 686 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | 687 | | |
668 | 688 | | |
669 | 689 | | |
| |||
714 | 734 | | |
715 | 735 | | |
716 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
717 | 748 | | |
718 | 749 | | |
719 | | - | |
| 750 | + | |
720 | 751 | | |
721 | 752 | | |
722 | 753 | | |
| |||
0 commit comments