Public report — material-ui, published 25 Sep 2026.
Concrete security findings (which rule fired, in which file, on which line; CVE IDs, secret matches,
dependency versions) are REDACTED in this version; ask the repo owner for the full report.
Public
Codebase surveyMeasured under the Code Assurance Index · rubric rubric-2026.09.15 (frozen) · verify this surveyFiledcd_81133612d26f4600885f994c5c494d71
Filed 25 September 2026, 09:43 UTC
Public
Large · 322,600 LoC · rebuild ~3.6 person-years · weakest lens: Readiness (55%)
Findings by grade
41 critical873 serious462 minor47 could not be resolved — could be critical — see Limitations
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
25 September 2026, 09:17 UTC
A measurement, not a certificate. The Code Assurance Index does not certify,
approve or guarantee this codebase; it records a reproducible number and the evidence it was computed from. The
standard is authored by Canine Development, who also build Watchdog — its only implementation today. That is said
here so the number is checked rather than believed.
Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸
1340findings with an exact file:lineof 1376 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
50/133dimensions across the health lenses322600 LoC — wide & deep
The system holds an adequate standing with a health score of 62%, but it carries significant operational risk that threatens delivery speed and security. This large asset, comprising over 322,000 lines of production code, represents a substantial investment with a rebuild cost of approximately €520,000. While the architecture and maturity are reasonably sound, the overall value is constrained by hidden inefficiencies and critical security gaps that require immediate attention to protect the business.
The most pressing issue is a velocity tax on every change. Poor code quality in key areas imposes a 12–26% cost increase on modifications, meaning every feature request or bug fix takes longer and costs more than it should. This inefficiency compounds as the codebase grows, creating a silent drag on the team’s ability to deliver value. Addressing this technical debt pays for itself within months by reducing the annual effort required to maintain the 118,000 lines of code the team touches regularly.
A secondary risk lies in production readiness, which is the system’s weakest lens at 55%. For an asset of this size, low readiness means higher exposure to outages and slower incident response. The lack of robust testing and observability increases the likelihood of defects reaching users, directly impacting customer trust and reliability. Strengthening this area is essential to ensure the system can be operated safely and predictably as business demands evolve.
Security exposure is the highest-leverage area for immediate action. Four leaked secrets were identified, posing a direct threat to data integrity and compliance. Resolving these findings is a low-effort, high-impact fix that should be prioritized above all other tasks. Additionally, the team should remove unused dependencies and enable security scans on pull requests to prevent future issues. These steps provide immediate protection with minimal disruption, allowing the team to focus on longer-term quality improvements.
How the score is built — each lens's share of the headlineWidth is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
886 finding(s) are new versus the previous scan (2026-08-06) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.
A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.
Rebuild cost & value ~ Modeled — €170,000–€870,000
0.8× (at 62% quality) — the last 20% of quality is most of the work
Size & shape
Large · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)
This codebase represents roughly ~3.6 person-years of build effort (about ~€520,000 to rebuild). Its weakest lens is Readiness at 55% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.1) — vertical slice × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).
Top priorities
The highest-leverage moves; the full ranked list is in the Roadmap below.
1
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2).
A velocity tax on every change · REDACTED · Economics
The code-quality signals (complexity, duplication, cohesion) average 3.4/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 12–26% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2 code quality: averaging 3.4/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.
The top fix pays for itself · REDACTED · Economics
The top-ranked fix costs roughly 1–3 engineer-days once. Not doing it costs about 34.4–206.6 engineer-days every year, paid as drag on the ~118,499 lines this team changes annually — a bill that arrives whether or not anyone books it. On those figures the fix breaks even in roughly 1–2 months and is free after that. Method, stated so this is not read as a quotation: debt from the ranked task's effort band; interest = annual changed lines (measured, annualised from the 90-day window) ÷ an ASSUMED 150–400 lines per engineer-day × the 12–26% drag implied by the code-quality signals; breaking point = debt ÷ annual interest. A modelled planning range built from measured inputs and one named assumption — not a quotation, a valuation, or a certified figure.
Evidence: D15 churn: 29,219 line(s) changed over a 90-day window ⇒ ~118,499/year · D1/D2 code quality: averaging 3.4/10 ⇒ a 12–26% drag on each change · top-ranked remediation: Low effort ⇒ about 1–3 engineer-day(s)
→ Do the top-ranked fix now if this code will still be yours in 2 months.
Value concentrated against a weak lens · REDACTED · Value at risk
This is a Large asset (~3.6 person-years to rebuild), and its weakest lens is Readiness at 55%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · REDACTED · Leverage
Of everything flagged, the best return on effort is: Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2). The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2).
Architecture — module dependency matrix
Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)
1289 modules, 359 dependencies. Every dependency points down the layering — no cycles.
Showing the 40 most-connected modules; 1249 more are not drawn.
Module dependency matrix. The row depends on the column; the number is how many type pairs create the dependency. A cell above the diagonal is part of a dependency cycle.
Dependency, pointing down the layeringAbove the diagonal — part of a cycleThe module itself
21→4 docs.data.material.getting-started.templates.dashboard.components depends on docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView✕
Type pairs
2 distinct (type in docs.data.material.getting-started.templates.dashboard.components → type in docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView) references.
docs.data.material.getting-started.templates.dashboard.components uses docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView. Changing docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView can break docs.data.material.getting-started.templates.dashboard.components, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
21→18 docs.data.material.getting-started.templates.dashboard.components depends on packages.mui-material.src.transitions.utils✕
Type pairs
1 distinct (type in docs.data.material.getting-started.templates.dashboard.components → type in packages.mui-material.src.transitions.utils) reference.
docs.data.material.getting-started.templates.dashboard.components uses packages.mui-material.src.transitions.utils. Changing packages.mui-material.src.transitions.utils can break docs.data.material.getting-started.templates.dashboard.components, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
22→13 docs.src.components.productX.XTreeViewDemo depends on packages-internal.scripts.typescript-to-proptypes.src.models✕
Type pairs
1 distinct (type in docs.src.components.productX.XTreeViewDemo → type in packages-internal.scripts.typescript-to-proptypes.src.models) reference.
docs.src.components.productX.XTreeViewDemo uses packages-internal.scripts.typescript-to-proptypes.src.models. Changing packages-internal.scripts.typescript-to-proptypes.src.models can break docs.src.components.productX.XTreeViewDemo, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
23→4 docs.src.components.showcase depends on docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView✕
Type pairs
2 distinct (type in docs.src.components.showcase → type in docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView) references.
docs.src.components.showcase uses docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView. Changing docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView can break docs.src.components.showcase, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
23→18 docs.src.components.showcase depends on packages.mui-material.src.transitions.utils✕
Type pairs
1 distinct (type in docs.src.components.showcase → type in packages.mui-material.src.transitions.utils) reference.
docs.src.components.showcase uses packages.mui-material.src.transitions.utils. Changing packages.mui-material.src.transitions.utils can break docs.src.components.showcase, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
24→2 docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback depends on docs.data.material.customization.theming.CustomStyles✕
Type pairs
1 distinct (type in docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback → type in docs.data.material.customization.theming.CustomStyles) reference.
docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback uses docs.data.material.customization.theming.CustomStyles. Changing docs.data.material.customization.theming.CustomStyles can break docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
24→20 docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback depends on packages.mui-system.src.styleFunctionSx.styleFunctionSx✕
Type pairs
1 distinct (type in docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback → type in packages.mui-system.src.styleFunctionSx.styleFunctionSx) reference.
docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback uses packages.mui-system.src.styleFunctionSx.styleFunctionSx. Changing packages.mui-system.src.styleFunctionSx.styleFunctionSx can break docs.src.pages.premium-themes.onepirate.modules.form.FormFeedback, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
25→10 packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode depends on packages-internal.api-docs-builder.src.utils.createTypeScriptProject✕
Type pairs
1 distinct (type in packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode → type in packages-internal.api-docs-builder.src.utils.createTypeScriptProject) reference.
packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode uses packages-internal.api-docs-builder.src.utils.createTypeScriptProject. Changing packages-internal.api-docs-builder.src.utils.createTypeScriptProject can break packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
26→2 packages-internal.core-docs.src.Ad depends on docs.data.material.customization.theming.CustomStyles✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.Ad → type in docs.data.material.customization.theming.CustomStyles) reference.
packages-internal.core-docs.src.Ad uses docs.data.material.customization.theming.CustomStyles. Changing docs.data.material.customization.theming.CustomStyles can break packages-internal.core-docs.src.Ad, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
27→2 packages-internal.core-docs.src.AppLayout.components depends on docs.data.material.customization.theming.CustomStyles✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.AppLayout.components → type in docs.data.material.customization.theming.CustomStyles) reference.
packages-internal.core-docs.src.AppLayout.components uses docs.data.material.customization.theming.CustomStyles. Changing docs.data.material.customization.theming.CustomStyles can break packages-internal.core-docs.src.AppLayout.components, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
28→14 packages-internal.core-docs.src.AppLayout.layout depends on packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.AppLayout.layout → type in packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types) reference.
packages-internal.core-docs.src.AppLayout.layout uses packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types. Changing packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types can break packages-internal.core-docs.src.AppLayout.layout, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
29→2 packages-internal.core-docs.src.AppLayout.navigation depends on docs.data.material.customization.theming.CustomStyles✕
Type pairs
3 distinct (type in packages-internal.core-docs.src.AppLayout.navigation → type in docs.data.material.customization.theming.CustomStyles) references.
packages-internal.core-docs.src.AppLayout.navigation uses docs.data.material.customization.theming.CustomStyles. Changing docs.data.material.customization.theming.CustomStyles can break packages-internal.core-docs.src.AppLayout.navigation, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
29→20 packages-internal.core-docs.src.AppLayout.navigation depends on packages.mui-system.src.styleFunctionSx.styleFunctionSx✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.AppLayout.navigation → type in packages.mui-system.src.styleFunctionSx.styleFunctionSx) reference.
packages-internal.core-docs.src.AppLayout.navigation uses packages.mui-system.src.styleFunctionSx.styleFunctionSx. Changing packages.mui-system.src.styleFunctionSx.styleFunctionSx can break packages-internal.core-docs.src.AppLayout.navigation, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
30→8 packages-internal.core-docs.src.DemoContext.DemoContext depends on netlify.functions.feedback-management✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.DemoContext.DemoContext → type in netlify.functions.feedback-management) reference.
packages-internal.core-docs.src.DemoContext.DemoContext uses netlify.functions.feedback-management. Changing netlify.functions.feedback-management can break packages-internal.core-docs.src.DemoContext.DemoContext, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
31→14 packages.mui-styled-engine-sc.src depends on packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types✕
Type pairs
1 distinct (type in packages.mui-styled-engine-sc.src → type in packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types) reference.
packages.mui-styled-engine-sc.src uses packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types. Changing packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types can break packages.mui-styled-engine-sc.src, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
32→19 packages.mui-system.src.createTheme.createTheme depends on packages.mui-system.src.createBreakpoints.createBreakpoints✕
Type pairs
1 distinct (type in packages.mui-system.src.createTheme.createTheme → type in packages.mui-system.src.createBreakpoints.createBreakpoints) reference.
packages.mui-system.src.createTheme.createTheme uses packages.mui-system.src.createBreakpoints.createBreakpoints. Changing packages.mui-system.src.createBreakpoints.createBreakpoints can break packages.mui-system.src.createTheme.createTheme, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
33→10 scripts depends on packages-internal.api-docs-builder.src.utils.createTypeScriptProject✕
Type pairs
1 distinct (type in scripts → type in packages-internal.api-docs-builder.src.utils.createTypeScriptProject) reference.
scripts uses packages-internal.api-docs-builder.src.utils.createTypeScriptProject. Changing packages-internal.api-docs-builder.src.utils.createTypeScriptProject can break scripts, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
33→13 scripts depends on packages-internal.scripts.typescript-to-proptypes.src.models✕
Type pairs
1 distinct (type in scripts → type in packages-internal.scripts.typescript-to-proptypes.src.models) reference.
scripts uses packages-internal.scripts.typescript-to-proptypes.src.models. Changing packages-internal.scripts.typescript-to-proptypes.src.models can break scripts, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
34→4 docs.src.components.productX depends on docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView✕
Type pairs
2 distinct (type in docs.src.components.productX → type in docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView) references.
docs.src.components.productX uses docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView. Changing docs.data.material.getting-started.templates.dashboard.components.CustomizedTreeView can break docs.src.components.productX, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
34→18 docs.src.components.productX depends on packages.mui-material.src.transitions.utils✕
Type pairs
1 distinct (type in docs.src.components.productX → type in packages.mui-material.src.transitions.utils) reference.
docs.src.components.productX uses packages.mui-material.src.transitions.utils. Changing packages.mui-material.src.transitions.utils can break docs.src.components.productX, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
34→22 docs.src.components.productX depends on docs.src.components.productX.XTreeViewDemo✕
Type pairs
1 distinct (type in docs.src.components.productX → type in docs.src.components.productX.XTreeViewDemo) reference.
docs.src.components.productX uses docs.src.components.productX.XTreeViewDemo. Changing docs.src.components.productX.XTreeViewDemo can break docs.src.components.productX, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
35→9 packages-internal.api-docs-builder.src.utils depends on packages-internal.api-docs-builder.src.ProjectSettings✕
Type pairs
1 distinct (type in packages-internal.api-docs-builder.src.utils → type in packages-internal.api-docs-builder.src.ProjectSettings) reference.
packages-internal.api-docs-builder.src.utils uses packages-internal.api-docs-builder.src.ProjectSettings. Changing packages-internal.api-docs-builder.src.ProjectSettings can break packages-internal.api-docs-builder.src.utils, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
35→10 packages-internal.api-docs-builder.src.utils depends on packages-internal.api-docs-builder.src.utils.createTypeScriptProject✕
Type pairs
7 distinct (type in packages-internal.api-docs-builder.src.utils → type in packages-internal.api-docs-builder.src.utils.createTypeScriptProject) references.
packages-internal.api-docs-builder.src.utils uses packages-internal.api-docs-builder.src.utils.createTypeScriptProject. Changing packages-internal.api-docs-builder.src.utils.createTypeScriptProject can break packages-internal.api-docs-builder.src.utils, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
35→25 packages-internal.api-docs-builder.src.utils depends on packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode✕
Type pairs
2 distinct (type in packages-internal.api-docs-builder.src.utils → type in packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode) references.
packages-internal.api-docs-builder.src.utils uses packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode. Changing packages-internal.api-docs-builder.src.utils.getPropsFromComponentNode can break packages-internal.api-docs-builder.src.utils, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
36→14 packages-internal.core-docs.src.Demo depends on packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.Demo → type in packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types) reference.
packages-internal.core-docs.src.Demo uses packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types. Changing packages-internal.scripts.typescript-to-proptypes.test.declaration-merging.types can break packages-internal.core-docs.src.Demo, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
36→30 packages-internal.core-docs.src.Demo depends on packages-internal.core-docs.src.DemoContext.DemoContext✕
Type pairs
1 distinct (type in packages-internal.core-docs.src.Demo → type in packages-internal.core-docs.src.DemoContext.DemoContext) reference.
packages-internal.core-docs.src.Demo uses packages-internal.core-docs.src.DemoContext.DemoContext. Changing packages-internal.core-docs.src.DemoContext.DemoContext can break packages-internal.core-docs.src.Demo, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
37→2 packages.mui-material.src.styles depends on docs.data.material.customization.theming.CustomStyles✕
Type pairs
4 distinct (type in packages.mui-material.src.styles → type in docs.data.material.customization.theming.CustomStyles) references.
packages.mui-material.src.styles uses docs.data.material.customization.theming.CustomStyles. Changing docs.data.material.customization.theming.CustomStyles can break packages.mui-material.src.styles, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
37→22 packages.mui-material.src.styles depends on docs.src.components.productX.XTreeViewDemo✕
Type pairs
1 distinct (type in packages.mui-material.src.styles → type in docs.src.components.productX.XTreeViewDemo) reference.
packages.mui-material.src.styles uses docs.src.components.productX.XTreeViewDemo. Changing docs.src.components.productX.XTreeViewDemo can break packages.mui-material.src.styles, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
38→32 packages.mui-material.src.styles.createThemeFoundation depends on packages.mui-system.src.createTheme.createTheme✕
Type pairs
6 distinct (type in packages.mui-material.src.styles.createThemeFoundation → type in packages.mui-system.src.createTheme.createTheme) references.
packages.mui-material.src.styles.createThemeFoundation uses packages.mui-system.src.createTheme.createTheme. Changing packages.mui-system.src.createTheme.createTheme can break packages.mui-material.src.styles.createThemeFoundation, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
39→1 packages.mui-system.src.breakpoints depends on docs.data.material.components.app-bar.BackToTop✕
Type pairs
1 distinct (type in packages.mui-system.src.breakpoints → type in docs.data.material.components.app-bar.BackToTop) reference.
packages.mui-system.src.breakpoints uses docs.data.material.components.app-bar.BackToTop. Changing docs.data.material.components.app-bar.BackToTop can break packages.mui-system.src.breakpoints, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
39→19 packages.mui-system.src.breakpoints depends on packages.mui-system.src.createBreakpoints.createBreakpoints✕
Type pairs
1 distinct (type in packages.mui-system.src.breakpoints → type in packages.mui-system.src.createBreakpoints.createBreakpoints) reference.
packages.mui-system.src.breakpoints uses packages.mui-system.src.createBreakpoints.createBreakpoints. Changing packages.mui-system.src.createBreakpoints.createBreakpoints can break packages.mui-system.src.breakpoints, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
39→31 packages.mui-system.src.breakpoints depends on packages.mui-styled-engine-sc.src✕
Type pairs
1 distinct (type in packages.mui-system.src.breakpoints → type in packages.mui-styled-engine-sc.src) reference.
packages.mui-system.src.breakpoints uses packages.mui-styled-engine-sc.src. Changing packages.mui-styled-engine-sc.src can break packages.mui-system.src.breakpoints, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
40→38 packages.mui-system.src.cssVars depends on packages.mui-material.src.styles.createThemeFoundation✕
Type pairs
1 distinct (type in packages.mui-system.src.cssVars → type in packages.mui-material.src.styles.createThemeFoundation) reference.
packages.mui-system.src.cssVars uses packages.mui-material.src.styles.createThemeFoundation. Changing packages.mui-material.src.styles.createThemeFoundation can break packages.mui-system.src.cssVars, not the reverse.
Position
Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health · 65% · Adequate · gated by D1, D2 ·
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A03:2021 — Injection
35
REDACTED / Critical
A02:2021 — Cryptographic Failures
12
REDACTED / Critical
Roadmap
Begin by resolving the four leaked secrets in Google Maps files and removing unused or misclassified dependencies to improve security and hygiene. Next, configure static analysis to run on pull requests to prevent regressions, and address the five empty test cases to ensure code quality. Finally, expand test coverage by adding tests for currently unreached production modules to validate core functionality.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2).
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 41
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 873
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 462
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 47
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 47 of 50 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 50 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1340 of 1376 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the dependency install for the repository root failed in the analyzer sandbox (ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)), so the suite never ran. Coverage is excluded from the score rather than counted as a near-zero. This is OUR limitation, not a defect in the repo. In the meantime, commit (or publish into the working tree) the lcov/Cobertura report your CI produces and the real number is read on the next scan. You can widen what we reach: optional: commit the lcov/Cobertura report your CI produces, and the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT MEASURED: the JavaScript/TypeScript suite could not be re-run in the analyzer sandbox — the dependency install for the repository root failed in the analyzer sandbox (ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)), so the suite never ran. This is OUR limitation, not a defect in the repo — it is excluded from the score.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability for the vitest suite in the repository root was NOT MEASURED: the dependency install for the repository root failed in the analyzer sandbox (ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability for the vitest suite in test/e2e/ was NOT MEASURED: the dependency install for test/e2e/ failed in the analyzer sandbox (ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: D22 has no public-API collector for any other ecosystem, and the remedy is to write one — no change to the scan image can close it.
D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `docs/next.config.ts`, `packages-internal/core-docs/src/AppLayout/components/Frame.tsx`, `packages-internal/core-docs/src/TableOfContents/MiniTableOfContents.tsx`, `packages/mui-icons-material/templateSvgIcon.js`, `packages/mui-lab/src/LoadingButton/index.ts`, … (+29 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AC1 Text alternatives — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository builds user interface as HTML STRINGS — at least 11 script file(s) building 37 markup element(s) as HTML strings, carrying 6 role/aria/tabindex attribute(s) (e.g. docs/data/material/components/switches/CustomizedSwitches.tsx, docs/src/components/productMaterial/MaterialTheming.tsx, docs/src/components/productMaterial/MaterialComponents.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1149 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, and .astro/.templ/.pug/.jade/.haml/.slim; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC2 Forms & labels — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository builds user interface as HTML STRINGS — at least 11 script file(s) building 37 markup element(s) as HTML strings, carrying 6 role/aria/tabindex attribute(s) (e.g. docs/data/material/components/switches/CustomizedSwitches.tsx, docs/src/components/productMaterial/MaterialTheming.tsx, docs/src/components/productMaterial/MaterialComponents.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1149 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, and .astro/.templ/.pug/.jade/.haml/.slim; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC2 Forms & labels — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 4 further occurrence(s) are not listed individually; the score already reflects all 44.
AC3 Page structure — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository builds user interface as HTML STRINGS — at least 11 script file(s) building 37 markup element(s) as HTML strings, carrying 6 role/aria/tabindex attribute(s) (e.g. docs/data/material/components/switches/CustomizedSwitches.tsx, docs/src/components/productMaterial/MaterialTheming.tsx, docs/src/components/productMaterial/MaterialComponents.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1149 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, and .astro/.templ/.pug/.jade/.haml/.slim; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC4 Keyboard semantics — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository builds user interface as HTML STRINGS — at least 11 script file(s) building 37 markup element(s) as HTML strings, carrying 6 role/aria/tabindex attribute(s) (e.g. docs/data/material/components/switches/CustomizedSwitches.tsx, docs/src/components/productMaterial/MaterialTheming.tsx, docs/src/components/productMaterial/MaterialComponents.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1149 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, and .astro/.templ/.pug/.jade/.haml/.slim; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC5 ARIA correctness — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository builds user interface as HTML STRINGS — at least 11 script file(s) building 37 markup element(s) as HTML strings, carrying 6 role/aria/tabindex attribute(s) (e.g. docs/data/material/components/switches/CustomizedSwitches.tsx, docs/src/components/productMaterial/MaterialTheming.tsx, docs/src/components/productMaterial/MaterialComponents.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1149 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, and .astro/.templ/.pug/.jade/.haml/.slim; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC6 Visual & motion safety — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository builds user interface as HTML STRINGS — at least 11 script file(s) building 37 markup element(s) as HTML strings, carrying 6 role/aria/tabindex attribute(s) (e.g. docs/data/material/components/switches/CustomizedSwitches.tsx, docs/src/components/productMaterial/MaterialTheming.tsx, docs/src/components/productMaterial/MaterialComponents.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1149 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, and .astro/.templ/.pug/.jade/.haml/.slim; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AX3 Project dependency cycles — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which project references which — facts that live in .csproj references. This repository either commits no MSBuild project at all (its C# may still have been parsed as syntax-only projects, which carry no references between them) or its projects failed to load, so there was no graph to read. That is a gap in this analyzer's reach — not a finding that the repository is free of what this check looks for.
AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
AX8 Test isolation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which projects are test projects, and what they reference — facts that live in .csproj references. This repository either commits no MSBuild project at all (its C# may still have been parsed as syntax-only projects, which carry no references between them) or its projects failed to load, so there was no graph to read. That is a gap in this analyzer's reach — not a finding that the repository is free of what this check looks for.
C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
DM1 Aggregate boundaries — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored for TypeScript: a class holding another class reads the same whether the inner type is an aggregate or a value object, so this cannot be decided from source without guessing — reported as guidance rather than measured.
DM2 Strongly-typed ids — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored for TypeScript: branded ids (`type Id = string & { __brand }`) are an uncommon idiom, so a bare-string id is not on its own evidence of a missing typed id — reported as guidance rather than measured.
DM3 Integration-event coupling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored for TypeScript: a domain type used across packages is indistinguishable in source from a deliberate shared-kernel package, so this is reported as guidance rather than measured.
DM4 Rich vs anemic model — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored for TypeScript: telling a rich domain entity from an anemic data holder needs the behaviour a source-only read cannot always attribute (components, DTOs and readonly value objects are all legitimately data-shaped), so this is reported as guidance rather than measured.
DM5 Encapsulated state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored for TypeScript: the language already steers state behind #private/private/readonly, so a mutable public field is rare enough that we report this as guidance rather than measuring it.
DM7 Repository granularity — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored for TypeScript: deciding whether a repository belongs to an aggregate root needs the aggregate structure, which source alone does not state — reported as guidance rather than measured.
ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
R10 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 304 further occurrence(s) are not listed individually; the score already reflects all 344.
R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 19 further occurrence(s) are not listed individually; the score already reflects all 59.
S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X32 Type resolved by simple name across every loaded assembly — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations: 7 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
184 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was useAutocomplete.useAutocomplete at 327. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being parseMarkdown.createRender at 28 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: packages-internal/markdown/parseMarkdown.mjs (parseMarkdown.createRender at 28). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 128 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 3 (anonymous) (cyclomatic 17) finding(s) in Cyclomatic Complexity — start with ButtonGroup.js, MenuItem.js, ListItemButton.js. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 2 DashboardSidebarPageItem.DashboardSidebarPageItem (cyclomatic 34) finding(s) in Cyclomatic Complexity — start with DashboardSidebarPageItem.tsx, DashboardSidebarPageItem.js. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 2 DashboardSidebar.DashboardSidebar (cyclomatic 28) finding(s) in Cyclomatic Complexity — start with DashboardSidebar.tsx, DashboardSidebar.js. — One of this dimension's main actionable groups (2 warning-level).
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 152 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 9 transformer (cognitive 23) finding(s) in Cognitive Complexity — start with toggle-button-group-classes.js, image-list-item-bar-classes.js, linear-progress-classes.js. — One of this dimension's main actionable groups (9 warning-level).
Resolve the 3 useAutocomplete finding(s) in Cognitive Complexity — start with useAutocomplete.js (3). — One of this dimension's main actionable groups (3 warning-level).
Resolve the 3 transformer (cognitive 18) finding(s) in Cognitive Complexity — start with input-base-classes.js, button-classes.js, slider-classes.js. — One of this dimension's main actionable groups (3 warning-level).
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes4.5 / 10Weak✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 169 FunctionTooLong finding(s) in God Classes — start with brandingTheme.ts (2), blog.tsx (2), Footer.js (2). — One of this dimension's main actionable groups (169 warning-level).
Resolve the 20 FileTooLong finding(s) in God Classes — start with PricingTable.tsx, brandingTheme.ts, useAutocomplete.js. — One of this dimension's main actionable groups (20 warning-level).
Resolve the 7 ClassTooLong finding(s) in God Classes — start with useAutocomplete.js, components.ts, createThemeWithVars.js. — One of this dimension's main actionable groups (7 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
5018 test methods: 4870 unit, 133 integration, 0 BDD, 15 e2e. The JavaScript/TypeScript suite contributes 5018 `it`/`test` case(s) across 436 test file(s) declaring at least one; its tier split is read from package names and paths only.
✓ On the Gold path — maintain.
Detailed fixes: d9_recommendation.md.
Do you agree with this assessment?
D10 · Test Quality9.8 / 10Adequategated by 5 critical findings✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
430 skipped (430 with a documented reason), 56 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 5018 tests.
No assertions (empty test): To do · ×5packages/mui-lab/src/AlertTitle/AlertTitle.test.js:4
No assertions: opens after Next.js %s navigation · ×51packages-internal/core-docs/src/DocsApp/AnalyticsProvider.test.tsx:147
Resolve the 5 No assertions (empty test) finding(s) in Test Quality — start with SwipeableDrawer.test.js (3), AlertTitle.test.js, TouchRipple.test.js. — One of this dimension's main actionable groups (5 issue-level).
Resolve the 51 No assertions finding(s) in Test Quality — start with index.test.js (11), Badge.test.js (2), Breadcrumbs.test.js (2). — One of this dimension's main actionable groups (51 warning-level).
Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
21 outdated direct production npm dependency(ies) of 108 graded, 0 pinning defect(s), across 51 package.json (21 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded: this dimension grades what SHIPS. Whether any of these packages is DEPRECATED or UNMAINTAINED is not graded — registry.npmjs.org's latest-version answer carries neither, and release age does not stand in for a maintenance status. Whether any is UNUSED is not graded either: that is a source question, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.
Outdated (npm): @babel/core · ×21
What to do
Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 issue-level).
Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 108 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 108 production dependency(ies) this repository's committed lockfile resolves, across 21 product package.json manifest(s). Its 309 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 4 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged. This repository publishes itself under MIT, which is its own choice and is not judged here.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Resolve the 17 Hotspot finding(s) in Churn × Complexity Hotspots — start with SelectInput.js, createThemeWithVars.js, Tabs.js. — One of this dimension's main actionable groups (17 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor9.7 / 10Exemplary✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
13 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/mui-material/src/Breadcrumbs/Breadcrumbs.js. Counted over 471 of the 2037 production source files in this repository: 1564 are under the ~2,400-byte size floor this dimension measures over, and the remaining 2 have no attributable history left to measure.
Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
88 deducted task-comment markers across 160063 LoC (0.1/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
Resolve the 86 TodoComment finding(s) in Explicit Debt — start with index.ts (8), AppNavDrawer.tsx (6), reportBrokenLinks.mts (5). — One of this dimension's main actionable groups (86 warning-level).
Resolve the 1 HackComment finding(s) in Explicit Debt — start with PricingTable.tsx. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 FixmeComment finding(s) in Explicit Debt — start with TextField.spec.tsx. — One of this dimension's main actionable groups (1 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
Material UI's documentation is comprehensive and well-structured: a single README (with an embedded MUI logo) plus 62 READMEs covering testing, skills, scripts, docs, and e2e suites, plus architecture/Docs markdown files totaling 382 documents. The README for the main site states what it is and links to the license, with a clipped clip marker; the outline lists Documentation, Sponsors, Diamond, Gold, More backers, Questions, Examples, Premium templates, Contributing, Changelog, Roadmap, License, Security, Sponsoring services, which all exist. The skills README gives a detailed layout for each skill directory and a discovery section plus adding-a-skill steps. The MUI repository is well documented: the README for each package (e.g. @mui/stylis-plugin-rtl) gives installation, usage examples, links to host references and a roadmap; the main Material UI README covers installation, documentation, questions/usage channels, examples, contributing, changelog, roadmap, license, and security with an outline that is clipped mid-sentence.
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged REDACTED. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
7 finding(s): 0 critical, 7 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 7 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (7 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
35 finding(s): 0 critical, 13 high, 22 medium, 0 low. semgrep hit a parse error in 39 file(s) — `docs/next.config.ts` (line 345), `examples/material-ui-react-router-ts/app/routes.ts` (line 6), `examples/material-ui-react-router-ts/react-router.config.ts` (line 7), `packages-internal/core-docs/src/AppLayout/components/Frame.tsx` (line 74, line 77), `packages-internal/core-docs/src/Demo/OpenInMUIChatButton.test.tsx` (line 26, line 31), … (+34 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
What to do
Resolve the 22 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (5), REDACTED (4), REDACTED (4). — One of this dimension's main actionable groups (22 warning-level).
Resolve the 13 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (13 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir/Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex, Go, Java and Kotlin via Maven/Gradle, npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
75 of 473 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js. Counted over 473 of the 2037 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Orphaned files with no living knowledge
What to do
Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 4 Change coupling finding(s) in Change Coupling — start with deprecations-all.js, REDACTED, HeaderNavBar.tsx. — One of this dimension's main actionable groups (4 warning-level).
Resolve the 3 Change-coupling hub finding(s) in Change Coupling — start with HooksApiContent.tsx, ClickAwayListener.tsx, useSlider.ts. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 1 Change coupling clique finding(s) in Change Coupling — start with ExpandableApiItem.tsx. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 3 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
✓ On the Gold path — maintain.
Detailed fixes: d44_recommendation.md.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged
Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.
Do you agree with this assessment?
AC2 · Forms & labels2.9 / 10Weak✓ Tool-verified
Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.
Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×35) — docs/data/material/components/autocomplete/Asynchronous.tsx:41, docs/data/material/components/autocomplete/ComboBox.tsx:7, docs/data/material/components/autocomplete/CustomSingleValueRendering.tsx:9, …
This UI-library field component has no label / aria-label / aria-labelledby / id / name, and nothing it renders carries one either. The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×4) — docs/data/material/customization/css-theme-variables/DisableTransitionOnChange.tsx:22, docs/src/components/productX/XGridFullDemo.tsx:86, docs/src/components/productX/XGridFullDemo.tsx:93, …
This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. — docs/data/system/getting-started/the-sx-prop/DynamicValues.tsx:17
What to do
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: interactive elements plus elements the markup gives a click/key handler or the repo's own CSS styles `cursor: pointer`, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".
Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.
Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.
Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.
Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.
Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.
Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.
Accessibility checks run in tests (Verified) but aren't gated in CI — run the suite that holds those checks in your pipeline so an accessibility regression blocks the merge (Prevented). What was searched, so you can tell an absence from a miss: the 1149 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then run the suite that already asserts accessibility in CI so a regression blocks the merge.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
Add a 'Testing' section to the root README — how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 2 of 39 project(s) that lack one — worth up to 0.1 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
`codeql.yml`, `scorecards.yml` run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) — the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it.
What to do
Trigger your SAST workflow on pull requests — a scan that only runs on a cron reports history, it does not gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
Do you agree with this assessment?
R1 · Type Safety4.8 / 10Weak✓ Tool-verified
React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.
Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.
1262 typed · 1348 plain JS — the untyped files are packages-internal/api-docs-builder/src/utils/replaceUrl.test.js, packages-internal/core-docs/src/DocsApp/VersionsContext.js, packages-internal/core-docs/src/findActivePage/findActivePage.test.js, packages-internal/core-docs/src/helpers/helpers.test.js, packages-internal/core-docs/src/utils/getProductInfoFromUrl.test.js, packages-internal/markdown/apiPageTranslationLoader.mjs (+1342 more). 1 production file(s) opt out entirely with @ts-nocheck · 30 @ts-ignore suppression(s); the opted-out files are packages/mui-stylis-plugin-rtl/src/index.ts.
What to do
Migrate the remaining .js/.jsx files to TypeScript.
React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.
Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.
210 duplicated blocks under packages/mui-material/src/ have copies in at least two of the sibling directories Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertTitle (+116 more sibling(s) not listed) — 104 of them are reported below, and 106 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 210 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 210 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 210 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/mui-material/src/ListItemButton/ListItemButton.js:40
39 duplicated blocks under packages/ have copies in at least two of the sibling directories mui-lab, mui-material, mui-material-nextjs, mui-styled-engine, mui-styled-engine-sc, mui-system (+2 more sibling(s) not listed) — 30 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 39 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 39 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 39 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/mui-styled-engine-sc/src/index.ts:415
21 duplicated blocks under packages/mui-codemod/src/deprecations/ have copies in at least two of the sibling directories accordion-props, accordion-summary-classes, alert-classes, alert-props, autocomplete-props, avatar-group-props (+53 more sibling(s) not listed) — 16 of them are reported below, and 5 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 21 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 21 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 21 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7
15 duplicated blocks under packages/mui-codemod/src/ have copies in at least two of the sibling directories deprecations, util, v1.0.0, v4.0.0, v5.0.0, v6.0.0 (+2 more sibling(s) not listed) — 12 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:2
10 duplicated blocks under packages/mui-lab/src/ have copies in at least two of the sibling directories AdapterDateFns, AdapterDayjs, AdapterLuxon, AdapterMoment, CalendarPicker, CalendarPickerSkeleton (+30 more sibling(s) not listed) — 9 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 10 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 10 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 10 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/mui-lab/src/TimelineContent/TimelineContent.tsx:39
packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:2 · packages/mui-codemod/src/v9.0.0/system-props/removeSystemProps.js:2 — these 2 files are line-for-line copies of one another — 214 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:2
packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:1 · packages-internal/docs-utils/src/getPropsFromComponentNode.ts:1 — these 2 files are line-for-line copies of one another — 183 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:1
packages/mui-material/src/ListItemButton/ListItemButton.js:40 · packages/mui-material/src/MenuItem/MenuItem.js:44 — the two spans are one implementation copied and then locally edited — 908 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/ListItemButton/ListItemButton.js:40
packages/mui-material/src/ButtonGroup/ButtonGroup.js:17 · packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js:38 — the two spans are one implementation copied and then locally edited — 846 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/ButtonGroup/ButtonGroup.js:17
packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js:2 · packages/mui-codemod/src/v7.0.0/grid-props/grid-props.js:2 — these 2 files are line-for-line copies of one another — 139 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js:2
packages/mui-codemod/src/util/migrateToVariants.js:426 · packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:262 — the two spans are one implementation copied and then locally edited — 912 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-codemod/src/util/migrateToVariants.js:426
packages/mui-material/src/Checkbox/Checkbox.js:55 · packages/mui-material/src/Radio/Radio.js:45 — the two spans are one implementation copied and then locally edited — 731 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/Checkbox/Checkbox.js:55
packages/mui-material/src/Fade/Fade.js:2 · packages/mui-material/src/Zoom/Zoom.js:2 — these 2 files are line-for-line copies of one another — 115 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/mui-material/src/Fade/Fade.js:2
packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7 · packages/mui-codemod/src/deprecations/input-base-classes/input-base-classes.js:7 · packages/mui-codemod/src/deprecations/slider-classes/slider-classes.js:7 — the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7
REDACTED:96 · REDACTED:120 — the two spans are one implementation copied and then locally edited — 481 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — REDACTED:96
packages/mui-material/src/styles/createThemeWithVars.js:262 · packages/mui-material/src/styles/createThemeWithVars.js:586 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-material/src/styles/createThemeWithVars.js:262
packages/mui-material/src/ListItem/ListItem.js:16 · packages/mui-material/src/ListItemButton/ListItemButton.js:18 — the two spans are one implementation copied and then locally edited — 438 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/ListItem/ListItem.js:16
packages/mui-material/src/Icon/Icon.js:13 · packages/mui-material/src/SvgIcon/SvgIcon.js:13 — the two spans are one implementation copied and then locally edited — 416 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/Icon/Icon.js:13
packages/mui-codemod/src/v4.0.0/optimal-imports.js:5 · packages/mui-codemod/src/v5.0.0/optimal-imports.js:5 — the two spans are one implementation copied and then locally edited — 504 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-codemod/src/v4.0.0/optimal-imports.js:5
REDACTED:31 · packages-internal/core-docs/src/ApiPage/HooksApiContent.tsx:23 — the two spans are one implementation copied and then locally edited — 451 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — REDACTED:31
packages/mui-material/src/locale/hrHR.ts:4 · packages/mui-material/src/locale/srRS.ts:4 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited. — packages/mui-material/src/locale/hrHR.ts:4
packages/mui-codemod/src/deprecations/button-group-classes/button-group-classes.js:7 · packages/mui-codemod/src/deprecations/chip-classes/chip-classes.js:7 · packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7 · packages/mui-codemod/src/deprecations/drawer-classes/drawer-classes.js:7 · +6 more site(s) not listed — the 10 copies are spread across 10 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-codemod/src/deprecations/button-group-classes/button-group-classes.js:7
packages/mui-material/src/Popper/BasePopper.tsx:429 · packages/mui-material/src/Popper/Popper.tsx:136 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — packages/mui-material/src/Popper/BasePopper.tsx:429
packages/mui-codemod/src/deprecations/alert-classes/alert-classes.js:7 · packages/mui-codemod/src/deprecations/pagination-item-classes/pagination-item-classes.js:7 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-codemod/src/deprecations/alert-classes/alert-classes.js:7
packages/mui-material/src/locale/arEG.ts:4 · packages/mui-material/src/locale/arSA.ts:4 · packages/mui-material/src/locale/arSD.ts:4 — the 3 copies are spread across 3 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited. — packages/mui-material/src/locale/arEG.ts:4
packages-internal/api-docs-builder/src/utils/createTypeScriptProject.ts:1 · packages-internal/docs-utils/src/createTypeScriptProject.ts:1 — these 2 files are line-for-line copies of one another — 66 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages-internal/api-docs-builder/src/utils/createTypeScriptProject.ts:1
packages/mui-codemod/src/v4.0.0/top-level-imports.js:13 · packages/mui-codemod/src/v5.0.0/top-level-imports.js:14 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-codemod/src/v4.0.0/top-level-imports.js:13
packages-internal/core-docs/src/codeStyling/codeStyling.tsx:5 · packages-internal/core-docs/src/codeVariant/codeVariant.tsx:5 — the two spans are one implementation copied and then locally edited — 413 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages-internal/core-docs/src/codeStyling/codeStyling.tsx:5
packages/mui-lab/src/TimelineContent/TimelineContent.tsx:39 · packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.tsx:39 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-lab/src/TimelineContent/TimelineContent.tsx:39
packages/mui-codemod/src/deprecations/utils/movePropIntoSlotProps.js:6 · packages/mui-codemod/src/deprecations/utils/movePropIntoSlots.js:6 — the two spans are one implementation copied and then locally edited — 421 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-codemod/src/deprecations/utils/movePropIntoSlotProps.js:6
packages/mui-material/src/FilledInput/FilledInput.js:327 · packages/mui-material/src/Input/Input.js:187 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-material/src/FilledInput/FilledInput.js:327
packages/mui-codemod/src/deprecations/all/deprecations-all.js:62 · packages/mui-codemod/src/v5.0.0/preset-safe.js:56 — the two spans are one implementation copied and then locally edited — 664 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-codemod/src/deprecations/all/deprecations-all.js:62
packages/mui-styled-engine-sc/src/index.ts:415 · packages/mui-styled-engine/src/index.ts:233 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — packages/mui-styled-engine-sc/src/index.ts:415
packages/mui-material/src/Grid/Grid.tsx:144 · packages/mui-system/src/Grid/Grid.tsx:14 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — packages/mui-material/src/Grid/Grid.tsx:144
packages/mui-material/src/PigmentGrid/PigmentGrid.tsx:137 · packages/mui-system/src/Grid/createGrid.tsx:189 — the two spans are one implementation copied and then locally edited — 321 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/PigmentGrid/PigmentGrid.tsx:137
packages/mui-material/src/locale/plPL.ts:4 · packages/mui-material/src/locale/ruRU.ts:4 · packages/mui-material/src/locale/ukUA.ts:4 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-material/src/locale/plPL.ts:4
packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7 · packages/mui-codemod/src/deprecations/dialog-classes/dialog-classes.js:7 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7
packages/mui-material/src/FilledInput/FilledInput.js:37 · packages/mui-material/src/Input/Input.js:28 — the two spans are one implementation copied and then locally edited — 267 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/mui-material/src/FilledInput/FilledInput.js:37
packages/mui-material/src/locale/csCZ.ts:4 · packages/mui-material/src/locale/skSK.ts:4 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-material/src/locale/csCZ.ts:4
packages/mui-material/src/locale/mkMK.ts:4 · packages/mui-material/src/locale/msMS.ts:4 · packages/mui-material/src/locale/myMY.ts:4 · packages/mui-material/src/locale/neNP.ts:4 — the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/mui-material/src/locale/mkMK.ts:4
What to do
Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).
Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.
packages-internal/api-docs-builder-core/materialUi/projectSettings.ts:4 imports @mui/utils/generateUtilityClass, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies. — packages-internal/api-docs-builder-core/materialUi/projectSettings.ts:4
packages-internal/api-docs-builder-core/muiSystem/projectSettings.ts:4 imports @mui/utils/generateUtilityClass, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies. — packages-internal/api-docs-builder-core/muiSystem/projectSettings.ts:4
What to do
Fix the listed violations: declare the workspace packages these files import in the importing package's own package.json dependencies (2 rows) — those imports are already bare package specifiers, so the import statements do not change, only the manifest.
React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.
Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.
(anonymous) has cyclomatic complexity 80 and cognitive complexity 103; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/useAutocomplete/useAutocomplete.js:916
(anonymous) has cyclomatic complexity 70 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/styles/createThemeWithVars.js:205
recurseObjectExpression has cyclomatic complexity 62 and cognitive complexity 137; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:180
checkType has cyclomatic complexity 53 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts:248
root has cyclomatic complexity 52 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages-internal/core-docs/src/branding/brandingTheme.ts:1084
root has cyclomatic complexity 52 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages-internal/core-docs/src/branding/brandingTheme.ts:531
recurseObjectExpression has cyclomatic complexity 44 and cognitive complexity 93; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-codemod/src/util/migrateToVariants.js:413
Demo has cyclomatic complexity 41 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages-internal/core-docs/src/Demo/Demo.tsx:408
Autocomplete has cyclomatic complexity 41 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/Autocomplete/Autocomplete.js:432
(anonymous) has cyclomatic complexity 36 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js:347
LinearProgress has cyclomatic complexity 34 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/LinearProgress/LinearProgress.js:421
(anonymous) has cyclomatic complexity 33 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:428
generatePropType has cyclomatic complexity 31 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages-internal/scripts/typescript-to-proptypes/src/generatePropTypes.ts:131
SelectInput has cyclomatic complexity 31 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/Select/SelectInput.js:137
(anonymous) has cyclomatic complexity 30 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/Chip/Chip.js:66
TablePaginationActions has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/TablePaginationActions/TablePaginationActions.js:59
Chip has cyclomatic complexity 27 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/Chip/Chip.js:377
buildLlmsDocs has cyclomatic complexity 26 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/buildLlmsDocs/index.ts:436
createTheme has cyclomatic complexity 26 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-material/src/styles/createTheme.ts:66
CssVarsProvider has cyclomatic complexity 26 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/mui-system/src/cssVars/createCssVarsProvider.tsx:215
What to do
Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
Do you agree with this assessment?
R3 · Large Files8.8 / 10Strong✓ Tool-verified
React / JS · Code Health — How many source files exceed the large-file threshold.
Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.
What to do
Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
Do you agree with this assessment?
R4 · Test Coverage8.3 / 10Strong✓ Tool-verified
React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.
Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.
packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js:1 imports '../other-path', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js
packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.expected.js:1 imports '../other-path', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.expected.js
packages/mui-codemod/src/v5.0.0/grid-list-component.test/actual.js:5 imports './other', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/grid-list-component.test/actual.js
packages/mui-codemod/src/v5.0.0/grid-list-component.test/expected.js:5 imports './other', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/grid-list-component.test/expected.js
packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.actual.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.actual.js
packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.expected.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.expected.js
packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.actual.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.actual.js
packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.expected.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.expected.js
packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarms.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarms.js
packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarmsTwoTone.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarmsTwoTone.js
packages/mui-icons-material/fixtures/material-design-icons/expected/Accessibility.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/Accessibility.js
packages/mui-icons-material/fixtures/material-design-icons/expected/ElevenMp.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/ElevenMp.js
packages/mui-icons-material/fixtures/material-design-icons/expected/FiveMp.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/FiveMp.js
packages/mui-icons-material/fixtures/material-design-icons/expected/QueueMusicOutlined.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/QueueMusicOutlined.js
packages/mui-icons-material/fixtures/material-design-icons/expected/RecordVoiceOverTwoTone.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/RecordVoiceOverTwoTone.js
packages/mui-icons-material/fixtures/material-design-icons/expected/SixtyFps.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/SixtyFps.js
packages/mui-icons-material/fixtures/material-design-icons/expected/StarRounded.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/StarRounded.js
packages/mui-icons-material/fixtures/material-design-icons/expected/ThirtyFps.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/ThirtyFps.js
packages/mui-icons-material/fixtures/material-design-icons/expected/TimesOneMobiledata.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/TimesOneMobiledata.js
packages/mui-icons-material/fixtures/material-design-icons/expected/TwentyFourMp.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/mui-icons-material/fixtures/material-design-icons/expected/TwentyFourMp.js
No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×20) — packages-internal/markdown/loader.mjs, scripts/buildLlmsDocs/index.ts, scripts/generateProptypes.ts, …
What to do
Add tests that import the unreached modules (directly or through their public entry).
Do you agree with this assessment?
R6 · Tooling10.0 / 10Exemplary✓ Tool-verified
React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.
Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.
This repository declares test tooling, and the ✓ above records that declaration — but packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js and 19 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) — each one is reported with its failing import under Test Coverage — then the declared script exercises what it claims to. — packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js
Do you agree with this assessment?
R7 · Dead Code9.9 / 10Exemplary✓ Tool-verified
React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).
Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.
1 file(s) (~26 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an REDACTED script) so reachability can see this package. — test/bundle-size
3 file(s) (~1741 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an REDACTED script) so reachability can see this package. — test/bundling/scripts
1 file(s) (~12 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an REDACTED script) so reachability can see this package. — test/moduleResolution
Unreachable from the 497 application, 368 tooling and 3162 test entry point(s) detected in this repo. Gate removals on `pnpm run build` — an undetected custom entry would make these reachable.
no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×19) — netlify/functions/feedback-management.mts, netlify/functions/on-deploy.mts, packages-internal/core-docs/src/AppLayout/components/ArrowButton.tsx, …
What to do
Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.
Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.
Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json. (×2) — packages-internal/markdown/loader.mjs:117, packages/mui-codemod/src/util/appendAttribute.js:3
Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×9) — packages/mui-codemod/src/v5.0.0/theme-spacing.test/large-actual.js:8, packages/mui-codemod/src/v5.0.0/emotion-prepend-cache.test/custom-naming.actual.js:1, packages/mui-codemod/src/v5.0.0/jss-to-styled.test/Anonymous.actual.js:2, …
Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
Every import is type-only — move it to devDependencies. — packages/mui-styled-engine/src/index.ts:9
What to do
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.
Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.
packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts → packages-internal/api-docs-builder/src/buildApi.ts → packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts (one verified cycle inside a mutually-dependent group of 6 files) — packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts
Break each cycle by extracting the shared piece into a module both sides can import.
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 79 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AX1 Captive dependencies — no DI registrations detected
AX2 Stateful singletons — no singleton implementations detected
AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — vertical-slice architecture detected, but individual slices could not be resolved from namespaces or project layout
AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D11 Test Reliability — Test reliability not measured — JavaScript/TypeScript suite did not run
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — Production source is present (.mts, .ts, .tsx) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
D27 Navigability — symbol resolution incomplete — navigability not assessed
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 34 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D4 Code Duplication — This repository's production source (.js, .mjs, .mts, .ts, .tsx) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a CS/VB/GO/SCALA/SWIFT/DART class graph, and this repository's production source is .mts, .ts, .tsx, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not measured — JavaScript/TypeScript suite
DM1 Aggregate boundaries — not scored for TypeScript: a class holding another class reads the same whether the inner type is an aggregate or a value object, so this cannot be decided from source without guessing — reported as guidance rather than measured
DM2 Strongly-typed ids — not scored for TypeScript: branded ids (`type Id = string & { __brand }`) are an uncommon idiom, so a bare-string id is not on its own evidence of a missing typed id — reported as guidance rather than measured
DM3 Integration-event coupling — not scored for TypeScript: a domain type used across packages is indistinguishable in source from a deliberate shared-kernel package, so this is reported as guidance rather than measured
DM4 Rich vs anemic model — not scored for TypeScript: telling a rich domain entity from an anemic data holder needs the behaviour a source-only read cannot always attribute (components, DTOs and readonly value objects are all legitimately data-shaped), so this is reported as guidance rather than measured
DM5 Encapsulated state — not scored for TypeScript: the language already steers state behind #private/private/readonly, so a mutable public field is rare enough that we report this as guidance rather than measuring it
DM6 Domain ↔ infrastructure boundary — this TypeScript/JavaScript repository maps no type to a persistence framework (TypeORM/Prisma/MikroORM/Sequelize/Mongoose), so DM6's domain↔infrastructure fusion read has no population to be taken over
DM7 Repository granularity — not scored for TypeScript: deciding whether a repository belongs to an aggregate root needs the aggregate structure, which source alone does not state — reported as guidance rather than measured
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `vitest --coverage --coverage.reporter=lcovonly`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
R5 Dependency Freshness — uses a pnpm lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X29 Per-element action decided by a fixed element — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X32 Type resolved by simple name across every loaded assembly — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
D10 · Test Quality· No assertions (empty test) · ×5
No assertions (empty test): To do packages/mui-lab/src/AlertTitle/AlertTitle.test.js:4— Test method has an empty body — it asserts nothing and exercises no code.
No assertions (empty test): should not leak on multi-touch packages/mui-material/src/ButtonBase/TouchRipple.test.js:425— Test method has an empty body — it asserts nothing and exercises no code.
No assertions (empty test): removes event listeners on unmount packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js:522— Test method has an empty body — it asserts nothing and exercises no code.
No assertions (empty test): does not crash when updating the parent component while swiping packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js:885— Test method has an empty body — it asserts nothing and exercises no code.
No assertions (empty test): does not crash when backdrop is hidden while swiping packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js:916— Test method has an empty body — it asserts nothing and exercises no code.
AC2 · Forms & labels· <input> without a programmatic label · ×1
<input> without a programmatic label docs/data/system/getting-started/the-sx-prop/DynamicValues.tsx:17— This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
Unlisted import '@docsearch/react' packages/mui-codemod/src/v5.0.0/theme-spacing.test/large-actual.js:8— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import '@emotion/cache' packages/mui-codemod/src/v5.0.0/emotion-prepend-cache.test/custom-naming.actual.js:1— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import '@material-ui/styles' packages/mui-codemod/src/v5.0.0/jss-to-styled.test/Anonymous.actual.js:2— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import '@mui/x-date-pickers' packages/mui-codemod/src/v5.0.0/date-pickers-moved-to-x.test/expected-root-community.js:1— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import '@mui/x-date-pickers-pro' packages/mui-codemod/src/v5.0.0/date-pickers-moved-to-x.test/expected-root-pro.js:1— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import '@mui/x-tree-view' packages/mui-codemod/src/v5.0.0/tree-view-moved-to-x.test/expected-root.js:1— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'clsx' packages/mui-codemod/src/v5.0.0/jss-to-styled.test/first.actual.js:3— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'next' packages/mui-codemod/src/v5.0.0/theme-spacing.test/large-actual.js:6— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'prop-types' packages/mui-codemod/src/v5.0.0/jss-to-styled.test/first.actual.js:2— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
FunctionTooLong: useAutocomplete.useAutocomplete packages/mui-material/src/useAutocomplete/useAutocomplete.js:82— FunctionTooLong — useAutocomplete runs 867 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 767 over it, 8.67× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: brandingTheme.getThemedComponents packages-internal/core-docs/src/branding/brandingTheme.ts:412— FunctionTooLong — getThemedComponents runs 823 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 723 over it, 8.23× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: createThemeWithVars.createThemeWithVars packages/mui-material/src/styles/createThemeWithVars.js:128— FunctionTooLong — createThemeWithVars runs 672 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 572 over it, 6.72× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: PricingTable.PricingTable docs/src/components/pricing/PricingTable.tsx:1492— FunctionTooLong — PricingTable runs 563 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 463 over it, 5.63× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: useSlider.useSlider packages/mui-material/src/Slider/useSlider.ts:197— FunctionTooLong — useSlider runs 467 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 367 over it, 4.67× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: AppSearch.AppSearch packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:222— FunctionTooLong — AppSearch runs 418 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 318 over it, 4.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: jss-to-styled.transformer packages/mui-codemod/src/v5.0.0/jss-to-styled.js:7— FunctionTooLong — transformer runs 369 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 269 over it, 3.69× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: ScrollPlayground.ScrollPlayground docs/data/material/components/popper/ScrollPlayground.js:175— FunctionTooLong — ScrollPlayground runs 334 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 234 over it, 3.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: migrateToVariants.migrateToVariants packages/mui-codemod/src/util/migrateToVariants.js:182— FunctionTooLong — migrateToVariants runs 331 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 231 over it, 3.31× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: MainContent.MainContent docs/data/material/getting-started/templates/blog/components/MainContent.tsx:167— FunctionTooLong — MainContent runs 310 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 210 over it, 3.10× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: MainContent.MainContent docs/data/material/getting-started/templates/blog/components/MainContent.js:177— FunctionTooLong — MainContent runs 309 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 209 over it, 3.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: AppLayoutDocsFooter.AppLayoutDocsFooter packages-internal/core-docs/src/AppLayout/layout/AppLayoutDocsFooter.tsx:143— FunctionTooLong — AppLayoutDocsFooter runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: SyncFeatures.ConnectFeatures docs/src/components/productDesignKit/SyncFeatures.tsx:31— FunctionTooLong — ConnectFeatures runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: AnchorPlayground.AnchorPlayground docs/data/material/components/popover/AnchorPlayground.js:42— FunctionTooLong — AnchorPlayground runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.74× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: blog.Blog docs/pages/blog.tsx:186— FunctionTooLong — Blog runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: MaterialHero.MaterialHero docs/src/components/productMaterial/MaterialHero.tsx:218— FunctionTooLong — MaterialHero runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.60× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: InputAdornments.InputAdornments docs/data/material/components/text-fields/InputAdornments.js:17— FunctionTooLong — InputAdornments runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: InputAdornments.InputAdornments docs/data/material/components/text-fields/InputAdornments.tsx:17— FunctionTooLong — InputAdornments runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: Footer.Footer docs/data/material/getting-started/templates/blog/components/Footer.js:35— FunctionTooLong — Footer runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.53× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: Footer.Footer docs/data/material/getting-started/templates/blog/components/Footer.tsx:35— FunctionTooLong — Footer runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.53× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: ChipsPlayground.ChipsPlayground docs/data/material/components/chips/ChipsPlayground.js:14— FunctionTooLong — ChipsPlayground runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: XHero.XHero docs/src/components/productX/XHero.tsx:40— FunctionTooLong — XHero runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: Footer.Footer docs/data/material/getting-started/templates/marketing-page/components/Footer.js:32— FunctionTooLong — Footer runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: Footer.Footer docs/data/material/getting-started/templates/marketing-page/components/Footer.tsx:32— FunctionTooLong — Footer runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: FullFocusVisibleDemo.FullFocusVisibleDemo docs/data/material/customization/focus-visible/FullFocusVisibleDemo.tsx:141— FunctionTooLong — FullFocusVisibleDemo runs 242 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 142 over it, 2.42× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
TodoComment docs/data/material/components/use-media-query/UseWidth.tsx:22— // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- useMediaQuery is called inside callback — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/pages/_app.tsx:166— // TODO move productId & productCategoryId resolution to page layout. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/pages/_app.tsx:199— // TODO: 'core' is a productCategoryId, not a productId — this branch may be dead code. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/scripts/reportBrokenLinks.mts:23— // TODO: Seed crawler with stored links from e.g. mui.com/x/link-structure.json — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/scripts/reportBrokenLinks.mts:29— // TODO: Create an easier way to identify content under MemoryRouter — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/scripts/reportBrokenLinks.mts:53— // TODO: re-enable and fix violations (mostly <style>/<div> inside <span>/<div>). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/scripts/reportBrokenLinks.mts:61— // TODO: re-enable after an a11y pass on demos. Many Slider/Radio/Switch — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/scripts/reportBrokenLinks.mts:64— // TODO: remaining violations are infra-level (same demo rendered — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/src/components/header/ThemeModeToggle.tsx:37— // TODO replace with useColorScheme once all pages support css vars — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/core-docs/src/AppLayout/layout/AppSettingsDrawer.tsx:115— // TODO replace with useColorScheme once all pages support css vars — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/core-docs/src/ThemeContext/ThemeContext.tsx:137— // TODO replace with useColorScheme once all pages support css vars — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/src/components/header/ThemeModeToggle.tsx:48— // TODO remove this code branch, all pages should be migrated to use CssVarsProvider — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/src/components/pricing/PricingTable.tsx:23— // TODO: Collapse should expose an API to customize the duration based on the height. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/core-docs/src/AppLayout/navigation/AppNavDrawer.tsx:28— // TODO: Collapse should expose an API to customize the duration based on the height. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/src/modules/components/Ad.tsx:2— // TODO: remove when Toolpad migrated to `@mui/internal-core-docs/i18n` — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment docs/src/modules/utils/useQueryParameterState.ts:43— // TODO: this resets the scroll position, even though we have scroll: false — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/api-docs-builder/src/ApiBuilders/HookApiBuilder.ts:474— // TODO: Enable this error once all public hooks are documented — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:847— // TODO: Use `describeConformance` for the DataGrid components — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/api-docs-builder/src/utils/replaceUrl.ts:40— // TODO remove, fix the markdown files to match the URLs — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:51— // TODO update to reflect https://github.com/DefinitelyTyped/DefinitelyTyped/pull/65135
TodoComment packages-internal/core-docs/src/Ad/Ad.tsx:83— // TODO: Use proper error monitoring service (for example Sentry) instead — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:51— // TODO Drop runtime type-checking once we type-check this file — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/core-docs/src/ApiPage/sections/ToggleDisplayOption.tsx:45— // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- useEnhancedEffect uses useEffect under the hood — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/core-docs/src/AppLayout/navigation/AppNavDrawer.tsx:202— // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- useEnhancedEffect uses useEffect under the hood — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:502— // TODO v6: This hack should no longer be needed with static CSS rendering. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
No assertions: opens after Next.js %s navigation packages-internal/core-docs/src/DocsApp/AnalyticsProvider.test.tsx:147— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should accept a null child packages/mui-lab/src/TabList/TabList.test.js:42— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: allows flow content packages/mui-lab/src/TabPanel/TabPanel.test.tsx:68— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should accept empty content packages/mui-material/src/Accordion/Accordion.test.js:333— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should not crash packages/mui-material/src/Autocomplete/Autocomplete.test.js:1091— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: allows overriding the slots using the slots prop packages/mui-material/src/Badge/Badge.test.js:313— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: allows modifying slots props using the slotProps prop packages/mui-material/src/Badge/Badge.test.js:338— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should show custom collapsed icon packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js:105— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should apply slotProps to collapsed icon packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js:122— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should render children packages/mui-material/src/DialogContent/DialogContent.test.js:19— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should render children packages/mui-material/src/DialogContentText/DialogContentText.test.js:22— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should render JSX children packages/mui-material/src/DialogTitle/DialogTitle.test.js:20— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should render string children as given string packages/mui-material/src/DialogTitle/DialogTitle.test.js:27— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should not throw: "Maximum call stack size exceeded" if both slotProps and an adornment are passed packages/mui-material/src/FilledInput/FilledInput.test.js:71— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should handle missing image packages/mui-material/src/ImageListItem/ImageListItem.test.js:45— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should allow a Select as an adornment packages/mui-material/src/InputBase/InputBase.test.js:888— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should support open abort packages/mui-material/src/Modal/Modal.test.js:681— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should be able to change the container packages/mui-material/src/Modal/Modal.test.js:825— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should be able to focus with no radios packages/mui-material/src/RadioGroup/RadioGroup.test.js:187— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should accept invalid child packages/mui-material/src/RadioGroup/RadioGroup.test.js:197— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should accept null child packages/mui-material/src/Select/Select.test.js:391— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should support conditional rendering with "${value}" packages/mui-material/src/Select/Select.test.js:401— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should do nothing when visible packages/mui-material/src/Slide/Slide.test.js:616— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should not break when initial value is out of range packages/mui-material/src/Slider/Slider.test.js:445— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: should not crash when unmounted during a touch drag (#26754) packages/mui-material/src/Slider/Slider.test.js:1795— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
FileTooLong: pricing/PricingTable.tsx docs/src/components/pricing/PricingTable.tsx— FileTooLong — 1654 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1154 over it, 3.31× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: branding/brandingTheme.ts packages-internal/core-docs/src/branding/brandingTheme.ts— FileTooLong — 1102 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: getThemedComponents (412-1581). The bar is 500 significant lines; this is 602 over it, 2.20× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: useAutocomplete/useAutocomplete.js packages/mui-material/src/useAutocomplete/useAutocomplete.js— FileTooLong — 920 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 94% of them inside a single declaration: useAutocomplete (82-1529). The bar is 500 significant lines; this is 420 over it, 1.84× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: styles/createThemeWithVars.js packages/mui-material/src/styles/createThemeWithVars.js— FileTooLong — 754 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 89% of them inside a single declaration: createThemeWithVars (128-1004). The bar is 500 significant lines; this is 254 over it, 1.51× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: Autocomplete/Autocomplete.js packages/mui-material/src/Autocomplete/Autocomplete.js— FileTooLong — 717 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 217 over it, 1.43× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: styles/components.ts packages/mui-material/src/styles/components.ts— FileTooLong — 708 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Components (5-832). The bar is 500 significant lines; this is 208 over it, 1.42× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: Slider/Slider.js packages/mui-material/src/Slider/Slider.js— FileTooLong — 664 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 164 over it, 1.33× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Tabs/Tabs.js packages/mui-material/src/Tabs/Tabs.js— FileTooLong — 651 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 151 over it, 1.30× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: MarkdownDocs/MarkdownElement.tsx packages-internal/core-docs/src/MarkdownDocs/MarkdownElement.tsx— FileTooLong — 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: Root (7-668). The bar is 500 significant lines; this is 147 over it, 1.29× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: Select/SelectInput.js packages/mui-material/src/Select/SelectInput.js— FileTooLong — 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: SelectInput (137-933). The bar is 500 significant lines; this is 147 over it, 1.29× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: Slider/useSlider.ts packages/mui-material/src/Slider/useSlider.ts— FileTooLong — 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: useSlider (197-925). The bar is 500 significant lines; this is 97 over it, 1.19× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: ApiBuilders/ComponentApiBuilder.ts packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts— FileTooLong — 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: components/AppSearch.tsx packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx— FileTooLong — 559 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: AppSearch (222-814). The bar is 500 significant lines; this is 59 over it, 1.12× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: Rating/Rating.js packages/mui-material/src/Rating/Rating.js— FileTooLong — 539 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 39 over it, 1.08× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/getPropTypesFromFile.ts packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts— FileTooLong — 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: material-icons/SearchIcons.js docs/data/material/components/material-icons/SearchIcons.js— FileTooLong — 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: home/MaterialDesignComponents.tsx docs/src/components/home/MaterialDesignComponents.tsx— FileTooLong — 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: autocomplete/GloballyCustomizedOptions.tsx docs/data/material/components/autocomplete/GloballyCustomizedOptions.tsx— FileTooLong — 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Tooltip/Tooltip.js packages/mui-material/src/Tooltip/Tooltip.js— FileTooLong — 511 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 11 over it, 1.02× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: autocomplete/GloballyCustomizedOptions.js docs/data/material/components/autocomplete/GloballyCustomizedOptions.js— FileTooLong — 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 over it, 1.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
R4 · Test Coverage· This test file cannot be loaded · ×20
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js— packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js:1 imports '../other-path', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.expected.js— packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.expected.js:1 imports '../other-path', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/grid-list-component.test/actual.js— packages/mui-codemod/src/v5.0.0/grid-list-component.test/actual.js:5 imports './other', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/grid-list-component.test/expected.js— packages/mui-codemod/src/v5.0.0/grid-list-component.test/expected.js:5 imports './other', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.actual.js— packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.actual.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.expected.js— packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/mui-theme-provider.expected.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.actual.js— packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.actual.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.expected.js— packages/mui-codemod/src/v5.0.0/styled-engine-provider.test/theme-provider.expected.js:3 imports './contexts', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarms.js— packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarms.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarmsTwoTone.js— packages/mui-icons-material/fixtures/material-design-icons/expected/AccessAlarmsTwoTone.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/Accessibility.js— packages/mui-icons-material/fixtures/material-design-icons/expected/Accessibility.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/ElevenMp.js— packages/mui-icons-material/fixtures/material-design-icons/expected/ElevenMp.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/FiveMp.js— packages/mui-icons-material/fixtures/material-design-icons/expected/FiveMp.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/QueueMusicOutlined.js— packages/mui-icons-material/fixtures/material-design-icons/expected/QueueMusicOutlined.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/RecordVoiceOverTwoTone.js— packages/mui-icons-material/fixtures/material-design-icons/expected/RecordVoiceOverTwoTone.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/SixtyFps.js— packages/mui-icons-material/fixtures/material-design-icons/expected/SixtyFps.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/StarRounded.js— packages/mui-icons-material/fixtures/material-design-icons/expected/StarRounded.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/ThirtyFps.js— packages/mui-icons-material/fixtures/material-design-icons/expected/ThirtyFps.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/TimesOneMobiledata.js— packages/mui-icons-material/fixtures/material-design-icons/expected/TimesOneMobiledata.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
This test file cannot be loaded packages/mui-icons-material/fixtures/material-design-icons/expected/TwentyFourMp.js— packages/mui-icons-material/fixtures/material-design-icons/expected/TwentyFourMp.js:2 imports './utils/createSvgIcon', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
R4 · Test Coverage· No test reaches this file · ×20
No test reaches this file packages-internal/markdown/loader.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/buildLlmsDocs/index.ts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/generateProptypes.ts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/generateCodeowners.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file netlify/edge-functions/og-image.tsx— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file netlify/functions/feedback-management.mts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages/mui-icons-material/scripts/download.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/releaseChangelog.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/useReactVersion.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/releasePack.mts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages-internal/api-docs-builder-core/muiSystem/getSystemComponentInfo.ts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages/mui-icons-material/renameFilters/material-design-icons.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/buildColorTypes.js— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages/mui-icons-material/scripts/create-typings.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages/mui-icons-material/scripts/merge-package-json.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file netlify/functions/on-deploy.mts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages-internal/api-docs-builder-core/materialUi/projectSettings.ts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file packages-internal/core-docs/src/AppLayout/components/ArrowButton.tsx— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/buildApiDocs/index.ts— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file scripts/testBuiltTypes.mjs— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
AC2 · Forms & labels· <Slider> field component without a label · ×17
<Slider> field component without a label docs/data/material/components/slider/CustomMarks.tsx:27— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/components/slider/DiscreteSlider.tsx:22— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/components/slider/MinimumDistanceSlider.tsx:40— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/components/slider/MinimumDistanceSlider.tsx:48— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/components/slider/RangeSlider.tsx:18— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/components/slider/VerticalSlider.tsx:21— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/customization/css-theme-variables/ContrastTextDemo.tsx:70— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/customization/css-theme-variables/ContrastTextDemo.tsx:84— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/customization/css-theme-variables/ContrastTextDemo.tsx:98— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/customization/how-to-customize/DevTools.tsx:5— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/customization/how-to-customize/SxProp.tsx:4— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/integrations/interoperability/EmotionCSS.tsx:9— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/integrations/interoperability/EmotionCSS.tsx:10— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/integrations/interoperability/StyledComponents.tsx:16— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/data/material/integrations/interoperability/StyledComponentsDeep.tsx:20— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/src/components/showcase/ThemeSlider.tsx:31— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Slider> field component without a label docs/src/components/x-grid/EditProgress.tsx:53— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
Hotspot: packages/mui-material/src/Select/SelectInput.js packages/mui-material/src/Select/SelectInput.js:137— packages/mui-material/src/Select/SelectInput.js changed 3 times in last 90 days, max cyclomatic complexity 131 in SelectInput.SelectInput at line 137. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Select/SelectInput.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/styles/createThemeWithVars.js packages/mui-material/src/styles/createThemeWithVars.js:128— packages/mui-material/src/styles/createThemeWithVars.js changed 2 times in last 90 days, max cyclomatic complexity 105 in createThemeWithVars.createThemeWithVars at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/styles/createThemeWithVars.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/Tabs/Tabs.js packages/mui-material/src/Tabs/Tabs.js:250— packages/mui-material/src/Tabs/Tabs.js changed 2 times in last 90 days, max cyclomatic complexity 91 in Tabs.Tabs at line 250. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Tabs/Tabs.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/Autocomplete/Autocomplete.js packages/mui-material/src/Autocomplete/Autocomplete.js:432— packages/mui-material/src/Autocomplete/Autocomplete.js changed 3 times in last 90 days, max cyclomatic complexity 50 in Autocomplete.Autocomplete at line 432. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Autocomplete/Autocomplete.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:222— packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx changed 2 times in last 90 days, max cyclomatic complexity 73 in AppSearch.AppSearch at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/Tooltip/Tooltip.js packages/mui-material/src/Tooltip/Tooltip.js:231— packages/mui-material/src/Tooltip/Tooltip.js changed 2 times in last 90 days, max cyclomatic complexity 62 in Tooltip.Tooltip at line 231. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Tooltip/Tooltip.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/internal/Transition.tsx packages/mui-material/src/internal/Transition.tsx:100— packages/mui-material/src/internal/Transition.tsx changed 2 times in last 90 days, max cyclomatic complexity 55 in Transition.Transition at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/internal/Transition.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/MenuList/MenuList.js packages/mui-material/src/MenuList/MenuList.js:78— packages/mui-material/src/MenuList/MenuList.js changed 2 times in last 90 days, max cyclomatic complexity 39 in MenuList.MenuList at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/MenuList/MenuList.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/ButtonBase/ButtonBase.js packages/mui-material/src/ButtonBase/ButtonBase.js:90— packages/mui-material/src/ButtonBase/ButtonBase.js changed 2 times in last 90 days, max cyclomatic complexity 36 in ButtonBase.ButtonBase at line 90. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/ButtonBase/ButtonBase.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/Rating/Rating.js packages/mui-material/src/Rating/Rating.js:369— packages/mui-material/src/Rating/Rating.js changed 2 times in last 90 days, max cyclomatic complexity 31 in Rating.Rating at line 369. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Rating/Rating.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: scripts/buildLlmsDocs/index.ts scripts/buildLlmsDocs/index.ts:436— scripts/buildLlmsDocs/index.ts changed 2 times in last 90 days, max cyclomatic complexity 26 in index.buildLlmsDocs at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- scripts/buildLlmsDocs/index.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/Popper/BasePopper.tsx packages/mui-material/src/Popper/BasePopper.tsx:74— packages/mui-material/src/Popper/BasePopper.tsx changed 2 times in last 90 days, max cyclomatic complexity 19 in BasePopper.PopperTooltip at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Popper/BasePopper.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/internal/SwitchBase.js packages/mui-material/src/internal/SwitchBase.js:83— packages/mui-material/src/internal/SwitchBase.js changed 2 times in last 90 days, max cyclomatic complexity 17 in SwitchBase.SwitchBase at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/internal/SwitchBase.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/Button/Button.js packages/mui-material/src/Button/Button.js:501— packages/mui-material/src/Button/Button.js changed 2 times in last 90 days, max cyclomatic complexity 16 in Button.Button at line 501. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/Button/Button.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx:70— packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx changed 2 times in last 90 days, max cyclomatic complexity 16 in ClickAwayListener.ClickAwayListener at line 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js:136— packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js changed 2 times in last 90 days, max cyclomatic complexity 15 in ToggleButtonGroup.ToggleButtonGroup at line 136. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/mui-codemod/src/v5.0.0/path-imports.js packages/mui-codemod/src/v5.0.0/path-imports.js:7— packages/mui-codemod/src/v5.0.0/path-imports.js changed 2 times in last 90 days, max cyclomatic complexity 15 in path-imports.transformer at line 7. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-27 07:52:20 +00:00' --until='2026-09-25 07:52:20 +00:00' --full-history --no-merges -- packages/mui-codemod/src/v5.0.0/path-imports.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
AC2 · Forms & labels· <Autocomplete> field component without a label · ×16
<Autocomplete> field component without a label docs/data/material/components/autocomplete/Asynchronous.tsx:41— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/ComboBox.tsx:7— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/CustomSingleValueRendering.tsx:9— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/CustomSingleValueRendering.tsx:17— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/DisabledOptions.tsx:6— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/Filter.tsx:11— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/GitHubLabel.tsx:197— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/GloballyCustomizedOptions.tsx:73— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label REDACTED:200— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/Grouped.tsx:14— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/Highlights.tsx:8— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/InfiniteLoading.tsx:278— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/RenderGroup.tsx:30— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/components/autocomplete/Virtualize.tsx:186— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/customization/overriding-component-structure/OverridingInternalSlot.tsx:21— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Autocomplete> field component without a label docs/data/material/guides/localization/Locales.tsx:24— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
Dead file (~8 LoC) packages/mui-icons-material/custom/Apple.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Facebook.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/GitHub.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Google.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Instagram.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/LinkedIn.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Microsoft.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Pinterest.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Reddit.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Telegram.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/Twitter.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/WhatsApp.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/X.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~8 LoC) packages/mui-icons-material/custom/YouTube.js— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
transformer (cognitive 23) packages/mui-codemod/src/deprecations/toggle-button-group-classes/toggle-button-group-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/image-list-item-bar-classes/image-list-item-bar-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/linear-progress-classes/linear-progress-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 37, 22, 16, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/table-sort-label-classes/table-sort-label-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/step-connector-classes/step-connector-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/button-group-classes/button-group-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/select-classes/select-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/drawer-classes/drawer-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 23) packages/mui-codemod/src/deprecations/chip-classes/chip-classes.js:7— transformer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 13). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ClassTooLong: useAutocomplete packages/mui-material/src/useAutocomplete/useAutocomplete.js:1— ClassTooLong — 867 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 467 over it, 2.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Components packages/mui-material/src/styles/components.ts:5— ClassTooLong — 705 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 305 over it, 1.76× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: createThemeWithVars packages/mui-material/src/styles/createThemeWithVars.js:1— ClassTooLong — 672 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 272 over it, 1.68× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: PricingTable docs/src/components/pricing/PricingTable.tsx:1— ClassTooLong — 563 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 163 over it, 1.41× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: SelectInput packages/mui-material/src/Select/SelectInput.js:1— ClassTooLong — 522 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 122 over it, 1.31× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: useSlider packages/mui-material/src/Slider/useSlider.ts:1— ClassTooLong — 467 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 67 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: AppSearch packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:1— ClassTooLong — 418 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 18 over it, 1.05× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
AC2 · Forms & labels· <Select> field component without a label · ×4
<Select> field component without a label docs/data/material/customization/css-theme-variables/DisableTransitionOnChange.tsx:22— This UI-library field component has no label / aria-label / aria-labelledby / id / name, and nothing it renders carries one either. The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label docs/src/components/productX/XGridFullDemo.tsx:86— This UI-library field component has no label / aria-label / aria-labelledby / id / name, and nothing it renders carries one either. The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label docs/src/components/productX/XGridFullDemo.tsx:93— This UI-library field component has no label / aria-label / aria-labelledby / id / name, and nothing it renders carries one either. The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label docs/src/components/productX/XGridFullDemo.tsx:107— This UI-library field component has no label / aria-label / aria-labelledby / id / name, and nothing it renders carries one either. The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
Change coupling: deprecations-all.js ↔ postcss.config.js packages/mui-codemod/src/deprecations/all/deprecations-all.js— `packages/mui-codemod/src/deprecations/all/deprecations-all.js` and `packages/mui-codemod/src/deprecations/all/postcss.config.js` change together 100% of the time (16 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are `df4b10f8` [material-ui][InputBase] Deprecate composed classes (#45234); `bd7a9cc9` [material-ui][Slider] Deprecate composed classes (#45201); `820a76c8` [material-ui][Drawer] Deprecate composed classes (#44870) — run `git show` on any of them.
Change coupling: REDACTED ↔ REDACTED REDACTED— `REDACTED` and `REDACTED` change together 89% of the time (16 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are `d65dcfef` [docs] Fix HTML validation errors (#48107) (at that commit the files were still `docs/src/modules/components/ApiPage.tsx` and `docs/src/modules/components/ComponentsApiContent.tsx`); `f88194af` [docs-infra] Move API pages to TS (#43199) (at that commit the files were still `docs/src/modules/components/ApiPage.tsx` and `docs/src/modules/components/ComponentsApiContent.tsx`); `b9a041d0` [docs-infra] Simplify API sections typing (#43128) (at that commit the files were still `docs/src/modules/components/ApiPage.tsx` and `docs/src/modules/components/ComponentsApiContent.js`) — run `git show` on any of them.
Change coupling: HeaderNavBar.tsx ↔ HeaderNavDropdown.tsx docs/src/components/header/HeaderNavBar.tsx— `docs/src/components/header/HeaderNavBar.tsx` and `docs/src/components/header/HeaderNavDropdown.tsx` change together 65% of the time (13 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are `a37ef345` [website] Make beta chip consistent for Toolpad (#43392); `62854f34` [docs] Link Toolpad core docs to the docs menu (#42952); `edc6d613` [website] Copyedit Docs and Product menu taglines (#43075) — run `git show` on any of them.
Change coupling: createCssVarsProvider.tsx ↔ cssVarsParser.ts packages/mui-system/src/cssVars/createCssVarsProvider.tsx— `packages/mui-system/src/cssVars/createCssVarsProvider.tsx` and `packages/mui-system/src/cssVars/cssVarsParser.ts` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `04c8786a` [system] Add `spacing` theme token to be used in `theme.spacing()` (#… (at that commit the file was still `packages/mui-system/src/cssVars/createCssVarsProvider.js`); `49795024` [system] Remove unnecessary parsed theme (#35239) (at that commit the file was still `packages/mui-system/src/cssVars/createCssVarsProvider.js`); `0ec69e7e` [CssVarsProvider][Material UI] Exclude dark mode variables from `:roo… (at that commit the file was still `packages/mui-system/src/cssVars/createCssVarsProvider.js`) — run `git show` on any of them.
(anonymous) (cyclomatic 17) packages/mui-material/src/ButtonGroup/ButtonGroup.js:66— (anonymous) has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
(anonymous) (cyclomatic 17) packages/mui-material/src/MenuItem/MenuItem.js:63— (anonymous) has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
(anonymous) (cyclomatic 17) packages/mui-material/src/ListItemButton/ListItemButton.js:59— (anonymous) has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
useAutocomplete::selectNewValue (cognitive 20) packages/mui-material/src/useAutocomplete/useAutocomplete.js:788— useAutocomplete::selectNewValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
useAutocomplete::(anonymous)::getNextIndex (cognitive 18) packages/mui-material/src/useAutocomplete/useAutocomplete.js:488— useAutocomplete::(anonymous)::getNextIndex has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
useAutocomplete::handleFocusItem (cognitive 17) packages/mui-material/src/useAutocomplete/useAutocomplete.js:866— useAutocomplete::handleFocusItem has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
transformer (cognitive 18) packages/mui-codemod/src/deprecations/input-base-classes/input-base-classes.js:7— transformer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 18) packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7— transformer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 18) packages/mui-codemod/src/deprecations/slider-classes/slider-classes.js:7— transformer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Change-coupling hub: HooksApiContent.tsx → REDACTED, REDACTED, REDACTED packages-internal/core-docs/src/ApiPage/HooksApiContent.tsx— `packages-internal/core-docs/src/ApiPage/HooksApiContent.tsx` changes together with 3 other files — `REDACTED`, `REDACTED`, `REDACTED` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
Change-coupling hub: ClickAwayListener.tsx → useModal.ts, BasePopper.tsx, useSlider.ts, FocusTrap.tsx packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx— `packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx` changes together with 4 other files — `packages/mui-material/src/Modal/useModal.ts`, `packages/mui-material/src/Popper/BasePopper.tsx`, `packages/mui-material/src/Slider/useSlider.ts`, `packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
Change-coupling hub: useSlider.ts → useModal.ts, BasePopper.tsx, FocusTrap.tsx packages/mui-material/src/Slider/useSlider.ts— `packages/mui-material/src/Slider/useSlider.ts` changes together with 3 other files — `packages/mui-material/src/Modal/useModal.ts`, `packages/mui-material/src/Popper/BasePopper.tsx`, `packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
AC2 · Forms & labels· <RadioGroup> field component without a label · ×2
<RadioGroup> field component without a label docs/data/material/customization/css-theme-variables/ModernColorSpaces.tsx:42— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<RadioGroup> field component without a label docs/data/material/customization/focus-visible/FullFocusVisibleDemo.tsx:219— This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
DashboardSidebarPageItem.DashboardSidebarPageItem (cyclomatic 34) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebarPageItem.tsx:32— DashboardSidebarPageItem.DashboardSidebarPageItem has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DashboardSidebarPageItem.DashboardSidebarPageItem (cyclomatic 34) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebarPageItem.js:20— DashboardSidebarPageItem.DashboardSidebarPageItem has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DashboardSidebar.DashboardSidebar (cyclomatic 28) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebar.tsx:28— DashboardSidebar.DashboardSidebar has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 10 of the 28 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 124, 104, 56, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
DashboardSidebar.DashboardSidebar (cyclomatic 28) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebar.js:22— DashboardSidebar.DashboardSidebar has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 10 of the 28 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 118, 98, 50, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
getPropsFromComponentNode.getPropsFromVariableDeclaration (cyclomatic 22) packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:185— getPropsFromComponentNode.getPropsFromVariableDeclaration has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
getPropsFromComponentNode.getPropsFromVariableDeclaration (cyclomatic 22) packages-internal/docs-utils/src/getPropsFromComponentNode.ts:184— getPropsFromComponentNode.getPropsFromVariableDeclaration has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
top-level-imports.transformer (cyclomatic 19) packages/mui-codemod/src/v4.0.0/top-level-imports.js:3— top-level-imports.transformer has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 41, 23). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
top-level-imports.transformer (cyclomatic 19) packages/mui-codemod/src/v5.0.0/top-level-imports.js:5— top-level-imports.transformer has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 43, 25). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
GoogleMaps.GoogleMaps (cyclomatic 18) REDACTED:111— GoogleMaps.GoogleMaps has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 137, 154, 184, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
GoogleMaps.GoogleMaps (cyclomatic 18) REDACTED:126— GoogleMaps.GoogleMaps has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 153, 172, 202, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
EmployeeList.EmployeeList (cyclomatic 18) docs/data/material/getting-started/templates/crud-dashboard/components/EmployeeList.tsx:34— EmployeeList.EmployeeList has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 85, 107, 176, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
EmployeeList.EmployeeList (cyclomatic 18) docs/data/material/getting-started/templates/crud-dashboard/components/EmployeeList.js:24— EmployeeList.EmployeeList has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 72, 94, 163, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
employees.getMany (cyclomatic 16) docs/data/material/getting-started/templates/crud-dashboard/data/employees.ts:50— employees.getMany has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 70, 95, 65). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
employees.getMany (cyclomatic 16) docs/data/material/getting-started/templates/crud-dashboard/data/employees.js:39— employees.getMany has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 51, 82, 46). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
getPropsFromComponentNode.getPropsFromComponentNode (cyclomatic 16) packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:285— getPropsFromComponentNode.getPropsFromComponentNode has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 310). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
getPropsFromComponentNode.getPropsFromComponentNode (cyclomatic 16) packages-internal/docs-utils/src/getPropsFromComponentNode.ts:284— getPropsFromComponentNode.getPropsFromComponentNode has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 309). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
DashboardSidebarPageItem.DashboardSidebarPageItem (cognitive 36) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebarPageItem.tsx:32— DashboardSidebarPageItem.DashboardSidebarPageItem has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 17 (22 pts), boolean chains 10, if/else 4 (nesting depth added 5). Of this number, 35 points are the body's own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
DashboardSidebarPageItem.DashboardSidebarPageItem (cognitive 36) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebarPageItem.js:20— DashboardSidebarPageItem.DashboardSidebarPageItem has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 17 (22 pts), boolean chains 10, if/else 4 (nesting depth added 5). Of this number, 35 points are the body's own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
DashboardSidebar.DashboardSidebar (cognitive 30) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebar.tsx:28— DashboardSidebar.DashboardSidebar has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 8, if/else 6 (8 pts) (nesting depth added 3). Most of this is not in the body itself: 9 of the 30 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 124, 104, 56, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
DashboardSidebar.DashboardSidebar (cognitive 30) docs/data/material/getting-started/templates/crud-dashboard/components/DashboardSidebar.js:22— DashboardSidebar.DashboardSidebar has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 8, if/else 6 (8 pts) (nesting depth added 3). Most of this is not in the body itself: 9 of the 30 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 118, 98, 50, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 29) packages/mui-codemod/src/v5.0.0/date-pickers-moved-to-x.js:179— transformer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 189, 225, 212). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 29) packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7— transformer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (22 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 17). Most of this is not in the body itself: 0 of the 29 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 35, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
getPropsFromComponentNode.getPropsFromVariableDeclaration (cognitive 23) packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:185— getPropsFromComponentNode.getPropsFromVariableDeclaration has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
getPropsFromComponentNode.getPropsFromVariableDeclaration (cognitive 23) packages-internal/docs-utils/src/getPropsFromComponentNode.ts:184— getPropsFromComponentNode.getPropsFromVariableDeclaration has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
employees.getMany (cognitive 21) docs/data/material/getting-started/templates/crud-dashboard/data/employees.ts:50— employees.getMany has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 95, 65, 70). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
employees.getMany (cognitive 21) docs/data/material/getting-started/templates/crud-dashboard/data/employees.js:39— employees.getMany has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 82, 46, 51). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
GoogleMaps.GoogleMaps (cognitive 20) REDACTED:111— GoogleMaps.GoogleMaps has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5 (6 pts), boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 137, 154, 184, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
GoogleMaps.GoogleMaps (cognitive 20) REDACTED:126— GoogleMaps.GoogleMaps has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5 (6 pts), boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 153, 172, 202, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
EmployeeList.EmployeeList (cognitive 20) docs/data/material/getting-started/templates/crud-dashboard/components/EmployeeList.tsx:34— EmployeeList.EmployeeList has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, if/else 6, boolean chains 3, error handling 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 85, 107, 176, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
EmployeeList.EmployeeList (cognitive 20) docs/data/material/getting-started/templates/crud-dashboard/components/EmployeeList.js:24— EmployeeList.EmployeeList has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, if/else 6, boolean chains 3, error handling 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 72, 94, 163, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
top-level-imports.transformer (cognitive 19) packages/mui-codemod/src/v4.0.0/top-level-imports.js:3— top-level-imports.transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 41, 23). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
top-level-imports.transformer (cognitive 19) packages/mui-codemod/src/v5.0.0/top-level-imports.js:5— top-level-imports.transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 43, 25). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
getPropsFromComponentNode.getPropsFromComponentNode (cognitive 18) packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:285— getPropsFromComponentNode.getPropsFromComponentNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3 (nesting depth added 7). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 310). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
getPropsFromComponentNode.getPropsFromComponentNode (cognitive 18) packages-internal/docs-utils/src/getPropsFromComponentNode.ts:284— getPropsFromComponentNode.getPropsFromComponentNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3 (nesting depth added 7). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 309). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cognitive 17) packages/mui-material/src/Switch/Switch.js:175— (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 8. Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 189). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cognitive 17) packages/mui-material/src/Tab/Tab.js:53— (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 17. Of this number, 9 points are the body's own statements and 8 belong to 9 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
(anonymous) (cognitive 16) packages/mui-material/src/Slide/Slide.js:339— (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5 (nesting depth added 6). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
(anonymous) (cognitive 16) packages/mui-material/src/ButtonGroup/ButtonGroup.js:66— (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, ternaries 4. Of this number, 14 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Duplicated block (46 lines × 2 locations) packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7— packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7 · packages/mui-codemod/src/deprecations/dialog-classes/dialog-classes.js:7 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Duplicated block (46 lines × 2 locations) packages/mui-material/src/locale/csCZ.ts:4— packages/mui-material/src/locale/csCZ.ts:4 · packages/mui-material/src/locale/skSK.ts:4 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Boundary violation [package:undeclared-workspace-dep] packages-internal/api-docs-builder-core/materialUi/projectSettings.ts:4— packages-internal/api-docs-builder-core/materialUi/projectSettings.ts:4 imports @mui/utils/generateUtilityClass, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies.
Boundary violation [package:undeclared-workspace-dep] packages-internal/api-docs-builder-core/muiSystem/projectSettings.ts:4— packages-internal/api-docs-builder-core/muiSystem/projectSettings.ts:4 imports @mui/utils/generateUtilityClass, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies.
useAutocomplete.useAutocomplete (cyclomatic 327) packages/mui-material/src/useAutocomplete/useAutocomplete.js:82— useAutocomplete.useAutocomplete has cyclomatic complexity 327 (threshold 15). Of this number, 46 points are the body's own statements and 281 belong to 47 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
brandingTheme.getThemedComponents (cyclomatic 241) packages-internal/core-docs/src/branding/brandingTheme.ts:412— brandingTheme.getThemedComponents has cyclomatic complexity 241 (threshold 15). Most of this is not in the body itself: 1 of the 241 points is its own statement and the rest belongs to 22 function literals inside it that branch (lines 531, 1084, 417, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
SelectInput.SelectInput (cyclomatic 131) packages/mui-material/src/Select/SelectInput.js:137— SelectInput.SelectInput has cyclomatic complexity 131 (threshold 15). Of this number, 30 points are the body's own statements and 101 belong to 26 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
useSlider.useSlider (cyclomatic 120) packages/mui-material/src/Slider/useSlider.ts:197— useSlider.useSlider has cyclomatic complexity 120 (threshold 15). Most of this is not in the body itself: 10 of the 120 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 386, 335, 508, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
jss-to-styled.transformer (cyclomatic 109) packages/mui-codemod/src/v5.0.0/jss-to-styled.js:7— jss-to-styled.transformer has cyclomatic complexity 109 (threshold 15). Of this number, 57 points are the body's own statements and 52 belong to 19 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
migrateToVariants.migrateToVariants (cyclomatic 105) packages/mui-codemod/src/util/migrateToVariants.js:182— migrateToVariants.migrateToVariants has cyclomatic complexity 105 (threshold 15). Of this number, 28 points are the body's own statements and 77 belong to 11 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
createThemeWithVars.createThemeWithVars (cyclomatic 105) packages/mui-material/src/styles/createThemeWithVars.js:128— createThemeWithVars.createThemeWithVars has cyclomatic complexity 105 (threshold 15). Of this number, 18 points are the body's own statements and 87 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
sx-v6.sxV6 (cyclomatic 102) packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:33— sx-v6.sxV6 has cyclomatic complexity 102 (threshold 15). Most of this is not in the body itself: 5 of the 102 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 57, 511, 449, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Tabs.Tabs (cyclomatic 91) packages/mui-material/src/Tabs/Tabs.js:250— Tabs.Tabs has cyclomatic complexity 91 (threshold 15). Of this number, 20 points are the body's own statements and 71 belong to 16 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SwipeableDrawer.SwipeableDrawer (cyclomatic 87) packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js:139— SwipeableDrawer.SwipeableDrawer has cyclomatic complexity 87 (threshold 15). Most of this is not in the body itself: 10 of the 87 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 347, 488, 244, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AppSearch.AppSearch (cyclomatic 73) packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:222— AppSearch.AppSearch has cyclomatic complexity 73 (threshold 15). Most of this is not in the body itself: 12 of the 73 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 428, 731, 266, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Tooltip (cyclomatic 64) packages/mui-material/src/Tooltip/Tooltip.js:231— Tooltip has cyclomatic complexity 64 (threshold 15). Of this number, 25 points are the body's own statements and 39 belong to 28 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
getPropTypesFromFile.checkType (cyclomatic 62) packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts:248— getPropTypesFromFile.checkType has cyclomatic complexity 62 (threshold 15). Of this number, 53 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
sxV6::(anonymous)::recurseObjectExpression (cyclomatic 62) packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:180— sxV6::(anonymous)::recurseObjectExpression has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
InputBase.InputBase (cyclomatic 60) packages/mui-material/src/InputBase/InputBase.js:268— InputBase.InputBase has cyclomatic complexity 60 (threshold 15). Of this number, 21 points are the body's own statements and 39 belong to 12 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
createCssVarsProvider.createCssVarsProvider (cyclomatic 57) packages/mui-system/src/cssVars/createCssVarsProvider.tsx:128— createCssVarsProvider.createCssVarsProvider has cyclomatic complexity 57 (threshold 15). Of this number, 29 points are the body's own statements and 28 belong to 8 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
generatePropTypes.generatePropTypes (cyclomatic 56) packages-internal/scripts/typescript-to-proptypes/src/generatePropTypes.ts:104— generatePropTypes.generatePropTypes has cyclomatic complexity 56 (threshold 15). Of this number, 48 points are the body's own statements and 8 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
injectPropTypesInFile.createBabelPlugin (cyclomatic 56) packages-internal/scripts/typescript-to-proptypes/src/injectPropTypesInFile.ts:134— injectPropTypesInFile.createBabelPlugin has cyclomatic complexity 56 (threshold 15). Of this number, 34 points are the body's own statements and 22 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Transition.Transition (cyclomatic 55) packages/mui-material/src/internal/Transition.tsx:100— Transition.Transition has cyclomatic complexity 55 (threshold 15). Most of this is not in the body itself: 7 of the 55 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 394, 216, 372, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
FocusTrap.FocusTrap (cyclomatic 52) packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx:129— FocusTrap.FocusTrap has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 3 of the 52 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 283, 218, 161, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Autocomplete (cyclomatic 52) packages/mui-material/src/Autocomplete/Autocomplete.js:432— Autocomplete has cyclomatic complexity 52 (threshold 15). Of this number, 41 points are the body's own statements and 11 belong to 15 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MaterialDesignComponents.buildTheme (cyclomatic 51) docs/src/components/home/MaterialDesignComponents.tsx:212— MaterialDesignComponents.buildTheme has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 368, 288, 335, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cyclomatic 49) packages/mui-material/src/Chip/Chip.js:66— (anonymous) has cyclomatic complexity 49 (threshold 15). Of this number, 30 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
demoLoader (cyclomatic 47) packages-internal/markdown/loader.mjs:120— demoLoader has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 3 of the 47 points are its own statements and the rest belongs to 29 function items inside it that branch ((anonymous), detectRelativeImports, (anonymous)::(anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
jss-to-tss-react.transformer (cyclomatic 45) packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js:191— jss-to-tss-react.transformer has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 6 of the 45 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 204, 298, 376, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
removeSystemProps.removeSystemProps (cyclomatic 45) packages/mui-codemod/src/v9.0.0/system-props/removeSystemProps.js:148— removeSystemProps.removeSystemProps has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 5 of the 45 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 246, 265, 214, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
migrateToVariants::(anonymous)::recurseObjectExpression (cyclomatic 44) packages/mui-codemod/src/util/migrateToVariants.js:413— migrateToVariants::(anonymous)::recurseObjectExpression has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MenuList (cyclomatic 42) packages/mui-material/src/MenuList/MenuList.js:78— MenuList has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to 13 function items inside it that branch ((anonymous), (anonymous), (anonymous)::adjustStyleForScrollbar, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
(anonymous) (cyclomatic 41) packages/mui-material/src/PaginationItem/PaginationItem.js:110— (anonymous) has cyclomatic complexity 41 (threshold 15). Of this number, 23 points are the body's own statements and 18 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
TablePaginationActions (cyclomatic 39) packages/mui-material/src/TablePaginationActions/TablePaginationActions.js:59— TablePaginationActions has cyclomatic complexity 39 (threshold 15). Of this number, 28 points are the body's own statements and 11 belong to 8 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
HookApiBuilder.annotateHookDefinition (cyclomatic 38) packages-internal/api-docs-builder/src/ApiBuilders/HookApiBuilder.ts:29— HookApiBuilder.annotateHookDefinition has cyclomatic complexity 38 (threshold 15). Of this number, 32 points are the body's own statements and 6 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
useButtonBase.useButtonBase (cyclomatic 38) packages/mui-material/src/ButtonBase/useButtonBase.ts:105— useButtonBase.useButtonBase has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 134, 210, 269, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Popover.Popover (cyclomatic 38) packages/mui-material/src/Popover/Popover.js:95— Popover.Popover has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 8 of the 38 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 200, 140, 284, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
useCurrentColorScheme.useCurrentColorScheme (cyclomatic 38) packages/mui-system/src/cssVars/useCurrentColorScheme.ts:114— useCurrentColorScheme.useCurrentColorScheme has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 6 of the 38 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 289, 214, 183, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ButtonBase (cyclomatic 38) packages/mui-material/src/ButtonBase/ButtonBase.js:90— ButtonBase has cyclomatic complexity 38 (threshold 15). Of this number, 18 points are the body's own statements and 20 belong to 10 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ComponentApiBuilder.annotateComponentDefinition (cyclomatic 37) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:76— ComponentApiBuilder.annotateComponentDefinition has cyclomatic complexity 37 (threshold 15). Of this number, 31 points are the body's own statements and 6 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
grid-v2-props.gridV2Props (cyclomatic 37) packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js:14— grid-v2-props.gridV2Props has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 5 of the 37 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 63, 82, 46, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
grid-props.gridV2Props (cyclomatic 37) packages/mui-codemod/src/v7.0.0/grid-props/grid-props.js:14— grid-props.gridV2Props has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 5 of the 37 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 63, 82, 46, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
removeSystemProps.removeSystemProps (cyclomatic 35) packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:138— removeSystemProps.removeSystemProps has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 197, 216, 165, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Masonry.Masonry (cyclomatic 35) packages/mui-lab/src/Masonry/Masonry.tsx:234— Masonry.Masonry has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 5 of the 35 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 318, 283, 370, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
joy-text-field-to-input.transformer (cyclomatic 34) packages/mui-codemod/src/v5.0.0/joy-text-field-to-input.js:5— joy-text-field-to-input.transformer has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 51, 34, 24, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Chip.Chip (cyclomatic 34) packages/mui-material/src/Chip/Chip.js:377— Chip.Chip has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
createStyled.createStyled (cyclomatic 34) packages/mui-system/src/createStyled/createStyled.ts:152— createStyled.createStyled has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 172, 255, 223, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cyclomatic 34) packages/mui-material/src/Button/Button.js:95— (anonymous) has cyclomatic complexity 34 (threshold 15). Of this number, 23 points are the body's own statements and 11 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
LinearProgress (cyclomatic 34) packages/mui-material/src/LinearProgress/LinearProgress.js:421— LinearProgress has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SpeedDial.SpeedDial (cyclomatic 32) packages/mui-material/src/SpeedDial/SpeedDial.js:151— SpeedDial.SpeedDial has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 3 of the 32 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 236, 278, 323, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
PricingCards.PlanPrice (cyclomatic 31) docs/src/components/pricing/PricingCards.tsx:254— PricingCards.PlanPrice has cyclomatic complexity 31 (threshold 15). Of this number, 27 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Rating.Rating (cyclomatic 31) packages/mui-material/src/Rating/Rating.js:369— Rating.Rating has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 7 of the 31 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 424, 491, 459, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
generateProptypes.generateProptypes (cyclomatic 31) scripts/generateProptypes.ts:150— generateProptypes.generateProptypes has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 158, 230, 262, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
styled-v6.styledV6 (cyclomatic 30) packages/mui-codemod/src/v6.0.0/styled/styled-v6.js:7— styled-v6.styledV6 has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 82, 14, 54, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ComponentApiBuilder.generateComponentApi (cyclomatic 29) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:714— ComponentApiBuilder.generateComponentApi has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
theme-color-functions.transformer (cyclomatic 29) packages/mui-codemod/src/v7.0.0/theme-color-functions/theme-color-functions.js:5— theme-color-functions.transformer has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 166, 77, 28, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AppLayoutDocsFooter.AppLayoutDocsFooter (cyclomatic 28) packages-internal/core-docs/src/AppLayout/layout/AppLayoutDocsFooter.tsx:143— AppLayoutDocsFooter.AppLayoutDocsFooter has cyclomatic complexity 28 (threshold 15). Of this number, 18 points are the body's own statements and 10 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
createRender (cyclomatic 28) packages-internal/markdown/parseMarkdown.mjs:293— createRender has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to 9 function items inside it that branch (render::heading, render::code, render::link, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
Collapse (cyclomatic 28) packages/mui-material/src/Collapse/Collapse.js:137— Collapse has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous), (anonymous), (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
HeaderNavBar.HeaderNavBar (cyclomatic 27) docs/src/components/header/HeaderNavBar.tsx:135— HeaderNavBar.HeaderNavBar has cyclomatic complexity 27 (threshold 15). Of this number, 17 points are the body's own statements and 10 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
getPropTypesFromFile.checkSymbol (cyclomatic 27) packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts:542— getPropTypesFromFile.checkSymbol has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
jss-to-tss-react.transformStylesExpression (cyclomatic 27) packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js:49— jss-to-tss-react.transformStylesExpression has cyclomatic complexity 27 (threshold 15). Of this number, 15 points are the body's own statements and 12 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
createTheme.createTheme (cyclomatic 27) packages/mui-material/src/styles/createTheme.ts:66— createTheme.createTheme has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
TextareaAutosize.TextareaAutosize (cyclomatic 27) packages/mui-material/src/TextareaAutosize/TextareaAutosize.tsx:60— TextareaAutosize.TextareaAutosize has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 72, 144, 131, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AppNavDrawerItem.Item (cyclomatic 26) packages-internal/core-docs/src/AppLayout/navigation/AppNavDrawerItem.tsx:25— AppNavDrawerItem.Item has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
index.buildLlmsDocs (cyclomatic 26) scripts/buildLlmsDocs/index.ts:436— index.buildLlmsDocs has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ComponentApiBuilder.attachPropsTable (cyclomatic 25) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:498— ComponentApiBuilder.attachPropsTable has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 505). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
useModal.useModal (cyclomatic 25) packages/mui-material/src/Modal/useModal.ts:31— useModal.useModal has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 6 of the 25 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 87, 121, 113, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
useRovingTabIndex.useRovingTabIndexRoot (cyclomatic 25) packages/mui-utils/src/useRovingTabIndex/useRovingTabIndex.ts:198— useRovingTabIndex.useRovingTabIndexRoot has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 336, 264, 275, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
MiniTableOfContents.MiniTableOfContents (cyclomatic 24) packages-internal/core-docs/src/TableOfContents/MiniTableOfContents.tsx:150— MiniTableOfContents.MiniTableOfContents has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 231, 166, 203, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
base-remove-component-prop.transformer (cyclomatic 24) packages/mui-codemod/src/v5.0.0/base-remove-component-prop.js:5— base-remove-component-prop.transformer has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 25, 16). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cyclomatic 24) packages/mui-material/src/ToggleButton/ToggleButton.js:46— (anonymous) has cyclomatic complexity 24 (threshold 15). Of this number, 16 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
prepareMarkdown.prepareMarkdown (cyclomatic 23) packages-internal/markdown/prepareMarkdown.mjs:78— prepareMarkdown.prepareMarkdown has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 91, 173, 90, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
processApi.processApiJson (cyclomatic 23) packages-internal/scripts/generate-llms-txt/src/processApi.ts:239— processApi.processApiJson has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
createPalette.createPalette (cyclomatic 23) packages/mui-material/src/styles/createPalette.js:211— createPalette.createPalette has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TextField.TextField (cyclomatic 23) packages/mui-material/src/TextField/TextField.js:75— TextField.TextField has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
resolveProps.resolveProps (cyclomatic 23) packages/mui-utils/src/resolveProps/resolveProps.ts:12— resolveProps.resolveProps has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
(anonymous) (cyclomatic 23) packages/mui-material/src/Tab/Tab.js:53— (anonymous) has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 9 function items inside it that branch (props, props, props, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
XGridGlobalStyles.XGridGlobalStyles (cyclomatic 22) docs/src/components/home/XGridGlobalStyles.tsx:4— XGridGlobalStyles.XGridGlobalStyles has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 13). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
PropertiesList.PropertiesList (cyclomatic 22) REDACTED:115— PropertiesList.PropertiesList has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 120, 223). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
theme-v6.themeV6 (cyclomatic 22) packages/mui-codemod/src/v6.0.0/theme-v6/theme-v6.js:8— theme-v6.themeV6 has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 15, 88, 43, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
mergeSlotProps.mergeSlotProps (cyclomatic 22) packages/mui-material/src/utils/mergeSlotProps.ts:5— mergeSlotProps.mergeSlotProps has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body's own statements and 11 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
spacing.createUnaryUnit (cyclomatic 22) packages/mui-system/src/spacing/spacing.ts:101— spacing.createUnaryUnit has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 116, 143). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
prepareCssVars.prepareCssVars (cyclomatic 22) packages/mui-system/src/cssVars/prepareCssVars.ts:9— prepareCssVars.prepareCssVars has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body's own statements and 9 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SelectInput::handleClosedTypeahead (cyclomatic 22) packages/mui-material/src/Select/SelectInput.js:543— SelectInput::handleClosedTypeahead has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
MarkdownDocsV2.MarkdownDocsV2 (cyclomatic 21) docs/src/modules/components/MarkdownDocsV2.js:39— MarkdownDocsV2.MarkdownDocsV2 has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
generatePropDescription.generatePropDescription (cyclomatic 21) packages-internal/api-docs-builder/src/utils/generatePropDescription.ts:83— generatePropDescription.generatePropDescription has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body's own statements and 5 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Ad.Ad (cyclomatic 21) packages-internal/core-docs/src/Ad/Ad.tsx:113— Ad.Ad has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 147, 191, 212, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Notifications.Notifications (cyclomatic 21) packages-internal/core-docs/src/AppLayout/layout/Notifications.tsx:60— Notifications.Notifications has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 74, 87, 111, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
optimal-imports.transformer (cyclomatic 21) packages/mui-codemod/src/v5.0.0/optimal-imports.js:5— optimal-imports.transformer has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 56, 26, 19). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Slide.Slide (cyclomatic 21) packages/mui-material/src/Slide/Slide.js:113— Slide.Slide has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 286, 242, 150, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
usePagination.usePagination (cyclomatic 21) packages/mui-material/src/usePagination/usePagination.js:4— usePagination.usePagination has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 117, 101, 29). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Slider.Slider (cyclomatic 21) packages/mui-material/src/Slider/Slider.js:563— Slider.Slider has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 722, 773, 721). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
createGrid.createGrid (cyclomatic 21) packages/mui-system/src/Grid/createGrid.tsx:44— createGrid.createGrid has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 119, 175, 60, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AppNavDrawerItem.AppNavDrawerItem (cyclomatic 20) packages-internal/core-docs/src/AppLayout/navigation/AppNavDrawerItem.tsx:313— AppNavDrawerItem.AppNavDrawerItem has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ApiPage.ApiPage (cyclomatic 20) REDACTED:85— ApiPage.ApiPage has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
injectPropTypesInFile.getUsedProps (cyclomatic 20) packages-internal/scripts/typescript-to-proptypes/src/injectPropTypesInFile.ts:57— injectPropTypesInFile.getUsedProps has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
optimal-imports.transformer (cyclomatic 20) packages/mui-codemod/src/v4.0.0/optimal-imports.js:5— optimal-imports.transformer has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 49, 26, 19). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cyclomatic 20) packages/mui-material/src/FilledInput/FilledInput.js:61— (anonymous) has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body's own statements and 5 belong to 8 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TablePagination (cyclomatic 20) packages/mui-material/src/TablePagination/TablePagination.js:156— TablePagination has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body's own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
CustomersSpotlight.Spotlight (cyclomatic 19) docs/src/components/customers/CustomersSpotlight.tsx:18— CustomersSpotlight.Spotlight has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 75, 51, 45, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
XDataGrid.XDataGrid (cyclomatic 19) docs/src/components/productX/XDataGrid.tsx:58— XDataGrid.XDataGrid has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 75, 82). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
defaultPropsHandler.getDefaultValue (cyclomatic 19) packages-internal/api-docs-builder/src/utils/defaultPropsHandler.ts:64— defaultPropsHandler.getDefaultValue has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
generatePropTypeDescription.generatePropTypeDescription (cyclomatic 19) packages-internal/api-docs-builder/src/utils/generatePropTypeDescription.ts:69— generatePropTypeDescription.generatePropTypeDescription has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PropertiesTable.PropertiesTable (cyclomatic 19) REDACTED:138— PropertiesTable.PropertiesTable has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 156, 262). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
BasePopper.PopperTooltip (cyclomatic 19) packages/mui-material/src/Popper/BasePopper.tsx:74— BasePopper.PopperTooltip has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 123, 117, 198). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
TableCell.TableCell (cyclomatic 19) packages/mui-material/src/TableCell/TableCell.js:174— TableCell.TableCell has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
useFocusableWhenDisabled.useFocusableWhenDisabled (cyclomatic 18) packages/mui-material/src/utils/useFocusableWhenDisabled.ts:33— useFocusableWhenDisabled.useFocusableWhenDisabled has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 49). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cyclomatic 18) packages/mui-material/src/Switch/Switch.js:175— (anonymous) has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 189). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
blog.Blog (cyclomatic 17) docs/pages/blog.tsx:186— blog.Blog has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 299, 384, 200, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
defaultPropsHandler.getExplicitPropsDeclaration (cyclomatic 17) packages-internal/api-docs-builder/src/utils/defaultPropsHandler.ts:197— defaultPropsHandler.getExplicitPropsDeclaration has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ComponentApiBuilder.generateApiPage (cyclomatic 17) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:305— ComponentApiBuilder.generateApiPage has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
brandingTheme.getDesignTokens (cyclomatic 17) packages-internal/core-docs/src/branding/brandingTheme.ts:186— brandingTheme.getDesignTokens has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
typography-props.transformer (cyclomatic 17) packages/mui-codemod/src/deprecations/typography-props/typography-props.js:9— typography-props.transformer has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 17, 80, 19, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
material-design-icons.myDestRewriter (cyclomatic 17) packages/mui-icons-material/renameFilters/material-design-icons.mjs:26— material-design-icons.myDestRewriter has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SwitchBase.SwitchBase (cyclomatic 17) packages/mui-material/src/internal/SwitchBase.js:83— SwitchBase.SwitchBase has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 117, 127, 137). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Tabs::getTabsMeta (cyclomatic 17) packages/mui-material/src/Tabs/Tabs.js:352— Tabs::getTabsMeta has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Button (cyclomatic 17) packages/mui-material/src/Button/Button.js:501— Button has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
CircularProgress (cyclomatic 17) packages/mui-material/src/CircularProgress/CircularProgress.js:223— CircularProgress has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MaterialDesignComponents.Grid (cyclomatic 16) docs/src/components/home/MaterialDesignComponents.tsx:39— MaterialDesignComponents.Grid has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
AppTableOfContents.AppTableOfContents (cyclomatic 16) REDACTED:85— AppTableOfContents.AppTableOfContents has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 94, 142, 160, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
list-item-button-prop.transformer (cyclomatic 16) packages/mui-codemod/src/v6.0.0/list-item-button-prop/list-item-button-prop.js:8— list-item-button-prop.transformer has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 101, 47, 83, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
FormControl.FormControl (cyclomatic 16) packages/mui-material/src/FormControl/FormControl.js:93— FormControl.FormControl has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 134, 155, 128, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
InputBase.useUtilityClasses (cyclomatic 16) packages/mui-material/src/InputBase/InputBase.js:50— InputBase.useUtilityClasses has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Grow.Grow (cyclomatic 16) packages/mui-material/src/Grow/Grow.js:34— Grow.Grow has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 114, 61, 166). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ClickAwayListener.ClickAwayListener (cyclomatic 16) packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx:70— ClickAwayListener.ClickAwayListener has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 102, 146, 164, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
useAutocomplete::selectNewValue (cyclomatic 16) packages/mui-material/src/useAutocomplete/useAutocomplete.js:788— useAutocomplete::selectNewValue has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
(anonymous) (cyclomatic 16) packages/mui-material/src/AppBar/AppBar.js:42— (anonymous) has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
HackComment docs/src/components/pricing/PricingTable.tsx:1531— // Hack to keep nested grid aligned with others — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
FixmeComment packages/mui-material/src/TextField/TextField.spec.tsx:55— // FIXME this no longer generates an error in TS 3.2, see https://github.com/Microsoft/TypeScript/issues/28926
useAutocomplete.useAutocomplete (cognitive 361) packages/mui-material/src/useAutocomplete/useAutocomplete.js:82— useAutocomplete.useAutocomplete has cognitive complexity 361 (threshold 15). Drivers by points: if/else 155 (235 pts), boolean chains 91, ternaries 19 (31 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 93). Of this number, 45 points are the body's own statements and 316 belong to 47 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
brandingTheme.getThemedComponents (cognitive 230) packages-internal/core-docs/src/branding/brandingTheme.ts:412— brandingTheme.getThemedComponents has cognitive complexity 230 (threshold 15). Drivers by points: boolean chains 230. Most of this is not in the body itself: 0 of the 230 points are its own statements and the rest belongs to 22 function literals inside it that branch (lines 1084, 531, 417, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
sx-v6.sxV6 (cognitive 212) packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:33— sx-v6.sxV6 has cognitive complexity 212 (threshold 15). Drivers by points: if/else 71 (174 pts), boolean chains 31, ternaries 3 (7 pts) (nesting depth added 107). Most of this is not in the body itself: 5 of the 212 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 57, 511, 449, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
transformer (cognitive 201) packages/mui-codemod/src/v5.0.0/jss-to-styled.js:7— transformer has cognitive complexity 201 (threshold 15). Drivers by points: if/else 85 (170 pts), boolean chains 18, ternaries 6 (13 pts) (nesting depth added 92). Most of this is not in the body itself: 13 of the 201 points are its own statements and the rest belongs to 50 function items inside it that branch (getRootClassKeys::(anonymous), getReturnStatement, (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
migrateToVariants.migrateToVariants (cognitive 199) packages/mui-codemod/src/util/migrateToVariants.js:182— migrateToVariants.migrateToVariants has cognitive complexity 199 (threshold 15). Drivers by points: if/else 73 (164 pts), boolean chains 23, ternaries 4 (8 pts), loops 2 (4 pts) (nesting depth added 97). Of this number, 41 points are the body's own statements and 158 belong to 11 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
createThemeWithVars.createThemeWithVars (cognitive 184) packages/mui-material/src/styles/createThemeWithVars.js:128— createThemeWithVars.createThemeWithVars has cognitive complexity 184 (threshold 15). Drivers by points: ternaries 67 (137 pts), if/else 24 (37 pts), boolean chains 10 (nesting depth added 83). Of this number, 16 points are the body's own statements and 168 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SelectInput (cognitive 150) packages/mui-material/src/Select/SelectInput.js:137— SelectInput has cognitive complexity 150 (threshold 15). Drivers by points: if/else 77 (97 pts), boolean chains 26, ternaries 19 (25 pts), other 2 (nesting depth added 26). Of this number, 38 points are the body's own statements and 112 belong to 51 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
useSlider.useSlider (cognitive 146) packages/mui-material/src/Slider/useSlider.ts:197— useSlider.useSlider has cognitive complexity 146 (threshold 15). Drivers by points: if/else 71 (97 pts), boolean chains 26, ternaries 9 (15 pts), loops 3 (4 pts), match/switch 1 (3 pts), error handling 1 (nesting depth added 35). Most of this is not in the body itself: 8 of the 146 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 386, 335, 721, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
sxV6::(anonymous)::recurseObjectExpression (cognitive 137) packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:180— sxV6::(anonymous)::recurseObjectExpression has cognitive complexity 137 (threshold 15). Drivers by points: if/else 41 (112 pts), boolean chains 22, ternaries 1 (3 pts) (nesting depth added 73). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SwipeableDrawer (cognitive 120) packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js:139— SwipeableDrawer has cognitive complexity 120 (threshold 15). Drivers by points: if/else 48 (69 pts), boolean chains 26, ternaries 14 (25 pts) (nesting depth added 32). Most of this is not in the body itself: 7 of the 120 points are its own statements and the rest belongs to 13 function items inside it that branch ((anonymous), (anonymous), (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
Tabs.Tabs (cognitive 103) packages/mui-material/src/Tabs/Tabs.js:250— Tabs.Tabs has cognitive complexity 103 (threshold 15). Drivers by points: if/else 37 (57 pts), boolean chains 23, ternaries 17 (22 pts), loops 1 (nesting depth added 25). Of this number, 21 points are the body's own statements and 82 belong to 16 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
migrateToVariants::(anonymous)::recurseObjectExpression (cognitive 93) packages/mui-codemod/src/util/migrateToVariants.js:413— migrateToVariants::(anonymous)::recurseObjectExpression has cognitive complexity 93 (threshold 15). Drivers by points: if/else 27 (79 pts), boolean chains 8, ternaries 2 (6 pts) (nesting depth added 56). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
loader.demoLoader (cognitive 91) packages-internal/markdown/loader.mjs:120— loader.demoLoader has cognitive complexity 91 (threshold 15). Drivers by points: if/else 28 (54 pts), error handling 10 (20 pts), loops 3 (9 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 44). Of this number, 24 points are the body's own statements and 67 belong to 10 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
jss-to-tss-react.transformer (cognitive 87) packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js:191— jss-to-tss-react.transformer has cognitive complexity 87 (threshold 15). Drivers by points: if/else 35 (71 pts), boolean chains 9, ternaries 3 (7 pts) (nesting depth added 40). Most of this is not in the body itself: 5 of the 87 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 376, 204, 298, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
injectPropTypesInFile.createBabelPlugin (cognitive 79) packages-internal/scripts/typescript-to-proptypes/src/injectPropTypesInFile.ts:134— injectPropTypesInFile.createBabelPlugin has cognitive complexity 79 (threshold 15). Drivers by points: if/else 36 (59 pts), boolean chains 14, loops 1 (3 pts), ternaries 3 (nesting depth added 25). Of this number, 41 points are the body's own statements and 38 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Tooltip (cognitive 75) packages/mui-material/src/Tooltip/Tooltip.js:231— Tooltip has cognitive complexity 75 (threshold 15). Drivers by points: if/else 35 (42 pts), ternaries 11 (16 pts), boolean chains 15, other 2 (nesting depth added 12). Of this number, 31 points are the body's own statements and 44 belong to 28 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
generatePropTypes.generatePropTypes (cognitive 74) packages-internal/scripts/typescript-to-proptypes/src/generatePropTypes.ts:104— generatePropTypes.generatePropTypes has cognitive complexity 74 (threshold 15). Drivers by points: if/else 30 (39 pts), ternaries 13 (23 pts), boolean chains 12 (nesting depth added 19). Of this number, 62 points are the body's own statements and 12 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
createCssVarsProvider.createCssVarsProvider (cognitive 72) packages/mui-system/src/cssVars/createCssVarsProvider.tsx:128— createCssVarsProvider.createCssVarsProvider has cognitive complexity 72 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 18, ternaries 13 (16 pts) (nesting depth added 17). Of this number, 28 points are the body's own statements and 44 belong to 8 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
InputBase (cognitive 72) packages/mui-material/src/InputBase/InputBase.js:268— InputBase has cognitive complexity 72 (threshold 15). Drivers by points: if/else 36 (48 pts), boolean chains 20, ternaries 4 (nesting depth added 12). Of this number, 27 points are the body's own statements and 45 belong to 13 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AppSearch.AppSearch (cognitive 70) packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:222— AppSearch.AppSearch has cognitive complexity 70 (threshold 15). Drivers by points: boolean chains 53, if/else 9 (11 pts), ternaries 4, loops 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 12 of the 70 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 428, 731, 311, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
jss-to-tss-react.transformStylesExpression (cognitive 70) packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js:49— jss-to-tss-react.transformStylesExpression has cognitive complexity 70 (threshold 15). Drivers by points: if/else 25 (66 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 42). Of this number, 30 points are the body's own statements and 40 belong to 4 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
getPropTypesFromFile.checkType (cognitive 69) packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts:248— getPropTypesFromFile.checkType has cognitive complexity 69 (threshold 15). Drivers by points: if/else 29 (46 pts), boolean chains 12, ternaries 5 (10 pts), match/switch 1 (nesting depth added 22). Of this number, 61 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Transition.Transition (cognitive 69) packages/mui-material/src/internal/Transition.tsx:100— Transition.Transition has cognitive complexity 69 (threshold 15). Drivers by points: if/else 35 (46 pts), boolean chains 15, ternaries 5 (8 pts) (nesting depth added 14). Most of this is not in the body itself: 6 of the 69 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 394, 216, 372, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ComponentApiBuilder.generateComponentApi (cognitive 62) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:714— ComponentApiBuilder.generateComponentApi has cognitive complexity 62 (threshold 15). Drivers by points: if/else 18 (52 pts), boolean chains 5, loops 1 (3 pts), error handling 2 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
FocusTrap.FocusTrap (cognitive 62) packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx:129— FocusTrap.FocusTrap has cognitive complexity 62 (threshold 15). Drivers by points: if/else 36 (48 pts), boolean chains 12, ternaries 2 (nesting depth added 12). Most of this is not in the body itself: 2 of the 62 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 283, 218, 161, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
LinearProgress (cognitive 55) packages/mui-material/src/LinearProgress/LinearProgress.js:421— LinearProgress has cognitive complexity 55 (threshold 15). Drivers by points: if/else 16 (37 pts), boolean chains 8, ternaries 4 (8 pts), other 2 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HookApiBuilder.annotateHookDefinition (cognitive 53) packages-internal/api-docs-builder/src/ApiBuilders/HookApiBuilder.ts:29— HookApiBuilder.annotateHookDefinition has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (35 pts), ternaries 8 (11 pts), boolean chains 7 (nesting depth added 12). Of this number, 41 points are the body's own statements and 12 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
useCurrentColorScheme.useCurrentColorScheme (cognitive 53) packages/mui-system/src/cssVars/useCurrentColorScheme.ts:114— useCurrentColorScheme.useCurrentColorScheme has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 13, ternaries 7 (10 pts) (nesting depth added 15). Most of this is not in the body itself: 5 of the 53 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 214, 289, 183, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
removeSystemProps (cognitive 52) packages/mui-codemod/src/v9.0.0/system-props/removeSystemProps.js:148— removeSystemProps has cognitive complexity 52 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 12, ternaries 2 (4 pts) (nesting depth added 15). Most of this is not in the body itself: 4 of the 52 points are its own statements and the rest belongs to 13 function items inside it that branch ((anonymous), (anonymous)::(anonymous), (anonymous)::(anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
Autocomplete.Autocomplete (cognitive 51) packages/mui-material/src/Autocomplete/Autocomplete.js:432— Autocomplete.Autocomplete has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 18, ternaries 11 (14 pts) (nesting depth added 9). Of this number, 40 points are the body's own statements and 11 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MaterialDesignComponents.buildTheme (cognitive 50) docs/src/components/home/MaterialDesignComponents.tsx:212— MaterialDesignComponents.buildTheme has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 50. Most of this is not in the body itself: 0 of the 50 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 368, 288, 335, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ComponentApiBuilder.annotateComponentDefinition (cognitive 49) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:76— ComponentApiBuilder.annotateComponentDefinition has cognitive complexity 49 (threshold 15). Drivers by points: if/else 25 (33 pts), ternaries 8 (10 pts), boolean chains 6 (nesting depth added 10). Of this number, 38 points are the body's own statements and 11 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
index.buildLlmsDocs (cognitive 48) scripts/buildLlmsDocs/index.ts:436— index.buildLlmsDocs has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 5 (9 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
grid-v2-props.gridV2Props (cognitive 47) packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js:14— grid-v2-props.gridV2Props has cognitive complexity 47 (threshold 15). Drivers by points: if/else 25 (35 pts), boolean chains 11, ternaries 1 (nesting depth added 10). Most of this is not in the body itself: 4 of the 47 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 63, 82, 46, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
grid-props.gridV2Props (cognitive 47) packages/mui-codemod/src/v7.0.0/grid-props/grid-props.js:14— grid-props.gridV2Props has cognitive complexity 47 (threshold 15). Drivers by points: if/else 25 (35 pts), boolean chains 11, ternaries 1 (nesting depth added 10). Most of this is not in the body itself: 4 of the 47 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 63, 82, 46, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
useButtonBase.useButtonBase (cognitive 47) packages/mui-material/src/ButtonBase/useButtonBase.ts:105— useButtonBase.useButtonBase has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 9, ternaries 2 (3 pts) (nesting depth added 12). Most of this is not in the body itself: 1 of the 47 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 134, 210, 269, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
MenuList (cognitive 46) packages/mui-material/src/MenuList/MenuList.js:78— MenuList has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 14, ternaries 1 (3 pts), other 2 (nesting depth added 9). Most of this is not in the body itself: 0 of the 46 points are its own statements and the rest belongs to 13 function items inside it that branch ((anonymous), (anonymous), (anonymous)::adjustStyleForScrollbar, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
(anonymous) (cognitive 45) packages/mui-material/src/Chip/Chip.js:66— (anonymous) has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 40, ternaries 5. Of this number, 26 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
removeSystemProps (cognitive 45) packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:138— removeSystemProps has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 11, ternaries 2 (4 pts) (nesting depth added 13). Most of this is not in the body itself: 2 of the 45 points are its own statements and the rest belongs to 11 function items inside it that branch ((anonymous), (anonymous)::(anonymous), (anonymous)::(anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
joy-text-field-to-input.transformer (cognitive 43) packages/mui-codemod/src/v5.0.0/joy-text-field-to-input.js:5— joy-text-field-to-input.transformer has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (30 pts), match/switch 3 (10 pts), boolean chains 3 (nesting depth added 24). Most of this is not in the body itself: 0 of the 43 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 24, 34, 51, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
createTheme.createTheme (cognitive 41) packages/mui-material/src/styles/createTheme.ts:66— createTheme.createTheme has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 10, ternaries 3 (5 pts) (nesting depth added 16). Of this number, 38 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
resolveProps.resolveProps (cognitive 41) packages/mui-utils/src/resolveProps/resolveProps.ts:12— resolveProps.resolveProps has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 6, loops 2 (6 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SpeedDial (cognitive 41) packages/mui-material/src/SpeedDial/SpeedDial.js:151— SpeedDial has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 6, ternaries 5 (6 pts) (nesting depth added 8). Most of this is not in the body itself: 2 of the 41 points are its own statements and the rest belongs to 19 function items inside it that branch (handleKeyDown, handleClose, handleClick, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
createStyled.createStyled (cognitive 40) packages/mui-system/src/createStyled/createStyled.ts:152— createStyled.createStyled has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 6 (11 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 0 of the 40 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 172, 255, 239, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
PricingCards.PlanPrice (cognitive 38) docs/src/components/pricing/PricingCards.tsx:254— PricingCards.PlanPrice has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (20 pts), ternaries 6 (10 pts), boolean chains 8 (nesting depth added 7). Of this number, 33 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
getPropTypesFromFile.checkSymbol (cognitive 38) packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts:542— getPropTypesFromFile.checkSymbol has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 9, ternaries 2 (6 pts), loops 1 (3 pts) (nesting depth added 16). Of this number, 32 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Masonry.Masonry (cognitive 38) packages/mui-lab/src/Masonry/Masonry.tsx:234— Masonry.Masonry has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 9, ternaries 3 (5 pts), loops 1 (nesting depth added 7). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 318, 283, 370, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Popover (cognitive 38) packages/mui-material/src/Popover/Popover.js:95— Popover has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 9, ternaries 5 (nesting depth added 5). Most of this is not in the body itself: 7 of the 38 points are its own statements and the rest belongs to 17 function items inside it that branch ((anonymous), (anonymous), (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
transformer (cognitive 38) packages/mui-codemod/src/v7.0.0/theme-color-functions/theme-color-functions.js:5— transformer has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 11). Most of this is not in the body itself: 6 of the 38 points are its own statements and the rest belongs to 11 function items inside it that branch ((anonymous)::(anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
HeaderNavBar.HeaderNavBar (cognitive 37) docs/src/components/header/HeaderNavBar.tsx:135— HeaderNavBar.HeaderNavBar has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (27 pts), ternaries 7, boolean chains 3 (nesting depth added 10). Of this number, 19 points are the body's own statements and 18 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
spacing.createUnaryUnit (cognitive 37) packages/mui-system/src/spacing/spacing.ts:101— spacing.createUnaryUnit has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 4 (nesting depth added 16). Most of this is not in the body itself: 5 of the 37 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 116, 143). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Chip (cognitive 36) packages/mui-material/src/Chip/Chip.js:377— Chip has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 16, if/else 10 (12 pts), ternaries 7 (8 pts) (nesting depth added 3). Of this number, 28 points are the body's own statements and 8 belong to 7 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
(anonymous) (cognitive 36) packages/mui-material/src/PaginationItem/PaginationItem.js:110— (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 34, ternaries 2. Of this number, 20 points are the body's own statements and 16 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
TablePaginationActions (cognitive 36) packages/mui-material/src/TablePaginationActions/TablePaginationActions.js:59— TablePaginationActions has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 14, boolean chains 10, other 8, if/else 4. Of this number, 27 points are the body's own statements and 9 belong to 8 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ButtonBase (cognitive 34) packages/mui-material/src/ButtonBase/ButtonBase.js:90— ButtonBase has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 10, ternaries 4 (5 pts), other 2 (nesting depth added 3). Of this number, 18 points are the body's own statements and 16 belong to 10 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
defaultPropsHandler.getDefaultValue (cognitive 33) packages-internal/api-docs-builder/src/utils/defaultPropsHandler.ts:64— defaultPropsHandler.getDefaultValue has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Rating.Rating (cognitive 33) packages/mui-material/src/Rating/Rating.js:369— Rating.Rating has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16, ternaries 6 (9 pts), boolean chains 8 (nesting depth added 3). Most of this is not in the body itself: 5 of the 33 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 424, 491, 459, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cognitive 33) packages/mui-material/src/Button/Button.js:95— (anonymous) has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 27, ternaries 5, other 1. Of this number, 22 points are the body's own statements and 11 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
styled-v6.styledV6 (cognitive 32) packages/mui-codemod/src/v6.0.0/styled/styled-v6.js:7— styled-v6.styledV6 has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 3 of the 32 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 54, 82, 14, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
XDataGrid.XDataGrid (cognitive 31) docs/src/components/productX/XDataGrid.tsx:58— XDataGrid.XDataGrid has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 6 (nesting depth added 14). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 75, 82). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AppLayoutDocsFooter.AppLayoutDocsFooter (cognitive 31) packages-internal/core-docs/src/AppLayout/layout/AppLayoutDocsFooter.tsx:143— AppLayoutDocsFooter.AppLayoutDocsFooter has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 10 (13 pts), if/else 9 (10 pts), boolean chains 8 (nesting depth added 4). Of this number, 20 points are the body's own statements and 11 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
base-remove-component-prop.transformer (cognitive 31) packages/mui-codemod/src/v5.0.0/base-remove-component-prop.js:5— base-remove-component-prop.transformer has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 8 (nesting depth added 8). Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 25, 16). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
theme-v6.themeV6 (cognitive 31) packages/mui-codemod/src/v6.0.0/theme-v6/theme-v6.js:8— theme-v6.themeV6 has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 11). Most of this is not in the body itself: 3 of the 31 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 15, 43, 88, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
movePropIntoSlotProps.moveJsxPropIntoSlotProps (cognitive 30) packages/mui-codemod/src/deprecations/utils/movePropIntoSlotProps.js:6— movePropIntoSlotProps.moveJsxPropIntoSlotProps has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 3 (9 pts), boolean chains 1 (nesting depth added 17). Most of this is not in the body itself: 8 of the 30 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 19, 8). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
createRender (cognitive 30) packages-internal/markdown/parseMarkdown.mjs:293— createRender has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 7 (8 pts), boolean chains 5 (nesting depth added 3). Most of this is not in the body itself: 0 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch (render::heading, render::code, render::link, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
prepareCssVars.prepareCssVars (cognitive 29) packages/mui-system/src/cssVars/prepareCssVars.ts:9— prepareCssVars.prepareCssVars has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 8). Of this number, 18 points are the body's own statements and 11 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Tabs::getTabsMeta (cognitive 29) packages/mui-material/src/Tabs/Tabs.js:352— Tabs::getTabsMeta has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), ternaries 2 (8 pts), boolean chains 3 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Collapse (cognitive 28) packages/mui-material/src/Collapse/Collapse.js:137— Collapse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11, ternaries 10, boolean chains 5, other 2. Most of this is not in the body itself: 6 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous), (anonymous), (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
transformer (cognitive 28) packages/mui-codemod/src/deprecations/tabs-classes/tabs-classes.js:7— transformer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 2 (9 pts), boolean chains 3 (nesting depth added 17). Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
processApi.processApiJson (cognitive 27) packages-internal/scripts/generate-llms-txt/src/processApi.ts:239— processApi.processApiJson has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 5 (9 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
createPalette (cognitive 27) packages/mui-material/src/styles/createPalette.js:211— createPalette has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, ternaries 3 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 11 of the 27 points are its own statements and the rest belongs to 2 function items inside it that branch (augmentColor, getContrastText). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
prepareMarkdown.prepareMarkdown (cognitive 26) packages-internal/markdown/prepareMarkdown.mjs:78— prepareMarkdown.prepareMarkdown has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 7, ternaries 3 (5 pts), error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 91, 173, 90, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
generateProptypes.generateProptypes (cognitive 26) scripts/generateProptypes.ts:150— generateProptypes.generateProptypes has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 11 (12 pts), ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 230, 255, 262, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Notifications.Notifications (cognitive 25) packages-internal/core-docs/src/AppLayout/layout/Notifications.tsx:60— Notifications.Notifications has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 6 (8 pts), boolean chains 4 (nesting depth added 6). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 87, 121, 74, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AppNavDrawerItem.Item (cognitive 25) packages-internal/core-docs/src/AppLayout/navigation/AppNavDrawerItem.tsx:25— AppNavDrawerItem.Item has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 24, ternaries 1. Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
AppTableOfContents.AppTableOfContents (cognitive 24) REDACTED:85— AppTableOfContents.AppTableOfContents has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (nesting depth added 8). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 94, 142, 160, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
jss-to-tss-react.transformNestedKeys (cognitive 24) packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js:3— jss-to-tss-react.transformNestedKeys has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 1 (4 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 14). Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 4). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
createStyled.processStyleVariants (cognitive 24) packages/mui-system/src/createStyled/createStyled.ts:111— createStyled.processStyleVariants has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
index.findComponentsToProcess (cognitive 24) scripts/buildLlmsDocs/index.ts:117— index.findComponentsToProcess has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 3 (9 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 13). Of this number, 19 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
generatePropTypeDescription.generatePropTypeDescription (cognitive 23) packages-internal/api-docs-builder/src/utils/generatePropTypeDescription.ts:69— generatePropTypeDescription.generatePropTypeDescription has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 10). Of this number, 21 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MiniTableOfContents.MiniTableOfContents (cognitive 23) packages-internal/core-docs/src/TableOfContents/MiniTableOfContents.tsx:150— MiniTableOfContents.MiniTableOfContents has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 8, ternaries 6. Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 231, 166, 203, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
traverseBreakpoints.traverseBreakpoints (cognitive 23) packages/mui-system/src/Grid/traverseBreakpoints.ts:10— traverseBreakpoints.traverseBreakpoints has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 10). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 19, 38, 43). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
TextField (cognitive 23) packages/mui-material/src/TextField/TextField.js:75— TextField has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), ternaries 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
generatePropDescription.generatePropDescription (cognitive 22) packages-internal/api-docs-builder/src/utils/generatePropDescription.ts:83— generatePropDescription.generatePropDescription has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 8 (nesting depth added 5). Of this number, 18 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ComponentApiBuilder.attachPropsTable (cognitive 22) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:498— ComponentApiBuilder.attachPropsTable has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 505). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
Ad.Ad (cognitive 22) packages-internal/core-docs/src/Ad/Ad.tsx:113— Ad.Ad has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 7, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 147, 191, 212, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
createGetSelector.default (cognitive 22) packages/mui-material/src/styles/createGetSelector.ts:3— createGetSelector.default has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3 (nesting depth added 8). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 14). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
mergeSlotProps.mergeSlotProps (cognitive 22) packages/mui-material/src/utils/mergeSlotProps.ts:5— mergeSlotProps.mergeSlotProps has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 5). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 35, 20). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
useModal.useModal (cognitive 22) packages/mui-material/src/Modal/useModal.ts:31— useModal.useModal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 6, ternaries 1. Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 87, 113, 121, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
index.generateLlmsTxt (cognitive 22) scripts/buildLlmsDocs/index.ts:345— index.generateLlmsTxt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (6 pts), loops 3 (4 pts) (nesting depth added 10). Of this number, 19 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Slider (cognitive 22) packages/mui-material/src/Slider/Slider.js:563— Slider has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, ternaries 7 (9 pts), if/else 2 (nesting depth added 2). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 722, 773, 721, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
XGridGlobalStyles.XGridGlobalStyles (cognitive 21) docs/src/components/home/XGridGlobalStyles.tsx:4— XGridGlobalStyles.XGridGlobalStyles has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 13). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
MarkdownDocsV2.MarkdownDocsV2 (cognitive 21) docs/src/modules/components/MarkdownDocsV2.js:39— MarkdownDocsV2.MarkdownDocsV2 has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 5 (6 pts), loops 1 (nesting depth added 2). Of this number, 18 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
defaultPropsHandler.getExplicitPropsDeclaration (cognitive 21) packages-internal/api-docs-builder/src/utils/defaultPropsHandler.ts:197— defaultPropsHandler.getExplicitPropsDeclaration has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
injectPropTypesInFile.getUsedProps (cognitive 21) packages-internal/scripts/typescript-to-proptypes/src/injectPropTypesInFile.ts:57— injectPropTypesInFile.getUsedProps has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6 (nesting depth added 5). Of this number, 13 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
useRovingTabIndex.useRovingTabIndexRoot (cognitive 21) packages/mui-utils/src/useRovingTabIndex/useRovingTabIndex.ts:198— useRovingTabIndex.useRovingTabIndexRoot has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, ternaries 3, match/switch 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 336, 264, 275, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Slide (cognitive 21) packages/mui-material/src/Slide/Slide.js:113— Slide has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, boolean chains 6, ternaries 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 286, 150, 242, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
(anonymous) (cognitive 21) packages/mui-material/src/ToggleButton/ToggleButton.js:46— (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 21. Of this number, 14 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
FormControl (cognitive 21) packages/mui-material/src/FormControl/FormControl.js:93— FormControl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 11 function items inside it that branch ((anonymous)::(anonymous), (anonymous)::(anonymous), (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
CoreShowcase.CoreShowcase (cognitive 20) docs/src/components/home/CoreShowcase.tsx:24— CoreShowcase.CoreShowcase has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (18 pts), boolean chains 1, if/else 1 (nesting depth added 8). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 30). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
autocomplete-props.transformer (cognitive 20) packages/mui-codemod/src/deprecations/autocomplete-props/autocomplete-props.js:316— autocomplete-props.transformer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 368, 395, 452, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
joy-avatar-remove-imgProps.transformer (cognitive 20) packages/mui-codemod/src/v5.0.0/joy-avatar-remove-imgProps.js:5— joy-avatar-remove-imgProps.transformer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4 (nesting depth added 7). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 39, 21, 27, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
optimal-imports.transformer (cognitive 20) packages/mui-codemod/src/v5.0.0/optimal-imports.js:5— optimal-imports.transformer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, error handling 1, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 56, 26, 19). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
TextareaAutosize.TextareaAutosize (cognitive 20) packages/mui-material/src/TextareaAutosize/TextareaAutosize.tsx:60— TextareaAutosize.TextareaAutosize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 6. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 72, 207, 131, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
TableCell (cognitive 20) packages/mui-material/src/TableCell/TableCell.js:174— TableCell has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, ternaries 4 (6 pts), if/else 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
transformer (cognitive 20) packages/mui-codemod/src/deprecations/typography-props/typography-props.js:9— transformer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 12 function items inside it that branch ((anonymous), (anonymous), (anonymous)::(anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
AppNavDrawerItem.AppNavDrawerItem (cognitive 19) packages-internal/core-docs/src/AppLayout/navigation/AppNavDrawerItem.tsx:313— AppNavDrawerItem.AppNavDrawerItem has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, ternaries 7, if/else 3. Of this number, 16 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
PropertiesList.PropertiesList (cognitive 19) REDACTED:115— PropertiesList.PropertiesList has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, if/else 1, ternaries 1. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 120, 223). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
movePropIntoSlotProps.moveDefaultPropsPropIntoslotProps (cognitive 19) packages/mui-codemod/src/deprecations/utils/movePropIntoSlotProps.js:74— movePropIntoSlotProps.moveDefaultPropsPropIntoslotProps has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (5 pts) (nesting depth added 9). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 86, 81). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
avatar-group-props.transformer (cognitive 19) packages/mui-codemod/src/deprecations/avatar-group-props/avatar-group-props.js:9— avatar-group-props.transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1 (nesting depth added 9). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 62, 24, 26). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
optimal-imports.transformer (cognitive 19) packages/mui-codemod/src/v4.0.0/optimal-imports.js:5— optimal-imports.transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 49, 26, 19). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
path-imports.transformer (cognitive 19) packages/mui-codemod/src/v5.0.0/path-imports.js:7— path-imports.transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3 (nesting depth added 5). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 52, 27). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
createTransitions.createTransitions (cognitive 19) packages/mui-material/src/styles/createTransitions.js:49— createTransitions.createTransitions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, ternaries 3 (nesting depth added 6). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 63, 108). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
usePagination.usePagination (cognitive 19) packages/mui-material/src/usePagination/usePagination.js:4— usePagination.usePagination has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10 (13 pts), boolean chains 3, if/else 2, match/switch 1 (nesting depth added 3). Of this number, 10 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
breakpoints.iterateBreakpoints (cognitive 19) packages/mui-system/src/breakpoints/breakpoints.ts:64— breakpoints.iterateBreakpoints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), ternaries 1 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
createStack.style (cognitive 19) packages/mui-system/src/Stack/createStack.tsx:75— createStack.style has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 95, 120, 130). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
index.findNonComponentMarkdownFiles (cognitive 19) scripts/buildLlmsDocs/index.ts:223— index.findNonComponentMarkdownFiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (nesting depth added 9). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
demoLoader::detectRelativeImports (cognitive 19) packages-internal/markdown/loader.mjs:221— demoLoader::detectRelativeImports has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TablePagination (cognitive 19) packages/mui-material/src/TablePagination/TablePagination.js:156— TablePagination has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, ternaries 8, if/else 2, other 1. Of this number, 14 points are the body's own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
CircularProgress (cognitive 19) packages/mui-material/src/CircularProgress/CircularProgress.js:223— CircularProgress has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, other 3, ternaries 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
transformer (cognitive 19) packages/mui-codemod/src/deprecations/dialog-classes/dialog-classes.js:7— transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 32, 21, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
defaultPropsHandler.getRenderBody (cognitive 18) packages-internal/api-docs-builder/src/utils/defaultPropsHandler.ts:161— defaultPropsHandler.getRenderBody has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5 (nesting depth added 7). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ComponentApiBuilder.generateApiPage (cognitive 18) packages-internal/api-docs-builder/src/ApiBuilders/ComponentApiBuilder.ts:305— ComponentApiBuilder.generateApiPage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (6 pts), if/else 5 (nesting depth added 2). Of this number, 13 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
ApiPage.ApiPage (cognitive 18) REDACTED:85— ApiPage.ApiPage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, ternaries 7, if/else 3. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
createThemeNoVars.createThemeNoVars (cognitive 18) packages/mui-material/src/styles/createThemeNoVars.js:76— createThemeNoVars.createThemeNoVars has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 147, 184). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
TouchRipple.TouchRipple (cognitive 18) packages/mui-material/src/ButtonBase/TouchRipple.js:261— TouchRipple.TouchRipple has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, ternaries 2 (nesting depth added 3). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 346, 389, 285, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
BasePopper.PopperTooltip (cognitive 18) packages/mui-material/src/Popper/BasePopper.tsx:74— BasePopper.PopperTooltip has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 123, 198, 117). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
styleFunctionSx.unstable_createStyleFunctionSx (cognitive 18) packages/mui-system/src/styleFunctionSx/styleFunctionSx.ts:99— styleFunctionSx.unstable_createStyleFunctionSx has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
(anonymous) (cognitive 18) packages/mui-material/src/FilledInput/FilledInput.js:61— (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10, boolean chains 8. Of this number, 14 points are the body's own statements and 4 belong to 8 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
computeRippleState (cognitive 18) packages/mui-material/src/ButtonBase/TouchRipple.js:72— computeRippleState has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 5 (6 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
babel-plugin-jsx-preview.babelPluginJsxPreview (cognitive 17) docs/src/modules/utils/babel-plugin-jsx-preview.js:8— babel-plugin-jsx-preview.babelPluginJsxPreview has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
badge-overlap-value.transformer (cognitive 17) packages/mui-codemod/src/v5.0.0/badge-overlap-value.js:5— badge-overlap-value.transformer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (nesting depth added 6). Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 14, 31). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
SwitchBase.SwitchBase (cognitive 17) packages/mui-material/src/internal/SwitchBase.js:83— SwitchBase.SwitchBase has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 117, 127, 137). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
useReactVersion.main (cognitive 17) scripts/useReactVersion.mjs:29— useReactVersion.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 50, 86, 104). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ToggleButtonGroup (cognitive 17) packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js:136— ToggleButtonGroup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 3 (4 pts), boolean chains 3 (nesting depth added 2). Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch ((anonymous), getButtonPositionClassName, (anonymous), …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
Grow (cognitive 17) packages/mui-material/src/Grow/Grow.js:34— Grow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 3. Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 114, 61, 166, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
createTransitions::createTransitionValue (cognitive 17) packages/mui-material/src/styles/createTransitions.js:63— createTransitions::createTransitionValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
brandingTheme.getDesignTokens (cognitive 16) packages-internal/core-docs/src/branding/brandingTheme.ts:186— brandingTheme.getDesignTokens has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, ternaries 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
PropertiesTable.PropertiesTable (cognitive 16) REDACTED:138— PropertiesTable.PropertiesTable has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, ternaries 2. Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 156, 262). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
propsToObject.propsToObject (cognitive 16) packages/mui-codemod/src/util/propsToObject.js:1— propsToObject.propsToObject has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, ternaries 2 (nesting depth added 4). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 18, 22). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
tree-view-moved-to-x.transformer (cognitive 16) packages/mui-codemod/src/v5.0.0/tree-view-moved-to-x.js:44— tree-view-moved-to-x.transformer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 54, 87, 75). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
material-design-icons.myDestRewriter (cognitive 16) packages/mui-icons-material/renameFilters/material-design-icons.mjs:26— material-design-icons.myDestRewriter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
useFocusableWhenDisabled.useFocusableWhenDisabled (cognitive 16) packages/mui-material/src/utils/useFocusableWhenDisabled.ts:33— useFocusableWhenDisabled.useFocusableWhenDisabled has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 49). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
Change coupling clique: ExpandableApiItem.tsx, REDACTED, ClassesTable.tsx, REDACTED packages-internal/core-docs/src/ApiPage/list/ExpandableApiItem.tsx— 4 files — `packages-internal/core-docs/src/ApiPage/list/ExpandableApiItem.tsx`, `REDACTED`, `packages-internal/core-docs/src/ApiPage/table/ClassesTable.tsx`, `REDACTED` — all change together with no explicit dependency: a fully-connected co-change clique, not 6 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
P3 · Security & performance tooling· SAST runs, but gates no merge · ×1
SAST runs, but gates no merge — `codeql.yml`, `scorecards.yml` run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) — the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it.
Type Safety — 1262 typed · 1348 plain JS — the untyped files are packages-internal/api-docs-builder/src/utils/replaceUrl.test.js, packages-internal/core-docs/src/DocsApp/VersionsContext.js, packages-internal/core-docs/src/findActivePage/findActivePage.test.js, packages-internal/core-docs/src/helpers/helpers.test.js, packages-internal/core-docs/src/utils/getProductInfoFromUrl.test.js, packages-internal/markdown/apiPageTranslationLoader.mjs (+1342 more). 1 production file(s) opt out entirely with @ts-nocheck · 30 @ts-ignore suppression(s); the opted-out files are packages/mui-stylis-plugin-rtl/src/index.ts.
Duplication concentrated across 122 sibling directories (210 clone groups) packages/mui-material/src/ListItemButton/ListItemButton.js:40— 210 duplicated blocks under packages/mui-material/src/ have copies in at least two of the sibling directories Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertTitle (+116 more sibling(s) not listed) — 104 of them are reported below, and 106 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 210 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 210 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 210 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 8 sibling directories (39 clone groups) packages/mui-styled-engine-sc/src/index.ts:415— 39 duplicated blocks under packages/ have copies in at least two of the sibling directories mui-lab, mui-material, mui-material-nextjs, mui-styled-engine, mui-styled-engine-sc, mui-system (+2 more sibling(s) not listed) — 30 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 39 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 39 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 39 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 59 sibling directories (21 clone groups) packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7— 21 duplicated blocks under packages/mui-codemod/src/deprecations/ have copies in at least two of the sibling directories accordion-props, accordion-summary-classes, alert-classes, alert-props, autocomplete-props, avatar-group-props (+53 more sibling(s) not listed) — 16 of them are reported below, and 5 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 21 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 21 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 21 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 8 sibling directories (15 clone groups) packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:2— 15 duplicated blocks under packages/mui-codemod/src/ have copies in at least two of the sibling directories deprecations, util, v1.0.0, v4.0.0, v5.0.0, v6.0.0 (+2 more sibling(s) not listed) — 12 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 36 sibling directories (10 clone groups) packages/mui-lab/src/TimelineContent/TimelineContent.tsx:39— 10 duplicated blocks under packages/mui-lab/src/ have copies in at least two of the sibling directories AdapterDateFns, AdapterDayjs, AdapterLuxon, AdapterMoment, CalendarPicker, CalendarPickerSkeleton (+30 more sibling(s) not listed) — 9 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 10 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 10 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 10 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Wholesale file copy (214 identical lines × 2 files) packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:2— packages/mui-codemod/src/v6.0.0/system-props/removeSystemProps.js:2 · packages/mui-codemod/src/v9.0.0/system-props/removeSystemProps.js:2 — these 2 files are line-for-line copies of one another — 214 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
Wholesale file copy (183 identical lines × 2 files) packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:1— packages-internal/api-docs-builder/src/utils/getPropsFromComponentNode.ts:1 · packages-internal/docs-utils/src/getPropsFromComponentNode.ts:1 — these 2 files are line-for-line copies of one another — 183 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication· Duplicated block with local edits (167 matched lines × 2 locations) · ×1
Duplicated block with local edits (167 matched lines × 2 locations) packages/mui-material/src/ListItemButton/ListItemButton.js:40— packages/mui-material/src/ListItemButton/ListItemButton.js:40 · packages/mui-material/src/MenuItem/MenuItem.js:44 — the two spans are one implementation copied and then locally edited — 908 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (165 matched lines × 2 locations) · ×1
Duplicated block with local edits (165 matched lines × 2 locations) packages/mui-material/src/ButtonGroup/ButtonGroup.js:17— packages/mui-material/src/ButtonGroup/ButtonGroup.js:17 · packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.js:38 — the two spans are one implementation copied and then locally edited — 846 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Wholesale file copy (139 identical lines × 2 files) packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js:2— packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js:2 · packages/mui-codemod/src/v7.0.0/grid-props/grid-props.js:2 — these 2 files are line-for-line copies of one another — 139 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication· Duplicated block with local edits (134 matched lines × 2 locations) · ×1
Duplicated block with local edits (134 matched lines × 2 locations) packages/mui-codemod/src/util/migrateToVariants.js:426— packages/mui-codemod/src/util/migrateToVariants.js:426 · packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:262 — the two spans are one implementation copied and then locally edited — 912 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (130 matched lines × 2 locations) · ×1
Duplicated block with local edits (130 matched lines × 2 locations) packages/mui-material/src/Checkbox/Checkbox.js:55— packages/mui-material/src/Checkbox/Checkbox.js:55 · packages/mui-material/src/Radio/Radio.js:45 — the two spans are one implementation copied and then locally edited — 731 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Wholesale file copy (115 identical lines × 2 files) packages/mui-material/src/Fade/Fade.js:2— packages/mui-material/src/Fade/Fade.js:2 · packages/mui-material/src/Zoom/Zoom.js:2 — these 2 files are line-for-line copies of one another — 115 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
Duplicated block (109 lines × 3 locations) packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7— packages/mui-codemod/src/deprecations/button-classes/button-classes.js:7 · packages/mui-codemod/src/deprecations/input-base-classes/input-base-classes.js:7 · packages/mui-codemod/src/deprecations/slider-classes/slider-classes.js:7 — the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication· Duplicated block with local edits (108 matched lines × 2 locations) · ×1
Duplicated block with local edits (108 matched lines × 2 locations) REDACTED:96— REDACTED:96 · REDACTED:120 — the two spans are one implementation copied and then locally edited — 481 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (100 lines × 2 locations) packages/mui-material/src/styles/createThemeWithVars.js:262— packages/mui-material/src/styles/createThemeWithVars.js:262 · packages/mui-material/src/styles/createThemeWithVars.js:586 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication· Duplicated block with local edits (91 matched lines × 2 locations) · ×1
Duplicated block with local edits (91 matched lines × 2 locations) packages/mui-material/src/ListItem/ListItem.js:16— packages/mui-material/src/ListItem/ListItem.js:16 · packages/mui-material/src/ListItemButton/ListItemButton.js:18 — the two spans are one implementation copied and then locally edited — 438 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (87 matched lines × 2 locations) · ×1
Duplicated block with local edits (87 matched lines × 2 locations) packages/mui-material/src/Icon/Icon.js:13— packages/mui-material/src/Icon/Icon.js:13 · packages/mui-material/src/SvgIcon/SvgIcon.js:13 — the two spans are one implementation copied and then locally edited — 416 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (79 matched lines × 2 locations) · ×1
Duplicated block with local edits (79 matched lines × 2 locations) packages/mui-codemod/src/v4.0.0/optimal-imports.js:5— packages/mui-codemod/src/v4.0.0/optimal-imports.js:5 · packages/mui-codemod/src/v5.0.0/optimal-imports.js:5 — the two spans are one implementation copied and then locally edited — 504 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (76 matched lines × 2 locations) · ×1
Duplicated block with local edits (76 matched lines × 2 locations) REDACTED:31— REDACTED:31 · packages-internal/core-docs/src/ApiPage/HooksApiContent.tsx:23 — the two spans are one implementation copied and then locally edited — 451 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (76 lines × 2 locations) packages/mui-material/src/locale/hrHR.ts:4— packages/mui-material/src/locale/hrHR.ts:4 · packages/mui-material/src/locale/srRS.ts:4 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited.
Duplicated block (75 lines × 10 locations) packages/mui-codemod/src/deprecations/button-group-classes/button-group-classes.js:7— packages/mui-codemod/src/deprecations/button-group-classes/button-group-classes.js:7 · packages/mui-codemod/src/deprecations/chip-classes/chip-classes.js:7 · packages/mui-codemod/src/deprecations/circular-progress-classes/circular-progress-classes.js:7 · packages/mui-codemod/src/deprecations/drawer-classes/drawer-classes.js:7 · +6 more site(s) not listed — the 10 copies are spread across 10 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Duplicated block (74 lines × 2 locations) packages/mui-material/src/Popper/BasePopper.tsx:429— packages/mui-material/src/Popper/BasePopper.tsx:429 · packages/mui-material/src/Popper/Popper.tsx:136 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases.
Duplicated block (72 lines × 2 locations) packages/mui-codemod/src/deprecations/alert-classes/alert-classes.js:7— packages/mui-codemod/src/deprecations/alert-classes/alert-classes.js:7 · packages/mui-codemod/src/deprecations/pagination-item-classes/pagination-item-classes.js:7 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Duplicated block (69 lines × 3 locations) packages/mui-material/src/locale/arEG.ts:4— packages/mui-material/src/locale/arEG.ts:4 · packages/mui-material/src/locale/arSA.ts:4 · packages/mui-material/src/locale/arSD.ts:4 — the 3 copies are spread across 3 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited.
Wholesale file copy (66 identical lines × 2 files) packages-internal/api-docs-builder/src/utils/createTypeScriptProject.ts:1— packages-internal/api-docs-builder/src/utils/createTypeScriptProject.ts:1 · packages-internal/docs-utils/src/createTypeScriptProject.ts:1 — these 2 files are line-for-line copies of one another — 66 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
Duplicated block (63 lines × 2 locations) packages/mui-codemod/src/v4.0.0/top-level-imports.js:13— packages/mui-codemod/src/v4.0.0/top-level-imports.js:13 · packages/mui-codemod/src/v5.0.0/top-level-imports.js:14 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication· Duplicated block with local edits (62 matched lines × 2 locations) · ×1
Duplicated block with local edits (62 matched lines × 2 locations) packages-internal/core-docs/src/codeStyling/codeStyling.tsx:5— packages-internal/core-docs/src/codeStyling/codeStyling.tsx:5 · packages-internal/core-docs/src/codeVariant/codeVariant.tsx:5 — the two spans are one implementation copied and then locally edited — 413 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (56 lines × 2 locations) packages/mui-lab/src/TimelineContent/TimelineContent.tsx:39— packages/mui-lab/src/TimelineContent/TimelineContent.tsx:39 · packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.tsx:39 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication· Duplicated block with local edits (55 matched lines × 2 locations) · ×1
Duplicated block with local edits (55 matched lines × 2 locations) packages/mui-codemod/src/deprecations/utils/movePropIntoSlotProps.js:6— packages/mui-codemod/src/deprecations/utils/movePropIntoSlotProps.js:6 · packages/mui-codemod/src/deprecations/utils/movePropIntoSlots.js:6 — the two spans are one implementation copied and then locally edited — 421 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (54 lines × 2 locations) packages/mui-material/src/FilledInput/FilledInput.js:327— packages/mui-material/src/FilledInput/FilledInput.js:327 · packages/mui-material/src/Input/Input.js:187 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication· Duplicated block with local edits (53 matched lines × 2 locations) · ×1
Duplicated block with local edits (53 matched lines × 2 locations) packages/mui-codemod/src/deprecations/all/deprecations-all.js:62— packages/mui-codemod/src/deprecations/all/deprecations-all.js:62 · packages/mui-codemod/src/v5.0.0/preset-safe.js:56 — the two spans are one implementation copied and then locally edited — 664 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (53 lines × 2 locations) packages/mui-styled-engine-sc/src/index.ts:415— packages/mui-styled-engine-sc/src/index.ts:415 · packages/mui-styled-engine/src/index.ts:233 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
Duplicated block (52 lines × 2 locations) packages/mui-material/src/Grid/Grid.tsx:144— packages/mui-material/src/Grid/Grid.tsx:144 · packages/mui-system/src/Grid/Grid.tsx:14 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases.
R10 · Code Duplication· Duplicated block with local edits (51 matched lines × 2 locations) · ×1
Duplicated block with local edits (51 matched lines × 2 locations) packages/mui-material/src/PigmentGrid/PigmentGrid.tsx:137— packages/mui-material/src/PigmentGrid/PigmentGrid.tsx:137 · packages/mui-system/src/Grid/createGrid.tsx:189 — the two spans are one implementation copied and then locally edited — 321 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (47 lines × 3 locations) packages/mui-material/src/locale/plPL.ts:4— packages/mui-material/src/locale/plPL.ts:4 · packages/mui-material/src/locale/ruRU.ts:4 · packages/mui-material/src/locale/ukUA.ts:4 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication· Duplicated block with local edits (46 matched lines × 2 locations) · ×1
Duplicated block with local edits (46 matched lines × 2 locations) packages/mui-material/src/FilledInput/FilledInput.js:37— packages/mui-material/src/FilledInput/FilledInput.js:37 · packages/mui-material/src/Input/Input.js:28 — the two spans are one implementation copied and then locally edited — 267 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (41 lines × 4 locations) packages/mui-material/src/locale/mkMK.ts:4— packages/mui-material/src/locale/mkMK.ts:4 · packages/mui-material/src/locale/msMS.ts:4 · packages/mui-material/src/locale/myMY.ts:4 · packages/mui-material/src/locale/neNP.ts:4 — the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Complex function (anonymous) (cyclomatic 80, cognitive 103) packages/mui-material/src/useAutocomplete/useAutocomplete.js:916— (anonymous) has cyclomatic complexity 80 and cognitive complexity 103; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 70, cognitive 133) packages/mui-material/src/styles/createThemeWithVars.js:205— (anonymous) has cyclomatic complexity 70 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function recurseObjectExpression (cyclomatic 62, cognitive 137) packages/mui-codemod/src/v6.0.0/sx-prop/sx-v6.js:180— recurseObjectExpression has cyclomatic complexity 62 and cognitive complexity 137; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function checkType (cyclomatic 53, cognitive 61) packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts:248— checkType has cyclomatic complexity 53 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function root (cyclomatic 52, cognitive 47) packages-internal/core-docs/src/branding/brandingTheme.ts:1084— root has cyclomatic complexity 52 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function root (cyclomatic 52, cognitive 43) packages-internal/core-docs/src/branding/brandingTheme.ts:531— root has cyclomatic complexity 52 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function recurseObjectExpression (cyclomatic 44, cognitive 93) packages/mui-codemod/src/util/migrateToVariants.js:413— recurseObjectExpression has cyclomatic complexity 44 and cognitive complexity 93; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function Demo (cyclomatic 41, cognitive 40) packages-internal/core-docs/src/Demo/Demo.tsx:408— Demo has cyclomatic complexity 41 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function Autocomplete (cyclomatic 41, cognitive 40) packages/mui-material/src/Autocomplete/Autocomplete.js:432— Autocomplete has cyclomatic complexity 41 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 36, cognitive 57) packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js:347— (anonymous) has cyclomatic complexity 36 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function LinearProgress (cyclomatic 34, cognitive 55) packages/mui-material/src/LinearProgress/LinearProgress.js:421— LinearProgress has cyclomatic complexity 34 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 33, cognitive 32) packages-internal/core-docs/src/AppLayout/components/AppSearch.tsx:428— (anonymous) has cyclomatic complexity 33 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function generatePropType (cyclomatic 31, cognitive 45) packages-internal/scripts/typescript-to-proptypes/src/generatePropTypes.ts:131— generatePropType has cyclomatic complexity 31 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function SelectInput (cyclomatic 31, cognitive 38) packages/mui-material/src/Select/SelectInput.js:137— SelectInput has cyclomatic complexity 31 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 30, cognitive 26) packages/mui-material/src/Chip/Chip.js:66— (anonymous) has cyclomatic complexity 30 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function TablePaginationActions (cyclomatic 28, cognitive 27) packages/mui-material/src/TablePaginationActions/TablePaginationActions.js:59— TablePaginationActions has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function Chip (cyclomatic 27, cognitive 28) packages/mui-material/src/Chip/Chip.js:377— Chip has cyclomatic complexity 27 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function buildLlmsDocs (cyclomatic 26, cognitive 49) scripts/buildLlmsDocs/index.ts:436— buildLlmsDocs has cyclomatic complexity 26 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function createTheme (cyclomatic 26, cognitive 39) packages/mui-material/src/styles/createTheme.ts:66— createTheme has cyclomatic complexity 26 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function CssVarsProvider (cyclomatic 26, cognitive 26) packages/mui-system/src/cssVars/createCssVarsProvider.tsx:215— CssVarsProvider has cyclomatic complexity 26 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R6 · Tooling· The declared test suite includes a file that cannot be loaded · ×1
The declared test suite includes a file that cannot be loaded packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js— This repository declares test tooling, and the ✓ above records that declaration — but packages/mui-codemod/src/v5.0.0/adapter-v4.test/no-styles-import.actual.js and 19 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) — each one is reported with its failing import under Test Coverage — then the declared script exercises what it claims to.
Dead file (~241 LoC) netlify/functions/feedback-management.mts— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~63 LoC) netlify/functions/on-deploy.mts— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~54 LoC) packages-internal/core-docs/src/AppLayout/components/ArrowButton.tsx— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~38 LoC) scripts/testBuiltTypes.mjs— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~34 LoC) scripts/test.mjs— no import path from any entry point (497 application, 368 tooling, 3162 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Unlisted import 'webpack' packages-internal/markdown/loader.mjs:117— Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
Unlisted import 'ast-types' packages/mui-codemod/src/util/appendAttribute.js:3— Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
Unused dependency '@arethetypeswrong/cli' — Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@typescript/native' — Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'cpy-cli' — Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Minor — 11 finding(s)
AC7 · A11y enforcement· Accessibility enforcement below the top rung · ×1
Accessibility enforcement below the top rung — Accessibility checks run in tests (Verified) but aren't gated in CI — run the suite that holds those checks in your pipeline so an accessibility regression blocks the merge (Prevented). What was searched, so you can tell an absence from a miss: the 1149 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: packages/mui-material/src/NativeSelect/NativeSelectInput.js, packages/mui-material/src/styles/ThemeProvider.tsx. Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (13 single-owned of 471 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 471 of the 2037 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (2 file(s)), anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (+2 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above.
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
REDACTED
D34 · Knowledge Freshness· Orphaned files with no living knowledge · ×1
Orphaned files with no living knowledge — 75 of 473 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 473 of the 2037 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: packages/mui-codemod/src/v5.0.0/jss-to-tss-react.js, packages-internal/scripts/typescript-to-proptypes/src/injectPropTypesInFile.ts, packages/mui-material/src/index.js, packages-internal/scripts/typescript-to-proptypes/src/generatePropTypes.ts, packages/mui-codemod/src/v5.0.0/joy-text-field-to-input.js, packages/mui-codemod/src/v6.0.0/grid-v2-props/grid-v2-props.js, packages/mui-codemod/src/v7.0.0/grid-props/grid-props.js, packages/mui-codemod/src/v5.0.0/date-pickers-moved-to-x.js (and 67 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
R8 · Dependency Hygiene· Type-only dependency 'csstype' in production deps · ×1
Type-only dependency 'csstype' in production deps packages/mui-styled-engine/src/index.ts:9— Every import is type-only — move it to devDependencies.
Skipped (documented): (unnamed test) packages/mui-envinfo/src/envinfo.test.js:20— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-envinfo/src/envinfo.test.js:20— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:38— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:38— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:76— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:111— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:113— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:120— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:120— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:396— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-lab/src/Masonry/Masonry.test.js:396— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-lab/src/TimelineItem/TimelineItem.test.js:50— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-lab/src/TimelineItem/TimelineItem.test.js:68— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/Accordion/Accordion.test.js:252— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/AccordionActions/AccordionActions.test.js:22— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/AccordionActions/AccordionActions.test.js:22— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-material/src/AccordionSummary/AccordionSummary.test.js:206— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/AccordionSummary/AccordionSummary.test.js:208— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-material/src/AppBar/AppBar.test.js:66— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/AppBar/AppBar.test.js:66— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-material/src/AppBar/AppBar.test.js:81— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/AppBar/AppBar.test.js:83— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-material/src/Autocomplete/Autocomplete.test.js:345— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Skipped (documented): (unnamed test) packages/mui-material/src/Autocomplete/Autocomplete.test.js:347— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) packages/mui-material/src/Autocomplete/Autocomplete.test.js:604— Skipped with a documented reason — a deferral, not lazy debt: switched off by it.skipIf
Outdated (npm): @babel/core — @babel/core is pinned at 7.29.7; registry.npmjs.org publishes 8.0.6 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @babel/plugin-syntax-jsx — @babel/plugin-syntax-jsx is pinned at 7.29.7; registry.npmjs.org publishes 8.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @babel/plugin-syntax-typescript — @babel/plugin-syntax-typescript is pinned at 7.29.7; registry.npmjs.org publishes 8.0.3 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @babel/preset-typescript — @babel/preset-typescript is pinned at 7.29.7; registry.npmjs.org publishes 8.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @babel/runtime — @babel/runtime is pinned at 7.29.7; registry.npmjs.org publishes 8.0.5 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @babel/traverse — @babel/traverse is pinned at 7.29.8; registry.npmjs.org publishes 8.0.6 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @babel/types — @babel/types is pinned at 7.29.8; registry.npmjs.org publishes 8.0.6 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @docsearch/react — @docsearch/react is pinned at 4.7.0; registry.npmjs.org publishes 5.1.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @mui/material — @mui/material is pinned at 9.0.0; registry.npmjs.org publishes 9.4.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @mui/material-nextjs — @mui/material-nextjs is pinned at 9.3.0; registry.npmjs.org publishes 9.4.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @mui/stylis-plugin-rtl — @mui/stylis-plugin-rtl is pinned at 9.3.0; registry.npmjs.org publishes 9.4.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): @tanstack/react-query — @tanstack/react-query is pinned at 5.103.1; registry.npmjs.org publishes 5.103.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): marked — marked is pinned at 18.0.13; registry.npmjs.org publishes 18.0.14 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): next — next is pinned at 16.3.5; registry.npmjs.org publishes 16.3.6 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): prettier — prettier is pinned at 3.9.8; registry.npmjs.org publishes 3.9.9 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): react-docgen — react-docgen is pinned at 8.0.3; registry.npmjs.org publishes 8.0.4 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): react-virtuoso — react-virtuoso is pinned at 4.18.13; registry.npmjs.org publishes 4.18.15 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): react-window — react-window is pinned at 2.3.1; registry.npmjs.org publishes 2.3.3 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): stylis — stylis is pinned at 4.2.0; registry.npmjs.org publishes 4.4.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): webpack-bundle-analyzer — webpack-bundle-analyzer is pinned at 5.3.3; registry.npmjs.org publishes 5.4.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Outdated (npm): yargs — yargs is pinned at 18.1.0; registry.npmjs.org publishes 18.2.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 34 file(s) — `docs/next.config.ts`, `packages-internal/core-docs/src/AppLayout/components/Frame.tsx`, `packages-internal/core-docs/src/TableOfContents/MiniTableOfContents.tsx`, `packages/mui-icons-material/templateSvgIcon.js`, `packages/mui-lab/src/LoadingButton/index.ts`, … (+29 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a0d7db-3669-7ee8-8aab-5179eb33f39b · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 41 · Warnings: 873 · Recommendations: 11 · Info: 451 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 25-09-2026 @ 09:17 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.