GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Expose stable machine-readable Angular build diagnostics · Issue #33121 · angular/angular-cli Open Labels area: @angular/cligemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini Milestone DescriptionWhich @angular/* package(s) are relevant/related to the feature request?compiler-cli DescriptionLarge Angular codebases often want to enable stricter compiler checks, especially Angular already supports category-based strictness ratcheting through template type-checking flags. That helps when a whole category of checks is too noisy. It does not solve the case where a team wants a check enabled, but wants to treat existing diagnostics as migration debt while preventing new diagnostics from being introduced. Teams can build this externally by parsing This is not a request for This request is only about exposing stable diagnostic output so external tooling can implement baseline/ratchet workflows reliably. Proposed solutionExpose stable machine-readable diagnostics from Angular CLI builds. For example: ng build my-app --configuration strict-check --diagnostics-format json or: ng build my-app --configuration strict-check --diagnostics-output angular-diagnostics.json The exact CLI/API shape is not important. The important part is that Example shape: {
"diagnostics": [
{
"code": "NG8002",
"category": "error",
"source": "angular-template",
"message": "Can't bind to ...",
"file": "libs/example/src/example.component.html",
"startLine": 12,
"startColumn": 7,
"endLine": 12,
"endColumn": 28,
"relatedInformation": []
}
]
}The schema should include enough stable information for tools to compare diagnostics across runs, such as diagnostic code, category/severity, source, file, source span, message, and related information when available. This would enable external workflows like: ng build my-app --configuration strict-check --diagnostics-output angular-diagnostics.json angular-baseline check angular-diagnostics.json That allows teams to create a migration ratchet:
This is similar in spirit to Alternatives consideredUse existing template strictness flagsAngular's existing strictness flags are useful for category-based rollout. However, disabling a category allows both existing and new violations in that category. A diagnostic baseline lets a team keep the check enabled while allowing only known existing diagnostics. Parse
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |