Public report — filament, published 29 Jul 2026.
Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version;
ask the repo owner for the full report.
595findings with an exact file:lineof 607 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
35/112dimensions across the health lenses250184 LoC — wide & deep
Executive summary
Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.
filamentphp/filament is sound in substance but carries real gaps (55%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.
It is strongest in Domain Modelling (100%) — the domain model is expressive and well-guarded. Architecture (99%) is solid too.
The area that most needs attention is Readiness (45%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Code Health (54%) is the next concern — changes there are slower and more error-prone.
Leadership focus, highest impact first: Automate the release in CI (Deployment & Rollback); tests that import the unreached modules (directly or through… (Test Coverage); `tsc --noEmit` as package.json scripts and run them in CI (Tooling).
For scale: Large (~250,184 production lines); rebuilding it from scratch would take roughly ~2.6 person-years (~1–5 engineers). Approximate, ±~30%.
It builds on a genuinely strong Domain Modelling foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.
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.
335 finding(s) are new versus the previous scan (2026-07-19) — 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 — €130,000–€630,000
0.8× (at 55% 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 ~2.6 person-years of build effort (about ~€380,000 to rebuild). Its weakest lens is Readiness at 45% — 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
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
Value concentrated against a weak lens · High · Value at risk
This is a Large asset (~2.6 person-years to rebuild), and its weakest lens is Readiness at 45%. 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 · Medium · Leverage
Of everything flagged, the best return on effort is: Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 7.3/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 2–5% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2 complexity, D4 duplication, D6 cohesion: averaging 7.3/10 across the code-quality signals
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.
At a glance — Code Health · 54% · Adequate · gated by R1
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
A06:2021 — Vulnerable & Outdated Components
8
High / Critical
Roadmap
First, establish automated deployment and rollback capabilities in CI to ensure releases are repeatable and reversible. Next, increase test coverage by adding tests for all production modules to validate the codebase. Then, enforce type safety by migrating JavaScript files to TypeScript and adding a type-checking step to the CI pipeline. Finally, clean up the project by removing unused dependencies and explicitly declaring all imports.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
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. 34 of 35 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 1 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — 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 — 35 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, 595 of 607 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.
D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
Repo exclusion declarations: 14 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.
D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D13 Secret Scanning: Secret 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").
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.
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").
D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
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.
DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
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".
The LLM boundary
LLM-set scores this run (2): D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These 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.
101 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was TextColumn.toEmbeddedHtml at 65. A further 6 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 IsAfterOperator.resolveRelativeDate at 31 — they are counted neither in the figure above nor in this dimension's score.
+ 96 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 TextColumn.toEmbeddedHtml (cyclomatic 65) finding(s) in Cyclomatic Complexity — start with TextColumn.php. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 TextEntry.toEmbeddedHtml (cyclomatic 63) finding(s) in Cyclomatic Complexity — start with TextEntry.php. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 CanGenerateButtonHtml.generateButtonHtml (cyclomatic 63) finding(s) in Cyclomatic Complexity — start with CanGenerateButtonHtml.php. — One of this dimension's main actionable groups (1 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.
+ 149 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 Builder.toEmbeddedHtml (cognitive 123) finding(s) in Cognitive Complexity — start with Builder.php. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Repeater.toTableEmbeddedHtml (cognitive 114) finding(s) in Cognitive Complexity — start with Repeater.php. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Repeater.toEmbeddedHtml (cognitive 102) finding(s) in Cognitive Complexity — start with Repeater.php. — One of this dimension's main actionable groups (1 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 Classes8.9 / 10Strong✓ 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 50 TooManyMethods finding(s) in God Classes — start with HasState.php (2), Page.php (2), CanFormatState.php (2). — One of this dimension's main actionable groups (50 warning-level).
Resolve the 13 FileTooLong finding(s) in God Classes — start with Repeater.php, Select.php, RichEditor.php. — One of this dimension's main actionable groups (13 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.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
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.
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.
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor8.8 / 10Strong✓ 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.
54 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/upgrade/src/rector.php.
Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)
What to do
Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
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: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.
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).
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.
6 of 442 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/forms/src/Components/ColorPicker.php.
Further orphaned files (smaller)
✓ On the Gold path — maintain.
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; coupling through a build step, config, or non-source file isn't seen.
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.
Resolve the 1 Secret passed as a command-line argument finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
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 dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.
Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.
High CVE: [GHSA redacted] · ×3package-lock.jsondetected by osv-scanner finding
High vulnerability: [GHSA redacted] · ×3docs-assets/app/composer.lockdetected by osv-scanner finding
Medium vulnerability: [GHSA redacted]composer.lockdetected by osv-scanner finding
Medium CVE: [GHSA redacted]composer.lockdetected by osv-scanner finding
What to do
Resolve the 3 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (3). — One of this dimension's main actionable groups (3 issue-level).
Resolve the 3 High vulnerability finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (2), composer.lock. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 1 Medium vulnerability finding(s) in OSV Dependency Vulnerabilities — start with composer.lock. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d38_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies — a domain aggregate fused to a persistence ORM (TypeORM/Prisma/MikroORM/Sequelize/Mongoose) on its own declaration (active-record) couples the domain to infrastructure. The clean-architecture dependency rule.
Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.
Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.
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 13 of 18 project(s) that lack one — worth up to 1.4 pts.
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.
README omits the Filament UI component library entirely
What to do
Reconcile the README with reality: README omits the Filament UI component library entirely.
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.
What to do
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.
No release automation was found in CI — neither a deploy stage (Helm/Kubernetes/compose manifests, an orchestrated rollout) nor a publish job that ships the built artifact. Releases appear to be run by hand, which is slower, less repeatable and harder to reverse.
What to do
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
Do you agree with this assessment?
R1 · Type Safety0.0 / 10Critical✓ 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.
0 typed · 64 plain JS
What to do
Migrate the remaining .js/.jsx files to TypeScript.
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.
Branch-heavy code is where defects cluster — extract decisions into smaller functions. (×8) — select.js:1389, select.js:358, select.js:681, …
What to do
Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
Do you agree with this assessment?
R3 · Large Files8.1 / 10Strong✓ Tool-verified
React / JS · Code Health — How many components/modules 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 the oversized components into smaller, focused ones.
Do you agree with this assessment?
R4 · Test Coverage0.0 / 10Critical✓ 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.
No test imports this module directly or transitively — its behavior is unverified. (×8) — select.js, file-upload.js, date-time-picker.js, …
What to do
Add tests that import the unreached modules (directly or through their public entry).
React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D33 (JS/npm Dependency Vulnerabilities).
Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D33). Deterministic.
Do you agree with this assessment?
R6 · Tooling6.7 / 10Adequate✓ 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.
test ✓ · lint ✓ · typecheck ✗
What to do
Add `tsc --noEmit` as package.json scripts and run them in CI.
Do you agree with this assessment?
R7 · Dead Code10.0 / 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.
65 file(s) (~13196 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package.
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.
Declared in the root/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing. (×3)
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.
Do you agree with this assessment?
Reference — by lens
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.
Not included — 77 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.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — no DI registrations detected
AX10 Code composition — not assessed — code composition is computed by ROLE over the .NET document set and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
AX2 Stateful singletons — no singleton implementations detected
AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over the .NET project-reference graph and none was loaded for this repository, because it is written in another language or the solution 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 the .NET type surface and none was loaded for this repository, because it is written in another language or the solution 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 the .NET project graph (which projects are test projects, and what they reference) and no such graph was loaded for this repository, because it is written in another language or the solution 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 — no data
C1 Data Protection — Not assessed: these personal data controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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 C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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.
C3 Audit Trail — Not assessed: these audit controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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 C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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 C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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.
D10 Test Quality — ~92540 lines of test source are present (.php) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included
D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (composer.json, package.json), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
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.
D19 Documentation Quality — LLM evaluation failed
D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
D22 Internal API Consistency — No exposed public API
D23 Boundary Type-Coupling — Production source is present (.php) 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 namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["Acme.Billing"]`, `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 — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (composer.json, package.json — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
D32 Data Compliance (PII/GDPR) — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.
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.
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 C#/VB class graph, and this repository's production source is .php, 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 dependency cycles — architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
D9 Test Distribution — Test source is present (.php) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
DM1 Aggregate boundaries — not gated in TS source-only: aggregate-vs-value-object classification is not 0-FP-separable (every class-holding-class reads alike) — advisory (the Swift/Dart/Rust parity)
DM2 Strongly-typed ids — not gated in TS source-only for the Stage-D scaffold: the branded-type idiom (`type Id = string & {__brand}`) is idiom-rare in TS (4 calibration carriers), so a bare-string-id gap is advisory — Stage-E diversification target (tsjs-stageC.md LESSON-A)
DM3 Integration-event coupling — not gated in TS source-only: a cross-package domain leak is not 0-FP-separable from a legitimate shared-kernel package, and most calibration repos are single-package — advisory (candidate-demote)
DM4 Rich vs anemic model — not gated in TS source-only for the Stage-D scaffold: the anemic-vs-rich gate is candidate-DETERMINISTIC for TS (behaviour + the component/DTO/readonly-VO exemptions) but the calibration corpus is high-quality (0 witnesses) — advisory, settled at the Stage-E holdout (the Rust/Swift/Dart precedent)
DM5 Encapsulated state — not gated in TS source-only for the Stage-D scaffold: TS idiom favours #private/private/readonly (idiom-rare public-mutable break), so DM5 is advisory pending Stage-E messier-repo witnesses (the Rust/Swift/Dart precedent)
DM7 Repository granularity — not gated in TS source-only: 'a repository per CHILD entity' needs the aggregate-root structure, which is not source-resolvable; the softest gated dim — advisory
ED1 Event-Driven — not run — 0/3 markers found
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not run — 0/3 markers found
GD1 Unfinished & placeholder code — no source files
IC1 Incompleteness & stubs — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — no data
P2 Observability — Observability was not assessed: this check reads .NET source (ILogger/Serilog, OpenTelemetry, health checks) and no such source carries this repository's product — because it is written in another language, or because the solution failed to load. Absence of a .NET logging idiom 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.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
P8 Schema migrations — not assessed — schema-migration practice is read from EF Core usage in .NET source and none was loaded for this repository, because it is written in another language or the solution 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 (Clover XML — `vendor/bin/phpunit --coverage-clover coverage.xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution 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 .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution 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 .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution 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.
R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
S1 Web-Security Posture — Not assessed: these web-security controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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 — no data
X1 Async correctness — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
X2 Cancellation propagation — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
X3 Exception handling — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
X4 Structured logging — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution 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 are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
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.
Boundary-crossing change coupling: components.php ↔ table.php packages/forms/resources/lang/lus/components.php— `packages/forms/resources/lang/lus/components.php` (context forms) and `packages/tables/resources/lang/lus/table.php` (context tables) sit in DIFFERENT parts of the tree yet change together 90% of the time (9 of the 10 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: toggle.blade.php ↔ ToggleColumn.php packages/support/resources/views/components/toggle.blade.php— `packages/support/resources/views/components/toggle.blade.php` (context support) and `packages/tables/src/Columns/ToggleColumn.php` (context tables) sit in DIFFERENT parts of the tree yet change together 73% of the time (8 of the 11 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: SpatieMediaLibraryImageColumn.php ↔ SpatieTagsColumn.php packages/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php— `packages/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php` (context spatie-laravel-media-library-plugin) and `packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php` (context spatie-laravel-tags-plugin) sit in DIFFERENT parts of the tree yet change together 67% of the time (8 of the 12 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: MakeClusterCommand.php ↔ HasResourcesLocation.php packages/panels/src/Commands/MakeClusterCommand.php— `packages/panels/src/Commands/MakeClusterCommand.php` (context panels) and `packages/support/src/Commands/Concerns/HasResourcesLocation.php` (context support) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: ImageEntry.php ↔ ImageColumn.php packages/infolists/src/Components/ImageEntry.php— `packages/infolists/src/Components/ImageEntry.php` (context infolists) and `packages/tables/src/Columns/ImageColumn.php` (context tables) sit in DIFFERENT parts of the tree yet change together 58% of the time (14 of the 24 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: EditRecord.php ↔ SettingsPage.php packages/panels/src/Resources/Pages/EditRecord.php— `packages/panels/src/Resources/Pages/EditRecord.php` (context panels) and `packages/spatie-laravel-settings-plugin/src/Pages/SettingsPage.php` (context spatie-laravel-settings-plugin) sit in DIFFERENT parts of the tree yet change together 56% of the time (15 of the 27 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
D38 · OSV Dependency Vulnerabilities· High CVE · ×3
High CVE: [GHSA redacted] package-lock.json— brace-expansion 1.1.14: [GHSA redacted] — brace-expansion is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin brace-expansion to 1.1.16 with an `overrides` entry). One upgrade of brace-expansion 1.1.14 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
High CVE: [GHSA redacted] docs-assets/screenshots/package-lock.json— js-yaml 4.2.0: [GHSA redacted] — js-yaml is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin js-yaml to 4.3.0 with an `overrides` entry).
High CVE: [GHSA redacted] package-lock.json— shell-quote 1.8.4: [GHSA redacted] — shell-quote is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin shell-quote to 1.9.0 with an `overrides` entry).
D38 · OSV Dependency Vulnerabilities· High vulnerability · ×3
High vulnerability: [GHSA redacted] docs-assets/app/composer.lock— laravel/framework v11.54.0: [GHSA redacted] — upgrade to 12.60.0. This is 1 of 2 advisories this scan raises against laravel/framework v11.54.0, and their fixed versions do not agree — anything below 12.61.1 still leaves at least one of them open, so 12.61.1 is the floor for this package, not this row's target alone. One upgrade of laravel/framework v11.54.0 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
High vulnerability: [GHSA redacted] docs-assets/app/package-lock.json— postcss 8.5.15: [GHSA redacted] — postcss is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin postcss to 8.5.18 with an `overrides` entry). (in 2 lockfiles)
High vulnerability: [GHSA redacted] docs-assets/screenshots/package-lock.json— sharp 0.32.6: [GHSA redacted] — upgrade to 0.35.0
Hotspot: packages/forms/src/Components/Repeater.php packages/forms/src/Components/Repeater.php— packages/forms/src/Components/Repeater.php changed 11 times in last 90 days, max complexity 50. 5 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/forms/src/Components/Builder.php packages/forms/src/Components/Builder.php— packages/forms/src/Components/Builder.php changed 9 times in last 90 days, max complexity 59. 3 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/support/src/View/Concerns/CanGenerateButtonHtml.php packages/support/src/View/Concerns/CanGenerateButtonHtml.php— packages/support/src/View/Concerns/CanGenerateButtonHtml.php changed 7 times in last 90 days, max complexity 63. 3 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php— packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php changed 7 times in last 90 days, max complexity 47. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/tables/src/Columns/TextColumn.php packages/tables/src/Columns/TextColumn.php— packages/tables/src/Columns/TextColumn.php changed 5 times in last 90 days, max complexity 65. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/infolists/src/Components/TextEntry.php packages/infolists/src/Components/TextEntry.php— packages/infolists/src/Components/TextEntry.php changed 5 times in last 90 days, max complexity 63. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/support/src/View/Concerns/CanGenerateLinkHtml.php packages/support/src/View/Concerns/CanGenerateLinkHtml.php— packages/support/src/View/Concerns/CanGenerateLinkHtml.php changed 6 times in last 90 days, max complexity 50. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/forms/src/Components/Field.php packages/forms/src/Components/Field.php— packages/forms/src/Components/Field.php changed 4 times in last 90 days, max complexity 54. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/forms/src/Components/Select.php packages/forms/src/Components/Select.php— packages/forms/src/Components/Select.php changed 7 times in last 90 days, max complexity 30. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
Hotspot: packages/schemas/src/Components/FusedGroup.php packages/schemas/src/Components/FusedGroup.php— packages/schemas/src/Components/FusedGroup.php changed 4 times in last 90 days, max complexity 48. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
TextColumn.toEmbeddedHtml (cyclomatic 65) packages/tables/src/Columns/TextColumn.php:269— TextColumn.toEmbeddedHtml has cyclomatic complexity 65 (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.
TextEntry.toEmbeddedHtml (cyclomatic 63) packages/infolists/src/Components/TextEntry.php:173— TextEntry.toEmbeddedHtml has cyclomatic complexity 63 (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.
CanGenerateButtonHtml.generateButtonHtml (cyclomatic 63) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:29— CanGenerateButtonHtml.generateButtonHtml has cyclomatic complexity 63 (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.
Builder.toEmbeddedHtml (cyclomatic 59) packages/forms/src/Components/Builder.php:1404— Builder.toEmbeddedHtml has cyclomatic complexity 59 (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.
Field.wrapEmbeddedHtml (cyclomatic 54) packages/forms/src/Components/Field.php:289— Field.wrapEmbeddedHtml has cyclomatic complexity 54 (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.
Field.wrapInputHtml (cyclomatic 51) packages/forms/src/Components/Field.php:521— Field.wrapInputHtml has cyclomatic complexity 51 (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.
Repeater.toEmbeddedHtml (cyclomatic 50) packages/forms/src/Components/Repeater.php:1521— Repeater.toEmbeddedHtml has cyclomatic complexity 50 (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.
CanGenerateLinkHtml.generateLinkHtml (cyclomatic 50) packages/support/src/View/Concerns/CanGenerateLinkHtml.php:30— CanGenerateLinkHtml.generateLinkHtml has cyclomatic complexity 50 (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.
Tabs.toEmbeddedHtml (cyclomatic 49) packages/schemas/src/Components/Tabs.php:257— Tabs.toEmbeddedHtml has cyclomatic complexity 49 (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.
FusedGroup.toEmbeddedHtml (cyclomatic 48) packages/schemas/src/Components/FusedGroup.php:221— FusedGroup.toEmbeddedHtml has cyclomatic complexity 48 (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.
Section.toEmbeddedHtml (cyclomatic 47) packages/schemas/src/Components/Section.php:260— Section.toEmbeddedHtml has cyclomatic complexity 47 (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.
CanGenerateIconButtonHtml.generateIconButtonHtml (cyclomatic 47) packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:28— CanGenerateIconButtonHtml.generateIconButtonHtml has cyclomatic complexity 47 (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.
CanGenerateModelForms.getFormComponents (cyclomatic 44) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:46— CanGenerateModelForms.getFormComponents 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.
SettingsPageClassGenerator.getFormComponents (cyclomatic 44) packages/spatie-laravel-settings-plugin/src/Commands/FileGenerators/SettingsPageClassGenerator.php:149— SettingsPageClassGenerator.getFormComponents 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.
Repeater.toTableEmbeddedHtml (cyclomatic 42) packages/forms/src/Components/Repeater.php:1895— Repeater.toTableEmbeddedHtml has cyclomatic complexity 42 (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.
CanGenerateBadgeHtml.generateBadgeHtml (cyclomatic 40) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:27— CanGenerateBadgeHtml.generateBadgeHtml has cyclomatic complexity 40 (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.
CanExportRecords.setUp (cyclomatic 37) packages/actions/src/Concerns/CanExportRecords.php:81— CanExportRecords.setUp has cyclomatic complexity 37 (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.
SupportServiceProvider.packageBooted (cyclomatic 36) packages/support/src/SupportServiceProvider.php:165— SupportServiceProvider.packageBooted has cyclomatic complexity 36 (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.
openDropdown (cyclomatic 36) packages/support/resources/js/utilities/select.js:1389— openDropdown has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
MakePageCommand.createResourceManageRelatedRecordsPage (cyclomatic 35) packages/panels/src/Commands/MakePageCommand.php:512— MakePageCommand.createResourceManageRelatedRecordsPage has cyclomatic complexity 35 (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.
CanGenerateModelTables.getTableColumns (cyclomatic 34) packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:51— CanGenerateModelTables.getTableColumns 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.
EntanglesStateWithSingularRelationship.relationship (cyclomatic 33) packages/schemas/src/Components/Concerns/EntanglesStateWithSingularRelationship.php:33— EntanglesStateWithSingularRelationship.relationship has cyclomatic complexity 33 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
CanGenerateModelInfolists.getInfolistComponents (cyclomatic 31) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:32— CanGenerateModelInfolists.getInfolistComponents has cyclomatic complexity 31 (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.
CanGenerateDropdownItemHtml.generateDropdownItemHtml (cyclomatic 31) packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:28— CanGenerateDropdownItemHtml.generateDropdownItemHtml has cyclomatic complexity 31 (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.
Select.getOptionsFromRelationship (cyclomatic 30) packages/forms/src/Components/Select.php:1063— Select.getOptionsFromRelationship has cyclomatic complexity 30 (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.
TextInput.toEmbeddedHtml (cyclomatic 30) packages/forms/src/Components/TextInput.php:309— TextInput.toEmbeddedHtml has cyclomatic complexity 30 (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.
DateTimePicker.toEmbeddedHtml (cyclomatic 29) packages/forms/src/Components/DateTimePicker.php:97— DateTimePicker.toEmbeddedHtml 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.
renderOptions (cyclomatic 29) packages/support/resources/js/utilities/select.js:358— renderOptions has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Action.canRenderOptimizedLink (cyclomatic 27) packages/actions/src/Action.php:813— Action.canRenderOptimizedLink has cyclomatic complexity 27 (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.
Entry.wrapEmbeddedHtml (cyclomatic 27) packages/infolists/src/Components/Entry.php:244— Entry.wrapEmbeddedHtml has cyclomatic complexity 27 (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.
Select.relationship (cyclomatic 26) packages/forms/src/Components/Select.php:790— Select.relationship 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.
ImageEntry.toEmbeddedHtml (cyclomatic 26) packages/infolists/src/Components/ImageEntry.php:435— ImageEntry.toEmbeddedHtml 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.
HasComponents.registerLivewireComponents (cyclomatic 26) packages/panels/src/Panel/Concerns/HasComponents.php:575— HasComponents.registerLivewireComponents 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.
ImageColumn.toEmbeddedHtml (cyclomatic 26) packages/tables/src/Columns/ImageColumn.php:426— ImageColumn.toEmbeddedHtml 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.
InteractsWithTable.bootedInteractsWithTable (cyclomatic 26) packages/tables/src/Concerns/InteractsWithTable.php:45— InteractsWithTable.bootedInteractsWithTable 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.
HasComponents.getAction (cyclomatic 25) packages/schemas/src/Concerns/HasComponents.php:66— HasComponents.getAction has cyclomatic complexity 25 (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.
getLabelsForMultipleSelection (cyclomatic 25) packages/support/resources/js/utilities/select.js:681— getLabelsForMultipleSelection has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Repeater.toSimpleEmbeddedHtml (cyclomatic 23) packages/forms/src/Components/Repeater.php:1759— Repeater.toSimpleEmbeddedHtml has cyclomatic complexity 23 (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.
Select.toEmbeddedHtml (cyclomatic 23) packages/forms/src/Components/Select.php:1824— Select.toEmbeddedHtml has cyclomatic complexity 23 (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.
Text.toEmbeddedHtml (cyclomatic 23) packages/schemas/src/Components/Text.php:123— Text.toEmbeddedHtml has cyclomatic complexity 23 (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.
TextInputColumn.toEmbeddedHtml (cyclomatic 23) packages/tables/src/Columns/TextInputColumn.php:204— TextInputColumn.toEmbeddedHtml has cyclomatic complexity 23 (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.
handleSelectButtonKeydown (cyclomatic 23) packages/support/resources/js/utilities/select.js:1182— handleSelectButtonKeydown has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
TranslationFileLineParser.parse (cyclomatic 22) bin/TranslationTool/src/DataObjects/TranslationFileLineParser.php:12— TranslationFileLineParser.parse 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.
AssociateAction.getRecordSelect (cyclomatic 22) packages/actions/src/AssociateAction.php:202— AssociateAction.getRecordSelect 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.
AttachAction.getRecordSelect (cyclomatic 22) packages/actions/src/AttachAction.php:216— AttachAction.getRecordSelect 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.
InteractsWithActions.callMountedAction (cyclomatic 22) packages/actions/src/Concerns/InteractsWithActions.php:197— InteractsWithActions.callMountedAction 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.
PrepareCsvExport.handle (cyclomatic 22) packages/actions/src/Exports/Jobs/PrepareCsvExport.php:57— PrepareCsvExport.handle 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.
ImportAction.setUp (cyclomatic 22) packages/actions/src/ImportAction.php:75— ImportAction.setUp 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.
IconEntry.toEmbeddedHtml (cyclomatic 22) packages/infolists/src/Components/IconEntry.php:237— IconEntry.toEmbeddedHtml 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.
RelationManager.getDefaultActionAuthorizationResponse (cyclomatic 22) packages/panels/src/Resources/RelationManagers/RelationManager.php:346— RelationManager.getDefaultActionAuthorizationResponse 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.
CanFormatState.formatState (cyclomatic 22) packages/tables/src/Columns/Concerns/CanFormatState.php:376— CanFormatState.formatState 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.
Type.setUp (cyclomatic 21) packages/forms/src/Components/MorphToSelect/Type.php:67— Type.setUp has cyclomatic complexity 21 (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.
Select.fillStateFromRelationship (cyclomatic 21) packages/forms/src/Components/Select.php:1180— Select.fillStateFromRelationship has cyclomatic complexity 21 (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.
TestsActions.parseNestedActions (cyclomatic 20) packages/actions/src/Testing/TestsActions.php:695— TestsActions.parseNestedActions has cyclomatic complexity 20 (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.
CanFormatState.formatState (cyclomatic 20) packages/infolists/src/Components/Concerns/CanFormatState.php:376— CanFormatState.formatState has cyclomatic complexity 20 (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.
NavigationManager.get (cyclomatic 20) packages/panels/src/Navigation/NavigationManager.php:47— NavigationManager.get has cyclomatic complexity 20 (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.
Tabs.toEmbeddedHtmlForLivewireProperty (cyclomatic 20) packages/schemas/src/Components/Tabs.php:641— Tabs.toEmbeddedHtmlForLivewireProperty has cyclomatic complexity 20 (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.
HasComponents.getComponent (cyclomatic 20) packages/schemas/src/Concerns/HasComponents.php:152— HasComponents.getComponent has cyclomatic complexity 20 (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.
CanReadModelSchemas.parseDefaultExpression (cyclomatic 20) packages/support/src/Commands/Concerns/CanReadModelSchemas.php:207— CanReadModelSchemas.parseDefaultExpression has cyclomatic complexity 20 (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.
IconColumn.toEmbeddedHtml (cyclomatic 20) packages/tables/src/Columns/IconColumn.php:267— IconColumn.toEmbeddedHtml has cyclomatic complexity 20 (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.
CanSummarizeRecords.getTableSummarySelectedState (cyclomatic 20) packages/tables/src/Concerns/CanSummarizeRecords.php:85— CanSummarizeRecords.getTableSummarySelectedState has cyclomatic complexity 20 (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.
UpgradeDirectoryStructureToV4Command.moveClass (cyclomatic 20) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:296— UpgradeDirectoryStructureToV4Command.moveClass has cyclomatic complexity 20 (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.
handleDropdownKeydown (cyclomatic 20) packages/support/resources/js/utilities/select.js:1263— handleDropdownKeydown has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Action.canRenderOptimizedGrouped (cyclomatic 19) packages/actions/src/Action.php:927— Action.canRenderOptimizedGrouped 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.
ImporterClassGenerator.getImporterColumns (cyclomatic 19) packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:116— ImporterClassGenerator.getImporterColumns 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.
FileUpload.toEmbeddedHtml (cyclomatic 19) packages/forms/src/Components/FileUpload.php:830— FileUpload.toEmbeddedHtml has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
ModalTableSelect.fillStateFromRelationship (cyclomatic 19) packages/forms/src/Components/ModalTableSelect.php:427— ModalTableSelect.fillStateFromRelationship 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.
Select.getInValidationRuleValues (cyclomatic 19) packages/forms/src/Components/Select.php:1742— Select.getInValidationRuleValues 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.
Callout.toEmbeddedHtml (cyclomatic 19) packages/schemas/src/Components/Callout.php:237— Callout.toEmbeddedHtml 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.
ColorEntry.toEmbeddedHtml (cyclomatic 18) packages/infolists/src/Components/ColorEntry.php:21— ColorEntry.toEmbeddedHtml has cyclomatic complexity 18 (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.
CanSortRecords.applySortingToTableQuery (cyclomatic 18) packages/tables/src/Concerns/CanSortRecords.php:78— CanSortRecords.applySortingToTableQuery has cyclomatic complexity 18 (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.
createOptionElement (cyclomatic 18) packages/support/resources/js/utilities/select.js:522— createOptionElement has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
AdminPanelProvider.panel (cyclomatic 17) docs-assets/app/app/Providers/Filament/AdminPanelProvider.php:39— AdminPanelProvider.panel 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.
ActionGroup.toEmbeddedHtml (cyclomatic 17) packages/actions/src/ActionGroup.php:468— ActionGroup.toEmbeddedHtml 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.
InteractsWithRecord.getRecord (cyclomatic 17) packages/actions/src/Concerns/InteractsWithRecord.php:97— InteractsWithRecord.getRecord 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.
BaseFileUpload.getUploadedFiles (cyclomatic 17) packages/forms/src/Components/BaseFileUpload.php:912— BaseFileUpload.getUploadedFiles 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.
CheckboxList.relationship (cyclomatic 17) packages/forms/src/Components/CheckboxList.php:135— CheckboxList.relationship 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.
KeyValue.toEmbeddedHtml (cyclomatic 17) packages/forms/src/Components/KeyValue.php:375— KeyValue.toEmbeddedHtml 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.
TableSelect.fillStateFromRelationship (cyclomatic 17) packages/forms/src/Components/TableSelect.php:107— TableSelect.fillStateFromRelationship 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.
ToggleButtons.toEmbeddedHtml (cyclomatic 17) packages/forms/src/Components/ToggleButtons.php:68— ToggleButtons.toEmbeddedHtml 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.
InteractsWithSchemas.cacheSchema (cyclomatic 17) packages/schemas/src/Concerns/InteractsWithSchemas.php:202— InteractsWithSchemas.cacheSchema 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.
EvaluatesClosures.resolveClosureDependencyForEvaluation (cyclomatic 17) packages/support/src/Concerns/EvaluatesClosures.php:43— EvaluatesClosures.resolveClosureDependencyForEvaluation 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.
ColorColumn.toEmbeddedHtml (cyclomatic 17) packages/tables/src/Columns/ColorColumn.php:21— ColorColumn.toEmbeddedHtml 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.
Column.renderInLayout (cyclomatic 17) packages/tables/src/Columns/Column.php:133— Column.renderInLayout has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
TextColumn.canRenderOptimized (cyclomatic 17) packages/tables/src/Columns/TextColumn.php:185— TextColumn.canRenderOptimized 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.
HasRecords.getTableRecords (cyclomatic 17) packages/tables/src/Concerns/HasRecords.php:95— HasRecords.getTableRecords 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.
SelectFilter.setUp (cyclomatic 17) packages/tables/src/Filters/SelectFilter.php:44— SelectFilter.setUp 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.
syncActionModals (cyclomatic 17) packages/actions/resources/js/components/modals.js:68— syncActionModals has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
ModalTableSelect.saveStateToRelationship (cyclomatic 16) packages/forms/src/Components/ModalTableSelect.php:579— ModalTableSelect.saveStateToRelationship 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.
ModalTableSelect.toEmbeddedHtml (cyclomatic 16) packages/forms/src/Components/ModalTableSelect.php:902— ModalTableSelect.toEmbeddedHtml 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.
RichEditor.toEmbeddedHtml (cyclomatic 16) packages/forms/src/Components/RichEditor.php:1518— RichEditor.toEmbeddedHtml 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.
Select.saveStateToRelationship (cyclomatic 16) packages/forms/src/Components/Select.php:1333— Select.saveStateToRelationship 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.
HasRelationManagers.getRelationManagersContentComponent (cyclomatic 16) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:122— HasRelationManagers.getRelationManagersContentComponent 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.
Flex.toEmbeddedHtml (cyclomatic 16) packages/schemas/src/Components/Flex.php:47— Flex.toEmbeddedHtml 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.
Schema.renderEmbeddedHtml (cyclomatic 16) packages/schemas/src/Schema.php:151— Schema.renderEmbeddedHtml 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.
CheckTranslationsCommand.scan (cyclomatic 16) packages/support/src/Commands/CheckTranslationsCommand.php:79— CheckTranslationsCommand.scan 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.
HasCluster.askForCluster (cyclomatic 16) packages/support/src/Commands/Concerns/HasCluster.php:27— HasCluster.askForCluster 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.
ComponentAttributeBag.merge (cyclomatic 16) packages/support/src/View/ComponentAttributeBag.php:227— ComponentAttributeBag.merge 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.
Summarizer.getState (cyclomatic 16) packages/tables/src/Columns/Summarizers/Summarizer.php:72— Summarizer.getState 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.
HasBulkActions.getSelectedTableRecordsQuery (cyclomatic 16) packages/tables/src/Concerns/HasBulkActions.php:296— HasBulkActions.getSelectedTableRecordsQuery 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.
updateOptionLabelInList (cyclomatic 16) packages/support/resources/js/utilities/select.js:1124— updateOptionLabelInList has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.findings[2].docPath | LineNumber: 0 | BytePositionInLine: 1215.
Builder.toEmbeddedHtml (cognitive 123) packages/forms/src/Components/Builder.php:1404— Builder.toEmbeddedHtml has cognitive complexity 123 (threshold 15). Drivers by points: if/else 84, boolean chains 32, loops 7 (nesting depth added 64). 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.
Repeater.toTableEmbeddedHtml (cognitive 114) packages/forms/src/Components/Repeater.php:1895— Repeater.toTableEmbeddedHtml has cognitive complexity 114 (threshold 15). Drivers by points: if/else 68, ternaries 19, boolean chains 15, loops 12 (nesting depth added 70). 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.
Repeater.toEmbeddedHtml (cognitive 102) packages/forms/src/Components/Repeater.php:1521— Repeater.toEmbeddedHtml has cognitive complexity 102 (threshold 15). Drivers by points: if/else 69, boolean chains 24, loops 7, ternaries 2 (nesting depth added 53). 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.
TextColumn.toEmbeddedHtml (cognitive 101) packages/tables/src/Columns/TextColumn.php:269— TextColumn.toEmbeddedHtml has cognitive complexity 101 (threshold 15). Drivers by points: if/else 53, ternaries 30, boolean chains 13, loops 4, match/switch 1 (nesting depth added 36). 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.
Field.wrapEmbeddedHtml (cognitive 93) packages/forms/src/Components/Field.php:289— Field.wrapEmbeddedHtml has cognitive complexity 93 (threshold 15). Drivers by points: if/else 44, boolean chains 26, ternaries 19, loops 4 (nesting depth added 35). 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.
TextEntry.toEmbeddedHtml (cognitive 92) packages/infolists/src/Components/TextEntry.php:173— TextEntry.toEmbeddedHtml has cognitive complexity 92 (threshold 15). Drivers by points: if/else 44, ternaries 26, boolean chains 12, loops 9, match/switch 1 (nesting depth added 30). 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.
FusedGroup.toEmbeddedHtml (cognitive 82) packages/schemas/src/Components/FusedGroup.php:221— FusedGroup.toEmbeddedHtml has cognitive complexity 82 (threshold 15). Drivers by points: if/else 54, boolean chains 14, ternaries 10, loops 4 (nesting depth added 31). 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.toEmbeddedHtml (cognitive 80) packages/schemas/src/Components/Tabs.php:257— Tabs.toEmbeddedHtml has cognitive complexity 80 (threshold 15). Drivers by points: if/else 34, ternaries 31, loops 8, boolean chains 5, match/switch 2 (nesting depth added 36). 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.
CanGenerateModelForms.getFormComponents (cognitive 79) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:46— CanGenerateModelForms.getFormComponents has cognitive complexity 79 (threshold 15). Drivers by points: if/else 70, boolean chains 5, loops 2, match/switch 2 (nesting depth added 41). 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.
Field.wrapInputHtml (cognitive 73) packages/forms/src/Components/Field.php:521— Field.wrapInputHtml has cognitive complexity 73 (threshold 15). Drivers by points: if/else 30, boolean chains 19, ternaries 18, loops 6 (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.
Section.toEmbeddedHtml (cognitive 70) packages/schemas/src/Components/Section.php:260— Section.toEmbeddedHtml has cognitive complexity 70 (threshold 15). Drivers by points: if/else 41, boolean chains 18, ternaries 11 (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.
CanGenerateButtonHtml.generateButtonHtml (cognitive 68) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:29— CanGenerateButtonHtml.generateButtonHtml has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 31, if/else 19, boolean chains 16, match/switch 2 (nesting depth added 6). 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.
CanGenerateModelTables.getTableColumns (cognitive 67) packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:51— CanGenerateModelTables.getTableColumns has cognitive complexity 67 (threshold 15). Drivers by points: if/else 51, boolean chains 7, ternaries 4, match/switch 3, loops 2 (nesting depth added 32). 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.
SettingsPageClassGenerator.getFormComponents (cognitive 61) packages/spatie-laravel-settings-plugin/src/Commands/FileGenerators/SettingsPageClassGenerator.php:149— SettingsPageClassGenerator.getFormComponents has cognitive complexity 61 (threshold 15). Drivers by points: if/else 29, boolean chains 19, ternaries 9, loops 2, match/switch 2 (nesting depth added 22). 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.
CanGenerateModelInfolists.getInfolistComponents (cognitive 60) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:32— CanGenerateModelInfolists.getInfolistComponents has cognitive complexity 60 (threshold 15). Drivers by points: if/else 47, boolean chains 4, ternaries 4, match/switch 3, loops 2 (nesting depth added 29). 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.
MakePageCommand.createResourceManageRelatedRecordsPage (cognitive 60) packages/panels/src/Commands/MakePageCommand.php:512— MakePageCommand.createResourceManageRelatedRecordsPage has cognitive complexity 60 (threshold 15). Drivers by points: if/else 38, boolean chains 14, error handling 5, ternaries 3 (nesting depth added 25). 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.
TranslationFileLineParser.parse (cognitive 58) bin/TranslationTool/src/DataObjects/TranslationFileLineParser.php:12— TranslationFileLineParser.parse has cognitive complexity 58 (threshold 15). Drivers by points: if/else 38, ternaries 10, boolean chains 5, loops 5 (nesting depth added 38). 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.
HasComponents.getAction (cognitive 54) packages/schemas/src/Concerns/HasComponents.php:66— HasComponents.getAction has cognitive complexity 54 (threshold 15). Drivers by points: if/else 39, boolean chains 8, ternaries 4, loops 3 (nesting depth added 28). 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.
CanGenerateLinkHtml.generateLinkHtml (cognitive 54) packages/support/src/View/Concerns/CanGenerateLinkHtml.php:30— CanGenerateLinkHtml.generateLinkHtml has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 28, if/else 13, boolean chains 11, match/switch 2 (nesting depth added 6). 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.
HasComponents.registerLivewireComponents (cognitive 51) packages/panels/src/Panel/Concerns/HasComponents.php:575— HasComponents.registerLivewireComponents has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27, loops 17, boolean chains 7 (nesting depth added 26). 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.
HasComponents.getComponent (cognitive 50) packages/schemas/src/Concerns/HasComponents.php:152— HasComponents.getComponent has cognitive complexity 50 (threshold 15). Drivers by points: if/else 36, loops 10, boolean chains 4 (nesting depth added 31). 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.
openDropdown (cognitive 50) packages/support/resources/js/utilities/select.js:1389— openDropdown has cognitive complexity 50 (threshold 15). 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.
CanGenerateIconButtonHtml.generateIconButtonHtml (cognitive 48) packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:28— CanGenerateIconButtonHtml.generateIconButtonHtml has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 25, boolean chains 13, if/else 8, match/switch 2 (nesting depth added 4). 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.
renderOptions (cognitive 47) packages/support/resources/js/utilities/select.js:358— renderOptions has cognitive complexity 47 (threshold 15). 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.
DateTimePicker.toEmbeddedHtml (cognitive 44) packages/forms/src/Components/DateTimePicker.php:97— DateTimePicker.toEmbeddedHtml has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16, ternaries 14, boolean chains 12, loops 2 (nesting depth added 15). 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.
EntanglesStateWithSingularRelationship.relationship (cognitive 44) packages/schemas/src/Components/Concerns/EntanglesStateWithSingularRelationship.php:33— EntanglesStateWithSingularRelationship.relationship has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17, loops 13, boolean chains 12, ternaries 2 (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.
Select.toEmbeddedHtml (cognitive 43) packages/forms/src/Components/Select.php:1824— Select.toEmbeddedHtml has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20, boolean chains 10, ternaries 7, loops 6 (nesting depth added 19). 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.
Repeater.toSimpleEmbeddedHtml (cognitive 41) packages/forms/src/Components/Repeater.php:1759— Repeater.toSimpleEmbeddedHtml has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21, boolean chains 12, loops 6, ternaries 2 (nesting depth added 19). 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.
Select.relationship (cognitive 41) packages/forms/src/Components/Select.php:790— Select.relationship has cognitive complexity 41 (threshold 15). Drivers by points: if/else 30, boolean chains 8, ternaries 3 (nesting depth added 15). 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.
CanGenerateBadgeHtml.generateBadgeHtml (cognitive 41) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:27— CanGenerateBadgeHtml.generateBadgeHtml has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 20, boolean chains 11, if/else 9, match/switch 1 (nesting depth added 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.
getLabelsForMultipleSelection (cognitive 40) packages/support/resources/js/utilities/select.js:681— getLabelsForMultipleSelection has cognitive complexity 40 (threshold 15). 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.
FileUpload.toEmbeddedHtml (cognitive 38) packages/forms/src/Components/FileUpload.php:830— FileUpload.toEmbeddedHtml has cognitive complexity 38 (threshold 15). Drivers by points: loops 19, if/else 10, ternaries 6, boolean chains 3 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
SupportServiceProvider.packageBooted (cognitive 38) packages/support/src/SupportServiceProvider.php:165— SupportServiceProvider.packageBooted has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20, ternaries 8, match/switch 6, boolean chains 4 (nesting depth added 4). 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.
CanExportRecords.setUp (cognitive 37) packages/actions/src/Concerns/CanExportRecords.php:81— CanExportRecords.setUp has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14, ternaries 10, boolean chains 7, loops 4, match/switch 2 (nesting depth added 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.
Text.toEmbeddedHtml (cognitive 37) packages/schemas/src/Components/Text.php:123— Text.toEmbeddedHtml has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 19, if/else 15, boolean chains 3 (nesting depth added 15). 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.
Select.getOptionsFromRelationship (cognitive 35) packages/forms/src/Components/Select.php:1063— Select.getOptionsFromRelationship has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24, boolean chains 11 (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.
PrepareCsvExport.handle (cognitive 34) packages/actions/src/Exports/Jobs/PrepareCsvExport.php:57— PrepareCsvExport.handle has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26, loops 5, boolean chains 3 (nesting depth added 12). 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.
RichEditor.toEmbeddedHtml (cognitive 32) packages/forms/src/Components/RichEditor.php:1518— RichEditor.toEmbeddedHtml has cognitive complexity 32 (threshold 15). Drivers by points: loops 15, if/else 14, ternaries 2, boolean chains 1 (nesting depth added 15). 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.
ListRecords.makeTable (cognitive 32) packages/panels/src/Resources/Pages/ListRecords.php:116— ListRecords.makeTable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22, loops 10 (nesting depth added 18). 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.
handleSelectButtonKeydown (cognitive 32) packages/support/resources/js/utilities/select.js:1182— handleSelectButtonKeydown has cognitive complexity 32 (threshold 15). 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.
Select.fillStateFromRelationship (cognitive 31) packages/forms/src/Components/Select.php:1180— Select.fillStateFromRelationship has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, ternaries 10, boolean chains 5 (nesting depth added 11). 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.
updateOptionLabelInList (cognitive 31) packages/support/resources/js/utilities/select.js:1124— updateOptionLabelInList has cognitive complexity 31 (threshold 15). 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.
Select.getOptionLabels (cognitive 30) packages/forms/src/Components/Select.php:624— Select.getOptionLabels has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, loops 6, boolean chains 1 (nesting depth added 17). 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.
TextInput.toEmbeddedHtml (cognitive 30) packages/forms/src/Components/TextInput.php:309— TextInput.toEmbeddedHtml has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, ternaries 9, if/else 5, loops 2 (nesting depth added 1). 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.
Entry.wrapEmbeddedHtml (cognitive 30) packages/infolists/src/Components/Entry.php:244— Entry.wrapEmbeddedHtml has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12, boolean chains 11, ternaries 6, match/switch 1 (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.
Callout.toEmbeddedHtml (cognitive 30) packages/schemas/src/Components/Callout.php:237— Callout.toEmbeddedHtml has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 6, ternaries 1 (nesting depth added 12). 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.
CanGenerateDropdownItemHtml.generateDropdownItemHtml (cognitive 30) packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:28— CanGenerateDropdownItemHtml.generateDropdownItemHtml has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 12, boolean chains 9, if/else 8, match/switch 1 (nesting depth added 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.
CanSummarizeRecords.getTableSummarySelectedState (cognitive 30) packages/tables/src/Concerns/CanSummarizeRecords.php:85— CanSummarizeRecords.getTableSummarySelectedState has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17, loops 6, ternaries 4, boolean chains 3 (nesting depth added 11). 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.
InteractsWithToolbarButtons.applyDisableToolbarButtonsModification (cognitive 29) packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php:132— InteractsWithToolbarButtons.applyDisableToolbarButtonsModification has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, loops 4 (nesting depth added 19). 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.
Select.getInValidationRuleValues (cognitive 29) packages/forms/src/Components/Select.php:1742— Select.getInValidationRuleValues has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, boolean chains 3, loops 3, ternaries 2 (nesting depth added 11). 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.
ColorEntry.toEmbeddedHtml (cognitive 29) packages/infolists/src/Components/ColorEntry.php:21— ColorEntry.toEmbeddedHtml has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 24, if/else 4, loops 1 (nesting depth added 12). 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.toEmbeddedHtmlForLivewireProperty (cognitive 29) packages/schemas/src/Components/Tabs.php:641— Tabs.toEmbeddedHtmlForLivewireProperty has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 16, if/else 7, loops 4, boolean chains 2 (nesting depth added 11). 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.
TextInputColumn.toEmbeddedHtml (cognitive 29) packages/tables/src/Columns/TextInputColumn.php:204— TextInputColumn.toEmbeddedHtml has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 19, if/else 8, boolean chains 2 (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.
QueryBuilder.getRuleSummaries (cognitive 29) packages/tables/src/Filters/QueryBuilder.php:92— QueryBuilder.getRuleSummaries has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 14, if/else 10, loops 4, boolean chains 1 (nesting depth added 18). 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.
SelectFilter.setUp (cognitive 29) packages/tables/src/Filters/SelectFilter.php:44— SelectFilter.setUp has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, ternaries 6, boolean chains 2 (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.
BaseFileUpload.getUploadedFiles (cognitive 28) packages/forms/src/Components/BaseFileUpload.php:912— BaseFileUpload.getUploadedFiles has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, ternaries 5, boolean chains 2, loops 1 (nesting depth added 12). 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.
ImageEntry.toEmbeddedHtml (cognitive 28) packages/infolists/src/Components/ImageEntry.php:435— ImageEntry.toEmbeddedHtml has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13, if/else 8, boolean chains 6, loops 1 (nesting depth added 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.
CanReadModelSchemas.parseDefaultExpression (cognitive 28) packages/support/src/Commands/Concerns/CanReadModelSchemas.php:207— CanReadModelSchemas.parseDefaultExpression has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, boolean chains 5, loops 2 (nesting depth added 9). 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.
ImageColumn.toEmbeddedHtml (cognitive 28) packages/tables/src/Columns/ImageColumn.php:426— ImageColumn.toEmbeddedHtml has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13, if/else 8, boolean chains 6, loops 1 (nesting depth added 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.
AssociateAction.getRecordSelect (cognitive 27) packages/actions/src/AssociateAction.php:202— AssociateAction.getRecordSelect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, ternaries 9, boolean chains 5, loops 2 (nesting depth added 5). 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.
CheckboxList.relationship (cognitive 27) packages/forms/src/Components/CheckboxList.php:135— CheckboxList.relationship has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, boolean chains 3 (nesting depth added 9). 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.
ModalTableSelect.getOptionLabelsFromRelationship (cognitive 27) packages/forms/src/Components/ModalTableSelect.php:333— ModalTableSelect.getOptionLabelsFromRelationship has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, boolean chains 4, ternaries 3 (nesting depth added 12). 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.
ModalTableSelect.toEmbeddedHtml (cognitive 27) packages/forms/src/Components/ModalTableSelect.php:902— ModalTableSelect.toEmbeddedHtml has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9, loops 7, ternaries 7, boolean chains 4 (nesting depth added 12). 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.
Wizard.toEmbeddedHtml (cognitive 27) packages/schemas/src/Components/Wizard.php:349— Wizard.toEmbeddedHtml has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, ternaries 6, loops 3 (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.
RelationshipJoiner.prepareQueryForNoConstraints (cognitive 27) packages/support/src/Services/RelationshipJoiner.php:26— RelationshipJoiner.prepareQueryForNoConstraints has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, boolean chains 4, ternaries 3, loops 2 (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.
Action.canRenderOptimizedLink (cognitive 26) packages/actions/src/Action.php:813— Action.canRenderOptimizedLink has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 26. 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.
InteractsWithActions.callMountedAction (cognitive 26) packages/actions/src/Concerns/InteractsWithActions.php:197— InteractsWithActions.callMountedAction has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, error handling 6, ternaries 4, loops 2, boolean chains 1, match/switch 1 (nesting depth added 5). 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.
CheckboxList.toEmbeddedHtml (cognitive 26) packages/forms/src/Components/CheckboxList.php:484— CheckboxList.toEmbeddedHtml has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, ternaries 4, boolean chains 2, loops 2 (nesting depth added 11). 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.
ModalTableSelect.fillStateFromRelationship (cognitive 26) packages/forms/src/Components/ModalTableSelect.php:427— ModalTableSelect.fillStateFromRelationship has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, boolean chains 5, ternaries 5 (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.
ComponentAttributeBag.merge (cognitive 26) packages/support/src/View/ComponentAttributeBag.php:227— ComponentAttributeBag.merge has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, boolean chains 4, loops 4 (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.
HasBulkActions.getSelectedTableRecordsQuery (cognitive 26) packages/tables/src/Concerns/HasBulkActions.php:296— HasBulkActions.getSelectedTableRecordsQuery has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, loops 5, boolean chains 1 (nesting depth added 9). 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.
InteractsWithTable.bootedInteractsWithTable (cognitive 26) packages/tables/src/Concerns/InteractsWithTable.php:45— InteractsWithTable.bootedInteractsWithTable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, boolean chains 9, ternaries 2 (nesting depth added 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.
ActionGroup.toEmbeddedHtml (cognitive 25) packages/actions/src/ActionGroup.php:468— ActionGroup.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 6, ternaries 4, boolean chains 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.
AttachAction.getRecordSelect (cognitive 25) packages/actions/src/AttachAction.php:216— AttachAction.getRecordSelect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10, ternaries 8, boolean chains 5, loops 2 (nesting depth added 4). 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.
TestsActions.parseNestedActions (cognitive 25) packages/actions/src/Testing/TestsActions.php:695— TestsActions.parseNestedActions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, boolean chains 6, ternaries 4, loops 1 (nesting depth added 9). 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.
ToggleButtons.toEmbeddedHtml (cognitive 25) packages/forms/src/Components/ToggleButtons.php:68— ToggleButtons.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 7, boolean chains 3, loops 1 (nesting depth added 9). 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.
InteractsWithRelationshipTable.makeTable (cognitive 25) packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php:108— InteractsWithRelationshipTable.makeTable has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, loops 8 (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.
Flex.toEmbeddedHtml (cognitive 25) packages/schemas/src/Components/Flex.php:47— Flex.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 6, match/switch 3, boolean chains 1, loops 1 (nesting depth added 11). 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.
ColorColumn.toEmbeddedHtml (cognitive 25) packages/tables/src/Columns/ColorColumn.php:21— ColorColumn.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 18, if/else 4, boolean chains 2, loops 1 (nesting depth added 9). 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.
RepeatableEntry.toEmbeddedTableHtml (cognitive 24) packages/infolists/src/Components/RepeatableEntry.php:165— RepeatableEntry.toEmbeddedTableHtml has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 4, ternaries 4 (nesting depth added 11). 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.
HasRelationManagers.getRelationManagersContentComponent (cognitive 24) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:122— HasRelationManagers.getRelationManagersContentComponent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, ternaries 9, match/switch 3, boolean chains 2 (nesting depth added 9). 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.
UpgradeDirectoryStructureToV4Command.moveClass (cognitive 24) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:296— UpgradeDirectoryStructureToV4Command.moveClass has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 8, error handling 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 24) packages/support/resources/js/utilities/select.js:227— (anonymous) has cognitive complexity 24 (threshold 15). 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.
ImportAction.setUp (cognitive 23) packages/actions/src/ImportAction.php:75— ImportAction.setUp has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 5, loops 3, error handling 1 (nesting depth added 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.
TableSelect.fillStateFromRelationship (cognitive 23) packages/forms/src/Components/TableSelect.php:107— TableSelect.fillStateFromRelationship has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, ternaries 5, boolean chains 4 (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.
CanFormatState.formatState (cognitive 23) packages/tables/src/Columns/Concerns/CanFormatState.php:376— CanFormatState.formatState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, boolean chains 2, 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.
getSelectedOptionLabels (cognitive 23) packages/support/resources/js/utilities/select.js:1736— getSelectedOptionLabels has cognitive complexity 23 (threshold 15). 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.
InteractsWithToolbarButtons.applyEnableToolbarButtonsModification (cognitive 22) packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php:194— InteractsWithToolbarButtons.applyEnableToolbarButtonsModification has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 4, 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.
MakeRelationManagerCommand.handle (cognitive 22) packages/panels/src/Commands/MakeRelationManagerCommand.php:239— MakeRelationManagerCommand.handle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 4, error handling 1 (nesting depth added 9). 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.
HasState.dehydrateState (cognitive 22) packages/schemas/src/Components/Concerns/HasState.php:316— HasState.dehydrateState has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 5, boolean chains 1 (nesting depth added 12). 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.
HasRecords.getTableRecords (cognitive 22) packages/tables/src/Concerns/HasRecords.php:95— HasRecords.getTableRecords has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 6 (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.
TestsFilters.filterTable (cognitive 22) packages/tables/src/Testing/TestsFilters.php:24— TestsFilters.filterTable has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 12, if/else 7, boolean chains 3 (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.
handleDropdownKeydown (cognitive 22) packages/support/resources/js/utilities/select.js:1263— handleDropdownKeydown has cognitive complexity 22 (threshold 15). 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.
Type.setUp (cognitive 21) packages/forms/src/Components/MorphToSelect/Type.php:67— Type.setUp has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, ternaries 4, boolean chains 2, loops 1 (nesting depth added 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.
Repeater.saveToRelationship (cognitive 21) packages/forms/src/Components/Repeater.php:979— Repeater.saveToRelationship has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, ternaries 3, loops 2 (nesting depth added 9). 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.
InteractsWithSchemas.cacheSchema (cognitive 21) packages/schemas/src/Concerns/InteractsWithSchemas.php:202— InteractsWithSchemas.cacheSchema has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (nesting depth added 5). 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.
HasCellState.getStateFromRecord (cognitive 21) packages/support/src/Concerns/HasCellState.php:115— HasCellState.getStateFromRecord has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (nesting depth added 9). 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.
updateSelectedDisplay (cognitive 21) packages/support/resources/js/utilities/select.js:617— updateSelectedDisplay has cognitive complexity 21 (threshold 15). 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.
selectOption (cognitive 21) packages/support/resources/js/utilities/select.js:2039— selectOption has cognitive complexity 21 (threshold 15). 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.
ImporterClassGenerator.getImporterColumns (cognitive 20) packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:116— ImporterClassGenerator.getImporterColumns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (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.
BaseFileUpload.getValidationRules (cognitive 20) packages/forms/src/Components/BaseFileUpload.php:697— BaseFileUpload.getValidationRules has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, ternaries 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.
ModalTableSelect.saveStateToRelationship (cognitive 20) packages/forms/src/Components/ModalTableSelect.php:579— ModalTableSelect.saveStateToRelationship has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 5 (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.
RichEditor.getGroupedCustomBlocks (cognitive 20) packages/forms/src/Components/RichEditor.php:1290— RichEditor.getGroupedCustomBlocks has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, loops 7, if/else 4, boolean chains 1 (nesting depth added 11). 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.
Select.saveStateToRelationship (cognitive 20) packages/forms/src/Components/Select.php:1333— Select.saveStateToRelationship has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 5 (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.
ToggleButtons.toGroupedEmbeddedHtml (cognitive 20) packages/forms/src/Components/ToggleButtons.php:165— ToggleButtons.toGroupedEmbeddedHtml has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, ternaries 7, boolean chains 2, 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.
CanFormatState.formatState (cognitive 20) packages/infolists/src/Components/Concerns/CanFormatState.php:376— CanFormatState.formatState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 2, ternaries 1 (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.
NavigationManager.get (cognitive 20) packages/panels/src/Navigation/NavigationManager.php:47— NavigationManager.get has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 2, ternaries 2 (nesting depth added 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.
HasComponents.discoverComponents (cognitive 20) packages/panels/src/Panel/Concerns/HasComponents.php:501— HasComponents.discoverComponents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, ternaries 2, loops 1 (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.
HasState.hydrateState (cognitive 20) packages/schemas/src/Components/Concerns/HasState.php:446— HasState.hydrateState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 3 (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.
CanSearchRecords.applyGlobalSearchToTableQuery (cognitive 20) packages/tables/src/Concerns/CanSearchRecords.php:140— CanSearchRecords.applyGlobalSearchToTableQuery has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (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.
ConvertStaticConfigurationToConfigureUsingFunction.refactor (cognitive 20) packages/upgrade/src/Rector/ConvertStaticConfigurationToConfigureUsingFunction.php:77— ConvertStaticConfigurationToConfigureUsingFunction.refactor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 6, ternaries 2 (nesting depth added 9). 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.
applyDisabledState (cognitive 20) packages/support/resources/js/utilities/select.js:2251— applyDisabledState has cognitive complexity 20 (threshold 15). 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.
HasComponents.getComponentByStatePath (cognitive 19) packages/schemas/src/Concerns/HasComponents.php:217— HasComponents.getComponentByStatePath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 3, ternaries 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.
InteractsWithSchemas.getSchemaComponentForFileUpload (cognitive 19) packages/schemas/src/Concerns/InteractsWithSchemas.php:524— InteractsWithSchemas.getSchemaComponentForFileUpload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 2 (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.
CanSortRecords.applySortingToTableQuery (cognitive 19) packages/tables/src/Concerns/CanSortRecords.php:78— CanSortRecords.applySortingToTableQuery has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 3, loops 1 (nesting depth added 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.
SelectFilter.apply (cognitive 19) packages/tables/src/Filters/SelectFilter.php:165— SelectFilter.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, ternaries 6, boolean chains 1 (nesting depth added 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.
AddTraitByTraitRector.refactor (cognitive 19) packages/upgrade/src/Rector/AddTraitByTraitRector.php:48— AddTraitByTraitRector.refactor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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.
Action.canRenderOptimizedGrouped (cognitive 18) packages/actions/src/Action.php:927— Action.canRenderOptimizedGrouped has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 18. 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.
DownloadImportFailureCsv.__invoke (cognitive 18) packages/actions/src/Imports/Http/Controllers/DownloadImportFailureCsv.php:17— DownloadImportFailureCsv.__invoke has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 3, loops 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.
RichContentRenderer.customBlocks (cognitive 18) packages/forms/src/Components/RichEditor/RichContentRenderer.php:629— RichContentRenderer.customBlocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 6, boolean chains 1 (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.
CanGenerateUrls.getUrl (cognitive 18) packages/panels/src/Resources/Resource/Concerns/CanGenerateUrls.php:16— CanGenerateUrls.getUrl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 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.
Actions.toEmbeddedHtml (cognitive 18) packages/schemas/src/Components/Actions.php:180— Actions.toEmbeddedHtml has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, if/else 5, loops 2 (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.
Schema.renderEmbeddedHtml (cognitive 18) packages/schemas/src/Schema.php:151— Schema.renderEmbeddedHtml has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, ternaries 5, boolean chains 1, loops 1 (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.
AssetsCommand.handle (cognitive 18) packages/support/src/Commands/AssetsCommand.php:23— AssetsCommand.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 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.
CanAskForResource.askForResource (cognitive 18) packages/support/src/Commands/Concerns/CanAskForResource.php:16— CanAskForResource.askForResource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, boolean chains 1 (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.
HasCluster.askForCluster (cognitive 18) packages/support/src/Commands/Concerns/HasCluster.php:27— HasCluster.askForCluster has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 4, match/switch 2 (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.
Summarizer.getState (cognitive 18) packages/tables/src/Columns/Summarizers/Summarizer.php:72— Summarizer.getState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 2 (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.
UpgradeDirectoryStructureToV4Command.handle (cognitive 18) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:52— UpgradeDirectoryStructureToV4Command.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 1 (nesting depth added 6). 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.
refreshOptionLabelListener (cognitive 18) packages/support/resources/js/utilities/select.js:1071— refreshOptionLabelListener has cognitive complexity 18 (threshold 15). 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.
InteractsWithActions.unmountAction (cognitive 17) packages/actions/src/Concerns/InteractsWithActions.php:732— InteractsWithActions.unmountAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, boolean chains 5, loops 3, ternaries 2, error handling 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.
Builder.generateBlockPickerHtml (cognitive 17) packages/forms/src/Components/Builder.php:1269— Builder.generateBlockPickerHtml has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, ternaries 5, loops 2, match/switch 1 (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.
Select.resolveOptionLabel (cognitive 17) packages/forms/src/Components/Select.php:572— Select.resolveOptionLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, boolean chains 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.
IconEntry.toEmbeddedHtml (cognitive 17) packages/infolists/src/Components/IconEntry.php:237— IconEntry.toEmbeddedHtml has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, if/else 7, loops 1, match/switch 1 (nesting depth added 2). 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.
Page.getResourceBreadcrumbs (cognitive 17) packages/panels/src/Resources/Pages/Page.php:179— Page.getResourceBreadcrumbs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 3, ternaries 3, loops 2 (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.
OptionsArrayStateCast.get (cognitive 17) packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:14— OptionsArrayStateCast.get has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7 (nesting depth added 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.
HasStateBindingModifiers.getStateBindingModifiers (cognitive 17) packages/schemas/src/Concerns/HasStateBindingModifiers.php:83— HasStateBindingModifiers.getStateBindingModifiers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, ternaries 6 (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.
CanAskForViewLocation.askForViewLocation (cognitive 17) packages/support/src/Commands/Concerns/CanAskForViewLocation.php:19— CanAskForViewLocation.askForViewLocation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 3, ternaries 2, boolean chains 1 (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.
EvaluatesClosures.resolveClosureDependencyForEvaluation (cognitive 17) packages/support/src/Concerns/EvaluatesClosures.php:43— EvaluatesClosures.resolveClosureDependencyForEvaluation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7 (nesting depth added 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.
SelectColumn.getOptionLabel (cognitive 17) packages/tables/src/Columns/SelectColumn.php:392— SelectColumn.getOptionLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, boolean chains 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.
HasBulkActions.getSelectedTableRecords (cognitive 17) packages/tables/src/Concerns/HasBulkActions.php:233— HasBulkActions.getSelectedTableRecords has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 4, boolean chains 3 (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.
createOptionElement (cognitive 17) packages/support/resources/js/utilities/select.js:522— createOptionElement has cognitive complexity 17 (threshold 15). 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.
ListTranslations.__invoke (cognitive 16) bin/TranslationTool/src/Commands/ListTranslations.php:11— ListTranslations.__invoke has cognitive complexity 16 (threshold 15). Drivers by points: loops 6, if/else 5, ternaries 4, boolean chains 1 (nesting depth added 9). 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.
ExporterClassGenerator.getExporterColumns (cognitive 16) packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:114— ExporterClassGenerator.getExporterColumns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (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.
InteractsWithRecord.getRecord (cognitive 16) packages/actions/src/Concerns/InteractsWithRecord.php:97— InteractsWithRecord.getRecord has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 1. 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.
EditAction.setUp (cognitive 16) packages/actions/src/EditAction.php:28— EditAction.setUp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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.
CanBeValidated.distinct (cognitive 16) packages/forms/src/Components/Concerns/CanBeValidated.php:641— CanBeValidated.distinct has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (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.
KeyValue.toEmbeddedHtml (cognitive 16) packages/forms/src/Components/KeyValue.php:375— KeyValue.toEmbeddedHtml has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 2. 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.
Login.authenticate (cognitive 16) packages/panels/src/Auth/Pages/Login.php:73— Login.authenticate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 1, loops 1 (nesting depth added 3). 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.
HasState.getState (cognitive 16) packages/schemas/src/Concerns/HasState.php:450— HasState.getState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 2 (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.
IconColumn.toEmbeddedHtml (cognitive 16) packages/tables/src/Columns/IconColumn.php:267— IconColumn.toEmbeddedHtml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 6, boolean chains 1, loops 1, match/switch 1 (nesting depth added 2). 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.
SelectColumn.toEmbeddedHtml (cognitive 16) packages/tables/src/Columns/SelectColumn.php:931— SelectColumn.toEmbeddedHtml has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, if/else 5, loops 2, boolean chains 1 (nesting depth added 4). 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.
TextColumn.canRenderOptimized (cognitive 16) packages/tables/src/Columns/TextColumn.php:185— TextColumn.canRenderOptimized has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. 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.
TextColumn.toOptimizedHtml (cognitive 16) packages/tables/src/Columns/TextColumn.php:214— TextColumn.toOptimizedHtml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 3, boolean chains 2 (nesting depth added 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.
HasFilters.removeTableFilter (cognitive 16) packages/tables/src/Concerns/HasFilters.php:78— HasFilters.removeTableFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, match/switch 3, ternaries 3, boolean chains 2, loops 2 (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.
Change coupling clique: TestsActions.php, TestsFormComponentActions.php, TestsInfolistActions.php, TestsActions.php packages/actions/src/Testing/TestsActions.php— 4 files — `packages/actions/src/Testing/TestsActions.php`, `packages/forms/src/Testing/TestsFormComponentActions.php`, `packages/infolists/src/Testing/TestsInfolistActions.php`, `packages/tables/src/Testing/TestsActions.php` — 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.
D36 · Supply-chain Provenance & Signing· Secret passed as a command-line argument · ×1
Secret passed as a command-line argument — 1 CI command(s) pass a credential as a bare command-line argument, where it is visible in the runner's process table to any other process on the host (and to anything that logs a command line): issue-reproduction-template.yml: auth_header=$(printf 'x-access-token:%s' "$TOKEN" | base64 | tr -d '\n'). Pass the credential through the environment instead (an `env:` mapping on the step, read by the tool from its own variable) or on stdin, so it never appears in an argument vector.
D38 · OSV Dependency Vulnerabilities· Medium vulnerability · ×1
Medium vulnerability: [GHSA redacted] composer.lock— guzzlehttp/guzzle 7.11.1: [GHSA redacted] — upgrade to 7.14.2. This is 1 of 7 advisories this scan raises against guzzlehttp/guzzle 7.11.1, and their fixed versions do not agree — anything below 7.15.1 still leaves at least one of them open, so 7.15.1 is the floor for this package, not this row's target alone. One upgrade of guzzlehttp/guzzle 7.11.1 clears all 7 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
D38 · OSV Dependency Vulnerabilities· Medium CVE · ×1
Medium CVE: [GHSA redacted] composer.lock— guzzlehttp/psr7 2.11.0: [GHSA redacted] — guzzlehttp/psr7 is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or require guzzlehttp/psr7:^2.12.3 explicitly so composer resolves the patched copy). This is 1 of 2 advisories this scan raises against guzzlehttp/psr7 2.11.0, and their fixed versions do not agree — anything below 2.12.3 still leaves at least one of them open, so 2.12.3 is the floor for this package, not this row's target alone. One upgrade of guzzlehttp/psr7 2.11.0 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
D11 · Test Reliability· Test reliability not included · ×1
Test reliability not included — Test source is present (.php) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 52 significant file(s) lose their only recent owner (largest: packages/upgrade/src/rector.php). Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 2 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 (54 single-owned of 442 analysed files in total).
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 6 of 442 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it. None is large enough to schedule a dedicated read-through on its own, so they are folded into the freshness score rather than raised individually — largest first: packages/forms/src/Components/ColorPicker.php, packages/forms/src/Components/RichEditor/TipTapExtensions/MentionExtension.php, packages/tables/resources/views/components/column-manager/index.blade.php (and 3 more).
No artifact signing — No artifact signing found in CI — sign your released artifacts with whatever your ecosystem ships (a GPG/minisign detached signature — or `cosign sign-blob` — over the release archives, or over a checksum file published alongside them, `npm publish --provenance` under GitHub OIDC for npm packages) so consumers can verify what you built.
D36 · Supply-chain Provenance & Signing· No SBOM · ×1
No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (`npm sbom --sbom-format cyclonedx` (npm 9+) or `@cyclonedx/cyclonedx-npm` over the lockfile, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
Coverage not included — suite not readable by the collector — Coverage NOT MEASURED: test source is present (.php) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (Clover XML — `vendor/bin/phpunit --coverage-clover coverage.xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored.
Info — 2 finding(s)
D12 · Dependency Hygiene· Dependency hygiene not measured · ×1
Dependency hygiene not measured — dependency manifest found but not parsed for hygiene — This repository's dependency manifest (composer.json, package.json) was found, but this pass cannot parse it for hygiene, so no package was assessed. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED — a gap in the analyzer, not a verdict about this repository. This row is about dependency HYGIENE — outdated, deprecated or unmaintained direct dependencies; known CVEs in the same dependency graph are a separate question, reported under D38 wherever the manifest is OSV-readable. Your package.json IS read in this same run: the frontend dependency lens (R8) parses it for unused declarations, undeclared imports and misplaced production dependencies — what is missing here is the outdated/deprecated/unmaintained signal for those npm packages, not the manifest.
D22 · Internal API Consistency· No exposed public API · ×1
No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.
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, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
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.
0
—
Run 019fae13-77e5-7527-bf05-86fa902cf48a · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 12 · Warnings: 585 · Recommendations: 8 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 29-07-2026 @ 13:32 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.