lazy-loading-implementation: runs Change Detection Optimization's analyzers and repeats their findings
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 50/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- angular, typescript
- Bereich
- frontend, performance
Rechercherichtung
Start in src/utils/angular/angular-bundle/angular-bundle-validation-patterns.ts, at validateSourceCodeOptimization (lines 189-215), which calls the three ChangeDetectionOptimizationLaw analyzers. The 'No Angular components found' message comes from src/checkers/performance-laws/change-detection-optimization.ts line 70. Done means a project with no component files shows that message once or not at all under Lazy Loading, and Lazy Loading no longer reports change-detection findings. Check the design choice in the issue's suggested direction with a maintainer before changing it.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Version: 8.0.1 (tag v8.0.1)
Law: lazy-loading-implementation (Lazy Loading Implementation)
What happens
Lazy Loading's bundle step, AngularBundleValidationPatterns.validateSourceCodeOptimization (src/utils/angular/angular-bundle/angular-bundle-validation-patterns.ts:189-215), calls three analyzers of another law, ChangeDetectionOptimizationLaw (analyzeComponents, analyzeTrackByUsage, analyzeObservableUsage), and appends their violations to its own. When a project has no component files, more than one of them returns No Angular components found (src/checkers/performance-laws/change-detection-optimization.ts:70), so the line appears twice:
1. Lazy Loading Implementation [2 violations] (Score: 80/100)
• No Angular components found
• No Angular components found
Reproduction
An Angular project with angular.json and routes but no *.component.ts (for example components in files without the suffix, or a library-only workspace), with Lazy Loading Implementation enabled.
What I ruled out
The duplicate is not in the renderer: the law's result carries two identical violation strings.
Why it matters
- The same sentence twice reads like two findings and costs 20 points.
- A lazy-loading law reports change-detection findings (component analysis,
trackBy, observable usage) that belong to Change Detection Optimization, which reports them itself. A project then sees the same finding under two laws, and fixing it moves two scores.
Suggested direction
- Lazy Loading judges lazy loading: routes with
loadChildren/loadComponent, bundle budgets. Drop the call into Change Detection Optimization's analyzers. - If something must be shared, share the reader, not another law's violation strings, and deduplicate.
- "No Angular components found" is a reason the law judged nothing (#427), not a violation: report it as not read / judged nothing.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 0
- Forks
- 0
- Ø Merge
- 2 Std. 36 Min.
- Gemergte PRs (30 T.)
- 168
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Rule-Of-Code/RoC
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Rule-Of-Code/RoC#548 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Rule-Of-Code/RoC#547 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Rule-Of-Code/RoC#506 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Rule-Of-Code/RoC#501 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
Rule-Of-Code/RoC#563 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Rule-Of-Code/RoC
Ähnliche Issues
-
bug done
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
neavo/LinguaGacha#1124 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[fullsend] E2E: backstage-microsoft-auth — catalogQuery missing error handler for network errorsEvtl. vergeben @fullsend-ai-coder hat das heute übernommen. Offene2e-failure ready-to-code
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
redhat-developer/rhdh-plugin-export-overlays#4821 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
brylie/mission-island#225 ·
Maintainer antworten meist innerhalb von 1 Tag
-
status/need-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
google-gemini/gemini-cli#30412 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag