lazy-loading-implementation: runs Change Detection Optimization's analyzers and repeats their findings
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 50/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- angular, typescript
- Domain
- frontend, performance
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 2h 36m
- Merged PRs (30d)
- 168
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Rule-Of-Code/RoC
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Rule-Of-Code/RoC#548 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Rule-Of-Code/RoC#547 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Rule-Of-Code/RoC#506 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Rule-Of-Code/RoC#501 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 62/100
Rule-Of-Code/RoC#563 ·
Maintainers usually reply within 1 day
All issues in Rule-Of-Code/RoC
Similar issues
-
bug done
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
neavo/LinguaGacha#1124 ·
Maintainers usually reply within 1 day
-
[fullsend] E2E: backstage-microsoft-auth — catalogQuery missing error handler for network errorsPossibly taken @fullsend-ai-coder claimed this today. Opene2e-failure ready-to-code
Difficulty 2/5 Under an hour Newbie friendliness 78/100
redhat-developer/rhdh-plugin-export-overlays#4821 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
brylie/mission-island#225 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google-gemini/gemini-cli#30412 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day