Commit 878c1ed
fix(cli): hide platform i18n baseline from os lint by default (#3102)
A fresh create-objectstack project reported 800+ errors out of the box,
every one i18n/missing-metadataForm — translation keys for platform
built-in metadata forms collected from the static registries
(DEFAULT_METADATA_TYPE_REGISTRY + METADATA_FORM_REGISTRY). The platform
packages already ship those translations at runtime, so for a user
project they are pure noise that drowns the user's own i18n signal
(15.1 third-party eval, P2).
- fold i18n coverage through foldCoverageIssues(): metadataForm-source
issues are hidden by default and counted
- new --include-platform flag surfaces them for a full audit
- human output gains a dim summary line; --json gains hiddenPlatform
- user-authored coverage (object/field/view/action) reported unchanged
Verified against a real scaffold: stock CLI 821 errors -> patched CLI
4 user-signal errors + 'platform built-ins: 817 i18n issue(s) hidden',
--include-platform restores 821, --json reports hiddenPlatform: 817.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 809214f commit 878c1ed
3 files changed
Lines changed: 121 additions & 9 deletions
File tree
- .changeset
- packages/cli
- src/commands
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
39 | 67 | | |
40 | 68 | | |
41 | 69 | | |
| |||
441 | 469 | | |
442 | 470 | | |
443 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
444 | 476 | | |
445 | 477 | | |
446 | 478 | | |
| |||
486 | 518 | | |
487 | 519 | | |
488 | 520 | | |
| 521 | + | |
489 | 522 | | |
490 | 523 | | |
491 | 524 | | |
492 | 525 | | |
493 | 526 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
502 | 533 | | |
503 | 534 | | |
504 | 535 | | |
| |||
515 | 546 | | |
516 | 547 | | |
517 | 548 | | |
| 549 | + | |
518 | 550 | | |
519 | 551 | | |
520 | 552 | | |
| |||
525 | 557 | | |
526 | 558 | | |
527 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
528 | 570 | | |
529 | 571 | | |
| 572 | + | |
530 | 573 | | |
531 | 574 | | |
532 | 575 | | |
| |||
578 | 621 | | |
579 | 622 | | |
580 | 623 | | |
| 624 | + | |
581 | 625 | | |
582 | 626 | | |
583 | 627 | | |
| |||
| 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 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
0 commit comments