Public report of Besty0728/Unity-Skills, published 16 November 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 16 November 2026, 18:06 UTC · Survey ID cd_0fc2bee1301c481ca4cfac5f49722451

Besty0728/Unity-Skills

Measured 16 November 2026, 18:05 UTC, at code version 87e749a

First survey, so nothing to compare with yet
CAI score 53.8out of 100 Adequate
CriticalWeakAdequateStrongExemplary

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A large codebase: 149,371 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 3.6 person-years · Weakest lens: Code Health, 37.5

Findings by how serious they are

38 critical 984 serious 134 minor

9 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
16 November 2026, 18:05 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

56of 56 dimensions measured by tools.
1144of 1156 findings point to an exact file and line, so you can open each one in the code. The other 12 concern the repository as a whole, such as missing documentation.
56dimensions across 6 lenses, read from 149,371 lines of product code in 1 project.
Chapters

Executive summary

Besty0728/Unity-Skills falls short of our standard for production, held back most by its Code Health lens, the quality of the code itself. It scores 53.8 out of 100 and is rated Adequate, and all 38 of its critical findings are security problems in the build pipeline and in its code.

Code Health, at 37.5, is the weakest lens and counts most in the score. The best first step is settling the possibly-missing values, worth about 4.6 points. Removing the blocking waits comes next, worth about 4.3 points. Raising Code Health to 70 would lift the score to about 67.1.

Twenty-six pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Eight secrets can leak from the build pipeline, and three pipeline steps install packages that can change without warning. Pinning each tool to an exact version, limiting each secret to its own step and pinning what the pipeline installs would close these risks. The place where the code runs text as code or as a command needs a direct call instead.

The product code is 149,371 lines, about €520,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Code Health 37.5 · counts for 46%Security and Compliance 64.5 · counts for 25%Architecture 66.1 · counts for 14%Production Readiness 67.2 · counts for 8%Performance 85.0 · counts for 4%Maturity 85.3 · counts for 2%

If Code Health rose from 37.5 to 70, the lowest score rated Strong, the score would rise from 53.8 to about 67.1.

Code composition: what the lines of code are
Business logic 34%Supporting code 25%Tests 41%
Rebuild cost: about €520,000 · Estimate
Cost to rebuild€170,000 to €870,000, for 2,820 to 9,170 hours of work, about 3.6 person-years for 2 to 7 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 54. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 149,371 lines of product code
Comment linesThe estimate prices 138,517 lines. Comment lines count towards the size of 149,371 lines but aren't priced as work.
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`.
Raises the score by about 4.6 points · Medium effort · Nullable reference types
2
Sync-over-async (deadlock risk)
Raises the score by about 4.3 points · Medium effort · Async correctness
3
Interpolated log message defeats structured logging
Raises the score by about 3.5 points · Medium effort · Structured logging

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €520,000 to build again, about 3.6 person-years of work. Its weakest lens is Code Health, at 37.5 (Weak). Code Health is about how easy the code is to read and change safely, and code that is hard to read is slow and risky to change, so every future change costs more than it should. Because the weakest lens counts most in the score, work on Code Health also moves the score most.
Based on: the rebuild estimate · the Code Health grade · how much each lens counts
What to do: Start with the Code Health actions in Top priorities.
If you do one thing first · First action
Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`. Of all the actions in this report, it raises the score most for the work it takes: about 4.6 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 6.4 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 4% to 9% on every change. The history of the code shows how much it changes: about 311,951 lines over the last 90 days, which is about 1,265,135 lines a year. At that pace, the extra work comes to an estimated 124.5 to 746.9 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

2 modules, with 1 dependency between them. Every module uses only modules listed above it, so there are no loops.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 unity_skills2 SkillsForUnity.unity-skills~.scripts
1 unity_skills
2 SkillsForUnity.unity-skills~.scripts2
Uses a module listed above itPart of a loopThe module itself
1 unity_skills2 SkillsForUnity.unity-skills~.scriptsunity_skills1SkillsForUnity.unity-skills~.scripts22

At a glance — Code Health · 37.5 · Weak · gated by D2, X1, X4, X5 ·

At a glance — Architecture · 66.1 · Adequate · gated by AX2 ·

At a glance — Maturity · 85.3 · Strong ·

At a glance — Readiness · 67.2 · Adequate · gated by P3 ·

At a glance — Security · 64.5 · Adequate · gated by D29, D36 ·

At a glance — Performance · 85.0 · Strong ·

Security & Compliance — OWASP Top-10 mapping

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 categoryFindingsSeverity
A05:2025 — Injection42High / Critical
A03:2025 — Software Supply Chain Failures5Medium

Roadmap

Top priorities: Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`; Sync-over-async (deadlock risk); Interpolated log message defeats structured logging.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`.+4.6 ptsMediumNullable reference types
Sync-over-async (deadlock risk)+4.3 ptsMediumAsync correctness
Interpolated log message defeats structured logging+3.5 ptsMediumStructured logging
Swallowed exception (caught, then discarded)+2.1 ptsMediumException handling
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4), REDACTED (4).+1.0 ptsLowStatic Analysis (SAST)
Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.+1.7 ptsMediumStateful singletons
Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3).+0.7 ptsLowStatic Analysis (SAST)
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+0.7 ptsLowSupply-chain Provenance & Signing

File quality

Per-file score 0–10 — a quality signature. Of 160 files carrying findings, judged against the Production bar: 0% slop · 72% mixed · 28% near-clean.

FileScoreBandWorst signal
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.8MixedStatic Analysis (SAST): High: REDACTED
SkillsForUnity/Editor/Skills/PrefabSkills.cs5.5MixedCyclomatic Complexity: PrefabSkills.SetSerializedPropertyValue (cyclomatic 33)
SkillsForUnity/Editor/Skills/LightSkills.cs5.5MixedCyclomatic Complexity: LightSkills.ApplyLightProperties (cyclomatic 16)
SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs7.0MixedCyclomatic Complexity: SkillsHttpServer.ExecuteBatchCore (cyclomatic 83)
SkillsForUnity/Editor/Skills/ScriptSkills.cs7.0MixedCyclomatic Complexity: ScriptSkills.ScanBraceBlocks (cyclomatic 60)
SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs7.0MixedCyclomatic Complexity: SettingsDrawerController.RefreshLocalization (cyclomatic 57)
SkillsForUnity/Editor/Skills/HybridCLRSkills.cs7.0MixedCyclomatic Complexity: HybridCLRSkills.SettingsSet (cyclomatic 42)
SkillsForUnity/Editor/Skills/UIToolkitSkills.cs7.0MixedCyclomatic Complexity: UIToolkitSkills.UitkUxmlUpgrade (cyclomatic 40)
SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs7.0MixedCyclomatic Complexity: PrefabAssetEditor.Preview (cyclomatic 39)
SkillsForUnity/Editor/Skills/PerceptionSkills.cs7.0MixedCyclomatic Complexity: PerceptionSkills.ScriptDependencyGraph (cyclomatic 35)
SkillsForUnity/Editor/Skills/ComponentInvocationService.cs7.0MixedCyclomatic Complexity: ComponentInvocationService.ConvertArgument (cyclomatic 32)
SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs7.0MixedCyclomatic Complexity: SkillPlanningService.AnalyzeComponentRemoveBatch (cyclomatic 31)
SkillsForUnity/Editor/Skills/QFrameworkSkills.cs7.0MixedCyclomatic Complexity: QFrameworkSkills.ScanArchitecture (cyclomatic 29)
SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs7.0MixedCyclomatic Complexity: TokenLevelSliderWidget.DrawTokenSlider (cyclomatic 29)
SkillsForUnity/Editor/Skills/ModelSkills.cs7.0MixedCyclomatic Complexity: ModelSkills.ModelSetSettings (cyclomatic 28)
SkillsForUnity/Editor/Skills/WorkflowStore.cs7.0MixedCyclomatic Complexity: WorkflowStore.EvictSegments (cyclomatic 28)
SkillsForUnity/Editor/Skills/ClientProcessResolver.cs7.0MixedCyclomatic Complexity: ClientProcessResolver.TryExtractFromArgs (cyclomatic 26)
SkillsForUnity/Editor/Skills/ComponentSkills.cs7.0MixedCyclomatic Complexity: ComponentSkills.ComponentSetPropertyBatch (cyclomatic 25)

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 38

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 984

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 134

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 9

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

This survey 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. All 56 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.

Every figure here is one of two 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. 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.

What we checked — 56 dimensions across the health lenses
D1D2D3D4D6D7D8D10D11D13D15D16D17D19D20D28D29D30D34D35D36D37D43AX10AX2AX3AX4AX8GD1IC1M1M2M3M4P1P3P6PF3S1X1X12X13X16X17X18X20X21X23X25X28X29X3X30X32X4X5

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
  1. 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, 1144 of 1156 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.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. 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.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic

Every finding is locatable in findings.md. Run 01a1e588-fd0d-7ec8-860c-32b4feafbe63.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

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.

  • D4 Code Duplication — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 140 duplicated block group(s) on this row were found in the languages this pass could tokenize, and they do NOT cover all of this repository's production source: .py (29,503 lines, 20% of production source) went unread, because no language model this pass could load exposed a clone-unit token stream for those file kinds. Duplication in that source is UNMEASURED — its absence from the count above is a gap in this analyzer's language coverage, not a finding that the code is free of duplication.
  • D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 2,061 test(s) behind this row are the ones the C# collector could read, and this repository also carries at least 115 test source file(s) (.py) that it cannot: it parses C# syntax and matches C# test attributes, so a vitest/jest/JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 4 UPM declaration(s) across 1 manifest(s) were read for PINNING discipline (0 defect(s) reported), but the outdated signal needs packages.unity.com, and no committed packages-lock.json resolves a registry dependency to ask about, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — this repository declares its packages to Unity's package manager (UPM), in Packages/manifest.json and packages-lock.json, not to NuGet, so the .NET licence collector this dimension reads had no manifest to resolve. UPM package licences are not graded because the Unity package registry (packages.unity.com) publishes no licence field for the releases it serves and a packages-lock.json records none either — there is no licence metadata in this ecosystem to read, and packages resolved from a git URL have no registry behind them at all. A limit of what UPM publishes, NOT a finding that this repository's licences are compliant: this dimension asserts nothing about this repository's licensing in either direction.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API.
  • D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D30 Dependency Vulnerabilities — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies. osv: the scanner produced no output at all, so no dependency was actually scanned. This is reported as a measurement gap rather than a clean pass. osv-scanner documents exit 128 as "no package sources found" — but this scan only invoked it because the tree declares a source it supports (`pom.xml` and the resolved lockfiles among them), so the tool's report and this repository disagree. Check that those sources are reachable from the directory the scan ran in before concluding anything is missing. If this tree really does commit only range-pinned manifests, commit the lockfile your package manager produces — but only where your ecosystem HAS one and commits it: Maven has none at all (osv-scanner reads `pom.xml` directly) and Gradle writes one only under opt-in dependency locking, while a published Composer package and a published Dart library both deliberately exclude theirs. In those three, generate one in CI before the scan instead — a resolved dependency list or an SBOM fed to the scanner.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `SkillsForUnity/Editor/Skills/CinemachineAdapter.cs`, `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • D43 Malicious Dependencies — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies. osv: the scanner produced no output at all, so no dependency was actually scanned. This is reported as a measurement gap rather than a clean pass. osv-scanner documents exit 128 as "no package sources found" — but this scan only invoked it because the tree declares a source it supports (`pom.xml` and the resolved lockfiles among them), so the tool's report and this repository disagree. Check that those sources are reachable from the directory the scan ran in before concluding anything is missing. If this tree really does commit only range-pinned manifests, commit the lockfile your package manager produces — but only where your ecosystem HAS one and commits it: Maven has none at all (osv-scanner reads `pom.xml` directly) and Gradle writes one only under opt-in dependency locking, while a published Composer package and a published Dart library both deliberately exclude theirs. In those three, generate one in CI before the scan instead — a resolved dependency list or an SBOM fed to the scanner.
  • D44 Platform End-of-Life — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
  • AX2 Stateful singletons — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 19 further occurrence(s) are not listed individually; the score already reflects all 59.
  • IC1 Incompleteness & stubs — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • X1 Async correctness — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X10 Duplicated predicate — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 49 further occurrence(s) are not listed individually; the score already reflects all 89.
  • X12 Unreachable branch — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X13 Undrained process stream — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X16 Unfloored truncation loop — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X17 Uncapped recursion over a caller-supplied document — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X18 Disposal-pattern correctness — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X21 Side-effecting pattern guard — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X23 Unguarded diagnostic materialisation — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This repository's C# was parsed (it ships no .sln or .csproj, so it was read as syntax-only projects), but this check proves its findings from resolved symbols and a reference-free parse resolves none. It abstained rather than report a clean bill it could not earn. That is a gap in this analyzer's reach into build-less repositories — not a finding that the repository is free of what this check looks for.
  • X25 Inert configuration knob — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X27 Collection changed while being enumerated — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This repository's C# was parsed (it ships no .sln or .csproj, so it was read as syntax-only projects), but this check proves its findings from resolved symbols and a reference-free parse resolves none. It abstained rather than report a clean bill it could not earn. That is a gap in this analyzer's reach into build-less repositories — not a finding that the repository is free of what this check looks for.
  • X28 Index access outside its own emptiness guard — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X29 Per-element action decided by a fixed element — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 127 further occurrence(s) are not listed individually; the score already reflects all 167.
  • X30 Support guard that admits what it rejects — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X4 Structured logging — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
  • X4 Structured logging — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 145 further occurrence(s) are not listed individually; the score already reflects all 185.
  • X7 Silent fallback defaults — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 38 further occurrence(s) are not listed individually; the score already reflects all 78.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do 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 — an in-process token-stream comparison over sliding windows, with type-aware normalization — so 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.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside our isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • 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.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity5.6 / 10Adequate✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 5.6 / 10 · rule-coverage 100% · ceiling Prevented

141 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was SkillRouter.Execute at 88. A further 10 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 SkillPlanningService.ApplySemanticPlanner at 64 — they are counted neither in the figure above nor in this dimension's score. 6 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: SkillsForUnity/Editor/Skills/SkillPlanningService.Planners.cs (SkillPlanningService.ApplySemanticPlanner at 64), SkillsForUnity/Editor/Skills/SkillErrorCode.cs (SkillErrorCodeExtensions.ToWireString at 30), SkillsForUnity/Editor/UI/UnitySkillsWindow.cs (UnitySkillsAuditWindow.ApplyTypeStyle at 22), SkillsForUnity/Editor/UI/SelfUpdateFeedback.cs (SelfUpdateFeedback.ReasonKey at 21), SkillsForUnity/Editor/Skills/DOTweenSkills.cs (DOTweenSkills.ResolveRuntimeTweenSpec at 18), and 1 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

SkillRouter.Execute (cyclomatic 88)SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33
SkillsHttpServer.ExecuteBatchCore (cyclomatic 83)SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:292
ScriptSkills.ScanBraceBlocks (cyclomatic 60)SkillsForUnity/Editor/Skills/ScriptSkills.cs:437
SettingsDrawerController.RefreshLocalization (cyclomatic 57)SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:564
SkillsHttpServer.ProcessJob (cyclomatic 50)SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:209

+ 136 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 2 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with SkillRouter.Execute (cyclomatic 88), SkillsHttpServer.ExecuteBatchCore (cyclomatic 83). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cyclomatic Complexity from 5.6 to about 6.1/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

255 method(s) exceeded the cognitive complexity threshold of 15; the worst was SkillsHttpServer.ExecuteBatchCore at 216.

SkillsHttpServer.ExecuteBatchCore (cognitive 216)SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:292
ScriptSkills.ScanBraceBlocks (cognitive 133)SkillsForUnity/Editor/Skills/ScriptSkills.cs:437
SkillRouter.Execute (cognitive 133)SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33
RuntimeScenarioService.ProcessCore (cognitive 71)SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:129
SkillPlanningService.AnalyzeComponentRemoveBatch (cognitive 70)SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:218

+ 250 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 3 bodies over 120 down to 120 or less in Cognitive Complexity — start with SkillsHttpServer.ExecuteBatchCore (cognitive 216), ScriptSkills.ScanBraceBlocks (cognitive 133), SkillRouter.Execute (cognitive 133). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cognitive Complexity from 2.0 to about 3.0/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes8.1 / 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.

Maturity: Documented → Verified → Prevented · effective 8.1 / 10 · rule-coverage 100% · ceiling Prevented

107 god class(es) detected.

FileTooLong: Skills/PerceptionSkills.cs · ×42SkillsForUnity/Editor/Skills/PerceptionSkills.cs
TooManyMethods: WorkflowManager · ×37SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs
MethodTooLong: SkillRouter.Execute · ×18SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33
ClassTooLong: EventSkills · ×10SkillsForUnity/Editor/Skills/EventSkills.cs

What to do

  1. Resolve the 42 FileTooLong finding(s) in God Classes — start with PerceptionSkills.cs, ShaderGraphReflectionHelper.cs, UIToolkitSkills.cs. — One of this dimension's main actionable groups (42 warning-level).
  2. Resolve the 37 TooManyMethods finding(s) in God Classes — start with WorkflowManager.Restore.Checkpoint.cs, SkillRouter.Schema.cs, SkillsHttpServer.cs. — One of this dimension's main actionable groups (37 warning-level).
  3. Resolve the 18 MethodTooLong finding(s) in God Classes — start with SkillRouter.Execute.cs (2), HybridCLRSkills.cs (2), PerceptionSkills.cs (2). — One of this dimension's main actionable groups (18 warning-level).

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication8.1 / 10Strong✓ Tool-verified

What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.

Maturity: Documented → Verified → Prevented · effective 8.1 / 10 · rule-coverage 100% · ceiling Verified

140 duplicated block group(s) detected. 4.8 % of the production lines (7,160 of 149,371) are in a reported copy. A further 148 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 5 of the 288 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population. Measured on part of this repository only: .py (20% of production source) was not exposed to the token comparison, so duplication there is unmeasured and is not in this count.

Duplicated block (6 lines × 2) · ×16SkillsForUnity/Editor/Skills/GameObjectSkills.cs:60
Duplicated block (5 lines × 2) · ×16SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:448
Duplicated block (8 lines × 2) · ×12SkillsForUnity/Editor/Skills/PackageSkills.cs:408
Duplicated block (7 lines × 2) · ×10SkillsForUnity/Editor/Skills/LightSkills.cs:408
Edited copy of a member (12 corresponding lines) · ×9SkillsForUnity/Editor/Skills/GameObjectSkills.cs:1162

+ 111 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 16 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with UISkills.cs (3), GameObjectSkills.cs (2), ComponentSkills.cs (2). — One of this dimension's main actionable groups (16 warning-level).
  2. Resolve the 16 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with GameObjectSkills.cs (3), ShaderGraphSkills.cs, SkillPlanningService.Asset.cs. — One of this dimension's main actionable groups (16 warning-level).
  3. Resolve the 12 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with UISkills.cs (2), PackageSkills.cs, UnitySkillsWindow.cs. — One of this dimension's main actionable groups (12 warning-level).

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D6 · Cohesion (LCOM4)10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 38 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md.

D7 · Architectural Integrity6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Prevented

No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).

Detailed fixes: d7_recommendation.md.

D8 · Code Coverage9.9 / 10Stronggated by 22 serious findings✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from the analyzer's own run of the suite, computed per-file with structured exclusions for generated, trivial, and glue code. A coverage report found in the repository is never read. When the suite can't be built/run in-image, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 82.8% — 22 file(s) below 50%. Measured from the Python suite (repository root: `coverage run -m pytest`, the 3 run(s) test reliability made). Taken over 3 runs of the suite: a line counts as covered only when every run executed it.

Low coverage: eval/cli.py · ×22eval/cli.py:1

What to do

  1. Resolve the 22 Low coverage finding(s) in Code Coverage — start with cli.py, checks.py, env.py. — One of this dimension's main actionable groups (22 warning-level).

Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.

D10 · Test Quality10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 2061 tests. Measured on the C# suite only — at least 115 test source file(s) (.py) went unread, so its test quality is unmeasured and is not in these counts.

✓ On the Gold path — maintain.

Detailed fixes: d10_recommendation.md.

D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 1 measured tier(s). Python (repository root, 89 test files): measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots9.8 / 10Stronggated by 53 serious findings✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs (13×57=741); SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs (8×88=704); SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs (8×83=664) Repeated repair below the complexity floor: SkillsForUnity/Editor/Skills/PhysicsSkills.cs (7 of 11 changes were fixes); SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs (6 of 9 changes were fixes); SkillsForUnity/Editor/Skills/NetcodeSkills.cs (5 of 9 changes were fixes)

Hotspot: SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs · ×38SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:564
Repeated repair: SkillsForUnity/Editor/Skills/PhysicsSkills.cs · ×15SkillsForUnity/Editor/Skills/PhysicsSkills.cs:356

What to do

  1. Resolve the 38 Hotspot finding(s) in Churn × Complexity Hotspots — start with SettingsDrawerController.cs, SkillRouter.Execute.cs, SkillsHttpServer.Batch.cs. — One of this dimension's main actionable groups (38 warning-level).
  2. Resolve the 15 Repeated repair finding(s) in Churn × Complexity Hotspots — start with PhysicsSkills.cs, ScriptableObjectSkills.cs, NetcodeSkills.cs. — One of this dimension's main actionable groups (15 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

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.

Maturity: Documented → Verified → Prevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Documented

25 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is SkillsForUnity/Editor/Skills/HybridCLRSkills.cs. Counted over 207 of the 221 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
  2. 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.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 deducted task-comment markers across 149371 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 documentation facets pass in full. 16 document(s) read across 2 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 1 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.

✓ On the Gold path — maintain.

Detailed fixes: d20_recommendation.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)1.2 / 10Critical✓ Tool-verified

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).

Maturity: Documented → Verified → Prevented · effective 1.2 / 10 · rule-coverage 100% · ceiling Documented

42 finding(s): 0 critical, 38 high, 0 medium, 4 low. 26 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 5 file(s) — `SkillsForUnity/Editor/Skills/CinemachineAdapter.cs` (line 154, line 196, line 239), `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs` (lines 534–540, line 566, lines 575–611), `SkillsForUnity/Tests/Editor/Core/ParticleCodecTests.cs` (line 27, line 33), `SkillsForUnity/Tests/Editor/Core/ParticleRegistryTests.cs` (line 60), `SkillsForUnity/Tests/Editor/Core/ParticleTestSupport.cs` (line 133) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 1 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4), REDACTED (4). — One of this dimension's main actionable groups (8 issue-level).
  2. Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
  3. No action in Static Analysis (SAST) — all 26 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (26 issue-level, 0 of them charged here).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d30_recommendation.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 207 of the 221 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling9.8 / 10Stronggated by 3 serious findings✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: LightSkills.cs↔MaterialSkills.cs 73%; LightSkills.cs↔PrefabSkills.cs 64%; RegistryService.cs↔SkillRouter.cs 60%

Change coupling: LightSkills.cs ↔ MaterialSkills.cs · ×2SkillsForUnity/Editor/Skills/LightSkills.cs:1
Change-coupling hub: PrefabSkills.cs → EventSkills.cs, LightSkills.cs, MaterialSkills.csSkillsForUnity/Editor/Skills/PrefabSkills.cs

What to do

  1. Resolve the 2 Change coupling finding(s) in Change Coupling — start with LightSkills.cs, RegistryService.cs. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with PrefabSkills.cs. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D36 · Supply-chain Provenance & Signing0.0 / 10Critical✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. Resolve the 1 REDACTED 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.

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

A vulnerability-disclosure policy (.github/SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition9.5 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

AX2 · Stateful singletons1.0 / 10Critical✓ Tool-verified

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `ScriptDomainImportCapture` keeps one instance of itself in the static `_current`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_disposed; e.g. `_disposed` at line 1256). — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:1215
  • `PendingObjectSet` is not registered, but `SkillPlanningService` creates it and keeps it in the static `_pendingObjects`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_paths, _pathsByName, _nameOnly, _componentsByPath; e.g. `_paths` at line 331). — SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:318
  • `RequestJob` is not registered, but `SkillsHttpServer` creates it and keeps it in the static `_lightQueue`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (Context, HttpMethod, Path, Body, EnqueueTimeTicks, RequestId; e.g. `Context` at line 58). — SkillsForUnity/Editor/Skills/SkillsHttpServer.Queue.cs:21
  • `WorkflowHistoryData` is not registered, but `WorkflowManager` creates it and keeps it in the static `_history`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (tasks, checkpoints, restores, nextSeq; e.g. `tasks` at line 129). — SkillsForUnity/Editor/Skills/WorkflowModels.cs:119
  • `RestoredObjectMap` is not registered, but `WorkflowManager` creates it and keeps it in the static `_restoreScopeObjects`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_byGlobalId, _byEntityId, _byInstanceId; e.g. `_byGlobalId` at line 1035). — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:1022
  • `WorkflowTask` is not registered, but `WorkflowManager` creates it and keeps it in the static `_currentTask`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_snapshotKeys, _entityKeys, snapshots; e.g. `_snapshotKeys` at line 219). — SkillsForUnity/Editor/Skills/WorkflowModels.cs:181
  • `Store` is not registered, but `ProjectPrefs` creates it and keeps it in the static `_projectStore`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_values, _unreadable, _unsavedReported, _writeFailureReported; e.g. `_values` at line 194). — SkillsForUnity/Editor/Skills/ProjectPrefs.cs:161
  • `AddressablesSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_editorAssembly; e.g. `_editorAssembly` at line 49). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:24
  • `AgentInstructionService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefEnabled; e.g. `_prefEnabled` at line 66). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/AgentInstructionService.cs:31
  • `AsyncJobService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (TestRuntimeJobs, SmokeRuntimeJobs; e.g. `TestRuntimeJobs` at line 122). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/AsyncJobService.cs:15
  • `BatchJobService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (RuntimeJobs; e.g. `RuntimeJobs` at line 87). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/BatchJobService.cs:10
  • `BatchPersistence` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_transientScopeDepth; e.g. `_transientScopeDepth` at line 181). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/BatchPersistence.cs:10
  • `BehaviorReflectionHelper` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (ResolvedTypes; e.g. `ResolvedTypes` at line 87). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/BehaviorSkills.cs:30
  • `CleanerSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_pendingDeletes; e.g. `_pendingDeletes` at line 267). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/CleanerSkills.cs:14
  • `ClientProcessResolver` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefEnabled; e.g. `_prefEnabled` at line 59). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:50
  • `CompilationResultService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_cachedResultJson, _outcomeJson, _outcome, _historyJson, _parsedHistoryJson, _historyOutcomes; e.g. `_cachedResultJson` at line 82). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/CompilationResultService.cs:24
  • `ComponentInvocationService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (Running; e.g. `Running` at line 307). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:15
  • `ComponentSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_typeCache, _memberCache; e.g. `_typeCache` at line 949). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/ComponentSkills.cs:16
  • `ConsoleLogHistoryService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_corruptRows, _uncompactedCorruptRows, _incompleteThroughSeq, _parsedRows; e.g. `_corruptRows` at line 199). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:19
  • `DebugSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_logEntriesType, _logEntryType, _getCountMethod, _getEntryMethod, _startMethod, _endMethod; e.g. `_logEntriesType` at line 129). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/DebugSkills.cs:17
  • `DomainReloadStats` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_state; e.g. `_state` at line 81). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/DomainReloadStats.cs:17
  • `DryRunPolicyService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefKey, _current, OverrideForTests; e.g. `_prefKey` at line 59). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:34
  • `EditorChangeTrackerService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_restAgent, _restDepth, PendingProperties, _propertyFlushDue, _propertyFlushScheduled, Catalog; e.g. `_restAgent` at line 131). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:26
  • `EvaluationRunnerService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (Processes, ExitSeenAt; e.g. `Processes` at line 171). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:82
  • `EventChannelService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_consoleWindowStartTicks, _consoleErrorsThisWindow, _consoleDroppedSinceLast, _publishingConsoleError, RuntimeErrorRecorderForTests; e.g. `_consoleWindowStartTicks` at line 262). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/EventChannelService.cs:29
  • `GameObjectFinder` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_resolutionNotes, _omittedResolutionNotes, _cachedSceneData, _cacheValid; e.g. `_resolutionNotes` at line 264). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/GameObjectFinder.cs:230
  • `SkillsCommon` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_findTypeCache; e.g. `_findTypeCache` at line 1349). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/GameObjectFinder.cs:1186
  • `HybridCLRSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_editorAssembly, _apiLine; e.g. `_editorAssembly` at line 71). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:30
  • `SkillsLocalization` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_current, _initialized; e.g. `_current` at line 53). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/Localization.cs:16
  • `PackageManagerHelper` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_pendingListCallbacks, _isRefreshing, _currentOperation, _currentPackageId, _listRequest, _installedPackages; e.g. `_pendingListCallbacks` at line 103). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/PackageManagerHelper.cs:18
  • `PerceptionSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_codeDependencyCache, _codeDependencyCacheDirty; e.g. `_codeDependencyCache` at line 67). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/PerceptionSkills.cs:23
  • `RegistryService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_heartbeatCount; e.g. `_heartbeatCount` at line 190). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/RegistryService.cs:17
  • `RenderPipelineSkillsCommon` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_registryPostProcess, _registryAll; e.g. `_registryPostProcess` at line 265). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/RenderPipelineSkillsCommon.cs:44
  • `SerializedPropertySkillUtility` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_unityObjectTypes; e.g. `_unityObjectTypes` at line 962). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:11
  • `SkillErrorCodeExtensions` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_byName; e.g. `_byName` at line 105). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SkillErrorCode.cs:45
  • `SkillInstallSyncService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefEnabled; e.g. `_prefEnabled` at line 53). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SkillInstallSyncService.cs:32
  • `SkillPlanningService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_pendingObjects; e.g. `_pendingObjects` at line 201). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:12
  • `SkillRouter` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_lastWorkflowEndMs, _summaryAutoTruncate, _summaryPageSize; e.g. `_lastWorkflowEndMs` at line 36). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:13
  • `SkillTelemetryService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_cachedDir, _cachedPath; e.g. `_cachedDir` at line 187). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:37
  • `SkillsAuditLog` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_ambient, _cachedDir, _cachedPath; e.g. `_ambient` at line 87). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:34

What to do

  • Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
  • A `static` field is one slot for the whole process, however its type is created: back it with a thread-safe type (ConcurrentDictionary, Interlocked), take a lock around every write, or move it into a registered singleton that does.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

IC1 · Incompleteness & stubs8.0 / 10Strong✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • 2 guards above `return result;` also return `result`, so no input can make them matter. Implement the distinction that was intended, or delete the guards. — SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1070
  • Control only reaches here when `matches.Count >= effectiveLimit` is false, because the guard on line 1333 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. — SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1340
  • Control only reaches here when `shouldAbort()` is false, because the guard on line 328 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. — SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:369
  • `OnRootDetached` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:192

What to do

  • Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
M1 · Documentation (README)7.3 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.

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

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation8.0 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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.

  • No static application security testing detected. For this repository's stack, add `semgrep --config=auto` plus gitleaks for committed secrets — this tree has no MSBuild project file, so CodeQL's csharp pack (which traces a build) and NuGet security analyzers (which are referenced from a project) have nothing to attach to as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
  • `SkillsForUnity/package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — SkillsForUnity/package.json:10

What to do

  • Add a SAST step to CI running what this repository's stack ships: `semgrep --config=auto` plus gitleaks for committed secrets — this tree has no MSBuild project file, so CodeQL's csharp pack (which traces a build) and NuGet security analyzers (which are referenced from a project) have nothing to attach to — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

PF3 · Async & latency hygiene8.5 / 10Strong✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • 1 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:317

What to do

  • Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
S1 · Cryptographic Hygiene8.0 / 10Strong✓ Tool-verified

Other · Security — Cryptographic hygiene (weak hash/cipher, password key-derivation). This codebase has no web surface, so transport/header/cookie/CSRF controls are N/A and only crypto is scored.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses. (×6) — SkillsForUnity/Editor/Skills/CleanerSkills.cs:116, SkillsForUnity/Editor/Skills/SkillInstaller.cs:446, SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:307, …

What to do

  • Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (`System.IO.Hashing.XxHash64`/`Crc32`) where it only derives an identifier such as a cache key or a mutex name. This repository constructs a collision-broken hash (MD5/SHA1) at 6 sites, not one: `SkillsForUnity/Editor/Skills/CleanerSkills.cs:116` (MD5), `SkillsForUnity/Editor/Skills/SkillInstaller.cs:446` (SHA1), `SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:307` (SHA1), `SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:453` (SHA1), `SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:477` (SHA1), `SkillsForUnity/Editor/Skills/WorkflowStateHash.cs:60` (SHA1). Each is a separate decision — fixing only the line this row cites leaves the others in place.
X1 · Async correctness2.3 / 10Critical✓ Tool-verified

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

  • Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process. — SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:317
  • `Task.WaitAll` blocks this thread until the tasks complete — sync-over-async: it can deadlock under a synchronization context and it parks a thread for as long as the work runs. `await Task.WhenAll(…)` instead. (×2) — SkillsForUnity/Editor/Skills/PythonLocator.cs:347, SkillsForUnity/Editor/Versioning/GitCliRunner.cs:294

What to do

  • Sync-over-async (deadlock risk)
X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document2.0 / 10Critical✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `ConvertArgument` is internal and takes the `JToken` from its caller, and it calls itself at line 239 with a child of the node it was given (and at line 247) — and nowhere in `ConvertArgument` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `ConvertArgument` can intervene. Thread a depth argument through `ConvertArgument` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack. — SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:239
  • `HashBatch` is internal, takes a document from its caller (line 191) and hands it to `Canonicalize`, which calls itself at line 223 with a child of the node it was given — and nowhere in `Canonicalize` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `HashBatch` can intervene. Thread a depth argument through `Canonicalize` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack. — SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:223
  • `Matches` is internal and takes the `JToken` from its caller, and it calls itself at line 245 with a child of the node it was given — and nowhere in `Matches` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `Matches` can intervene. Thread a depth argument through `Matches` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack. — SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:245
  • `BlankReferenceLeaves` is internal and takes the `JToken` from its caller, and it calls itself at line 92 with a child of the node it was given (and at line 97) — and nowhere in `BlankReferenceLeaves` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `BlankReferenceLeaves` can intervene. Thread a depth argument through `BlankReferenceLeaves` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack. — SkillsForUnity/Editor/Skills/WorkflowStateHash.cs:92

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

X20 · Mistyped argument guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `ArgumentNullException` tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements (or a repository exception type deriving from it) controlled by an `if` — directly or through the `using`, `lock` or `try` that wraps the throw — whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`); in the `else` branch, for a conjunct of the admitting condition that is FALSE of a non-null `p`. Range guards are read for bounds that leave nothing and for a `p > C.Count` bound whose index then reaches `C[p]`, `C.RemoveAt(p)` or a method of the same type that indexes with it. Deterministic, provable per finding. Advisory.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation7.4 / 10Strong✓ Tool-verified

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

  • `LogVerbose` at line 704 is called with an argument built by `string.Join("; ", failures)` (line 706), whose cost grows with the collection it walks. C# evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because LogVerbose is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `IsEnabled` test, no debug flag, no conditional-compilation region. — SkillsForUnity/Editor/Skills/WorkflowStore.cs:704

What to do

  • Each finding names the diagnostic call and the expression inside its argument whose cost scales with a collection. Confirm from the two that the argument is built before the call — that is C#'s evaluation order, not a guess — then put the construction behind the same level check the sink applies: `if (logger.IsEnabled(LogLevel.Trace))` for Microsoft.Extensions.Logging, the repository's own debug flag where it has one, or a message template whose ARGUMENTS the logging framework only formats when the level is on. Moving the call is not the fix: it is the join/projection in the argument that is paid, wherever the call sits.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling4.8 / 10Weak✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. (×12) — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:45, SkillsForUnity/Editor/Skills/AgentInstructionService.cs:169, SkillsForUnity/Editor/Skills/BehaviorSkills.cs:341, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×26) — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:219, SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:81, SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:347, …
  • `catch (ArgumentException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:141
  • `catch (IOException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:223

What to do

  • Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X32 · Type resolved by simple name across every loaded assembly3.5 / 10Weak✓ Tool-verified

Other · Code Health — Whether a plugin lookup names the type it means — searching every assembly loaded into the process for a candidate whose SIMPLE name equals a string supplied at runtime, and taking the first one found, is decided by assembly LOAD ORDER rather than by this source, so the same name can resolve to a different type on the next run.

Method: Roslyn syntax only, no semantic model: every invocation of `First`/`FirstOrDefault`/`Single`/`SingleOrDefault` whose OWN expression subtree contains both a `GetAssemblies()` call and a `GetTypes()`/`GetExportedTypes()` call — a single-element pick out of every type loaded into the process. A nested selector in the same chain sees no `GetAssemblies()` in its own subtree and is outside the population, so one lookup counts once however many links its chain has. A finding additionally needs both remaining halves: the selector must be `First`/`FirstOrDefault` (`Single`/`SingleOrDefault` reports the ambiguity rather than resolving it, and is counted and never reported), and the chain must carry an `==` comparison of `<lambda parameter>.Name` against something that is not a literal. The receiver must be a plain identifier bound by one of the chain’s own lambdas, which places `assembly.GetName().Name == "X"` outside the rule by construction. One exemption: a `.Name` test joined by `&&` to a `FullName`/`AssemblyQualifiedName` test on the same identifier is spared; joined by `||` it is not. Deterministic, provable per finding. Advisory.

  • `t.Name.Equals(simpleName, StringComparison.OrdinalIgnoreCase)` matches `t` by its SIMPLE name while walking every type of every assembly in `AppDomain.CurrentDomain.GetAssemblies()`, and the loop keeps the first match (or the last one written to the map). The assembly list is in LOAD order and `Type.Name` is not unique — the namespace is what separates two types spelled the same way — so which type answers depends on which code path ran first, not on this source. Compare `FullName` or `AssemblyQualifiedName`, or collect every match and reject a name that names more than one type. — SkillsForUnity/Editor/Skills/XRReflectionHelper.cs:269

What to do

  • Each finding names the comparison that matches on `Type.Name` and the selector that takes the first survivor. Confirm from that span that the searched set is every loaded assembly, then decide which the lookup meant: if the name is meant to identify ONE type, compare `FullName` or `AssemblyQualifiedName`, which the namespace makes unique; if several types may legitimately answer to it, keep them all (`Where`) and reject a set of more than one, so a name that is ambiguous is reported as the configuration error it is instead of resolved by load order.
X4 · Structured logging3.0 / 10Weak✓ Tool-verified

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

  • Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it. (×40) — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:81, SkillsForUnity/Editor/Skills/AgentInstructionService.cs:186, SkillsForUnity/Editor/Skills/BatchExecutor.cs:215, …

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types2.0 / 10Critical✓ Tool-verified

Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • This method contradicts itself about `value`: line 253 writes `value?.Value`, which says `value` can be null, but line 258 then dereferences it directly as `value.Value` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `value` truly cannot be null here, the `?.` is misleading. Settle it one way — test `value` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:258
  • This method contradicts itself about `graphicsSettings`: line 116 writes `graphicsSettings?.FindProperty`, which says `graphicsSettings` can be null, but line 127 then dereferences it directly as `graphicsSettings.ApplyModifiedPropertiesWithoutUndo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `graphicsSettings` truly cannot be null here, the `?.` is misleading. Settle it one way — test `graphicsSettings` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/GraphicsSkills.cs:127
  • This method contradicts itself about `graphicsSettings`: line 433 writes `graphicsSettings?.FindProperty`, which says `graphicsSettings` can be null, but line 449 then dereferences it directly as `graphicsSettings.ApplyModifiedPropertiesWithoutUndo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `graphicsSettings` truly cannot be null here, the `?.` is misleading. Settle it one way — test `graphicsSettings` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/GraphicsSkills.cs:449
  • This method contradicts itself about `graphicsSettings`: line 470 writes `graphicsSettings?.FindProperty`, which says `graphicsSettings` can be null, but line 488 then dereferences it directly as `graphicsSettings.ApplyModifiedPropertiesWithoutUndo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `graphicsSettings` truly cannot be null here, the `?.` is misleading. Settle it one way — test `graphicsSettings` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/GraphicsSkills.cs:488
  • This method contradicts itself about `tagManager`: line 57 writes `tagManager?.FindProperty`, which says `tagManager` can be null, but line 67 then dereferences it directly as `tagManager.ApplyModifiedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `tagManager` truly cannot be null here, the `?.` is misleading. Settle it one way — test `tagManager` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/ProjectSkills.cs:67
  • This method contradicts itself about `tagManager`: line 88 writes `tagManager?.FindProperty`, which says `tagManager` can be null, but line 95 then dereferences it directly as `tagManager.ApplyModifiedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `tagManager` truly cannot be null here, the `?.` is misleading. Settle it one way — test `tagManager` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/ProjectSkills.cs:95
  • This method contradicts itself about `tagManager`: line 457 writes `tagManager?.FindProperty`, which says `tagManager` can be null, but line 487 then dereferences it directly as `tagManager.ApplyModifiedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `tagManager` truly cannot be null here, the `?.` is misleading. Settle it one way — test `tagManager` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/ProjectSkills.cs:487
  • This method contradicts itself about `validation`: line 229 writes `validation?.Args`, which says `validation` can be null, but line 243 then dereferences it directly as `validation.MissingParams` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `validation` truly cannot be null here, the `?.` is misleading. Settle it one way — test `validation` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/SkillPlanningService.Planners.cs:243
  • This method contradicts itself about `predictedPath`: line 246 assigns it with `as string`, which hands back null rather than throwing when the value is not a `string`, but line 248 then dereferences it directly as `predictedPath.Substring` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `predictedPath` once before the first use and handle the null case, or cast with `(string)` so the failure is reported where it happens — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:248
  • This method contradicts itself about `skill`: line 272 writes `skill?.ParameterNames`, which says `skill` can be null, but line 273 then dereferences it directly as `skill.Operation` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `skill` truly cannot be null here, the `?.` is misleading. Settle it one way — test `skill` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:273
  • This method contradicts itself about `list`: line 316 assigns it with `as IList`, which hands back null rather than throwing when the value is not a `IList`, but line 317 then dereferences it directly as `list.Add` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `list` once before the first use and handle the null case, or cast with `(IList)` so the failure is reported where it happens — rather than leaving the two readings side by side. — SkillsForUnity/Editor/Skills/SmartSkills.cs:317
  • 0/221 C# file(s) are in a nullable-enabled context. This repository commits no project file, so nothing sets <Nullable>enable</Nullable> for it: a file is enabled only by its own `#nullable enable`, by a Unity `csc.rsp` with `-nullable:enable` for its assembly, or as a file-based app (`#:` directives) whose `#:property Nullable` does not turn it off. NRTs catch a whole class of null-deref bugs at compile time.

What to do

  • Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`.
  • Put every file in a nullable-enabled context — `#nullable enable` at its top, or commit a project file with <Nullable>enable</Nullable> — and resolve warnings rather than suppressing with `!`.

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.

LensScoreRatingImpact
Code Health37.5Weak — gated by D2, X1, X4, X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture66.1Adequate — gated by AX2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity85.3StrongStrongest area.
Readiness67.2Adequate — gated by P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security64.5Adequate — gated by D29, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance85.0StrongSolid.
Unscored — 4 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • P12 CI test-gate honesty — 2 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 54 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.
  • AX1 Captive dependencies — no DI registrations detected
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — no public interfaces
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
  • C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • D12 Dependency Hygiene — Not scored — 4 UPM declaration(s) across 1 manifest(s) were read for PINNING discipline (0 defect(s) reported), but the outdated signal needs packages.unity.com, and no committed packages-lock.json resolves a registry dependency to ask about, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — UPM package licences not graded — the Unity registry publishes no licence metadata
  • 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.
  • D21 Naming Consistency — N/A — too few peers to establish a naming convention (368 declarations, no unit with a dominant convention).
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .py, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — None of 0 binding record(s) states a rule in checkable form (a backticked element with a prohibition, or an `adr-rules` block), so conformance cannot be read from the code. Write the rule as an `adr-rules` block (`forbid:` a symbol, a package or a dependency) to make it checkable.
  • 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 — Most of this repository's production source (.cs) was not read by navigability analysis, so tracing effort was not assessed — whatever else resolved (another language's projects) is not this repository's navigability. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — 2 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • 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.
  • D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
  • D5 Coupling — Not applicable — this Unity build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable (this repository commits no MSBuild project, so its C# was read as syntax-only projects — a handler marked ONLY by an interface from a package is not visible without a build)
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage data present for 198 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found by the two searches this check runs — a BenchmarkDotNet package reference in any project file (loaded, or on disk), and a script whose name contains `benchmark` that this repository's CI runs. Neither can see a suite in another ecosystem's idiom, so this is not a verdict that the repository has none. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted, and nothing is asked of a repository that has none.
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X2 Cancellation propagation — no async method does work a token could cancel
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — This check needs a compiled C# program and this repository commits no project file to compile, so only its syntax could be read. That is a limit of the analyzer, not a finding about your code.
  • X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X27 Collection changed while being enumerated — This check needs a compiled C# program and this repository commits no project file to compile, so only its syntax could be read. That is a limit of the analyzer, not a finding about your code.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 38 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 1 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 984 finding(s)
D3 · God Classes · FileTooLong · ×42
  • FileTooLong: Skills/PerceptionSkills.cs SkillsForUnity/Editor/Skills/PerceptionSkills.cs — FileTooLong — 2070 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1570 over it, 4.14× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/ShaderGraphReflectionHelper.cs SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs — FileTooLong — 1691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1191 over it, 3.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/UIToolkitSkills.cs SkillsForUnity/Editor/Skills/UIToolkitSkills.cs — FileTooLong — 1526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1026 over it, 3.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/UISkills.cs SkillsForUnity/Editor/Skills/UISkills.cs — FileTooLong — 1446 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 946 over it, 2.89× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/BatchSkills.cs SkillsForUnity/Editor/Skills/BatchSkills.cs — FileTooLong — 1388 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 888 over it, 2.78× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/HybridCLRSkills.cs SkillsForUnity/Editor/Skills/HybridCLRSkills.cs — FileTooLong — 1385 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 885 over it, 2.77× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/AsyncJobService.cs SkillsForUnity/Editor/Skills/AsyncJobService.cs — FileTooLong — 1282 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 782 over it, 2.56× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Controllers/EvaluationTabController.cs SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs — FileTooLong — 1272 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 772 over it, 2.54× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/DOTweenSkills.cs SkillsForUnity/Editor/Skills/DOTweenSkills.cs — FileTooLong — 1148 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 648 over it, 2.30× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/ComponentSkills.cs SkillsForUnity/Editor/Skills/ComponentSkills.cs — FileTooLong — 1061 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 561 over it, 2.12× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/BehaviorSkills.cs SkillsForUnity/Editor/Skills/BehaviorSkills.cs — FileTooLong — 1060 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 560 over it, 2.12× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/WorkflowStore.cs SkillsForUnity/Editor/Skills/WorkflowStore.cs — FileTooLong — 992 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 492 over it, 1.98× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/ConsoleLogHistoryService.cs SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs — FileTooLong — 978 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 478 over it, 1.96× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/ClientProcessResolver.cs SkillsForUnity/Editor/Skills/ClientProcessResolver.cs — FileTooLong — 961 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 461 over it, 1.92× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/QFrameworkSkills.cs SkillsForUnity/Editor/Skills/QFrameworkSkills.cs — FileTooLong — 953 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 453 over it, 1.91× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/GameObjectSkills.cs SkillsForUnity/Editor/Skills/GameObjectSkills.cs — FileTooLong — 928 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 428 over it, 1.86× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/MaterialSkills.cs SkillsForUnity/Editor/Skills/MaterialSkills.cs — FileTooLong — 858 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 358 over it, 1.72× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Controllers/SettingsDrawerController.cs SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs — FileTooLong — 853 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 353 over it, 1.71× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/TestSkills.cs SkillsForUnity/Editor/Skills/TestSkills.cs — FileTooLong — 795 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 295 over it, 1.59× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: UI/UnitySkillsWindow.cs SkillsForUnity/Editor/UI/UnitySkillsWindow.cs — FileTooLong — 779 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 279 over it, 1.56× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/PrefabSkills.cs SkillsForUnity/Editor/Skills/PrefabSkills.cs — FileTooLong — 750 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 250 over it, 1.50× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/WorkflowSkills.cs SkillsForUnity/Editor/Skills/WorkflowSkills.cs — FileTooLong — 739 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 239 over it, 1.48× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/EditorChangeTrackerService.cs SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs — FileTooLong — 737 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 237 over it, 1.47× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/WorkflowManager.Restore.cs SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs — FileTooLong — 726 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 226 over it, 1.45× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Skills/EventSkills.cs SkillsForUnity/Editor/Skills/EventSkills.cs — FileTooLong — 713 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 213 over it, 1.43× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • + 17 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×38
  • Hotspot: SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:564 — SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in SettingsDrawerController.RefreshLocalization at line 564. 3 of those changes were fix/bug commits, and the other 10 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33 — SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in SkillRouter.Execute at line 33. 4 of those changes were fix/bug commits, and the other 4 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:292 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in SkillsHttpServer.ExecuteBatchCore at line 292. 2 of those changes were fix/bug commits, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SkillsHttpServer.cs SkillsForUnity/Editor/Skills/SkillsHttpServer.cs:453 — SkillsForUnity/Editor/Skills/SkillsHttpServer.cs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SkillsHttpServer.CheckAndRestoreServer at line 453. 5 of those changes were fix/bug commits, and the other 15 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SkillsHttpServer.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/PrefabSkills.cs SkillsForUnity/Editor/Skills/PrefabSkills.cs:999 — SkillsForUnity/Editor/Skills/PrefabSkills.cs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in PrefabSkills.SetSerializedPropertyValue at line 999. 6 of those changes were fix/bug commits, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/PrefabSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/ComponentSkills.cs SkillsForUnity/Editor/Skills/ComponentSkills.cs:457 — SkillsForUnity/Editor/Skills/ComponentSkills.cs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ComponentSkills.ComponentSetPropertyBatch at line 457. 7 of those changes were fix/bug commits, and the other 7 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/ComponentSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/HybridCLRSkills.cs SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1047 — SkillsForUnity/Editor/Skills/HybridCLRSkills.cs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in HybridCLRSkills.SettingsSet at line 1047. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/HybridCLRSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/WorkflowSkills.cs SkillsForUnity/Editor/Skills/WorkflowSkills.cs:403 — SkillsForUnity/Editor/Skills/WorkflowSkills.cs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in WorkflowSkills.WorkflowList at line 403. 1 of those changes was a fix/bug commit, and the other 12 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/WorkflowSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:127 — SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in SerializedPropertySkillUtility.TrySetProperty at line 127. 3 of those changes were fix/bug commits, and the other 4 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SkillTelemetryService.cs SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:903 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SkillTelemetryService.AggregateAnalytics at line 903. 3 of those changes were fix/bug commits, and the other 8 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SkillTelemetryService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:613 — SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ConsoleLogHistoryService.TryLoadTailLocked at line 613. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/PerceptionSkills.cs SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1786 — SkillsForUnity/Editor/Skills/PerceptionSkills.cs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in PerceptionSkills.SceneExportReport at line 1786. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/PerceptionSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SmartSkills.cs SkillsForUnity/Editor/Skills/SmartSkills.cs:195 — SkillsForUnity/Editor/Skills/SmartSkills.cs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SmartSkills.SmartReferenceBind at line 195. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SmartSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/MaterialSkills.cs SkillsForUnity/Editor/Skills/MaterialSkills.cs:345 — SkillsForUnity/Editor/Skills/MaterialSkills.cs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MaterialSkills.MaterialCreate at line 345. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/MaterialSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/BatchSkills.cs SkillsForUnity/Editor/Skills/BatchSkills.cs:1249 — SkillsForUnity/Editor/Skills/BatchSkills.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in BatchSkills.FilterTargets at line 1249. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/BatchSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:209 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in SkillsHttpServer.ProcessJob at line 209. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/GameObjectSkills.cs SkillsForUnity/Editor/Skills/GameObjectSkills.cs:466 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in GameObjectSkills.GameObjectFind at line 466. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/GameObjectSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/GameObjectFinder.cs SkillsForUnity/Editor/Skills/GameObjectFinder.cs:560 — SkillsForUnity/Editor/Skills/GameObjectFinder.cs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in GameObjectFinder.Resolve at line 560. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/GameObjectFinder.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/AsyncJobService.cs SkillsForUnity/Editor/Skills/AsyncJobService.cs:943 — SkillsForUnity/Editor/Skills/AsyncJobService.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in AsyncJobService.ProcessPackageJob at line 943. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/AsyncJobService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:129 — SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in RuntimeScenarioService.ProcessCore at line 129. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:541 — SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in TokenLevelSliderWidget.DrawTokenSlider at line 541. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:1102 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in WorkflowManager.RestoreModifiedSnapshot at line 1102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/UIToolkitSkills.cs SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1028 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in UIToolkitSkills.ApplyPanelSettings at line 1028. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/UIToolkitSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:474 — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in EditorChangeTrackerService.CapturePropertyModification at line 474. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: SkillsForUnity/Editor/Skills/ClientProcessResolver.cs SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:746 — SkillsForUnity/Editor/Skills/ClientProcessResolver.cs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ClientProcessResolver.TryExtractFromArgs at line 746. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/ClientProcessResolver.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 13 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×37
  • TooManyMethods: WorkflowManager SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs — TooManyMethods — 3055 significant lines (blank, comment-only and punctuation-only lines excluded), 232 methods, declared across 9 files: Skills/WorkflowManager.Restore.Checkpoint.cs (43), Skills/WorkflowManager.Restore.cs (41), Skills/WorkflowManager.cs (38), Skills/WorkflowManager.Restore.Conflicts.cs (25), +5 more file(s). The bar is 30 methods; this is 202 over it, 7.73× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: SkillRouter SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs — TooManyMethods — 2813 significant lines (blank, comment-only and punctuation-only lines excluded), 163 methods, declared across 11 files: Skills/SkillRouter.Schema.cs (49), Skills/SkillRouter.Recommend.cs (22), Skills/SkillRouter.Responses.cs (22), Skills/SkillRouter.Validation.cs (18), +7 more file(s). The bar is 30 methods; this is 133 over it, 5.43× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: SkillsHttpServer SkillsForUnity/Editor/Skills/SkillsHttpServer.cs — TooManyMethods — 3114 significant lines (blank, comment-only and punctuation-only lines excluded), 142 methods, declared across 13 files: Skills/SkillsHttpServer.cs (21), Skills/SkillsHttpServer.Batch.cs (18), Skills/SkillsHttpServer.BatchRefs.cs (14), Skills/SkillsHttpServer.LongPoll.cs (14), +9 more file(s). The bar is 30 methods; this is 112 over it, 4.73× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: SkillPlanningService SkillsForUnity/Editor/Skills/SkillPlanningService.Helpers.cs — TooManyMethods — 1922 significant lines (blank, comment-only and punctuation-only lines excluded), 105 methods, declared across 14 files: Skills/SkillPlanningService.Helpers.cs (17), Skills/SkillPlanningService.cs (16), Skills/SkillPlanningService.GameObject.cs (13), Skills/SkillPlanningService.Targets.cs (13), +10 more file(s). The bar is 30 methods; this is 75 over it, 3.50× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: ShaderGraphReflectionHelper SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs — TooManyMethods — 1673 significant lines (blank, comment-only and punctuation-only lines excluded), 103 methods. The bar is 30 methods; this is 73 over it, 3.43× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: EvaluationTabController SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs — TooManyMethods — 1256 significant lines (blank, comment-only and punctuation-only lines excluded), 94 methods. The bar is 30 methods; this is 64 over it, 3.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ConsoleLogHistoryService SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs — TooManyMethods — 825 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 30 methods; this is 52 over it, 2.73× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: BatchSkills SkillsForUnity/Editor/Skills/BatchSkills.cs — TooManyMethods — 1374 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 30 methods; this is 47 over it, 2.57× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: UIToolkitSkills SkillsForUnity/Editor/Skills/UIToolkitSkills.cs — TooManyMethods — 1479 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 30 methods; this is 44 over it, 2.47× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: DOTweenSkills SkillsForUnity/Editor/Skills/DOTweenSkills.cs — TooManyMethods — 1106 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 30 methods; this is 42 over it, 2.40× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: PerceptionSkills SkillsForUnity/Editor/Skills/PerceptionSkills.cs — TooManyMethods — 2012 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 30 methods; this is 41 over it, 2.37× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: WorkflowStore SkillsForUnity/Editor/Skills/WorkflowStore.cs — TooManyMethods — 902 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 30 methods; this is 36 over it, 2.20× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: HistoryTabController SkillsForUnity/Editor/UI/Controllers/HistoryTabController.cs — TooManyMethods — 637 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 30 methods; this is 35 over it, 2.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: HybridCLRSkills SkillsForUnity/Editor/Skills/HybridCLRSkills.cs — TooManyMethods — 1300 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 30 methods; this is 32 over it, 2.07× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: AsyncJobService SkillsForUnity/Editor/Skills/AsyncJobService.cs — TooManyMethods — 1073 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 30 methods; this is 27 over it, 1.90× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: EditorChangeTrackerService SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs — TooManyMethods — 679 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 30 methods; this is 26 over it, 1.87× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: ComponentSkills SkillsForUnity/Editor/Skills/ComponentSkills.cs — TooManyMethods — 1007 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: LocalGitSync SkillsForUnity/Editor/Versioning/LocalGitSync.cs — TooManyMethods — 582 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: PrefabSkills SkillsForUnity/Editor/Skills/PrefabSkills.cs — TooManyMethods — 728 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 30 methods; this is 20 over it, 1.67× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: QFrameworkSkills SkillsForUnity/Editor/Skills/QFrameworkSkills.cs — TooManyMethods — 923 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 30 methods; this is 19 over it, 1.63× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: SkillInstaller SkillsForUnity/Editor/Skills/SkillInstaller.cs — TooManyMethods — 482 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 30 methods; this is 19 over it, 1.63× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: SkillsModeManager SkillsForUnity/Editor/Skills/SkillsModeManager.cs — TooManyMethods — 459 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 30 methods; this is 19 over it, 1.63× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: YooAssetSkills SkillsForUnity/Editor/Skills/YooAssetSkills.cs — TooManyMethods — 651 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 30 methods; this is 18 over it, 1.60× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: WorkflowSkills SkillsForUnity/Editor/Skills/WorkflowSkills.cs — TooManyMethods — 715 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 30 methods; this is 17 over it, 1.57× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: SkillTelemetryService SkillsForUnity/Editor/Skills/SkillTelemetryService.cs — TooManyMethods — 559 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • + 12 more in this group — see findings.md.
AX2 · Stateful singletons · Process-global static state · ×33
  • Process-global static state: AddressablesSkills SkillsForUnity/Editor/Skills/AddressablesSkills.cs:24 — `AddressablesSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_editorAssembly; e.g. `_editorAssembly` at line 49). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: AgentInstructionService SkillsForUnity/Editor/Skills/AgentInstructionService.cs:31 — `AgentInstructionService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefEnabled; e.g. `_prefEnabled` at line 66). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: AsyncJobService SkillsForUnity/Editor/Skills/AsyncJobService.cs:15 — `AsyncJobService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (TestRuntimeJobs, SmokeRuntimeJobs; e.g. `TestRuntimeJobs` at line 122). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: BatchJobService SkillsForUnity/Editor/Skills/BatchJobService.cs:10 — `BatchJobService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (RuntimeJobs; e.g. `RuntimeJobs` at line 87). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: BatchPersistence SkillsForUnity/Editor/Skills/BatchPersistence.cs:10 — `BatchPersistence` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_transientScopeDepth; e.g. `_transientScopeDepth` at line 181). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: BehaviorReflectionHelper SkillsForUnity/Editor/Skills/BehaviorSkills.cs:30 — `BehaviorReflectionHelper` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (ResolvedTypes; e.g. `ResolvedTypes` at line 87). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: CleanerSkills SkillsForUnity/Editor/Skills/CleanerSkills.cs:14 — `CleanerSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_pendingDeletes; e.g. `_pendingDeletes` at line 267). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: ClientProcessResolver SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:50 — `ClientProcessResolver` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefEnabled; e.g. `_prefEnabled` at line 59). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: CompilationResultService SkillsForUnity/Editor/Skills/CompilationResultService.cs:24 — `CompilationResultService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_cachedResultJson, _outcomeJson, _outcome, _historyJson, _parsedHistoryJson, _historyOutcomes; e.g. `_cachedResultJson` at line 82). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: ComponentInvocationService SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:15 — `ComponentInvocationService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (Running; e.g. `Running` at line 307). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: ComponentSkills SkillsForUnity/Editor/Skills/ComponentSkills.cs:16 — `ComponentSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_typeCache, _memberCache; e.g. `_typeCache` at line 949). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: ConsoleLogHistoryService SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:19 — `ConsoleLogHistoryService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_corruptRows, _uncompactedCorruptRows, _incompleteThroughSeq, _parsedRows; e.g. `_corruptRows` at line 199). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: DebugSkills SkillsForUnity/Editor/Skills/DebugSkills.cs:17 — `DebugSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_logEntriesType, _logEntryType, _getCountMethod, _getEntryMethod, _startMethod, _endMethod; e.g. `_logEntriesType` at line 129). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: DomainReloadStats SkillsForUnity/Editor/Skills/DomainReloadStats.cs:17 — `DomainReloadStats` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_state; e.g. `_state` at line 81). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: DryRunPolicyService SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:34 — `DryRunPolicyService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_prefKey, _current, OverrideForTests; e.g. `_prefKey` at line 59). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: EditorChangeTrackerService SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:26 — `EditorChangeTrackerService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_restAgent, _restDepth, PendingProperties, _propertyFlushDue, _propertyFlushScheduled, Catalog; e.g. `_restAgent` at line 131). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: EvaluationRunnerService SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:82 — `EvaluationRunnerService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (Processes, ExitSeenAt; e.g. `Processes` at line 171). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: EventChannelService SkillsForUnity/Editor/Skills/EventChannelService.cs:29 — `EventChannelService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_consoleWindowStartTicks, _consoleErrorsThisWindow, _consoleDroppedSinceLast, _publishingConsoleError, RuntimeErrorRecorderForTests; e.g. `_consoleWindowStartTicks` at line 262). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: GameObjectFinder SkillsForUnity/Editor/Skills/GameObjectFinder.cs:230 — `GameObjectFinder` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_resolutionNotes, _omittedResolutionNotes, _cachedSceneData, _cacheValid; e.g. `_resolutionNotes` at line 264). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkillsCommon SkillsForUnity/Editor/Skills/GameObjectFinder.cs:1186 — `SkillsCommon` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_findTypeCache; e.g. `_findTypeCache` at line 1349). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: HybridCLRSkills SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:30 — `HybridCLRSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_editorAssembly, _apiLine; e.g. `_editorAssembly` at line 71). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkillsLocalization SkillsForUnity/Editor/Skills/Localization.cs:16 — `SkillsLocalization` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_current, _initialized; e.g. `_current` at line 53). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: PackageManagerHelper SkillsForUnity/Editor/Skills/PackageManagerHelper.cs:18 — `PackageManagerHelper` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_pendingListCallbacks, _isRefreshing, _currentOperation, _currentPackageId, _listRequest, _installedPackages; e.g. `_pendingListCallbacks` at line 103). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: PerceptionSkills SkillsForUnity/Editor/Skills/PerceptionSkills.cs:23 — `PerceptionSkills` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_codeDependencyCache, _codeDependencyCacheDirty; e.g. `_codeDependencyCache` at line 67). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: RegistryService SkillsForUnity/Editor/Skills/RegistryService.cs:17 — `RegistryService` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_heartbeatCount; e.g. `_heartbeatCount` at line 190). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • + 8 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×26
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/AddressablesSkills.cs:219 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:81 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:347 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:412 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:984 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:996 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1091 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1341 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1654 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1773 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:480 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ComponentSkills.cs:975 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:546 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ConsoleSkills.cs:288 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/ConsoleSkills.cs:309 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/DOTweenPresenceDetector.cs:53 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:177 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:520 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:534 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/DiagnoseSkills.cs:103 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/DiagnoseSkills.cs:157 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:246 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:438 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/EvaluationState.cs:746 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) SkillsForUnity/Editor/Skills/EventChannelService.cs:160 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • + 1 more in this group — see findings.md.
D8 · Code Coverage · Low coverage · ×22
  • Low coverage: eval/cli.py eval/cli.py:1 — 49.2% line coverage (188/382).
  • Low coverage: eval/harness/checks.py eval/harness/checks.py:1 — 0.0% line coverage (0/77).
  • Low coverage: eval/harness/env.py eval/harness/env.py:1 — 37.0% line coverage (40/108).
  • Low coverage: REDACTED REDACTED:1 — 27.3% line coverage (15/55).
  • Low coverage: eval/harness/instance.py eval/harness/instance.py:1 — 32.9% line coverage (25/76).
  • Low coverage: eval/harness/probes.py eval/harness/probes.py:1 — 0.0% line coverage (0/274).
  • Low coverage: REDACTED REDACTED:1 — 24.8% line coverage (38/153).
  • Low coverage: eval/tasks/__init__.py eval/tasks/__init__.py:1 — 47.1% line coverage (8/17).
  • Low coverage: eval/tasks/d01.py eval/tasks/d01.py:1 — 0.0% line coverage (0/152).
  • Low coverage: eval/tasks/s01.py eval/tasks/s01.py:1 — 0.0% line coverage (0/136).
  • Low coverage: eval/tasks/s03.py eval/tasks/s03.py:1 — 0.0% line coverage (0/174).
  • Low coverage: eval/tasks/s04.py eval/tasks/s04.py:1 — 0.0% line coverage (0/129).
  • Low coverage: eval/tasks/s06.py eval/tasks/s06.py:1 — 0.0% line coverage (0/143).
  • Low coverage: eval/tasks/s08.py eval/tasks/s08.py:1 — 0.0% line coverage (0/153).
  • Low coverage: eval/tasks/t1.py eval/tasks/t1.py:1 — 0.0% line coverage (0/254).
  • Low coverage: eval/tasks/t10.py eval/tasks/t10.py:1 — 0.0% line coverage (0/243).
  • Low coverage: eval/tasks/t2.py eval/tasks/t2.py:1 — 0.0% line coverage (0/209).
  • Low coverage: eval/tasks/t3.py eval/tasks/t3.py:1 — 0.0% line coverage (0/313).
  • Low coverage: eval/tasks/t4.py eval/tasks/t4.py:1 — 0.0% line coverage (0/174).
  • Low coverage: eval/tasks/t5.py eval/tasks/t5.py:1 — 0.0% line coverage (0/212).
  • Low coverage: eval/tasks/t7.py eval/tasks/t7.py:1 — 0.0% line coverage (0/255).
  • Low coverage: eval/tasks/t9.py eval/tasks/t9.py:1 — 0.0% line coverage (0/199).
D3 · God Classes · MethodTooLong · ×18
  • MethodTooLong: SkillRouter.Execute SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33 — MethodTooLong — Execute runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillsHttpServer.ExecuteBatchCore SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:292 — MethodTooLong — ExecuteBatchCore runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.37× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: TokenLevelSliderWidget.DrawTokenSlider SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:541 — MethodTooLong — DrawTokenSlider runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillsHttpServer.ProcessJob SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:209 — MethodTooLong — ProcessJob runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillPlanningService.ApplySemanticPlanner SkillsForUnity/Editor/Skills/SkillPlanningService.Planners.cs:50 — MethodTooLong — ApplySemanticPlanner runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillsHttpServer.ListenLoop SkillsForUnity/Editor/Skills/SkillsHttpServer.Listener.cs:31 — MethodTooLong — ListenLoop runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: UISkills.UICreateDropdown SkillsForUnity/Editor/Skills/UISkills.cs:1150 — MethodTooLong — UICreateDropdown runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillTelemetryService.AggregateAnalytics SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:903 — MethodTooLong — AggregateAnalytics runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillsHttpServer.HandleJobsRequest SkillsForUnity/Editor/Skills/SkillsHttpServer.Jobs.cs:22 — MethodTooLong — HandleJobsRequest runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: HybridCLRSkills.CopyHotUpdateDlls SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1778 — MethodTooLong — CopyHotUpdateDlls runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PerceptionSkills.SceneExportReport SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1786 — MethodTooLong — SceneExportReport runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: UIToolkitSkills.UitkUxmlUpgrade SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2149 — MethodTooLong — UitkUxmlUpgrade runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: HybridCLRSkills.SettingsSet SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1047 — MethodTooLong — SettingsSet runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PerceptionSkills.ScriptDependencyGraph SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2446 — MethodTooLong — ScriptDependencyGraph runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SerializedPropertySkillUtility.TrySetProperty SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:127 — MethodTooLong — TrySetProperty runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkillRouter.DryRun SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:565 — MethodTooLong — DryRun runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ModelSkills.ModelSetSettings SkillsForUnity/Editor/Skills/ModelSkills.cs:93 — MethodTooLong — ModelSetSettings runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: EvaluationTabController.CacheUiReferences SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:216 — MethodTooLong — CacheUiReferences runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×16
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:60 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:60-65 | SkillsForUnity/Editor/Skills/PrefabSkills.cs:182-187 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:843 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:843-848 | SkillsForUnity/Editor/Skills/UISkills.cs:1945-1950 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:343 — SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:343-348 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:370-375 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:37 — SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:37-42 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:769-774 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:37` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:775` calls `ToString` and `SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:43` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:197 — SkillsForUnity/Editor/Skills/UISkills.cs:197-202 | SkillsForUnity/Editor/Skills/UISkills.cs:419-424 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:534 — SkillsForUnity/Editor/Skills/UISkills.cs:534-539 | SkillsForUnity/Editor/Skills/UISkills.cs:1465-1470 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/LightSkills.cs:193 — SkillsForUnity/Editor/Skills/LightSkills.cs:193-198 | SkillsForUnity/Editor/Skills/LightSkills.cs:397-402 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/LightSkills.cs:193` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/LightSkills.cs:192` calls `ToString` and `SkillsForUnity/Editor/Skills/LightSkills.cs:396` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/CameraSkills.cs:276 — SkillsForUnity/Editor/Skills/CameraSkills.cs:276-281 | SkillsForUnity/Editor/Skills/CameraSkills.cs:338-347 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1056 — SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1056-1062 | SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1750-1755 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/ComponentSkills.cs:136 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:136-141 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:230-235 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ComponentSkills.cs:136` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/ComponentSkills.cs:470 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:470-475 | SkillsForUnity/Editor/Skills/GameObjectSkills.cs:364-369 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/ModelSkills.cs:321 — SkillsForUnity/Editor/Skills/ModelSkills.cs:321-326 | SkillsForUnity/Editor/Skills/TextureSkills.cs:256-261 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ModelSkills.cs:321` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/ScriptSkills.cs:698 — SkillsForUnity/Editor/Skills/ScriptSkills.cs:698-703 | SkillsForUnity/Editor/Skills/ScriptSkills.cs:730-735 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ScriptSkills.cs:698` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:673 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:673-678 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:397-402 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:1236 — SkillsForUnity/Editor/Skills/UISkills.cs:1236-1241 | SkillsForUnity/Editor/Skills/UISkills.cs:1253-1258 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) SkillsForUnity/Editor/Skills/SkillsModeManager.cs:615 — SkillsForUnity/Editor/Skills/SkillsModeManager.cs:615-620 | SkillsForUnity/Editor/UI/AllowlistPickerWindow.cs:316-321 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×16
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:448 — SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:448-452 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:572-576 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:16 — SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:16-20 | SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:158-162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/LightSkills.cs:192 — SkillsForUnity/Editor/Skills/LightSkills.cs:192-196 | SkillsForUnity/Editor/Skills/LightSkills.cs:246-250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/ModelSkills.cs:404 — SkillsForUnity/Editor/Skills/ModelSkills.cs:404-408 | SkillsForUnity/Editor/Skills/ModelSkills.cs:424-428 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/TextureSkills.cs:347 — SkillsForUnity/Editor/Skills/TextureSkills.cs:347-351 | SkillsForUnity/Editor/Skills/TextureSkills.cs:378-382 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/AnimatorSkills.cs:420 — SkillsForUnity/Editor/Skills/AnimatorSkills.cs:420-424 | SkillsForUnity/Editor/Skills/AnimatorSkills.cs:454-458 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/AnimatorSkills.cs:453` calls `Required` and `SkillsForUnity/Editor/Skills/AnimatorSkills.cs:419` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:740 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:740-744 | SkillsForUnity/Editor/Skills/GameObjectSkills.cs:1164-1168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/GameObjectSkills.cs:740` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:433 — SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:433-437 | SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:472-476 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:433` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:477` calls `SafePath` and `SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:439` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1956 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1956-1960 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1966-1970 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/ShaderSkills.cs:289 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:289-293 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:56-64 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/ShaderSkills.cs:287` calls `Equals`, `InvalidValueError` and `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:56` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/TimelineSkills.cs:61 — SkillsForUnity/Editor/Skills/TimelineSkills.cs:61-66 | SkillsForUnity/Editor/Skills/TimelineSkills.cs:269-273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/TimelineSkills.cs:61` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:1085 — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:1085-1089 | SkillsForUnity/Editor/Skills/EventChannelService.cs:294-298 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:856 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:856-860 | SkillsForUnity/Editor/Skills/UISkills.cs:1925-1934 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:863 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:863-867 | SkillsForUnity/Editor/Skills/UISkills.cs:1896-1905 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:186 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:186-190 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:208-212 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (5 lines × 2) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:920 — SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:920-924 | SkillsForUnity/Editor/UI/Controllers/VersionUpdateBannerController.cs:234-238 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D15 · Churn × Complexity Hotspots · Repeated repair · ×15
  • Repeated repair: SkillsForUnity/Editor/Skills/PhysicsSkills.cs SkillsForUnity/Editor/Skills/PhysicsSkills.cs:356 — SkillsForUnity/Editor/Skills/PhysicsSkills.cs changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is PhysicsSkills.CreatePhysicsMaterial at line 356), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(scene,physics): refuse scene_save in Play Mode; layer collision skills take layer names”; “fix(eval): persist library state atomically across reloads”; “fix(skills): strict event and reference locators, exact-type component indexes”; “fix(skills): prefab overrides, event targets, hidden properties, formatting (P4-P9, P12-P14)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/PhysicsSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:170 — SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs changed 9 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 13 (its worst body is ScriptableObjectSkills.ScriptableObjectSetBatch at line 170), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(skills): prefab overrides, event targets, hidden properties, formatting (P4-P9, P12-P14)”; “fix: report failed saves and reject unresolved inputs in second-audit skills”; “fix(meta): integration-2 doc-consistency mismatches + test fixes (round5 M7 2nd follow-up)”; “fix(data): precision + read-back for component/prefab/script/batch (round5 M3)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/NetcodeSkills.cs SkillsForUnity/Editor/Skills/NetcodeSkills.cs:2082 — SkillsForUnity/Editor/Skills/NetcodeSkills.cs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is NetcodeSkills.StripPrereleaseSuffix at line 2082), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(packages): name an unsupported optional-package version instead of "not installed"”; “fix: reject silently dropped inputs in optional-package skills”; “fix: guard NGO components that need optional built-in modules”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/NetcodeSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/DecalSkills.cs SkillsForUnity/Editor/Skills/DecalSkills.cs:18 — SkillsForUnity/Editor/Skills/DecalSkills.cs changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is DecalSkills.DecalCreate at line 18), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: reject silently dropped inputs in optional-package skills”; “fix(meta): metadata consistency + guards (round5 M7)”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(decal): align no-URP stub signature of decal_set_properties with URP implementation”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/DecalSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/YooAssetSkills.cs SkillsForUnity/Editor/Skills/YooAssetSkills.cs:292 — SkillsForUnity/Editor/Skills/YooAssetSkills.cs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is YooAssetSkills.CheckInstalled at line 292), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(packages): pin each YooAsset line to one minor and keep the next minor's prereleases out”; “fix(eval): persist library state atomically across reloads”; “fix: report failed writes and invalid inputs in XR, YooAsset and QFramework”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/YooAssetSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/TerrainSkills.cs SkillsForUnity/Editor/Skills/TerrainSkills.cs:495 — SkillsForUnity/Editor/Skills/TerrainSkills.cs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is TerrainSkills.TerrainPaintTexture at line 495), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: reject silently degraded inputs in ten long-tail skills”; “fix(meta): integration-2 doc-consistency mismatches + test fixes (round5 M7 2nd follow-up)”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/TerrainSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/DOTweenSkills.cs SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1616 — SkillsForUnity/Editor/Skills/DOTweenSkills.cs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is DOTweenSkills.AddAnimationCore at line 1616), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: declare the skippedFields output of dotween_pro_copy_animation”; “fix: reject silently dropped inputs in optional-package skills”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/DOTweenSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/URPSkills.cs SkillsForUnity/Editor/Skills/URPSkills.cs:19 — SkillsForUnity/Editor/Skills/URPSkills.cs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is URPSkills.URPGetInfo at line 19), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: reject silently dropped inputs in optional-package skills”; “fix(meta): metadata consistency + guards (round5 M7)”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/URPSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/AssetImportSkills.cs SkillsForUnity/Editor/Skills/AssetImportSkills.cs:321 — SkillsForUnity/Editor/Skills/AssetImportSkills.cs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is AssetImportSkills.SpriteSetImportSettings at line 321), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: reject silently degraded inputs in ten long-tail skills”; “fix(meta): integration-2 doc-consistency mismatches + test fixes (round5 M7 2nd follow-up)”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/AssetImportSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/AddressablesSkills.cs SkillsForUnity/Editor/Skills/AddressablesSkills.cs:373 — SkillsForUnity/Editor/Skills/AddressablesSkills.cs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is AddressablesSkills.AddressablesGroupAddEntry at line 373), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: declare the Addressables package on the skills that need it”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/AddressablesSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/ShaderSkills.cs SkillsForUnity/Editor/Skills/ShaderSkills.cs:275 — SkillsForUnity/Editor/Skills/ShaderSkills.cs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is ShaderSkills.ShaderCreateUrp at line 275), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(meta): integration-2 doc-consistency mismatches + test fixes (round5 M7 2nd follow-up)”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/ShaderSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/SkillInstallSyncService.cs SkillsForUnity/Editor/Skills/SkillInstallSyncService.cs:173 — SkillsForUnity/Editor/Skills/SkillInstallSyncService.cs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is SkillInstallSyncService.SyncTargets at line 173), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(installer): remove files the template no longer ships from installed copies”; “fix(eval): persist library state atomically across reloads”; “fix: never downgrade a newer installed AI-tool skill copy”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/SkillInstallSyncService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/GraphicsSkills.cs SkillsForUnity/Editor/Skills/GraphicsSkills.cs:328 — SkillsForUnity/Editor/Skills/GraphicsSkills.cs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is GraphicsSkills.GraphicsSetQualityRenderPipeline at line 328), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(eval): persist library state atomically across reloads”; “fix: reject silently degraded inputs in ten long-tail skills”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/GraphicsSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/Skills/PostProcessSkills.cs SkillsForUnity/Editor/Skills/PostProcessSkills.cs:18 — SkillsForUnity/Editor/Skills/PostProcessSkills.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is PostProcessSkills.PostProcessListEffects at line 18), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(meta): metadata consistency + guards (round5 M7)”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”; “fix(skills): 785-skill audit and live-sweep fixes across modules”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/Skills/PostProcessSkills.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: SkillsForUnity/Editor/UI/Controllers/UnityCliTabController.cs SkillsForUnity/Editor/UI/Controllers/UnityCliTabController.cs:122 — SkillsForUnity/Editor/UI/Controllers/UnityCliTabController.cs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 15 (its worst body is UnityCliTabController.WireStaticTexts at line 122), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(cli): harden the Unity CLI version probe and install commands”; “fix: re-resolve panel text on language switch instead of caching it”; “fix: 2.8.1 — metadata truthfulness, RequiresInput coverage, token-level threshold, client/UI polish”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 11:34:19 +00:00' --until='2026-11-16 11:34:19 +00:00' --full-history --no-merges -- SkillsForUnity/Editor/UI/Controllers/UnityCliTabController.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×14
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/AddressablesSkills.cs:45 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/AgentInstructionService.cs:169 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:341 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:72 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1185 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1191 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:84 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:141 — `catch (ArgumentException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1053 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:823 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/DOTweenPresenceDetector.cs:73 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:223 — `catch (IOException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:954 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:67 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×12
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/PackageSkills.cs:408 — SkillsForUnity/Editor/Skills/PackageSkills.cs:408-415 | SkillsForUnity/Editor/Skills/PackageSkills.cs:430-437 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:308 — SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:308-315 | SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:325-332 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/CameraSkills.cs:405 — SkillsForUnity/Editor/Skills/CameraSkills.cs:405-412 | SkillsForUnity/Editor/Skills/CameraSkills.cs:563-570 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/CameraSkills.cs:405` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:972 — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:972-979 | SkillsForUnity/Editor/Skills/WorkflowStore.cs:1238-1245 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:38 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:38-45 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:72-79 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:38` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind `null` to `string content =` in one and `string ussPath =` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:233 — SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:233-240 | SkillsForUnity/Editor/Skills/SkillsModeManager.cs:859-866 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillsModeManager.cs:859` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1302 — SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1302-1309 | SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2578-2585 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2578` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/PrefabSkills.cs:466 — SkillsForUnity/Editor/Skills/PrefabSkills.cs:466-473 | SkillsForUnity/Editor/Skills/PrefabSkills.cs:489-496 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PrefabSkills.cs:466` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:866 — SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:866-873 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:960-967 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:866` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/SmartSkills.cs:134 — SkillsForUnity/Editor/Skills/SmartSkills.cs:134-144 | SkillsForUnity/Editor/Skills/SmartSkills.cs:553-560 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SmartSkills.cs:134` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:438 — SkillsForUnity/Editor/Skills/UISkills.cs:438-445 | SkillsForUnity/Editor/Skills/UISkills.cs:453-460 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:499 — SkillsForUnity/Editor/Skills/UISkills.cs:499-506 | SkillsForUnity/Editor/Skills/UISkills.cs:570-577 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
X5 · Nullable reference types · Symbol treated as nullable, then dereferenced unguarded · ×11
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:258 — This method contradicts itself about `value`: line 253 writes `value?.Value`, which says `value` can be null, but line 258 then dereferences it directly as `value.Value` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `value` truly cannot be null here, the `?.` is misleading. Settle it one way — test `value` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/GraphicsSkills.cs:127 — This method contradicts itself about `graphicsSettings`: line 116 writes `graphicsSettings?.FindProperty`, which says `graphicsSettings` can be null, but line 127 then dereferences it directly as `graphicsSettings.ApplyModifiedPropertiesWithoutUndo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `graphicsSettings` truly cannot be null here, the `?.` is misleading. Settle it one way — test `graphicsSettings` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/GraphicsSkills.cs:449 — This method contradicts itself about `graphicsSettings`: line 433 writes `graphicsSettings?.FindProperty`, which says `graphicsSettings` can be null, but line 449 then dereferences it directly as `graphicsSettings.ApplyModifiedPropertiesWithoutUndo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `graphicsSettings` truly cannot be null here, the `?.` is misleading. Settle it one way — test `graphicsSettings` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/GraphicsSkills.cs:488 — This method contradicts itself about `graphicsSettings`: line 470 writes `graphicsSettings?.FindProperty`, which says `graphicsSettings` can be null, but line 488 then dereferences it directly as `graphicsSettings.ApplyModifiedPropertiesWithoutUndo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `graphicsSettings` truly cannot be null here, the `?.` is misleading. Settle it one way — test `graphicsSettings` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/ProjectSkills.cs:67 — This method contradicts itself about `tagManager`: line 57 writes `tagManager?.FindProperty`, which says `tagManager` can be null, but line 67 then dereferences it directly as `tagManager.ApplyModifiedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `tagManager` truly cannot be null here, the `?.` is misleading. Settle it one way — test `tagManager` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/ProjectSkills.cs:95 — This method contradicts itself about `tagManager`: line 88 writes `tagManager?.FindProperty`, which says `tagManager` can be null, but line 95 then dereferences it directly as `tagManager.ApplyModifiedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `tagManager` truly cannot be null here, the `?.` is misleading. Settle it one way — test `tagManager` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/ProjectSkills.cs:487 — This method contradicts itself about `tagManager`: line 457 writes `tagManager?.FindProperty`, which says `tagManager` can be null, but line 487 then dereferences it directly as `tagManager.ApplyModifiedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `tagManager` truly cannot be null here, the `?.` is misleading. Settle it one way — test `tagManager` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/SkillPlanningService.Planners.cs:243 — This method contradicts itself about `validation`: line 229 writes `validation?.Args`, which says `validation` can be null, but line 243 then dereferences it directly as `validation.MissingParams` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `validation` truly cannot be null here, the `?.` is misleading. Settle it one way — test `validation` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:248 — This method contradicts itself about `predictedPath`: line 246 assigns it with `as string`, which hands back null rather than throwing when the value is not a `string`, but line 248 then dereferences it directly as `predictedPath.Substring` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `predictedPath` once before the first use and handle the null case, or cast with `(string)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:273 — This method contradicts itself about `skill`: line 272 writes `skill?.ParameterNames`, which says `skill` can be null, but line 273 then dereferences it directly as `skill.Operation` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `skill` truly cannot be null here, the `?.` is misleading. Settle it one way — test `skill` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded SkillsForUnity/Editor/Skills/SmartSkills.cs:317 — This method contradicts itself about `list`: line 316 assigns it with `as IList`, which hands back null rather than throwing when the value is not a `IList`, but line 317 then dereferences it directly as `list.Add` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `list` once before the first use and handle the null case, or cast with `(IList)` so the failure is reported where it happens — rather than leaving the two readings side by side.
D3 · God Classes · ClassTooLong · ×10
  • ClassTooLong: EventSkills SkillsForUnity/Editor/Skills/EventSkills.cs — ClassTooLong — 686 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 286 over it, 1.72× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: BehaviorSkills SkillsForUnity/Editor/Skills/BehaviorSkills.cs — ClassTooLong — 618 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 218 over it, 1.55× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: TokenLevelSliderWidget SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs — ClassTooLong — 591 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 191 over it, 1.48× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ShaderGraphSkills SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs — ClassTooLong — 544 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 144 over it, 1.36× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: NetcodeSkills SkillsForUnity/Editor/Skills/NetcodeSkills.cs — ClassTooLong — 508 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 108 over it, 1.27× the bar. Its members are declarations rather than behaviour over shared data — the type holds no instance state — so there is nothing to group them by and nothing to delegate. To reduce it, split it by area instead: move each cohesive group of declarations onto its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: PrimeTweenSkills SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs — ClassTooLong — 451 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 51 over it, 1.13× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: BehaviorReflectionHelper SkillsForUnity/Editor/Skills/BehaviorSkills.cs — ClassTooLong — 430 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 30 over it, 1.08× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: AddressablesSkills SkillsForUnity/Editor/Skills/AddressablesSkills.cs — ClassTooLong — 427 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 27 over it, 1.07× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: SmartSkills SkillsForUnity/Editor/Skills/SmartSkills.cs — ClassTooLong — 408 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 8 over it, 1.02× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: TerrainSkills SkillsForUnity/Editor/Skills/TerrainSkills.cs — ClassTooLong — 402 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 2 over it, 1.01× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×10
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/LightSkills.cs:408 — SkillsForUnity/Editor/Skills/LightSkills.cs:408-414 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:829-835 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:439 — SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:439-445 | SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:479-485 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:477` calls `SafePath` and `SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:437` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1819 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1819-1825 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1934-1940 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind `null` to `string menuPath =` in one and `string elementQueries =` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/SkillParamUtil.cs:297 — SkillsForUnity/Editor/Skills/SkillParamUtil.cs:297-303 | SkillsForUnity/Editor/Skills/SkillParamUtil.cs:313-319 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillParamUtil.cs:297` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:858 — SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:858-864 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:944-950 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:858` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/ShaderSkills.cs:88 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:88-95 | SkillsForUnity/Editor/Skills/ShaderSkills.cs:348-354 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ShaderSkills.cs:348` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:145 — SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:145-151 | SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:295-303 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:145` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:143` calls `nameof`, `WasComponentOfRemovedGameObject` and `SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:294` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:594 — SkillsForUnity/Editor/Skills/UISkills.cs:594-600 | SkillsForUnity/Editor/Skills/UISkills.cs:1267-1273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/SampleSkills.cs:18 — SkillsForUnity/Editor/Skills/SampleSkills.cs:18-24 | SkillsForUnity/Editor/Skills/SampleSkills.cs:32-38 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) SkillsForUnity/Editor/Skills/TestSkills.cs:519 — SkillsForUnity/Editor/Skills/TestSkills.cs:519-525 | SkillsForUnity/Editor/Skills/TestSkills.cs:563-569 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×9
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:1162 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:1162-1173 | SkillsForUnity/Editor/Skills/GameObjectSkills.cs:1250-1268 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1643 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1643-1659 | SkillsForUnity/Editor/Skills/AsyncJobService.cs:1662-1673 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/CameraSkills.cs:607 — SkillsForUnity/Editor/Skills/CameraSkills.cs:607-618 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:689-703 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/ScriptSkills.cs:640 — SkillsForUnity/Editor/Skills/ScriptSkills.cs:640-651 | SkillsForUnity/Editor/Skills/ShaderSkills.cs:126-145 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:773 — SkillsForUnity/Editor/Skills/GameObjectFinder.cs:773-789 | SkillsForUnity/Editor/Skills/GameObjectFinder.cs:888-899 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:163 — SkillsForUnity/Editor/Skills/WorkflowSkills.cs:163-174 | SkillsForUnity/Editor/Skills/WorkflowSkills.cs:182-193 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/UI/Controllers/AnalyticsTabController.cs:296 — SkillsForUnity/Editor/UI/Controllers/AnalyticsTabController.cs:296-309 | SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1861-1872 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/AddressablesSkills.cs:71 — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:71-84 | SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:175-186 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) SkillsForUnity/Editor/Skills/TestSkills.cs:986 — SkillsForUnity/Editor/Skills/TestSkills.cs:986-997 | SkillsForUnity/Editor/Skills/TestSkills.cs:1010-1021 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×9
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/ShaderSkills.cs:155 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:155-176 | SkillsForUnity/Editor/Skills/ShaderSkills.cs:246-251 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1590 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1590-1599 | SkillsForUnity/Editor/Skills/EditorSkills.cs:208-213 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1432 — SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1432-1437 | SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs:532-547 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/SmartSkills.cs:394 — SkillsForUnity/Editor/Skills/SmartSkills.cs:394-399 | SkillsForUnity/Editor/Skills/SmartSkills.cs:410-419 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/EventSkills.cs:411 — SkillsForUnity/Editor/Skills/EventSkills.cs:411-422 | SkillsForUnity/Editor/Skills/PrefabSkills.cs:451-456 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:919 — SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:919-924 | SkillsForUnity/Editor/UI/Controllers/VersionUpdateBannerController.cs:233-238 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1582 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1582-1587 | SkillsForUnity/Editor/Skills/TestSkills.cs:1138-1143 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/UI/UnityCliWindow.cs:37 — SkillsForUnity/Editor/UI/UnityCliWindow.cs:37-42 | SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:794-800 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:185 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:185-190 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:207-212 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
AX2 · Stateful singletons · Stateful shared instance · ×7
  • Stateful shared instance: ScriptDomainImportCapture SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:1215 — `ScriptDomainImportCapture` keeps one instance of itself in the static `_current`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_disposed; e.g. `_disposed` at line 1256).
  • Stateful shared instance: PendingObjectSet SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:318 — `PendingObjectSet` is not registered, but `SkillPlanningService` creates it and keeps it in the static `_pendingObjects`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_paths, _pathsByName, _nameOnly, _componentsByPath; e.g. `_paths` at line 331).
  • Stateful shared instance: RequestJob SkillsForUnity/Editor/Skills/SkillsHttpServer.Queue.cs:21 — `RequestJob` is not registered, but `SkillsHttpServer` creates it and keeps it in the static `_lightQueue`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (Context, HttpMethod, Path, Body, EnqueueTimeTicks, RequestId; e.g. `Context` at line 58).
  • Stateful shared instance: WorkflowHistoryData SkillsForUnity/Editor/Skills/WorkflowModels.cs:119 — `WorkflowHistoryData` is not registered, but `WorkflowManager` creates it and keeps it in the static `_history`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (tasks, checkpoints, restores, nextSeq; e.g. `tasks` at line 129).
  • Stateful shared instance: RestoredObjectMap SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:1022 — `RestoredObjectMap` is not registered, but `WorkflowManager` creates it and keeps it in the static `_restoreScopeObjects`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_byGlobalId, _byEntityId, _byInstanceId; e.g. `_byGlobalId` at line 1035).
  • Stateful shared instance: WorkflowTask SkillsForUnity/Editor/Skills/WorkflowModels.cs:181 — `WorkflowTask` is not registered, but `WorkflowManager` creates it and keeps it in the static `_currentTask`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_snapshotKeys, _entityKeys, snapshots; e.g. `_snapshotKeys` at line 219).
  • Stateful shared instance: Store SkillsForUnity/Editor/Skills/ProjectPrefs.cs:161 — `Store` is not registered, but `ProjectPrefs` creates it and keeps it in the static `_projectStore`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_values, _unreadable, _unsavedReported, _writeFailureReported; e.g. `_values` at line 194).
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×7
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/AudioSkills.cs:222 — SkillsForUnity/Editor/Skills/AudioSkills.cs:222-230 | SkillsForUnity/Editor/Skills/TextureSkills.cs:303-312 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/DOTweenSkills.cs:217 — SkillsForUnity/Editor/Skills/DOTweenSkills.cs:217-225 | SkillsForUnity/Editor/Skills/DOTweenSkills.cs:288-296 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:107 — SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:107-115 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:118-126 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:971 — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:971-979 | SkillsForUnity/Editor/Skills/WorkflowStore.cs:1237-1245 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1365 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:1365-1373 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:1376-1386 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs:253 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs:253-261 | SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:174-183 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:220 — SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:220-228 | SkillsForUnity/Editor/Versioning/GitCliRunner.cs:200-208 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×6
  • Edited copy of a member (8 corresponding lines) SkillsForUnity/Editor/Skills/SampleSkills.cs:17 — SkillsForUnity/Editor/Skills/SampleSkills.cs:17-24 | SkillsForUnity/Editor/Skills/SampleSkills.cs:31-38 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) SkillsForUnity/Editor/Skills/NavMeshSkills.cs:94 — SkillsForUnity/Editor/Skills/NavMeshSkills.cs:94-101 | SkillsForUnity/Editor/Skills/NavMeshSkills.cs:133-141 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) SkillsForUnity/Editor/Skills/BuildPlayerService.cs:299 — SkillsForUnity/Editor/Skills/BuildPlayerService.cs:299-310 | SkillsForUnity/Editor/Skills/PlayCaptureService.cs:255-262 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) SkillsForUnity/Editor/Skills/SkillErrorResponse.cs:464 — SkillsForUnity/Editor/Skills/SkillErrorResponse.cs:464-471 | SkillsForUnity/Editor/Skills/SkillParamUtil.cs:263-270 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) SkillsForUnity/Editor/Skills/EventChannelService.cs:216 — SkillsForUnity/Editor/Skills/EventChannelService.cs:216-223 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:802-809 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) SkillsForUnity/Editor/Skills/TestSkills.cs:957 — SkillsForUnity/Editor/Skills/TestSkills.cs:957-964 | SkillsForUnity/Editor/Skills/TestSkills.cs:1029-1039 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×6
  • Edited copy of a member (16 corresponding lines) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:68 — SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:68-83 | SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:112-128 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) SkillsForUnity/Editor/Skills/GraphicsSkills.cs:113 — SkillsForUnity/Editor/Skills/GraphicsSkills.cs:113-129 | SkillsForUnity/Editor/Skills/ProjectSkills.cs:54-69 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) SkillsForUnity/Editor/Skills/AssetImportSkills.cs:460 — SkillsForUnity/Editor/Skills/AssetImportSkills.cs:460-475 | SkillsForUnity/Editor/Skills/AudioSkills.cs:22-43 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) SkillsForUnity/Editor/Skills/BatchSkills.cs:499 — SkillsForUnity/Editor/Skills/BatchSkills.cs:499-514 | SkillsForUnity/Editor/Skills/BatchSkills.cs:593-609 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) SkillsForUnity/Editor/Skills/SkillsModeManager.cs:265 — SkillsForUnity/Editor/Skills/SkillsModeManager.cs:265-280 | SkillsForUnity/Editor/Skills/SkillsModeManager.cs:287-302 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) SkillsForUnity/Editor/Skills/RegistryService.cs:123 — SkillsForUnity/Editor/Skills/RegistryService.cs:123-138 | SkillsForUnity/Editor/Skills/RegistryService.cs:164-182 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×6
  • Duplicated block (9 lines × 2) SkillsForUnity/Editor/Skills/GraphicsSkills.cs:244 — SkillsForUnity/Editor/Skills/GraphicsSkills.cs:244-252 | SkillsForUnity/Editor/Skills/GraphicsSkills.cs:335-343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) SkillsForUnity/Editor/Skills/ProfilerSkills.cs:67 — SkillsForUnity/Editor/Skills/ProfilerSkills.cs:67-75 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:242-250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) SkillsForUnity/Editor/Skills/AddressablesSkills.cs:401 — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:401-409 | SkillsForUnity/Editor/Skills/AddressablesSkills.cs:672-680 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/AddressablesSkills.cs:401` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/AddressablesSkills.cs:397` calls `AssetPathToGUID`, `IsNullOrEmpty` and `SkillsForUnity/Editor/Skills/AddressablesSkills.cs:671` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) SkillsForUnity/Editor/Skills/ProjectSkills.cs:43 — SkillsForUnity/Editor/Skills/ProjectSkills.cs:43-51 | SkillsForUnity/Editor/Skills/ProjectSkills.cs:74-82 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ProjectSkills.cs:43` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (9 lines × 2) SkillsForUnity/Editor/Skills/RenderPipelineSkillsCommon.cs:161 — SkillsForUnity/Editor/Skills/RenderPipelineSkillsCommon.cs:161-169 | SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:612-620 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) SkillsForUnity/Editor/Skills/OneTimeTokenStore.cs:108 — SkillsForUnity/Editor/Skills/OneTimeTokenStore.cs:108-117 | SkillsForUnity/Editor/Skills/SkillsModeManager.cs:846-854 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
S1 · Cryptographic Hygiene · Weak hash algorithm · ×6
  • Weak hash algorithm SkillsForUnity/Editor/Skills/CleanerSkills.cs:116 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
  • Weak hash algorithm SkillsForUnity/Editor/Skills/SkillInstaller.cs:446 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
  • Weak hash algorithm SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:307 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
  • Weak hash algorithm SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:453 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
  • Weak hash algorithm SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:477 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
  • Weak hash algorithm SkillsForUnity/Editor/Skills/WorkflowStateHash.cs:60 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×5
  • Edited copy of a member (15 corresponding lines) SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1415 — SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1415-1429 | SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs:487-529 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:307 — SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:307-321 | SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:324-338 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:277 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:277-291 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:294-308 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) SkillsForUnity/Editor/Skills/TextureSkills.cs:423 — SkillsForUnity/Editor/Skills/TextureSkills.cs:423-439 | SkillsForUnity/Editor/Skills/ValidationSkills.cs:485-499 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) SkillsForUnity/Editor/Skills/TestSkills.cs:38 — SkillsForUnity/Editor/Skills/TestSkills.cs:38-52 | SkillsForUnity/Editor/Skills/TestSkills.cs:232-247 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (13 corresponding lines) · ×5
  • Edited copy of a member (13 corresponding lines) SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:487 — SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:487-499 | SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:560-579 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowManager.Persistence.cs:287 — SkillsForUnity/Editor/Skills/WorkflowManager.Persistence.cs:287-299 | SkillsForUnity/Editor/Skills/WorkflowStore.cs:582-595 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) SkillsForUnity/Editor/Skills/PackageSkills.cs:407 — SkillsForUnity/Editor/Skills/PackageSkills.cs:407-419 | SkillsForUnity/Editor/Skills/PackageSkills.cs:429-443 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:2170 — SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:2170-2183 | SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:2186-2198 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:421 — SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:421-433 | SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:436-448 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×5
  • Edited copy of a member (10 corresponding lines) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:1490 — SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:1490-1501 | SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:1616-1625 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) SkillsForUnity/Editor/Skills/BatchSkills.cs:1883 — SkillsForUnity/Editor/Skills/BatchSkills.cs:1883-1894 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:1447-1456 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) SkillsForUnity/Editor/Skills/Localization.cs:209 — SkillsForUnity/Editor/Skills/Localization.cs:209-220 | SkillsForUnity/Editor/Skills/Localization.cs:229-238 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) SkillsForUnity/Editor/Skills/SkillParamUtil.cs:296 — SkillsForUnity/Editor/Skills/SkillParamUtil.cs:296-305 | SkillsForUnity/Editor/Skills/SkillParamUtil.cs:312-322 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) SkillsForUnity/Editor/Skills/BatchSkills.cs:1791 — SkillsForUnity/Editor/Skills/BatchSkills.cs:1791-1801 | SkillsForUnity/Editor/Skills/TestSkills.cs:1201-1210 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (31 corresponding lines) · ×4
  • Edited copy of a member (31 corresponding lines) SkillsForUnity/Editor/Skills/SkillsModeManager.cs:380 — SkillsForUnity/Editor/Skills/SkillsModeManager.cs:380-410 | SkillsForUnity/Editor/Skills/SkillsModeManager.cs:518-551 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) SkillsForUnity/Editor/Skills/UISkills.cs:249 — SkillsForUnity/Editor/Skills/UISkills.cs:249-279 | SkillsForUnity/Editor/Skills/UISkills.cs:1393-1423 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:629 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:629-661 | SkillsForUnity/Editor/Skills/AsyncJobService.cs:664-694 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:815 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:815-845 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:854-885 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (25 corresponding lines) · ×4
  • Edited copy of a member (25 corresponding lines) SkillsForUnity/Editor/Skills/EventSkills.cs:229 — SkillsForUnity/Editor/Skills/EventSkills.cs:229-253 | SkillsForUnity/Editor/Skills/EventSkills.cs:265-296 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (25 corresponding lines) SkillsForUnity/Editor/Skills/MaterialSkills.cs:1007 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:1007-1031 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:1043-1067 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (25 corresponding lines) SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:186 — SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:186-210 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Responses.cs:97-126 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (25 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowStore.cs:1040 — SkillsForUnity/Editor/Skills/WorkflowStore.cs:1040-1073 | SkillsForUnity/Editor/Skills/WorkflowStore.cs:1210-1234 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×4
  • Edited copy of a member (19 corresponding lines) SkillsForUnity/Editor/Skills/PhysicsSkills.cs:120 — SkillsForUnity/Editor/Skills/PhysicsSkills.cs:120-146 | SkillsForUnity/Editor/Skills/PhysicsSkills.cs:229-247 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:35 — SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:35-53 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:764-796 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) SkillsForUnity/Editor/UI/Controllers/HistoryTabController.cs:875 — SkillsForUnity/Editor/UI/Controllers/HistoryTabController.cs:875-893 | SkillsForUnity/Editor/UI/Controllers/HistoryTabController.cs:896-914 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1845 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1845-1863 | SkillsForUnity/Editor/Skills/AsyncJobService.cs:1866-1890 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×4
  • Edited copy of a member (18 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:381 — SkillsForUnity/Editor/Skills/WorkflowSkills.cs:381-398 | SkillsForUnity/Editor/Skills/WorkflowSkills.cs:678-699 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) SkillsForUnity/Editor/Skills/ModelSkills.cs:506 — SkillsForUnity/Editor/Skills/ModelSkills.cs:506-531 | SkillsForUnity/Editor/Skills/TextureSkills.cs:397-414 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:428 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:428-445 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:521-539 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:544 — SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:544-561 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:667-684 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×4
  • Edited copy of a member (14 corresponding lines) SkillsForUnity/Editor/Skills/AgentInstructionService.cs:121 — SkillsForUnity/Editor/Skills/AgentInstructionService.cs:121-134 | SkillsForUnity/Editor/Skills/SkillInstaller.cs:64-79 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:512 — SkillsForUnity/Editor/Skills/BehaviorSkills.cs:512-527 | SkillsForUnity/Editor/Skills/BehaviorSkills.cs:531-544 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:495 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:495-508 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:592-605 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:16 — SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:16-29 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:32-45 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×4
  • Duplicated block (13 lines × 2) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:730 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:730-742 | SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:771-783 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:274 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:274-286 | SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:334-346 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:274` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 2) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:382 — SkillsForUnity/Editor/Skills/WorkflowSkills.cs:382-394 | SkillsForUnity/Editor/Skills/WorkflowSkills.cs:679-691 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) SkillsForUnity/Editor/Skills/MaterialSkills.cs:379 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:379-391 | SkillsForUnity/Editor/Skills/SkillPlanningService.Helpers.cs:23-35 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/MaterialSkills.cs:379` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×4
  • Duplicated block (16 lines × 2) SkillsForUnity/Editor/Skills/MaterialSkills.cs:1008 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:1008-1023 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:1044-1059 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:134 — SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:134-149 | SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:330-345 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) SkillsForUnity/Editor/Skills/BatchSkills.cs:265 — SkillsForUnity/Editor/Skills/BatchSkills.cs:265-280 | SkillsForUnity/Editor/Skills/BatchSkills.cs:698-713 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1412 — SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1412-1427 | SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1516-1531 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×4
  • Recursive walk over a caller-supplied document has no depth cap SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:239 — `ConvertArgument` is internal and takes the `JToken` from its caller, and it calls itself at line 239 with a child of the node it was given (and at line 247) — and nowhere in `ConvertArgument` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `ConvertArgument` can intervene. Thread a depth argument through `ConvertArgument` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:223 — `HashBatch` is internal, takes a document from its caller (line 191) and hands it to `Canonicalize`, which calls itself at line 223 with a child of the node it was given — and nowhere in `Canonicalize` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `HashBatch` can intervene. Thread a depth argument through `Canonicalize` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:245 — `Matches` is internal and takes the `JToken` from its caller, and it calls itself at line 245 with a child of the node it was given — and nowhere in `Matches` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `Matches` can intervene. Thread a depth argument through `Matches` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap SkillsForUnity/Editor/Skills/WorkflowStateHash.cs:92 — `BlankReferenceLeaves` is internal and takes the `JToken` from its caller, and it calls itself at line 92 with a child of the node it was given (and at line 97) — and nowhere in `BlankReferenceLeaves` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `BlankReferenceLeaves` can intervene. Thread a depth argument through `BlankReferenceLeaves` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack.
D4 · Code Duplication · Edited copy of a member (29 corresponding lines) · ×3
  • Edited copy of a member (29 corresponding lines) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1485 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1485-1521 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1567-1595 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:423 — SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:423-452 | SkillsForUnity/Editor/Skills/SkillPlanningService.Material.cs:174-202 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:932 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:932-960 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1015-1044 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×3
  • Edited copy of a member (35 corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:458 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:458-492 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:553-589 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) SkillsForUnity/Editor/Skills/AssetSkills.cs:132 — SkillsForUnity/Editor/Skills/AssetSkills.cs:132-166 | SkillsForUnity/Editor/Skills/AssetSkills.cs:319-359 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:729 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:729-763 | SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:770-810 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×3
  • Edited copy of a member (22 corresponding lines) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1532 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1532-1553 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1605-1630 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:669 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:669-690 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:385-418 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:174 — SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:174-198 | SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:205-226 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×3
  • Edited copy of a member (21 corresponding lines) SkillsForUnity/Editor/Skills/PhysicsSkills.cs:259 — SkillsForUnity/Editor/Skills/PhysicsSkills.cs:259-279 | SkillsForUnity/Editor/Skills/PhysicsSkills.cs:292-315 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) SkillsForUnity/Editor/Skills/ScriptSkills.cs:698 — SkillsForUnity/Editor/Skills/ScriptSkills.cs:698-718 | SkillsForUnity/Editor/Skills/ScriptSkills.cs:730-754 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1476 — SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1476-1499 | SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1507-1527 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 16+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 16+ corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:290 — SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:290-305 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:396-411 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:422-437 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 16+ corresponding lines) SkillsForUnity/Editor/Skills/WorkflowStore.cs:276 — SkillsForUnity/Editor/Skills/WorkflowStore.cs:276-291 | SkillsForUnity/Editor/Skills/WorkflowStore.cs:360-377 | SkillsForUnity/Editor/Skills/WorkflowStore.cs:381-396 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 16+ corresponding lines) SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:50 — SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:50-67 | SkillsForUnity/Editor/UI/Controllers/AnalyticsTabController.cs:51-66 | SkillsForUnity/Editor/UI/Controllers/SkillsTabController.cs:58-75 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 8+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 8+ corresponding lines) SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1259 — SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1259-1266 | SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs:346-365 | SkillsForUnity/Editor/Skills/RenderPipelineSkillsCommon.cs:463-476 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 8+ corresponding lines) SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:244 — SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:244-251 | SkillsForUnity/Editor/Skills/ShaderSkills.cs:213-221 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:171-179 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 8+ corresponding lines) SkillsForUnity/Editor/Skills/ScriptSkills.cs:191 — SkillsForUnity/Editor/Skills/ScriptSkills.cs:191-198 | SkillsForUnity/Editor/Skills/ShaderSkills.cs:108-117 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:89-102 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×3
  • Edited copy of a member (11 corresponding lines) SkillsForUnity/Editor/Skills/SkillParamUtil.cs:568 — SkillsForUnity/Editor/Skills/SkillParamUtil.cs:568-578 | SkillsForUnity/Editor/Skills/SkillParamUtil.cs:582-592 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:554 — SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:554-564 | SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:441-455 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:776 — SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:776-786 | SkillsForUnity/Editor/Skills/GameObjectFinder.cs:464-497 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 9+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 9+ corresponding lines) SkillsForUnity/Editor/Skills/AssetSkills.cs:372 — SkillsForUnity/Editor/Skills/AssetSkills.cs:372-387 | SkillsForUnity/Editor/Skills/AudioSkills.cs:203-212 | SkillsForUnity/Editor/Skills/ModelSkills.cs:350-358 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 9+ corresponding lines) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1124 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:1124-1132 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:1135-1143 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:1146-1154 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 9+ corresponding lines) SkillsForUnity/Editor/Skills/ConfirmationTokenService.cs:74 — SkillsForUnity/Editor/Skills/ConfirmationTokenService.cs:74-85 | SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:232-240 | SkillsForUnity/Editor/Skills/SkillsModeManager.cs:857-866 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (5 corresponding lines) · ×3
  • Edited copy of a member (5 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1614 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1614-1621 | SkillsForUnity/Editor/Skills/BatchSkills.cs:2057-2061 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (5 corresponding lines) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:218 — SkillsForUnity/Editor/Skills/GameObjectFinder.cs:218-222 | SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:560-564 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (5 corresponding lines) SkillsForUnity/Editor/UI/UnityCliWindow.cs:18 — SkillsForUnity/Editor/UI/UnityCliWindow.cs:18-22 | SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:781-786 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×3
  • Duplicated block (14 lines × 2) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:749 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:749-762 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:777-790 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:749` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:732 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:732-745 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:518-531 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) SkillsForUnity/Editor/Skills/PhysicsSkills.cs:266 — SkillsForUnity/Editor/Skills/PhysicsSkills.cs:266-279 | SkillsForUnity/Editor/Skills/PhysicsSkills.cs:302-315 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PhysicsSkills.cs:266` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×3
  • Duplicated block (11 lines × 2) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1534 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:1534-1544 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:1573-1583 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:710 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:710-720 | SkillsForUnity/Editor/Skills/GameObjectSkills.cs:798-808 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/GameObjectSkills.cs:710` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) SkillsForUnity/Editor/Skills/MaterialSkills.cs:862 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:862-872 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:908-918 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×3
  • Duplicated block (10 lines × 2) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:278 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:278-287 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:295-304 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:16 — SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:16-25 | SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:130-139 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:26` calls `WarnIfPending` and `SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:141` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) SkillsForUnity/Editor/Skills/ShaderSkills.cs:27 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:27-36 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1843-1853 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×3
  • Duplicated block (7–8 lines × 2) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1262 — SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1262-1268 | SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1345-1352 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind `null` to `string entityId =` in one and `string graphFilter =` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7–8 lines × 2) SkillsForUnity/Editor/Skills/LightSkills.cs:324 — SkillsForUnity/Editor/Skills/LightSkills.cs:324-330 | SkillsForUnity/Editor/Skills/LightSkills.cs:373-380 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7–8 lines × 2) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:504 — SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:504-510 | SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:1078-1085 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×3
  • Duplicated block (6 lines × 3) SkillsForUnity/Editor/Skills/LightSkills.cs:165 — SkillsForUnity/Editor/Skills/LightSkills.cs:165-170 | SkillsForUnity/Editor/Skills/LightSkills.cs:233-238 | SkillsForUnity/Editor/Skills/LightSkills.cs:298-303 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) SkillsForUnity/Editor/Skills/LightSkills.cs:192 — SkillsForUnity/Editor/Skills/LightSkills.cs:192-197 | SkillsForUnity/Editor/Skills/LightSkills.cs:246-251 | SkillsForUnity/Editor/Skills/LightSkills.cs:396-401 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/LightSkills.cs:192` calls `ToString` and `SkillsForUnity/Editor/Skills/LightSkills.cs:396` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 3) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:562 — SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:562-567 | SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:585-590 | SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:740-745 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D35 · Change Coupling · Change coupling · ×2
  • Change coupling: LightSkills.cs ↔ MaterialSkills.cs SkillsForUnity/Editor/Skills/LightSkills.cs:1 — `SkillsForUnity/Editor/Skills/LightSkills.cs` and `SkillsForUnity/Editor/Skills/MaterialSkills.cs` change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `86d9fa24` fix(scene): precision + read-back for material/light/gameobject/camer…; `2035cd97` fix(skills): address Copilot review feedback - simplify batch error r…; `4359091d` fix(skills): complete error contract fixes for Material/Light/Prefab … — run `git show` on any of them.
  • Change coupling: RegistryService.cs ↔ SkillRouter.cs SkillsForUnity/Editor/Skills/RegistryService.cs:1 — `SkillsForUnity/Editor/Skills/RegistryService.cs` and `SkillsForUnity/Editor/Skills/SkillRouter.cs` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `67ddc714` refactor: A+B 代码质量修复 — 提取公共 helper、消除重复模式、补全日志; `e911fa57` Enhance code quality and safety across multiple skills; `35413551` 消除了大量重复代码、返回格式统一 — run `git show` on any of them.
D4 · Code Duplication · Edited copy of a member (43 corresponding lines) · ×2
  • Edited copy of a member (43 corresponding lines) SkillsForUnity/Editor/Skills/ModelSkills.cs:284 — SkillsForUnity/Editor/Skills/ModelSkills.cs:284-326 | SkillsForUnity/Editor/Skills/TextureSkills.cs:215-261 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (43 corresponding lines) SkillsForUnity/Editor/Skills/ComponentSkills.cs:608 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:608-661 | SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:388-430 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (36 corresponding lines) · ×2
  • Edited copy of a member (36 corresponding lines) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:948 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:948-983 | SkillsForUnity/Editor/Skills/GameObjectSkills.cs:1288-1326 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (36 corresponding lines) SkillsForUnity/Editor/Skills/TestSkills.cs:518 — SkillsForUnity/Editor/Skills/TestSkills.cs:518-553 | SkillsForUnity/Editor/Skills/TestSkills.cs:562-599 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×2
  • Edited copy of a member (28 corresponding lines) SkillsForUnity/Editor/Skills/DOTweenSkills.cs:374 — SkillsForUnity/Editor/Skills/DOTweenSkills.cs:374-401 | SkillsForUnity/Editor/Skills/DOTweenSkills.cs:427-455 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (28 corresponding lines) SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:61 — SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:61-88 | SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:199-228 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (37 corresponding lines) · ×2
  • Edited copy of a member (37 corresponding lines) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:224 — SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:224-262 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:383-419 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (37 corresponding lines) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:763 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:763-799 | SkillsForUnity/Editor/Skills/SkillsHttpServer.SkillRequest.cs:25-61 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×2
  • Edited copy of a member (20 corresponding lines) SkillsForUnity/Editor/Skills/UISkills.cs:148 — SkillsForUnity/Editor/Skills/UISkills.cs:148-170 | SkillsForUnity/Editor/Skills/UISkills.cs:221-240 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) SkillsForUnity/Editor/Versioning/LocalSelfUpdateService.cs:138 — SkillsForUnity/Editor/Versioning/LocalSelfUpdateService.cs:138-157 | SkillsForUnity/Editor/Versioning/LocalSelfUpdateService.cs:165-185 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 13+ corresponding lines) · ×2
  • Edited copies of one member (4 members, 13+ corresponding lines) SkillsForUnity/Editor/Skills/ProfilerSkills.cs:137 — SkillsForUnity/Editor/Skills/ProfilerSkills.cs:137-150 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:159-171 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:180-192 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:201-213 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 13+ corresponding lines) SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:303 — SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:303-315 | SkillsForUnity/Editor/Skills/SkillRouter.cs:250-262 | SkillsForUnity/Editor/Skills/SkillsSurfaceProfile.cs:467-481 | SkillsForUnity/Editor/Skills/SkillsTokenLevel.cs:183-195 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (23 corresponding lines) · ×2
  • Edited copy of a member (23 corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:740 — SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:740-762 | SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:765-790 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) SkillsForUnity/Editor/Skills/SkillRouter.cs:915 — SkillsForUnity/Editor/Skills/SkillRouter.cs:915-937 | SkillsForUnity/Editor/Skills/SkillRouter.cs:944-967 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×2
  • Edited copy of a member (33 corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:173 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:173-205 | SkillsForUnity/Editor/Skills/AsyncJobService.cs:214-248 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:183 — SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:183-221 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:348-380 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 6+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 6+ corresponding lines) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1629 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1629-1640 | SkillsForUnity/Editor/Skills/BuildPlayerService.cs:318-323 | SkillsForUnity/Editor/Skills/TestSkills.cs:1180-1191 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 6+ corresponding lines) SkillsForUnity/Editor/UI/Controllers/AnalyticsTabController.cs:479 — SkillsForUnity/Editor/UI/Controllers/AnalyticsTabController.cs:479-485 | SkillsForUnity/Editor/UI/Controllers/UnityCliTabController.cs:329-334 | SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:1135-1144 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 7+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 7+ corresponding lines) SkillsForUnity/Editor/Skills/SampleSkills.cs:82 — SkillsForUnity/Editor/Skills/SampleSkills.cs:82-88 | SkillsForUnity/Editor/Skills/SampleSkills.cs:96-102 | SkillsForUnity/Editor/Skills/SampleSkills.cs:110-116 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) SkillsForUnity/Editor/Skills/TimelineSkills.cs:128 — SkillsForUnity/Editor/Skills/TimelineSkills.cs:128-134 | SkillsForUnity/Editor/Skills/TimelineSkills.cs:143-149 | SkillsForUnity/Editor/Skills/TimelineSkills.cs:158-164 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×2
  • Edited copy of a member (17 corresponding lines) SkillsForUnity/Editor/Skills/BatchSkills.cs:199 — SkillsForUnity/Editor/Skills/BatchSkills.cs:199-217 | SkillsForUnity/Editor/Skills/BatchSkills.cs:237-253 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) SkillsForUnity/Editor/Skills/SkillsHttpServer.BatchRefs.cs:193 — SkillsForUnity/Editor/Skills/SkillsHttpServer.BatchRefs.cs:193-214 | SkillsForUnity/Editor/Skills/WorkflowStateHash.cs:83-99 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 12+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 12+ corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:220 — SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:220-231 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:447-462 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:571-586 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 12+ corresponding lines) SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:258 — SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:258-269 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:277-288 | SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:384-395 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×2
  • Duplicated block (15 lines × 2) SkillsForUnity/Editor/Skills/BatchSkills.cs:1366 — SkillsForUnity/Editor/Skills/BatchSkills.cs:1366-1380 | SkillsForUnity/Editor/Skills/BatchSkills.cs:1557-1571 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/BatchSkills.cs:1366` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1098 — SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1098-1112 | SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1828-1842 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1824` calls `TryGetCommandLine` and `SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1094` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×2
  • Duplicated block (18 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:28 — SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:28-45 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:276-293 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:28` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:330 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:330-347 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:417-434 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:330` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×2
  • Duplicated block (16–17 lines × 2) SkillsForUnity/Editor/Skills/ComponentSkills.cs:619 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:619-635 | SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:394-409 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ComponentSkills.cs:619` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (16–17 lines × 2) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:637 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:637-652 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:366-382 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) SkillsForUnity/Editor/Skills/UISkills.cs:180 — SkillsForUnity/Editor/Skills/UISkills.cs:180-193 | SkillsForUnity/Editor/Skills/UISkills.cs:378-391 | SkillsForUnity/Editor/Skills/UISkills.cs:1158-1171 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 3) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1533 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1533-1546 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1568-1581 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1606-1619 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×2
  • Duplicated block (12–13 lines × 2) SkillsForUnity/Editor/Skills/AssetSkills.cs:36 — SkillsForUnity/Editor/Skills/AssetSkills.cs:36-48 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:139-150 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (12–13 lines × 2) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:323 — SkillsForUnity/Editor/Skills/GameObjectFinder.cs:323-335 | SkillsForUnity/Editor/Skills/GameObjectFinder.cs:428-439 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×2
  • Duplicated block (12 lines × 2) SkillsForUnity/Editor/Skills/MaterialSkills.cs:943 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:943-954 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:977-988 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:269 — SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:269-281 | SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:287-298 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×2
  • Duplicated block (11–12 lines × 2) SkillsForUnity/Editor/Skills/EventSkills.cs:570 — SkillsForUnity/Editor/Skills/EventSkills.cs:570-580 | SkillsForUnity/Editor/Skills/EventSkills.cs:657-668 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/EventSkills.cs:570` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–12 lines × 2) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:362 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:362-373 | SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:468-478 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:362` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) SkillsForUnity/Editor/Skills/MaterialSkills.cs:906 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:906-914 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:941-949 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:975-983 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/MaterialSkills.cs:906` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) SkillsForUnity/Editor/Skills/UISkills.cs:572 — SkillsForUnity/Editor/Skills/UISkills.cs:572-580 | SkillsForUnity/Editor/Skills/UISkills.cs:1191-1199 | SkillsForUnity/Editor/Skills/UISkills.cs:1202-1210 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 6) · ×2
  • Duplicated block (7 lines × 6) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1488 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1488-1494 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1535-1541 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1570-1576 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1608-1614 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1647-1653 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1690-1696 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1645` calls `Required` and `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1486` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 6) SkillsForUnity/Editor/Skills/ShaderSkills.cs:27 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:27-34 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:29-35 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:56-62 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:399-405 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1775-1781 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1843-1849 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1775` calls `Required` and `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:29` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×2
  • Duplicated block (7 lines × 3) SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:124 — SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:124-130 | SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:75-81 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:225-231 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:124` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 3) SkillsForUnity/Editor/Skills/UISkills.cs:757 — SkillsForUnity/Editor/Skills/UISkills.cs:757-763 | SkillsForUnity/Editor/Skills/UISkills.cs:818-824 | SkillsForUnity/Editor/Skills/UISkills.cs:904-910 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×2
  • Duplicated block (5 lines × 3) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:453 — SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:453-457 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:467-471 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:501-505 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 3) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1571 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1571-1579 | SkillsForUnity/Editor/Skills/AsyncJobService.cs:1591-1599 | SkillsForUnity/Editor/Skills/EditorSkills.cs:209-213 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×2
  • Duplicated block (5 lines × 4) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:454 — SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:454-458 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:468-472 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:486-490 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:502-506 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 4) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:427 — SkillsForUnity/Editor/Skills/GameObjectSkills.cs:427-432 | SkillsForUnity/Editor/Skills/GameObjectSkills.cs:915-919 | SkillsForUnity/Editor/Skills/LightSkills.cs:323-327 | SkillsForUnity/Editor/Skills/LightSkills.cs:372-376 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/GameObjectSkills.cs:427` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
IC1 · Incompleteness & stubs · Condition was already decided · ×2
  • Condition was already decided — an earlier guard makes this test constant SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1340 — Control only reaches here when `matches.Count >= effectiveLimit` is false, because the guard on line 1333 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:369 — Control only reaches here when `shouldAbort()` is false, because the guard on line 328 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×2
  • Sync-over-async blocking — 1 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:317 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
X1 · Async correctness · Sync-over-async (deadlock risk) through `Task.WaitAll` · ×2
  • Sync-over-async (deadlock risk) through `Task.WaitAll` SkillsForUnity/Editor/Skills/PythonLocator.cs:347 — `Task.WaitAll` blocks this thread until the tasks complete — sync-over-async: it can deadlock under a synchronization context and it parks a thread for as long as the work runs. `await Task.WhenAll(…)` instead.
  • Sync-over-async (deadlock risk) through `Task.WaitAll` SkillsForUnity/Editor/Versioning/GitCliRunner.cs:294 — `Task.WaitAll` blocks this thread until the tasks complete — sync-over-async: it can deadlock under a synchronization context and it parks a thread for as long as the work runs. `await Task.WhenAll(…)` instead.
D1 · Cyclomatic Complexity · SkillRouter.Execute (cyclomatic 88) · ×1
  • SkillRouter.Execute (cyclomatic 88) SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33 — SkillRouter.Execute has cyclomatic complexity 88 (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.
D1 · Cyclomatic Complexity · SkillsHttpServer.ExecuteBatchCore (cyclomatic 83) · ×1
  • SkillsHttpServer.ExecuteBatchCore (cyclomatic 83) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:292 — SkillsHttpServer.ExecuteBatchCore has cyclomatic complexity 83 (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.
D1 · Cyclomatic Complexity · ScriptSkills.ScanBraceBlocks (cyclomatic 60) · ×1
  • ScriptSkills.ScanBraceBlocks (cyclomatic 60) SkillsForUnity/Editor/Skills/ScriptSkills.cs:437 — ScriptSkills.ScanBraceBlocks has cyclomatic complexity 60 (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.
D1 · Cyclomatic Complexity · SettingsDrawerController.RefreshLocalization (cyclomatic 57) · ×1
  • SettingsDrawerController.RefreshLocalization (cyclomatic 57) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:564 — SettingsDrawerController.RefreshLocalization has cyclomatic complexity 57 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkillsHttpServer.ProcessJob (cyclomatic 50) · ×1
  • SkillsHttpServer.ProcessJob (cyclomatic 50) SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:209 — SkillsHttpServer.ProcessJob 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.
D1 · Cyclomatic Complexity · RuntimeScenarioService.ProcessCore (cyclomatic 44) · ×1
  • RuntimeScenarioService.ProcessCore (cyclomatic 44) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:129 — RuntimeScenarioService.ProcessCore 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.
D1 · Cyclomatic Complexity · SettingsDrawerController.BindEvents (cyclomatic 44) · ×1
  • SettingsDrawerController.BindEvents (cyclomatic 44) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:294 — SettingsDrawerController.BindEvents has cyclomatic complexity 44 (threshold 15). Of this number, 29 points are the body's own statements and 15 belong to 10 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · HybridCLRSkills.SettingsSet (cyclomatic 42) · ×1
  • HybridCLRSkills.SettingsSet (cyclomatic 42) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1047 — HybridCLRSkills.SettingsSet has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkillRouter.RankIntent (cyclomatic 42) · ×1
  • SkillRouter.RankIntent (cyclomatic 42) SkillsForUnity/Editor/Skills/SkillRouter.Recommend.cs:285 — SkillRouter.RankIntent 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.
D1 · Cyclomatic Complexity · UIToolkitSkills.UitkUxmlUpgrade (cyclomatic 40) · ×1
  • UIToolkitSkills.UitkUxmlUpgrade (cyclomatic 40) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2149 — UIToolkitSkills.UitkUxmlUpgrade 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.
D1 · Cyclomatic Complexity · PrefabAssetEditor.Preview (cyclomatic 39) · ×1
  • PrefabAssetEditor.Preview (cyclomatic 39) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:708 — PrefabAssetEditor.Preview has cyclomatic complexity 39 (threshold 15). Of this number, 36 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SerializedPropertySkillUtility.TrySetProperty (cyclomatic 39) · ×1
  • SerializedPropertySkillUtility.TrySetProperty (cyclomatic 39) SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:127 — SerializedPropertySkillUtility.TrySetProperty has cyclomatic complexity 39 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · SkillRouter.CollectTargetsFromArgs (cyclomatic 37) · ×1
  • SkillRouter.CollectTargetsFromArgs (cyclomatic 37) SkillsForUnity/Editor/Skills/SkillRouter.Workflow.cs:103 — SkillRouter.CollectTargetsFromArgs 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.
D1 · Cyclomatic Complexity · SmartSkills.SmartReferenceBind (cyclomatic 37) · ×1
  • SmartSkills.SmartReferenceBind (cyclomatic 37) SkillsForUnity/Editor/Skills/SmartSkills.cs:195 — SmartSkills.SmartReferenceBind has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · HybridCLRSkills.CopyHotUpdateDlls (cyclomatic 36) · ×1
  • HybridCLRSkills.CopyHotUpdateDlls (cyclomatic 36) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1778 — HybridCLRSkills.CopyHotUpdateDlls has cyclomatic complexity 36 (threshold 15). Of this number, 35 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkillsHttpServer.ProcessJobQueue (cyclomatic 36) · ×1
  • SkillsHttpServer.ProcessJobQueue (cyclomatic 36) SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:22 — SkillsHttpServer.ProcessJobQueue has cyclomatic complexity 36 (threshold 15). Of this number, 34 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PerceptionSkills.ScriptDependencyGraph (cyclomatic 35) · ×1
  • PerceptionSkills.ScriptDependencyGraph (cyclomatic 35) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2446 — PerceptionSkills.ScriptDependencyGraph has cyclomatic complexity 35 (threshold 15). Of this number, 31 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PrefabAssetEditor.Apply (cyclomatic 34) · ×1
  • PrefabAssetEditor.Apply (cyclomatic 34) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:365 — PrefabAssetEditor.Apply 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.
D1 · Cyclomatic Complexity · RuntimeScenarioService.ValidateSteps (cyclomatic 34) · ×1
  • RuntimeScenarioService.ValidateSteps (cyclomatic 34) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:91 — RuntimeScenarioService.ValidateSteps has cyclomatic complexity 34 (threshold 15). Of this number, 33 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkillsHttpServer.HandleSkillsBatchRequest (cyclomatic 34) · ×1
  • SkillsHttpServer.HandleSkillsBatchRequest (cyclomatic 34) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:69 — SkillsHttpServer.HandleSkillsBatchRequest has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PerceptionSkills.SceneExportReport (cyclomatic 33) · ×1
  • PerceptionSkills.SceneExportReport (cyclomatic 33) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1786 — PerceptionSkills.SceneExportReport has cyclomatic complexity 33 (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.
D1 · Cyclomatic Complexity · PrefabSkills.SetSerializedPropertyValue (cyclomatic 33) · ×1
  • PrefabSkills.SetSerializedPropertyValue (cyclomatic 33) SkillsForUnity/Editor/Skills/PrefabSkills.cs:999 — PrefabSkills.SetSerializedPropertyValue has cyclomatic complexity 33 (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.
D1 · Cyclomatic Complexity · ComponentInvocationService.ConvertArgument (cyclomatic 32) · ×1
  • ComponentInvocationService.ConvertArgument (cyclomatic 32) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:201 — ComponentInvocationService.ConvertArgument has cyclomatic complexity 32 (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.
D1 · Cyclomatic Complexity · ComponentInvocationService.Serialize (cyclomatic 32) · ×1
  • ComponentInvocationService.Serialize (cyclomatic 32) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:389 — ComponentInvocationService.Serialize has cyclomatic complexity 32 (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.
D1 · Cyclomatic Complexity · PrefabAssetEditor.PrepareProperty (cyclomatic 32) · ×1
  • PrefabAssetEditor.PrepareProperty (cyclomatic 32) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:517 — PrefabAssetEditor.PrepareProperty has cyclomatic complexity 32 (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.
D1 · Cyclomatic Complexity · SkillsHttpServer.ListenLoop (cyclomatic 32) · ×1
  • SkillsHttpServer.ListenLoop (cyclomatic 32) SkillsForUnity/Editor/Skills/SkillsHttpServer.Listener.cs:31 — SkillsHttpServer.ListenLoop has cyclomatic complexity 32 (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.
D1 · Cyclomatic Complexity · ConsoleLogHistoryService.TryLoadTailLocked (cyclomatic 31) · ×1
  • ConsoleLogHistoryService.TryLoadTailLocked (cyclomatic 31) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:613 — ConsoleLogHistoryService.TryLoadTailLocked has cyclomatic complexity 31 (threshold 15). Of this number, 26 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · PerceptionSkills.GetComponentHint (cyclomatic 31) · ×1
  • PerceptionSkills.GetComponentHint (cyclomatic 31) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1170 — PerceptionSkills.GetComponentHint has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkillPlanningService.AnalyzeComponentRemoveBatch (cyclomatic 31) · ×1
  • SkillPlanningService.AnalyzeComponentRemoveBatch (cyclomatic 31) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:218 — SkillPlanningService.AnalyzeComponentRemoveBatch 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.
D1 · Cyclomatic Complexity · SkillsHttpServer.ConvertQueryValue (cyclomatic 31) · ×1
  • SkillsHttpServer.ConvertQueryValue (cyclomatic 31) SkillsForUnity/Editor/Skills/SkillsHttpServer.SkillRequest.cs:216 — SkillsHttpServer.ConvertQueryValue 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.
D1 · Cyclomatic Complexity · QFrameworkSkills.ScanArchitecture (cyclomatic 29) · ×1
  • QFrameworkSkills.ScanArchitecture (cyclomatic 29) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1209 — QFrameworkSkills.ScanArchitecture 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.
D1 · Cyclomatic Complexity · SkillRouter.BuildFilteredOutput (cyclomatic 29) · ×1
  • SkillRouter.BuildFilteredOutput (cyclomatic 29) SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:481 — SkillRouter.BuildFilteredOutput has cyclomatic complexity 29 (threshold 15). Of this number, 23 points are the body's own statements and 6 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TokenLevelSliderWidget.DrawTokenSlider (cyclomatic 29) · ×1
  • TokenLevelSliderWidget.DrawTokenSlider (cyclomatic 29) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:541 — TokenLevelSliderWidget.DrawTokenSlider 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.
D1 · Cyclomatic Complexity · ModelSkills.ModelSetSettings (cyclomatic 28) · ×1
  • ModelSkills.ModelSetSettings (cyclomatic 28) SkillsForUnity/Editor/Skills/ModelSkills.cs:93 — ModelSkills.ModelSetSettings has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SerializedPropertySkillUtility.DescribeValue (cyclomatic 28) · ×1
  • SerializedPropertySkillUtility.DescribeValue (cyclomatic 28) SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:509 — SerializedPropertySkillUtility.DescribeValue has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · WorkflowStore.EvictSegments (cyclomatic 28) · ×1
  • WorkflowStore.EvictSegments (cyclomatic 28) SkillsForUnity/Editor/Skills/WorkflowStore.cs:1370 — WorkflowStore.EvictSegments has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · HybridCLRSkills.ApplyFileSetBackup (cyclomatic 27) · ×1
  • HybridCLRSkills.ApplyFileSetBackup (cyclomatic 27) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:704 — HybridCLRSkills.ApplyFileSetBackup 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.
D1 · Cyclomatic Complexity · ClientProcessResolver.TryExtractFromArgs (cyclomatic 26) · ×1
  • ClientProcessResolver.TryExtractFromArgs (cyclomatic 26) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:746 — ClientProcessResolver.TryExtractFromArgs 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.
D1 · Cyclomatic Complexity · DOTweenReflectionHelper.ApplyEndValue (cyclomatic 26) · ×1
  • DOTweenReflectionHelper.ApplyEndValue (cyclomatic 26) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:341 — DOTweenReflectionHelper.ApplyEndValue 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.
D1 · Cyclomatic Complexity · PerceptionSkills.ExtractSerializedFields (cyclomatic 26) · ×1
  • PerceptionSkills.ExtractSerializedFields (cyclomatic 26) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1622 — PerceptionSkills.ExtractSerializedFields 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.
D1 · Cyclomatic Complexity · BatchExecutor.Execute (cyclomatic 25) · ×1
  • BatchExecutor.Execute (cyclomatic 25) SkillsForUnity/Editor/Skills/BatchExecutor.cs:83 — BatchExecutor.Execute has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ComponentInvocationService.Process (cyclomatic 25) · ×1
  • ComponentInvocationService.Process (cyclomatic 25) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:287 — ComponentInvocationService.Process 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.
D1 · Cyclomatic Complexity · ComponentSkills.ComponentSetPropertyBatch (cyclomatic 25) · ×1
  • ComponentSkills.ComponentSetPropertyBatch (cyclomatic 25) SkillsForUnity/Editor/Skills/ComponentSkills.cs:457 — ComponentSkills.ComponentSetPropertyBatch has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 467). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · QFrameworkSkills.GenerateUIPanelCode (cyclomatic 25) · ×1
  • QFrameworkSkills.GenerateUIPanelCode (cyclomatic 25) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:667 — QFrameworkSkills.GenerateUIPanelCode 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.
D1 · Cyclomatic Complexity · QFrameworkSkills.QueryApiDocs (cyclomatic 25) · ×1
  • QFrameworkSkills.QueryApiDocs (cyclomatic 25) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1309 — QFrameworkSkills.QueryApiDocs 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.
D1 · Cyclomatic Complexity · BatchSkills.FilterTargets (cyclomatic 24) · ×1
  • BatchSkills.FilterTargets (cyclomatic 24) SkillsForUnity/Editor/Skills/BatchSkills.cs:1249 — BatchSkills.FilterTargets has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body's own statements and 5 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · BehaviorReflectionHelper.TryConvertValue (cyclomatic 24) · ×1
  • BehaviorReflectionHelper.TryConvertValue (cyclomatic 24) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:579 — BehaviorReflectionHelper.TryConvertValue has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ComponentInvocationService.Bind (cyclomatic 24) · ×1
  • ComponentInvocationService.Bind (cyclomatic 24) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:127 — ComponentInvocationService.Bind has cyclomatic complexity 24 (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.
D1 · Cyclomatic Complexity · ComponentSkills.ComponentSetProperty (cyclomatic 24) · ×1
  • ComponentSkills.ComponentSetProperty (cyclomatic 24) SkillsForUnity/Editor/Skills/ComponentSkills.cs:342 — ComponentSkills.ComponentSetProperty has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PerceptionSkills.CollectCodeDependenciesLegacy (cyclomatic 24) · ×1
  • PerceptionSkills.CollectCodeDependenciesLegacy (cyclomatic 24) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2046 — PerceptionSkills.CollectCodeDependenciesLegacy has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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.
D1 · Cyclomatic Complexity · SerializedPropertySkillUtility.TryResolveObjectReferenceDetailed (cyclomatic 24) · ×1
  • SerializedPropertySkillUtility.TryResolveObjectReferenceDetailed (cyclomatic 24) SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:315 — SerializedPropertySkillUtility.TryResolveObjectReferenceDetailed has cyclomatic complexity 24 (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.
D1 · Cyclomatic Complexity · SkillTelemetryService.AggregateAnalytics (cyclomatic 24) · ×1
  • SkillTelemetryService.AggregateAnalytics (cyclomatic 24) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:903 — SkillTelemetryService.AggregateAnalytics has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UIToolkitSkills.ApplyPanelSettings (cyclomatic 24) · ×1
  • UIToolkitSkills.ApplyPanelSettings (cyclomatic 24) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1028 — UIToolkitSkills.ApplyPanelSettings has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · WorkflowManager.UndoCreatedSnapshot (cyclomatic 24) · ×1
  • WorkflowManager.UndoCreatedSnapshot (cyclomatic 24) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:361 — WorkflowManager.UndoCreatedSnapshot has cyclomatic complexity 24 (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.
D1 · Cyclomatic Complexity · WorkflowManager.UndoDeletedSnapshot (cyclomatic 24) · ×1
  • WorkflowManager.UndoDeletedSnapshot (cyclomatic 24) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:580 — WorkflowManager.UndoDeletedSnapshot has cyclomatic complexity 24 (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.
D1 · Cyclomatic Complexity · WorkflowSkills.WorkflowList (cyclomatic 24) · ×1
  • WorkflowSkills.WorkflowList (cyclomatic 24) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:403 — WorkflowSkills.WorkflowList has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · BatchSkills.TryParseQuery (cyclomatic 23) · ×1
  • BatchSkills.TryParseQuery (cyclomatic 23) SkillsForUnity/Editor/Skills/BatchSkills.cs:1037 — BatchSkills.TryParseQuery 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.
D1 · Cyclomatic Complexity · ComponentSkills.ConvertValue (cyclomatic 23) · ×1
  • ComponentSkills.ConvertValue (cyclomatic 23) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1080 — ComponentSkills.ConvertValue has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DOTweenReflectionHelper.ConvertValue (cyclomatic 23) · ×1
  • DOTweenReflectionHelper.ConvertValue (cyclomatic 23) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:419 — DOTweenReflectionHelper.ConvertValue 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.
D1 · Cyclomatic Complexity · RenderPipelineSkillsCommon.TryConvertRawValue (cyclomatic 23) · ×1
  • RenderPipelineSkillsCommon.TryConvertRawValue (cyclomatic 23) SkillsForUnity/Editor/Skills/RenderPipelineSkillsCommon.cs:543 — RenderPipelineSkillsCommon.TryConvertRawValue 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.
D1 · Cyclomatic Complexity · ShaderGraphReflectionHelper.TryApplyNodeSettings (cyclomatic 23) · ×1
  • ShaderGraphReflectionHelper.TryApplyNodeSettings (cyclomatic 23) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1978 — ShaderGraphReflectionHelper.TryApplyNodeSettings 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.
D1 · Cyclomatic Complexity · SkillRouter.ValidateMetadata (cyclomatic 23) · ×1
  • SkillRouter.ValidateMetadata (cyclomatic 23) SkillsForUnity/Editor/Skills/SkillRouter.Metadata.cs:19 — SkillRouter.ValidateMetadata 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.
D1 · Cyclomatic Complexity · SkillsHttpServer.CheckAndRestoreServer (cyclomatic 23) · ×1
  • SkillsHttpServer.CheckAndRestoreServer (cyclomatic 23) SkillsForUnity/Editor/Skills/SkillsHttpServer.cs:453 — SkillsHttpServer.CheckAndRestoreServer 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.
D1 · Cyclomatic Complexity · WorkflowManager.AddJournalConflicts (cyclomatic 23) · ×1
  • WorkflowManager.AddJournalConflicts (cyclomatic 23) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:283 — WorkflowManager.AddJournalConflicts has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EvaluationTabController.RenderProgress (cyclomatic 23) · ×1
  • EvaluationTabController.RenderProgress (cyclomatic 23) SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1251 — EvaluationTabController.RenderProgress has cyclomatic complexity 23 (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.
D1 · Cyclomatic Complexity · EventSkills.EventCopyListeners (cyclomatic 22) · ×1
  • EventSkills.EventCopyListeners (cyclomatic 22) SkillsForUnity/Editor/Skills/EventSkills.cs:944 — EventSkills.EventCopyListeners 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.
D1 · Cyclomatic Complexity · HybridCLRSkills.ValidateSetup (cyclomatic 22) · ×1
  • HybridCLRSkills.ValidateSetup (cyclomatic 22) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1243 — HybridCLRSkills.ValidateSetup has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PerceptionSkills.GetBuiltinComponentProps (cyclomatic 22) · ×1
  • PerceptionSkills.GetBuiltinComponentProps (cyclomatic 22) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1690 — PerceptionSkills.GetBuiltinComponentProps has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · PlayCaptureService.Process (cyclomatic 22) · ×1
  • PlayCaptureService.Process (cyclomatic 22) SkillsForUnity/Editor/Skills/PlayCaptureService.cs:77 — PlayCaptureService.Process 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.
D1 · Cyclomatic Complexity · TextureSkills.TextureSetSettings (cyclomatic 22) · ×1
  • TextureSkills.TextureSetSettings (cyclomatic 22) SkillsForUnity/Editor/Skills/TextureSkills.cs:71 — TextureSkills.TextureSetSettings has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EvaluationTabController.OutcomeSummary (cyclomatic 22) · ×1
  • EvaluationTabController.OutcomeSummary (cyclomatic 22) SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1699 — EvaluationTabController.OutcomeSummary 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.
D1 · Cyclomatic Complexity · TokenLevelSliderWidget.BindEvents (cyclomatic 22) · ×1
  • TokenLevelSliderWidget.BindEvents (cyclomatic 22) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:139 — TokenLevelSliderWidget.BindEvents has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 177, 200, 148, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · AsyncJobService.ProcessPackageJob (cyclomatic 21) · ×1
  • AsyncJobService.ProcessPackageJob (cyclomatic 21) SkillsForUnity/Editor/Skills/AsyncJobService.cs:943 — AsyncJobService.ProcessPackageJob has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ClientProcessResolver.BeginResolve (cyclomatic 21) · ×1
  • ClientProcessResolver.BeginResolve (cyclomatic 21) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:217 — ClientProcessResolver.BeginResolve has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EventSkills.EventAddListener (cyclomatic 21) · ×1
  • EventSkills.EventAddListener (cyclomatic 21) SkillsForUnity/Editor/Skills/EventSkills.cs:82 — EventSkills.EventAddListener has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PerceptionSkills.CollectSceneMetrics (cyclomatic 21) · ×1
  • PerceptionSkills.CollectSceneMetrics (cyclomatic 21) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:106 — PerceptionSkills.CollectSceneMetrics 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.
D1 · Cyclomatic Complexity · PrefabSkills.PrefabInstantiateBatch (cyclomatic 21) · ×1
  • PrefabSkills.PrefabInstantiateBatch (cyclomatic 21) SkillsForUnity/Editor/Skills/PrefabSkills.cs:98 — PrefabSkills.PrefabInstantiateBatch has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 111). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · EvaluationState.MergeGroup (cyclomatic 20) · ×1
  • EvaluationState.MergeGroup (cyclomatic 20) SkillsForUnity/Editor/Skills/EvaluationState.cs:610 — EvaluationState.MergeGroup 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.
D1 · Cyclomatic Complexity · EventSkills.EventSetListener (cyclomatic 20) · ×1
  • EventSkills.EventSetListener (cyclomatic 20) SkillsForUnity/Editor/Skills/EventSkills.cs:739 — EventSkills.EventSetListener has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · HybridCLRSkills.GenerateStep (cyclomatic 20) · ×1
  • HybridCLRSkills.GenerateStep (cyclomatic 20) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1603 — HybridCLRSkills.GenerateStep has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PerceptionSkills.ParseCodeDependencies (cyclomatic 20) · ×1
  • PerceptionSkills.ParseCodeDependencies (cyclomatic 20) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2206 — PerceptionSkills.ParseCodeDependencies has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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.
D1 · Cyclomatic Complexity · PerceptionSkills.SceneDiff (cyclomatic 20) · ×1
  • PerceptionSkills.SceneDiff (cyclomatic 20) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2861 — PerceptionSkills.SceneDiff 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.
D1 · Cyclomatic Complexity · PythonLocator.EnumerateCandidates (cyclomatic 20) · ×1
  • PythonLocator.EnumerateCandidates (cyclomatic 20) SkillsForUnity/Editor/Skills/PythonLocator.cs:209 — PythonLocator.EnumerateCandidates 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.
D1 · Cyclomatic Complexity · RuntimeScenarioService.Start (cyclomatic 20) · ×1
  • RuntimeScenarioService.Start (cyclomatic 20) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:57 — RuntimeScenarioService.Start has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkillRouter.DryRun (cyclomatic 20) · ×1
  • SkillRouter.DryRun (cyclomatic 20) SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:565 — SkillRouter.DryRun has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkillResultHelper.CollectExtraErrorFields (cyclomatic 20) · ×1
  • SkillResultHelper.CollectExtraErrorFields (cyclomatic 20) SkillsForUnity/Editor/Skills/SkillRouter.cs:859 — SkillResultHelper.CollectExtraErrorFields 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.
D1 · Cyclomatic Complexity · SkillsHttpServer.AdjustDryRunPayloadForRefs (cyclomatic 20) · ×1
  • SkillsHttpServer.AdjustDryRunPayloadForRefs (cyclomatic 20) SkillsForUnity/Editor/Skills/SkillsHttpServer.BatchRefs.cs:390 — SkillsHttpServer.AdjustDryRunPayloadForRefs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · SkillsHttpServer.HandleJobsRequest (cyclomatic 20) · ×1
  • SkillsHttpServer.HandleJobsRequest (cyclomatic 20) SkillsForUnity/Editor/Skills/SkillsHttpServer.Jobs.cs:22 — SkillsHttpServer.HandleJobsRequest has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · WorkflowStore.Apply (cyclomatic 20) · ×1
  • WorkflowStore.Apply (cyclomatic 20) SkillsForUnity/Editor/Skills/WorkflowStore.cs:1075 — WorkflowStore.Apply 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. This is NOT this file's highest cyclomatic complexity: WorkflowStore.ReadRecord (cyclomatic 28) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · LocalGitSync.Apply (cyclomatic 20) · ×1
  • LocalGitSync.Apply (cyclomatic 20) SkillsForUnity/Editor/Versioning/LocalGitSync.cs:559 — LocalGitSync.Apply 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.
D1 · Cyclomatic Complexity · BatchSkills.BatchQueryAssets (cyclomatic 19) · ×1
  • BatchSkills.BatchQueryAssets (cyclomatic 19) SkillsForUnity/Editor/Skills/BatchSkills.cs:98 — BatchSkills.BatchQueryAssets 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.
D1 · Cyclomatic Complexity · GameObjectFinder.Resolve (cyclomatic 19) · ×1
  • GameObjectFinder.Resolve (cyclomatic 19) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:560 — GameObjectFinder.Resolve has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PrefabSkills.PrefabGetOverrides (cyclomatic 19) · ×1
  • PrefabSkills.PrefabGetOverrides (cyclomatic 19) SkillsForUnity/Editor/Skills/PrefabSkills.cs:237 — PrefabSkills.PrefabGetOverrides 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.
D1 · Cyclomatic Complexity · ShaderGraphSkills.ShaderGraphCreateGraph (cyclomatic 19) · ×1
  • ShaderGraphSkills.ShaderGraphCreateGraph (cyclomatic 19) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:42 — ShaderGraphSkills.ShaderGraphCreateGraph has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TestSkills.EvaluateSmokeSkill (cyclomatic 19) · ×1
  • TestSkills.EvaluateSmokeSkill (cyclomatic 19) SkillsForUnity/Editor/Skills/TestSkills.cs:429 — TestSkills.EvaluateSmokeSkill 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.
D1 · Cyclomatic Complexity · UISkills.UISetRect (cyclomatic 19) · ×1
  • UISkills.UISetRect (cyclomatic 19) SkillsForUnity/Editor/Skills/UISkills.cs:804 — UISkills.UISetRect 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.
D1 · Cyclomatic Complexity · WorkflowManager.FindDanglingReferences (cyclomatic 19) · ×1
  • WorkflowManager.FindDanglingReferences (cyclomatic 19) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Scope.cs:290 — WorkflowManager.FindDanglingReferences 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.
D1 · Cyclomatic Complexity · WorkflowManager.RestoreModifiedSnapshot (cyclomatic 19) · ×1
  • WorkflowManager.RestoreModifiedSnapshot (cyclomatic 19) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:1102 — WorkflowManager.RestoreModifiedSnapshot 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.
D1 · Cyclomatic Complexity · TokenLevelSliderWidget.RefreshTokenLevelUi (cyclomatic 19) · ×1
  • TokenLevelSliderWidget.RefreshTokenLevelUi (cyclomatic 19) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:400 — TokenLevelSliderWidget.RefreshTokenLevelUi has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GitCliRunner.BuildCandidateList (cyclomatic 19) · ×1
  • GitCliRunner.BuildCandidateList (cyclomatic 19) SkillsForUnity/Editor/Versioning/GitCliRunner.cs:124 — GitCliRunner.BuildCandidateList has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AsyncJobService.ProcessTestJob (cyclomatic 18) · ×1
  • AsyncJobService.ProcessTestJob (cyclomatic 18) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1045 — AsyncJobService.ProcessTestJob 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.
D1 · Cyclomatic Complexity · GameObjectSkills.GameObjectFind (cyclomatic 18) · ×1
  • GameObjectSkills.GameObjectFind (cyclomatic 18) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:466 — GameObjectSkills.GameObjectFind has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · QFrameworkSkills.GenerateViewControllerCode (cyclomatic 18) · ×1
  • QFrameworkSkills.GenerateViewControllerCode (cyclomatic 18) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:570 — QFrameworkSkills.GenerateViewControllerCode has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkillPlanningService.RegisterPendingCreates (cyclomatic 18) · ×1
  • SkillPlanningService.RegisterPendingCreates (cyclomatic 18) SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:231 — SkillPlanningService.RegisterPendingCreates 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.
D1 · Cyclomatic Complexity · SkillsHttpServer.RespondEventsLongPoll (cyclomatic 18) · ×1
  • SkillsHttpServer.RespondEventsLongPoll (cyclomatic 18) SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:64 — SkillsHttpServer.RespondEventsLongPoll 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.
D1 · Cyclomatic Complexity · SkillsHttpServer.RunSelfTest (cyclomatic 18) · ×1
  • SkillsHttpServer.RunSelfTest (cyclomatic 18) SkillsForUnity/Editor/Skills/SkillsHttpServer.SelfTest.cs:18 — SkillsHttpServer.RunSelfTest has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 25). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · UIToolkitSkills.TryResolvePanelSettingsArgs (cyclomatic 18) · ×1
  • UIToolkitSkills.TryResolvePanelSettingsArgs (cyclomatic 18) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:909 — UIToolkitSkills.TryResolvePanelSettingsArgs 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.
D1 · Cyclomatic Complexity · WorkflowManager.TryResolveObject (cyclomatic 18) · ×1
  • WorkflowManager.TryResolveObject (cyclomatic 18) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:938 — WorkflowManager.TryResolveObject has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LocalGitSync.Probe (cyclomatic 18) · ×1
  • LocalGitSync.Probe (cyclomatic 18) SkillsForUnity/Editor/Versioning/LocalGitSync.cs:213 — LocalGitSync.Probe 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.
D1 · Cyclomatic Complexity · AsyncJobService.ProcessJobs (cyclomatic 17) · ×1
  • AsyncJobService.ProcessJobs (cyclomatic 17) SkillsForUnity/Editor/Skills/AsyncJobService.cs:735 — AsyncJobService.ProcessJobs has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · CleanerSkills.CleanerDeleteAssets (cyclomatic 17) · ×1
  • CleanerSkills.CleanerDeleteAssets (cyclomatic 17) SkillsForUnity/Editor/Skills/CleanerSkills.cs:248 — CleanerSkills.CleanerDeleteAssets 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.
D1 · Cyclomatic Complexity · ClientProcessResolver.WalkChainCore (cyclomatic 17) · ×1
  • ClientProcessResolver.WalkChainCore (cyclomatic 17) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:464 — ClientProcessResolver.WalkChainCore 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.
D1 · Cyclomatic Complexity · MacSysctlArgs.TryGetArgv (cyclomatic 17) · ×1
  • MacSysctlArgs.TryGetArgv (cyclomatic 17) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1889 — MacSysctlArgs.TryGetArgv has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · MaterialSkills.MaterialCreate (cyclomatic 17) · ×1
  • MaterialSkills.MaterialCreate (cyclomatic 17) SkillsForUnity/Editor/Skills/MaterialSkills.cs:345 — MaterialSkills.MaterialCreate 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.
D1 · Cyclomatic Complexity · ModelSkills.ModelSetSettingsBatch (cyclomatic 17) · ×1
  • ModelSkills.ModelSetSettingsBatch (cyclomatic 17) SkillsForUnity/Editor/Skills/ModelSkills.cs:277 — ModelSkills.ModelSetSettingsBatch has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 285). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · PerceptionSkills.GetSerializedValue (cyclomatic 17) · ×1
  • PerceptionSkills.GetSerializedValue (cyclomatic 17) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1970 — PerceptionSkills.GetSerializedValue has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · SkillsHttpServer.TryApplyBatchBodyMode (cyclomatic 17) · ×1
  • SkillsHttpServer.TryApplyBatchBodyMode (cyclomatic 17) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:979 — SkillsHttpServer.TryApplyBatchBodyMode 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.
D1 · Cyclomatic Complexity · SmartSkills.SmartSceneLayout (cyclomatic 17) · ×1
  • SmartSkills.SmartSceneLayout (cyclomatic 17) SkillsForUnity/Editor/Skills/SmartSkills.cs:112 — SmartSkills.SmartSceneLayout has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · UIToolkitSkills.CollectAuthoringIds (cyclomatic 17) · ×1
  • UIToolkitSkills.CollectAuthoringIds (cyclomatic 17) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2712 — UIToolkitSkills.CollectAuthoringIds 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.
D1 · Cyclomatic Complexity · WorkflowFileStore.RestoreFile (cyclomatic 17) · ×1
  • WorkflowFileStore.RestoreFile (cyclomatic 17) SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:113 — WorkflowFileStore.RestoreFile has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GitCliRunner.Run (cyclomatic 17) · ×1
  • GitCliRunner.Run (cyclomatic 17) SkillsForUnity/Editor/Versioning/GitCliRunner.cs:226 — GitCliRunner.Run 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.
D1 · Cyclomatic Complexity · BatchJobService.ProcessSingleJob (cyclomatic 16) · ×1
  • BatchJobService.ProcessSingleJob (cyclomatic 16) SkillsForUnity/Editor/Skills/BatchJobService.cs:195 — BatchJobService.ProcessSingleJob 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.
D1 · Cyclomatic Complexity · BehaviorSkills.SetAssetBlackboardVariable (cyclomatic 16) · ×1
  • BehaviorSkills.SetAssetBlackboardVariable (cyclomatic 16) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1618 — BehaviorSkills.SetAssetBlackboardVariable has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CameraSkills.CameraSetProperties (cyclomatic 16) · ×1
  • CameraSkills.CameraSetProperties (cyclomatic 16) SkillsForUnity/Editor/Skills/CameraSkills.cs:286 — CameraSkills.CameraSetProperties 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.
D1 · Cyclomatic Complexity · ConsoleLogHistoryService.EnsureCompleteLocked (cyclomatic 16) · ×1
  • ConsoleLogHistoryService.EnsureCompleteLocked (cyclomatic 16) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:737 — ConsoleLogHistoryService.EnsureCompleteLocked has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EditorChangeTrackerService.CapturePropertyModification (cyclomatic 16) · ×1
  • EditorChangeTrackerService.CapturePropertyModification (cyclomatic 16) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:474 — EditorChangeTrackerService.CapturePropertyModification has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LightSkills.ApplyLightProperties (cyclomatic 16) · ×1
  • LightSkills.ApplyLightProperties (cyclomatic 16) SkillsForUnity/Editor/Skills/LightSkills.cs:23 — LightSkills.ApplyLightProperties 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.
D1 · Cyclomatic Complexity · PerceptionSkills.SceneContractValidate (cyclomatic 16) · ×1
  • PerceptionSkills.SceneContractValidate (cyclomatic 16) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:728 — PerceptionSkills.SceneContractValidate 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.
D1 · Cyclomatic Complexity · PerceptionSkills.GetComponentHintLegacy (cyclomatic 16) · ×1
  • PerceptionSkills.GetComponentHintLegacy (cyclomatic 16) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1227 — PerceptionSkills.GetComponentHintLegacy has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · QFrameworkSkills.GenerateArchitectureCode (cyclomatic 16) · ×1
  • QFrameworkSkills.GenerateArchitectureCode (cyclomatic 16) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:464 — QFrameworkSkills.GenerateArchitectureCode has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · RuntimeScenarioService.Matches (cyclomatic 16) · ×1
  • RuntimeScenarioService.Matches (cyclomatic 16) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:230 — RuntimeScenarioService.Matches has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ShaderGraphReflectionHelper.TryUpdateKeyword (cyclomatic 16) · ×1
  • ShaderGraphReflectionHelper.TryUpdateKeyword (cyclomatic 16) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:541 — ShaderGraphReflectionHelper.TryUpdateKeyword has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkillPlanningService.AnalyzeComponentAddBatch (cyclomatic 16) · ×1
  • SkillPlanningService.AnalyzeComponentAddBatch (cyclomatic 16) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:73 — SkillPlanningService.AnalyzeComponentAddBatch 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.
D1 · Cyclomatic Complexity · PendingObjectSet.TryMatch (cyclomatic 16) · ×1
  • PendingObjectSet.TryMatch (cyclomatic 16) SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:379 — PendingObjectSet.TryMatch 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.
D1 · Cyclomatic Complexity · SkillRouter.BuildUnknownParamFixes (cyclomatic 16) · ×1
  • SkillRouter.BuildUnknownParamFixes (cyclomatic 16) SkillsForUnity/Editor/Skills/SkillRouter.Validation.cs:369 — SkillRouter.BuildUnknownParamFixes 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.
D1 · Cyclomatic Complexity · SkillSceneDiff.BuildBatch (cyclomatic 16) · ×1
  • SkillSceneDiff.BuildBatch (cyclomatic 16) SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:126 — SkillSceneDiff.BuildBatch has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkillSceneDiff.CompareTokens (cyclomatic 16) · ×1
  • SkillSceneDiff.CompareTokens (cyclomatic 16) SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:493 — SkillSceneDiff.CompareTokens 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.
D1 · Cyclomatic Complexity · SmartSkills.Compare (cyclomatic 16) · ×1
  • SmartSkills.Compare (cyclomatic 16) SkillsForUnity/Editor/Skills/SmartSkills.cs:421 — SmartSkills.Compare has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · TextureSkills.TextureSetSettingsBatch (cyclomatic 16) · ×1
  • TextureSkills.TextureSetSettingsBatch (cyclomatic 16) SkillsForUnity/Editor/Skills/TextureSkills.cs:208 — TextureSkills.TextureSetSettingsBatch has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 216). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · WorkflowManager.PlanAssetChain (cyclomatic 16) · ×1
  • WorkflowManager.PlanAssetChain (cyclomatic 16) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs:741 — WorkflowManager.PlanAssetChain has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · WorkflowSkills.WorkflowPlan (cyclomatic 16) · ×1
  • WorkflowSkills.WorkflowPlan (cyclomatic 16) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:864 — WorkflowSkills.WorkflowPlan 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.
D2 · Cognitive Complexity · SkillsHttpServer.ExecuteBatchCore (cognitive 216) · ×1
  • SkillsHttpServer.ExecuteBatchCore (cognitive 216) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:292 — SkillsHttpServer.ExecuteBatchCore has cognitive complexity 216 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ScriptSkills.ScanBraceBlocks (cognitive 133) · ×1
  • ScriptSkills.ScanBraceBlocks (cognitive 133) SkillsForUnity/Editor/Skills/ScriptSkills.cs:437 — ScriptSkills.ScanBraceBlocks has cognitive complexity 133 (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.
D2 · Cognitive Complexity · SkillRouter.Execute (cognitive 133) · ×1
  • SkillRouter.Execute (cognitive 133) SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:33 — SkillRouter.Execute has cognitive complexity 133 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · RuntimeScenarioService.ProcessCore (cognitive 71) · ×1
  • RuntimeScenarioService.ProcessCore (cognitive 71) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:129 — RuntimeScenarioService.ProcessCore has cognitive complexity 71 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SkillPlanningService.AnalyzeComponentRemoveBatch (cognitive 70) · ×1
  • SkillPlanningService.AnalyzeComponentRemoveBatch (cognitive 70) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:218 — SkillPlanningService.AnalyzeComponentRemoveBatch has cognitive complexity 70 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TokenLevelSliderWidget.DrawTokenSlider (cognitive 70) · ×1
  • TokenLevelSliderWidget.DrawTokenSlider (cognitive 70) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:541 — TokenLevelSliderWidget.DrawTokenSlider has cognitive complexity 70 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PerceptionSkills.ScriptDependencyGraph (cognitive 67) · ×1
  • PerceptionSkills.ScriptDependencyGraph (cognitive 67) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2446 — PerceptionSkills.ScriptDependencyGraph has cognitive complexity 67 (threshold 15). Of this number, 63 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PerceptionSkills.SceneExportReport (cognitive 66) · ×1
  • PerceptionSkills.SceneExportReport (cognitive 66) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1786 — PerceptionSkills.SceneExportReport has cognitive complexity 66 (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.
D2 · Cognitive Complexity · SkillRouter.RankIntent (cognitive 64) · ×1
  • SkillRouter.RankIntent (cognitive 64) SkillsForUnity/Editor/Skills/SkillRouter.Recommend.cs:285 — SkillRouter.RankIntent has cognitive complexity 64 (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.
D2 · Cognitive Complexity · SkillRouter.CollectTargetsFromArgs (cognitive 64) · ×1
  • SkillRouter.CollectTargetsFromArgs (cognitive 64) SkillsForUnity/Editor/Skills/SkillRouter.Workflow.cs:103 — SkillRouter.CollectTargetsFromArgs has cognitive complexity 64 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SkillsHttpServer.ListenLoop (cognitive 64) · ×1
  • SkillsHttpServer.ListenLoop (cognitive 64) SkillsForUnity/Editor/Skills/SkillsHttpServer.Listener.cs:31 — SkillsHttpServer.ListenLoop has cognitive complexity 64 (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.
D2 · Cognitive Complexity · SkillsHttpServer.ProcessJob (cognitive 63) · ×1
  • SkillsHttpServer.ProcessJob (cognitive 63) SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:209 — SkillsHttpServer.ProcessJob has cognitive complexity 63 (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.
D2 · Cognitive Complexity · UIToolkitSkills.UitkUxmlUpgrade (cognitive 62) · ×1
  • UIToolkitSkills.UitkUxmlUpgrade (cognitive 62) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2149 — UIToolkitSkills.UitkUxmlUpgrade has cognitive complexity 62 (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.
D2 · Cognitive Complexity · SettingsDrawerController.BindEvents (cognitive 57) · ×1
  • SettingsDrawerController.BindEvents (cognitive 57) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:294 — SettingsDrawerController.BindEvents has cognitive complexity 57 (threshold 15). Of this number, 28 points are the body's own statements and 29 belong to 10 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkillsHttpServer.ProcessJobQueue (cognitive 56) · ×1
  • SkillsHttpServer.ProcessJobQueue (cognitive 56) SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs:22 — SkillsHttpServer.ProcessJobQueue has cognitive complexity 56 (threshold 15). Of this number, 55 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SettingsDrawerController.RefreshLocalization (cognitive 56) · ×1
  • SettingsDrawerController.RefreshLocalization (cognitive 56) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:564 — SettingsDrawerController.RefreshLocalization has cognitive complexity 56 (threshold 15). 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.
D2 · Cognitive Complexity · ComponentInvocationService.ConvertArgument (cognitive 54) · ×1
  • ComponentInvocationService.ConvertArgument (cognitive 54) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:201 — ComponentInvocationService.ConvertArgument has cognitive complexity 54 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · HybridCLRSkills.CopyHotUpdateDlls (cognitive 54) · ×1
  • HybridCLRSkills.CopyHotUpdateDlls (cognitive 54) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1778 — HybridCLRSkills.CopyHotUpdateDlls has cognitive complexity 54 (threshold 15). Of this number, 52 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ClientProcessResolver.TryExtractFromArgs (cognitive 51) · ×1
  • ClientProcessResolver.TryExtractFromArgs (cognitive 51) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:746 — ClientProcessResolver.TryExtractFromArgs has cognitive complexity 51 (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.
D2 · Cognitive Complexity · PrefabAssetEditor.Preview (cognitive 51) · ×1
  • PrefabAssetEditor.Preview (cognitive 51) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:708 — PrefabAssetEditor.Preview has cognitive complexity 51 (threshold 15). Of this number, 49 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SmartSkills.SmartReferenceBind (cognitive 51) · ×1
  • SmartSkills.SmartReferenceBind (cognitive 51) SkillsForUnity/Editor/Skills/SmartSkills.cs:195 — SmartSkills.SmartReferenceBind has cognitive complexity 51 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · HybridCLRSkills.SettingsSet (cognitive 49) · ×1
  • HybridCLRSkills.SettingsSet (cognitive 49) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1047 — HybridCLRSkills.SettingsSet has cognitive complexity 49 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · QFrameworkSkills.QueryApiDocs (cognitive 49) · ×1
  • QFrameworkSkills.QueryApiDocs (cognitive 49) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1309 — QFrameworkSkills.QueryApiDocs has cognitive complexity 49 (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.
D2 · Cognitive Complexity · RuntimeScenarioService.ValidateSteps (cognitive 49) · ×1
  • RuntimeScenarioService.ValidateSteps (cognitive 49) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:91 — RuntimeScenarioService.ValidateSteps has cognitive complexity 49 (threshold 15). Of this number, 48 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkillTelemetryService.AggregateAnalytics (cognitive 47) · ×1
  • SkillTelemetryService.AggregateAnalytics (cognitive 47) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:903 — SkillTelemetryService.AggregateAnalytics has cognitive complexity 47 (threshold 15). Of this number, 46 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PerceptionSkills.CollectCodeDependenciesLegacy (cognitive 46) · ×1
  • PerceptionSkills.CollectCodeDependenciesLegacy (cognitive 46) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2046 — PerceptionSkills.CollectCodeDependenciesLegacy has cognitive complexity 46 (threshold 15). Of this number, 44 points are the body's own statements and 2 belong to one function literal inside it that branches. 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.
D2 · Cognitive Complexity · QFrameworkSkills.ScanArchitecture (cognitive 46) · ×1
  • QFrameworkSkills.ScanArchitecture (cognitive 46) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1209 — QFrameworkSkills.ScanArchitecture has cognitive complexity 46 (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.
D2 · Cognitive Complexity · DOTweenReflectionHelper.ApplyEndValue (cognitive 42) · ×1
  • DOTweenReflectionHelper.ApplyEndValue (cognitive 42) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:341 — DOTweenReflectionHelper.ApplyEndValue has cognitive complexity 42 (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.
D2 · Cognitive Complexity · HybridCLRSkills.ApplyFileSetBackup (cognitive 42) · ×1
  • HybridCLRSkills.ApplyFileSetBackup (cognitive 42) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:704 — HybridCLRSkills.ApplyFileSetBackup has cognitive complexity 42 (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.
D2 · Cognitive Complexity · PrefabAssetEditor.PrepareProperty (cognitive 42) · ×1
  • PrefabAssetEditor.PrepareProperty (cognitive 42) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:517 — PrefabAssetEditor.PrepareProperty has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · UIToolkitSkills.TryResolvePanelSettingsArgs (cognitive 42) · ×1
  • UIToolkitSkills.TryResolvePanelSettingsArgs (cognitive 42) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:909 — UIToolkitSkills.TryResolvePanelSettingsArgs has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WorkflowManager.AddJournalConflicts (cognitive 41) · ×1
  • WorkflowManager.AddJournalConflicts (cognitive 41) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:283 — WorkflowManager.AddJournalConflicts has cognitive complexity 41 (threshold 15). Of this number, 38 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ComponentInvocationService.Serialize (cognitive 40) · ×1
  • ComponentInvocationService.Serialize (cognitive 40) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:389 — ComponentInvocationService.Serialize 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.
D2 · Cognitive Complexity · SkillRouter.ValidateMetadata (cognitive 40) · ×1
  • SkillRouter.ValidateMetadata (cognitive 40) SkillsForUnity/Editor/Skills/SkillRouter.Metadata.cs:19 — SkillRouter.ValidateMetadata 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.
D2 · Cognitive Complexity · SkillsHttpServer.RunSelfTest (cognitive 40) · ×1
  • SkillsHttpServer.RunSelfTest (cognitive 40) SkillsForUnity/Editor/Skills/SkillsHttpServer.SelfTest.cs:18 — SkillsHttpServer.RunSelfTest has cognitive complexity 40 (threshold 15). Most of this is not in the body itself: 1 of the 40 points is its own statement and the rest belongs to one function literal inside it that branches (line 25). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · WorkflowManager.UndoCreatedSnapshot (cognitive 40) · ×1
  • WorkflowManager.UndoCreatedSnapshot (cognitive 40) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:361 — WorkflowManager.UndoCreatedSnapshot has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PerceptionSkills.CollectSceneMetrics (cognitive 39) · ×1
  • PerceptionSkills.CollectSceneMetrics (cognitive 39) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:106 — PerceptionSkills.CollectSceneMetrics has cognitive complexity 39 (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.
D2 · Cognitive Complexity · PerceptionSkills.ParseCodeDependencies (cognitive 39) · ×1
  • PerceptionSkills.ParseCodeDependencies (cognitive 39) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2206 — PerceptionSkills.ParseCodeDependencies has cognitive complexity 39 (threshold 15). Of this number, 37 points are the body's own statements and 2 belong to one function literal inside it that branches. 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.
D2 · Cognitive Complexity · LocalGitSync.Apply (cognitive 39) · ×1
  • LocalGitSync.Apply (cognitive 39) SkillsForUnity/Editor/Versioning/LocalGitSync.cs:559 — LocalGitSync.Apply has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EvaluationState.MergeGroup (cognitive 38) · ×1
  • EvaluationState.MergeGroup (cognitive 38) SkillsForUnity/Editor/Skills/EvaluationState.cs:610 — EvaluationState.MergeGroup has cognitive complexity 38 (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.
D2 · Cognitive Complexity · PerceptionSkills.SceneDiff (cognitive 38) · ×1
  • PerceptionSkills.SceneDiff (cognitive 38) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2861 — PerceptionSkills.SceneDiff has cognitive complexity 38 (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.
D2 · Cognitive Complexity · SkillResultHelper.CollectExtraErrorFields (cognitive 38) · ×1
  • SkillResultHelper.CollectExtraErrorFields (cognitive 38) SkillsForUnity/Editor/Skills/SkillRouter.cs:859 — SkillResultHelper.CollectExtraErrorFields has cognitive complexity 38 (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.
D2 · Cognitive Complexity · PrefabAssetEditor.Apply (cognitive 37) · ×1
  • PrefabAssetEditor.Apply (cognitive 37) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:365 — PrefabAssetEditor.Apply has cognitive complexity 37 (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.
D2 · Cognitive Complexity · WorkflowManager.FindDanglingReferences (cognitive 37) · ×1
  • WorkflowManager.FindDanglingReferences (cognitive 37) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Scope.cs:290 — WorkflowManager.FindDanglingReferences has cognitive complexity 37 (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.
D2 · Cognitive Complexity · WorkflowStore.EvictSegments (cognitive 36) · ×1
  • WorkflowStore.EvictSegments (cognitive 36) SkillsForUnity/Editor/Skills/WorkflowStore.cs:1370 — WorkflowStore.EvictSegments has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PrefabSkills.SetSerializedPropertyValue (cognitive 35) · ×1
  • PrefabSkills.SetSerializedPropertyValue (cognitive 35) SkillsForUnity/Editor/Skills/PrefabSkills.cs:999 — PrefabSkills.SetSerializedPropertyValue has cognitive complexity 35 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · SkillsHttpServer.CheckAndRestoreServer (cognitive 35) · ×1
  • SkillsHttpServer.CheckAndRestoreServer (cognitive 35) SkillsForUnity/Editor/Skills/SkillsHttpServer.cs:453 — SkillsHttpServer.CheckAndRestoreServer has cognitive complexity 35 (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.
D2 · Cognitive Complexity · BatchSkills.TryParseQuery (cognitive 34) · ×1
  • BatchSkills.TryParseQuery (cognitive 34) SkillsForUnity/Editor/Skills/BatchSkills.cs:1037 — BatchSkills.TryParseQuery has cognitive complexity 34 (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.
D2 · Cognitive Complexity · BatchExecutor.Execute (cognitive 33) · ×1
  • BatchExecutor.Execute (cognitive 33) SkillsForUnity/Editor/Skills/BatchExecutor.cs:83 — BatchExecutor.Execute has cognitive complexity 33 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DOTweenReflectionHelper.ConvertValue (cognitive 33) · ×1
  • DOTweenReflectionHelper.ConvertValue (cognitive 33) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:419 — DOTweenReflectionHelper.ConvertValue has cognitive complexity 33 (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.
D2 · Cognitive Complexity · EventSkills.EventCopyListeners (cognitive 33) · ×1
  • EventSkills.EventCopyListeners (cognitive 33) SkillsForUnity/Editor/Skills/EventSkills.cs:944 — EventSkills.EventCopyListeners has cognitive complexity 33 (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.
D2 · Cognitive Complexity · GameObjectFinder.Resolve (cognitive 33) · ×1
  • GameObjectFinder.Resolve (cognitive 33) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:560 — GameObjectFinder.Resolve has cognitive complexity 33 (threshold 15). Of this number, 31 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayCaptureService.Process (cognitive 33) · ×1
  • PlayCaptureService.Process (cognitive 33) SkillsForUnity/Editor/Skills/PlayCaptureService.cs:77 — PlayCaptureService.Process has cognitive complexity 33 (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.
D2 · Cognitive Complexity · WorkflowManager.UndoDeletedSnapshot (cognitive 33) · ×1
  • WorkflowManager.UndoDeletedSnapshot (cognitive 33) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:580 — WorkflowManager.UndoDeletedSnapshot has cognitive complexity 33 (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.
D2 · Cognitive Complexity · ComponentInvocationService.Bind (cognitive 32) · ×1
  • ComponentInvocationService.Bind (cognitive 32) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:127 — ComponentInvocationService.Bind 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.
D2 · Cognitive Complexity · PerceptionSkills.GetComponentHint (cognitive 32) · ×1
  • PerceptionSkills.GetComponentHint (cognitive 32) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1170 — PerceptionSkills.GetComponentHint has cognitive complexity 32 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · TokenLevelSliderWidget.BindEvents (cognitive 32) · ×1
  • TokenLevelSliderWidget.BindEvents (cognitive 32) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:139 — TokenLevelSliderWidget.BindEvents has cognitive complexity 32 (threshold 15). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 177, 200, 148, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ComponentSkills.ComponentSetPropertyBatch (cognitive 31) · ×1
  • ComponentSkills.ComponentSetPropertyBatch (cognitive 31) SkillsForUnity/Editor/Skills/ComponentSkills.cs:457 — ComponentSkills.ComponentSetPropertyBatch has cognitive complexity 31 (threshold 15). None of this is in the body itself: all 31 points belong to one function literal inside it that branches (line 467). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · PerceptionSkills.ExtractSerializedFields (cognitive 31) · ×1
  • PerceptionSkills.ExtractSerializedFields (cognitive 31) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1622 — PerceptionSkills.ExtractSerializedFields 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.
D2 · Cognitive Complexity · SkillsHttpServer.HandleSkillsBatchRequest (cognitive 31) · ×1
  • SkillsHttpServer.HandleSkillsBatchRequest (cognitive 31) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:69 — SkillsHttpServer.HandleSkillsBatchRequest has cognitive complexity 31 (threshold 15). 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.
D2 · Cognitive Complexity · ClientProcessResolver.WalkChainCore (cognitive 30) · ×1
  • ClientProcessResolver.WalkChainCore (cognitive 30) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:464 — ClientProcessResolver.WalkChainCore has cognitive complexity 30 (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.
D2 · Cognitive Complexity · ComponentInvocationService.Process (cognitive 30) · ×1
  • ComponentInvocationService.Process (cognitive 30) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:287 — ComponentInvocationService.Process has cognitive complexity 30 (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.
D2 · Cognitive Complexity · RenderPipelineSkillsCommon.TryConvertRawValue (cognitive 30) · ×1
  • RenderPipelineSkillsCommon.TryConvertRawValue (cognitive 30) SkillsForUnity/Editor/Skills/RenderPipelineSkillsCommon.cs:543 — RenderPipelineSkillsCommon.TryConvertRawValue has cognitive complexity 30 (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.
D2 · Cognitive Complexity · SkillsHttpServer.RunJobWaitLoop (cognitive 30) · ×1
  • SkillsHttpServer.RunJobWaitLoop (cognitive 30) SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:320 — SkillsHttpServer.RunJobWaitLoop has cognitive complexity 30 (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.
D2 · Cognitive Complexity · SkillsHttpServer.ConvertQueryValue (cognitive 30) · ×1
  • SkillsHttpServer.ConvertQueryValue (cognitive 30) SkillsForUnity/Editor/Skills/SkillsHttpServer.SkillRequest.cs:216 — SkillsHttpServer.ConvertQueryValue has cognitive complexity 30 (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.
D2 · Cognitive Complexity · BatchSkills.FilterTargets (cognitive 29) · ×1
  • BatchSkills.FilterTargets (cognitive 29) SkillsForUnity/Editor/Skills/BatchSkills.cs:1249 — BatchSkills.FilterTargets has cognitive complexity 29 (threshold 15). Of this number, 21 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CleanerSkills.CleanerDeleteAssets (cognitive 29) · ×1
  • CleanerSkills.CleanerDeleteAssets (cognitive 29) SkillsForUnity/Editor/Skills/CleanerSkills.cs:248 — CleanerSkills.CleanerDeleteAssets has cognitive complexity 29 (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.
D2 · Cognitive Complexity · PrefabSkills.PrefabGetOverrides (cognitive 29) · ×1
  • PrefabSkills.PrefabGetOverrides (cognitive 29) SkillsForUnity/Editor/Skills/PrefabSkills.cs:237 — PrefabSkills.PrefabGetOverrides has cognitive complexity 29 (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.
D2 · Cognitive Complexity · SkillRouter.GetSkillChain (cognitive 29) · ×1
  • SkillRouter.GetSkillChain (cognitive 29) SkillsForUnity/Editor/Skills/SkillRouter.Recommend.cs:665 — SkillRouter.GetSkillChain has cognitive complexity 29 (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.
D2 · Cognitive Complexity · SkillRouter.BuildUnknownParamFixes (cognitive 29) · ×1
  • SkillRouter.BuildUnknownParamFixes (cognitive 29) SkillsForUnity/Editor/Skills/SkillRouter.Validation.cs:369 — SkillRouter.BuildUnknownParamFixes has cognitive complexity 29 (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.
D2 · Cognitive Complexity · QFrameworkSkills.GenerateUIPanelCode (cognitive 28) · ×1
  • QFrameworkSkills.GenerateUIPanelCode (cognitive 28) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:667 — QFrameworkSkills.GenerateUIPanelCode has cognitive complexity 28 (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.
D2 · Cognitive Complexity · SkillSceneDiff.CompareTokens (cognitive 28) · ×1
  • SkillSceneDiff.CompareTokens (cognitive 28) SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:493 — SkillSceneDiff.CompareTokens has cognitive complexity 28 (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.
D2 · Cognitive Complexity · WorkflowManager.ResolveRestoreTargets (cognitive 28) · ×1
  • WorkflowManager.ResolveRestoreTargets (cognitive 28) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:130 — WorkflowManager.ResolveRestoreTargets has cognitive complexity 28 (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.
D2 · Cognitive Complexity · WorkflowManager.RecreateGameObject (cognitive 28) · ×1
  • WorkflowManager.RecreateGameObject (cognitive 28) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:1176 — WorkflowManager.RecreateGameObject has cognitive complexity 28 (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.
D2 · Cognitive Complexity · ClientProcessResolver.BeginResolve (cognitive 27) · ×1
  • ClientProcessResolver.BeginResolve (cognitive 27) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:217 — ClientProcessResolver.BeginResolve has cognitive complexity 27 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ModelSkills.ModelSetSettings (cognitive 27) · ×1
  • ModelSkills.ModelSetSettings (cognitive 27) SkillsForUnity/Editor/Skills/ModelSkills.cs:93 — ModelSkills.ModelSetSettings has cognitive complexity 27 (threshold 15). 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.
D2 · Cognitive Complexity · LocalGitSync.Probe (cognitive 27) · ×1
  • LocalGitSync.Probe (cognitive 27) SkillsForUnity/Editor/Versioning/LocalGitSync.cs:213 — LocalGitSync.Probe has cognitive complexity 27 (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.
D2 · Cognitive Complexity · BatchSkills.BatchQueryAssets (cognitive 26) · ×1
  • BatchSkills.BatchQueryAssets (cognitive 26) SkillsForUnity/Editor/Skills/BatchSkills.cs:98 — BatchSkills.BatchQueryAssets has cognitive complexity 26 (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.
D2 · Cognitive Complexity · ComponentSkills.ComponentSetProperty (cognitive 26) · ×1
  • ComponentSkills.ComponentSetProperty (cognitive 26) SkillsForUnity/Editor/Skills/ComponentSkills.cs:342 — ComponentSkills.ComponentSetProperty has cognitive complexity 26 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PrefabSkills.DescribeInstanceOverrides (cognitive 26) · ×1
  • PrefabSkills.DescribeInstanceOverrides (cognitive 26) SkillsForUnity/Editor/Skills/PrefabSkills.cs:366 — PrefabSkills.DescribeInstanceOverrides has cognitive complexity 26 (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.
D2 · Cognitive Complexity · SerializedPropertySkillUtility.TryResolveObjectReferenceDetailed (cognitive 26) · ×1
  • SerializedPropertySkillUtility.TryResolveObjectReferenceDetailed (cognitive 26) SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:315 — SerializedPropertySkillUtility.TryResolveObjectReferenceDetailed has cognitive complexity 26 (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.
D2 · Cognitive Complexity · ShaderGraphSkills.ShaderGraphCreateGraph (cognitive 26) · ×1
  • ShaderGraphSkills.ShaderGraphCreateGraph (cognitive 26) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:42 — ShaderGraphSkills.ShaderGraphCreateGraph has cognitive complexity 26 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkillRouter.DryRun (cognitive 26) · ×1
  • SkillRouter.DryRun (cognitive 26) SkillsForUnity/Editor/Skills/SkillRouter.Execute.cs:565 — SkillRouter.DryRun has cognitive complexity 26 (threshold 15). Of this number, 24 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkillsHttpServer.RespondEventsLongPoll (cognitive 26) · ×1
  • SkillsHttpServer.RespondEventsLongPoll (cognitive 26) SkillsForUnity/Editor/Skills/SkillsHttpServer.LongPoll.cs:64 — SkillsHttpServer.RespondEventsLongPoll has cognitive complexity 26 (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.
D2 · Cognitive Complexity · UISkills.UISetRect (cognitive 26) · ×1
  • UISkills.UISetRect (cognitive 26) SkillsForUnity/Editor/Skills/UISkills.cs:804 — UISkills.UISetRect has cognitive complexity 26 (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.
D2 · Cognitive Complexity · ValidationSkills.ValidateScene (cognitive 26) · ×1
  • ValidationSkills.ValidateScene (cognitive 26) SkillsForUnity/Editor/Skills/ValidationSkills.cs:27 — ValidationSkills.ValidateScene has cognitive complexity 26 (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.
D2 · Cognitive Complexity · WorkflowSkills.WorkflowPlan (cognitive 26) · ×1
  • WorkflowSkills.WorkflowPlan (cognitive 26) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:864 — WorkflowSkills.WorkflowPlan has cognitive complexity 26 (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.
D2 · Cognitive Complexity · AsyncJobService.ProcessTestJob (cognitive 25) · ×1
  • AsyncJobService.ProcessTestJob (cognitive 25) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1045 — AsyncJobService.ProcessTestJob has cognitive complexity 25 (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.
D2 · Cognitive Complexity · ClientProcessResolver.ResolveRound (cognitive 25) · ×1
  • ClientProcessResolver.ResolveRound (cognitive 25) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:357 — ClientProcessResolver.ResolveRound has cognitive complexity 25 (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.
D2 · Cognitive Complexity · PrefabAssetEditor.RestoreNestedConnections (cognitive 25) · ×1
  • PrefabAssetEditor.RestoreNestedConnections (cognitive 25) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:465 — PrefabAssetEditor.RestoreNestedConnections has cognitive complexity 25 (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.
D2 · Cognitive Complexity · SkillPlanningService.AnalyzePrefabAssetEditing (cognitive 25) · ×1
  • SkillPlanningService.AnalyzePrefabAssetEditing (cognitive 25) SkillsForUnity/Editor/Skills/SkillPlanningService.Prefab.cs:18 — SkillPlanningService.AnalyzePrefabAssetEditing has cognitive complexity 25 (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.
D2 · Cognitive Complexity · SkillRouter.Initialize (cognitive 25) · ×1
  • SkillRouter.Initialize (cognitive 25) SkillsForUnity/Editor/Skills/SkillRouter.Registry.cs:21 — SkillRouter.Initialize has cognitive complexity 25 (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.
D2 · Cognitive Complexity · SkillTelemetryService.RewritePrimaryUnlocked (cognitive 25) · ×1
  • SkillTelemetryService.RewritePrimaryUnlocked (cognitive 25) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:532 — SkillTelemetryService.RewritePrimaryUnlocked has cognitive complexity 25 (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.
D2 · Cognitive Complexity · SkillsHttpServer.HandleJobsRequest (cognitive 25) · ×1
  • SkillsHttpServer.HandleJobsRequest (cognitive 25) SkillsForUnity/Editor/Skills/SkillsHttpServer.Jobs.cs:22 — SkillsHttpServer.HandleJobsRequest has cognitive complexity 25 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkillsHttpServer.Start (cognitive 25) · ×1
  • SkillsHttpServer.Start (cognitive 25) SkillsForUnity/Editor/Skills/SkillsHttpServer.cs:604 — SkillsHttpServer.Start has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WorkflowSkills.FindCreatorStep (cognitive 25) · ×1
  • WorkflowSkills.FindCreatorStep (cognitive 25) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:1074 — WorkflowSkills.FindCreatorStep has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AgentInstructionService.UpsertBlock (cognitive 24) · ×1
  • AgentInstructionService.UpsertBlock (cognitive 24) SkillsForUnity/Editor/Skills/AgentInstructionService.cs:227 — AgentInstructionService.UpsertBlock 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.
D2 · Cognitive Complexity · AsyncJobService.SweepStaleRuntimes (cognitive 24) · ×1
  • AsyncJobService.SweepStaleRuntimes (cognitive 24) SkillsForUnity/Editor/Skills/AsyncJobService.cs:702 — AsyncJobService.SweepStaleRuntimes 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.
D2 · Cognitive Complexity · AsyncJobService.ProcessPackageJob (cognitive 24) · ×1
  • AsyncJobService.ProcessPackageJob (cognitive 24) SkillsForUnity/Editor/Skills/AsyncJobService.cs:943 — AsyncJobService.ProcessPackageJob has cognitive complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PerceptionSkills.SceneMaterials (cognitive 24) · ×1
  • PerceptionSkills.SceneMaterials (cognitive 24) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1400 — PerceptionSkills.SceneMaterials has cognitive complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PythonLocator.EnumerateCandidates (cognitive 24) · ×1
  • PythonLocator.EnumerateCandidates (cognitive 24) SkillsForUnity/Editor/Skills/PythonLocator.cs:209 — PythonLocator.EnumerateCandidates 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.
D2 · Cognitive Complexity · ShaderGraphReflectionHelper.ParseKeywordEntries (cognitive 24) · ×1
  • ShaderGraphReflectionHelper.ParseKeywordEntries (cognitive 24) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1313 — ShaderGraphReflectionHelper.ParseKeywordEntries has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderGraphReflectionHelper.ParseMultiJson (cognitive 24) · ×1
  • ShaderGraphReflectionHelper.ParseMultiJson (cognitive 24) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1387 — ShaderGraphReflectionHelper.ParseMultiJson 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.
D2 · Cognitive Complexity · SkillRouter.BuildFilteredOutput (cognitive 24) · ×1
  • SkillRouter.BuildFilteredOutput (cognitive 24) SkillsForUnity/Editor/Skills/SkillRouter.Schema.cs:481 — SkillRouter.BuildFilteredOutput has cognitive complexity 24 (threshold 15). Of this number, 20 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TerrainSkills.TerrainPaintTexture (cognitive 24) · ×1
  • TerrainSkills.TerrainPaintTexture (cognitive 24) SkillsForUnity/Editor/Skills/TerrainSkills.cs:495 — TerrainSkills.TerrainPaintTexture has cognitive complexity 24 (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.
D2 · Cognitive Complexity · WorkflowManager.RestoreModifiedSnapshot (cognitive 24) · ×1
  • WorkflowManager.RestoreModifiedSnapshot (cognitive 24) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:1102 — WorkflowManager.RestoreModifiedSnapshot 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.
D2 · Cognitive Complexity · WorkflowSkills.WorkflowList (cognitive 24) · ×1
  • WorkflowSkills.WorkflowList (cognitive 24) SkillsForUnity/Editor/Skills/WorkflowSkills.cs:403 — WorkflowSkills.WorkflowList has cognitive complexity 24 (threshold 15). Of this number, 19 points are the body's own statements and 5 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · EvaluationTabController.OutcomeSummary (cognitive 24) · ×1
  • EvaluationTabController.OutcomeSummary (cognitive 24) SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1699 — EvaluationTabController.OutcomeSummary 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.
D2 · Cognitive Complexity · LocalGitSync.IsOfficialRepoUrl (cognitive 24) · ×1
  • LocalGitSync.IsOfficialRepoUrl (cognitive 24) SkillsForUnity/Editor/Versioning/LocalGitSync.cs:864 — LocalGitSync.IsOfficialRepoUrl 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.
D2 · Cognitive Complexity · BehaviorReflectionHelper.TryReadComponents (cognitive 23) · ×1
  • BehaviorReflectionHelper.TryReadComponents (cognitive 23) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:697 — BehaviorReflectionHelper.TryReadComponents 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.
D2 · Cognitive Complexity · ComponentSkills.ConvertValue (cognitive 23) · ×1
  • ComponentSkills.ConvertValue (cognitive 23) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1080 — ComponentSkills.ConvertValue has cognitive complexity 23 (threshold 15). 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.
D2 · Cognitive Complexity · GameObjectSkills.GameObjectFind (cognitive 23) · ×1
  • GameObjectSkills.GameObjectFind (cognitive 23) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:466 — GameObjectSkills.GameObjectFind has cognitive complexity 23 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkillSceneDiff.BuildBatch (cognitive 23) · ×1
  • SkillSceneDiff.BuildBatch (cognitive 23) SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:126 — SkillSceneDiff.BuildBatch has cognitive complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkillsHttpServer.AdjustDryRunPayloadForRefs (cognitive 23) · ×1
  • SkillsHttpServer.AdjustDryRunPayloadForRefs (cognitive 23) SkillsForUnity/Editor/Skills/SkillsHttpServer.BatchRefs.cs:390 — SkillsHttpServer.AdjustDryRunPayloadForRefs 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.
D2 · Cognitive Complexity · TextureSkills.TextureSetSettings (cognitive 23) · ×1
  • TextureSkills.TextureSetSettings (cognitive 23) SkillsForUnity/Editor/Skills/TextureSkills.cs:71 — TextureSkills.TextureSetSettings has cognitive complexity 23 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · UIToolkitSkills.ApplyPanelSettings (cognitive 23) · ×1
  • UIToolkitSkills.ApplyPanelSettings (cognitive 23) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1028 — UIToolkitSkills.ApplyPanelSettings has cognitive complexity 23 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · WorkflowManager.RestoreGameObjectHierarchy (cognitive 23) · ×1
  • WorkflowManager.RestoreGameObjectHierarchy (cognitive 23) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:814 — WorkflowManager.RestoreGameObjectHierarchy 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.
D2 · Cognitive Complexity · WorkflowStore.TryReadLastNewSeq (cognitive 23) · ×1
  • WorkflowStore.TryReadLastNewSeq (cognitive 23) SkillsForUnity/Editor/Skills/WorkflowStore.cs:884 — WorkflowStore.TryReadLastNewSeq 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.
D2 · Cognitive Complexity · BehaviorReflectionHelper.TryConvertUnityObject (cognitive 22) · ×1
  • BehaviorReflectionHelper.TryConvertUnityObject (cognitive 22) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:773 — BehaviorReflectionHelper.TryConvertUnityObject 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.
D2 · Cognitive Complexity · CleanerSkills.CleanerFindMissingReferences (cognitive 22) · ×1
  • CleanerSkills.CleanerFindMissingReferences (cognitive 22) SkillsForUnity/Editor/Skills/CleanerSkills.cs:170 — CleanerSkills.CleanerFindMissingReferences has cognitive complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MacPsProcessTableReader.ReadAll (cognitive 22) · ×1
  • MacPsProcessTableReader.ReadAll (cognitive 22) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1956 — MacPsProcessTableReader.ReadAll 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.
D2 · Cognitive Complexity · PerceptionSkills.SceneSummarize (cognitive 22) · ×1
  • PerceptionSkills.SceneSummarize (cognitive 22) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1003 — PerceptionSkills.SceneSummarize 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.
D2 · Cognitive Complexity · PerceptionSkills.CollectDependencyEdges (cognitive 22) · ×1
  • PerceptionSkills.CollectDependencyEdges (cognitive 22) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2328 — PerceptionSkills.CollectDependencyEdges 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.
D2 · Cognitive Complexity · SkillPlanningService.AnalyzeComponentAddBatch (cognitive 22) · ×1
  • SkillPlanningService.AnalyzeComponentAddBatch (cognitive 22) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:73 — SkillPlanningService.AnalyzeComponentAddBatch 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.
D2 · Cognitive Complexity · UIToolkitSkills.CollectAuthoringIds (cognitive 22) · ×1
  • UIToolkitSkills.CollectAuthoringIds (cognitive 22) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2712 — UIToolkitSkills.CollectAuthoringIds 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.
D2 · Cognitive Complexity · WorkflowStore.Apply (cognitive 22) · ×1
  • WorkflowStore.Apply (cognitive 22) SkillsForUnity/Editor/Skills/WorkflowStore.cs:1075 — WorkflowStore.Apply 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.
D2 · Cognitive Complexity · BehaviorReflectionHelper.TryConvertValue (cognitive 21) · ×1
  • BehaviorReflectionHelper.TryConvertValue (cognitive 21) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:579 — BehaviorReflectionHelper.TryConvertValue has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CleanerSkills.CleanerFindUnusedAssets (cognitive 21) · ×1
  • CleanerSkills.CleanerFindUnusedAssets (cognitive 21) SkillsForUnity/Editor/Skills/CleanerSkills.cs:16 — CleanerSkills.CleanerFindUnusedAssets 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.
D2 · Cognitive Complexity · LinuxConnectionTableReader.TryFindClientPid (cognitive 21) · ×1
  • LinuxConnectionTableReader.TryFindClientPid (cognitive 21) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1167 — LinuxConnectionTableReader.TryFindClientPid 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.
D2 · Cognitive Complexity · EvaluationState.Read (cognitive 21) · ×1
  • EvaluationState.Read (cognitive 21) SkillsForUnity/Editor/Skills/EvaluationState.cs:134 — EvaluationState.Read 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.
D2 · Cognitive Complexity · GameObjectSkills.ResolveParent (cognitive 21) · ×1
  • GameObjectSkills.ResolveParent (cognitive 21) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:217 — GameObjectSkills.ResolveParent has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · HybridCLRSkills.ValidateSetup (cognitive 21) · ×1
  • HybridCLRSkills.ValidateSetup (cognitive 21) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1243 — HybridCLRSkills.ValidateSetup has cognitive complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LightSkills.ApplyLightProperties (cognitive 21) · ×1
  • LightSkills.ApplyLightProperties (cognitive 21) SkillsForUnity/Editor/Skills/LightSkills.cs:23 — LightSkills.ApplyLightProperties 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.
D2 · Cognitive Complexity · OptimizationSkills.OptimizeTextures (cognitive 21) · ×1
  • OptimizationSkills.OptimizeTextures (cognitive 21) SkillsForUnity/Editor/Skills/OptimizationSkills.cs:14 — OptimizationSkills.OptimizeTextures 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.
D2 · Cognitive Complexity · PrefabSkills.PrefabInstantiateBatch (cognitive 21) · ×1
  • PrefabSkills.PrefabInstantiateBatch (cognitive 21) SkillsForUnity/Editor/Skills/PrefabSkills.cs:98 — PrefabSkills.PrefabInstantiateBatch has cognitive complexity 21 (threshold 15). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 111). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SerializedPropertySkillUtility.TrySetProperty (cognitive 21) · ×1
  • SerializedPropertySkillUtility.TrySetProperty (cognitive 21) SkillsForUnity/Editor/Skills/SerializedPropertySkillUtility.cs:127 — SerializedPropertySkillUtility.TrySetProperty 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.
D2 · Cognitive Complexity · SkillPlanningService.AnalyzeGameObjectCreateBatch (cognitive 21) · ×1
  • SkillPlanningService.AnalyzeGameObjectCreateBatch (cognitive 21) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:67 — SkillPlanningService.AnalyzeGameObjectCreateBatch 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.
D2 · Cognitive Complexity · SkillRouter.ValidateParameters (cognitive 21) · ×1
  • SkillRouter.ValidateParameters (cognitive 21) SkillsForUnity/Editor/Skills/SkillRouter.Validation.cs:15 — SkillRouter.ValidateParameters 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.
D2 · Cognitive Complexity · SkillsHttpServer.TryApplyBatchBodyMode (cognitive 21) · ×1
  • SkillsHttpServer.TryApplyBatchBodyMode (cognitive 21) SkillsForUnity/Editor/Skills/SkillsHttpServer.Batch.cs:979 — SkillsHttpServer.TryApplyBatchBodyMode 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.
D2 · Cognitive Complexity · SkillsHttpServer.GetSelfTestAddresses (cognitive 21) · ×1
  • SkillsHttpServer.GetSelfTestAddresses (cognitive 21) SkillsForUnity/Editor/Skills/SkillsHttpServer.SelfTest.cs:98 — SkillsHttpServer.GetSelfTestAddresses has cognitive complexity 21 (threshold 15). Of this number, 17 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · UIToolkitSkills.UitkCreateRuntimeUi (cognitive 21) · ×1
  • UIToolkitSkills.UitkCreateRuntimeUi (cognitive 21) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1830 — UIToolkitSkills.UitkCreateRuntimeUi 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.
D2 · Cognitive Complexity · UnitySkillsWindow.SwitchTab (cognitive 21) · ×1
  • UnitySkillsWindow.SwitchTab (cognitive 21) SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:384 — UnitySkillsWindow.SwitchTab 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.
D2 · Cognitive Complexity · GitCliRunner.BuildCandidateList (cognitive 21) · ×1
  • GitCliRunner.BuildCandidateList (cognitive 21) SkillsForUnity/Editor/Versioning/GitCliRunner.cs:124 — GitCliRunner.BuildCandidateList has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · BatchJobService.ProcessSingleJob (cognitive 20) · ×1
  • BatchJobService.ProcessSingleJob (cognitive 20) SkillsForUnity/Editor/Skills/BatchJobService.cs:195 — BatchJobService.ProcessSingleJob 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.
D2 · Cognitive Complexity · ComponentInvocationService.BindArguments (cognitive 20) · ×1
  • ComponentInvocationService.BindArguments (cognitive 20) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:173 — ComponentInvocationService.BindArguments 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.
D2 · Cognitive Complexity · GameObjectSkills.GameObjectSetTransformBatch (cognitive 20) · ×1
  • GameObjectSkills.GameObjectSetTransformBatch (cognitive 20) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:727 — GameObjectSkills.GameObjectSetTransformBatch has cognitive complexity 20 (threshold 15). None of this is in the body itself: all 20 points belong to one function literal inside it that branches (line 739). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · HybridCLRSkills.ApplyGeneratedSources (cognitive 20) · ×1
  • HybridCLRSkills.ApplyGeneratedSources (cognitive 20) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:595 — HybridCLRSkills.ApplyGeneratedSources 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.
D2 · Cognitive Complexity · HybridCLRSkills.GenerateStep (cognitive 20) · ×1
  • HybridCLRSkills.GenerateStep (cognitive 20) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1603 — HybridCLRSkills.GenerateStep has cognitive complexity 20 (threshold 15). 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.
D2 · Cognitive Complexity · SkillsLocalization.LoadLocaleJson (cognitive 20) · ×1
  • SkillsLocalization.LoadLocaleJson (cognitive 20) SkillsForUnity/Editor/Skills/Localization.cs:150 — SkillsLocalization.LoadLocaleJson 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.
D2 · Cognitive Complexity · MaterialSkills.MaterialCreate (cognitive 20) · ×1
  • MaterialSkills.MaterialCreate (cognitive 20) SkillsForUnity/Editor/Skills/MaterialSkills.cs:345 — MaterialSkills.MaterialCreate 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.
D2 · Cognitive Complexity · SkillPlanningService.RegisterPendingCreates (cognitive 20) · ×1
  • SkillPlanningService.RegisterPendingCreates (cognitive 20) SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:231 — SkillPlanningService.RegisterPendingCreates 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.
D2 · Cognitive Complexity · PendingObjectSet.TryMatch (cognitive 20) · ×1
  • PendingObjectSet.TryMatch (cognitive 20) SkillsForUnity/Editor/Skills/SkillPlanningService.Targets.cs:379 — PendingObjectSet.TryMatch 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.
D2 · Cognitive Complexity · SkillPlanningService.GetCandidatePaths (cognitive 20) · ×1
  • SkillPlanningService.GetCandidatePaths (cognitive 20) SkillsForUnity/Editor/Skills/SkillPlanningService.cs:259 — SkillPlanningService.GetCandidatePaths 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.
D2 · Cognitive Complexity · SkillSceneDiff.CollectIds (cognitive 20) · ×1
  • SkillSceneDiff.CollectIds (cognitive 20) SkillsForUnity/Editor/Skills/SkillSceneDiff.cs:430 — SkillSceneDiff.CollectIds 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.
D2 · Cognitive Complexity · UIToolkitSkills.UitkFindFiles (cognitive 20) · ×1
  • UIToolkitSkills.UitkFindFiles (cognitive 20) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:181 — UIToolkitSkills.UitkFindFiles 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.
D2 · Cognitive Complexity · WorkflowManager.CaptureObjectReferences (cognitive 20) · ×1
  • WorkflowManager.CaptureObjectReferences (cognitive 20) SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:736 — WorkflowManager.CaptureObjectReferences 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.
D2 · Cognitive Complexity · EvaluationTabController.RenderProgress (cognitive 20) · ×1
  • EvaluationTabController.RenderProgress (cognitive 20) SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1251 — EvaluationTabController.RenderProgress has cognitive complexity 20 (threshold 15). 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.
D2 · Cognitive Complexity · TokenLevelSliderWidget.RefreshTokenLevelUi (cognitive 20) · ×1
  • TokenLevelSliderWidget.RefreshTokenLevelUi (cognitive 20) SkillsForUnity/Editor/UI/Controllers/TokenLevelSliderWidget.cs:400 — TokenLevelSliderWidget.RefreshTokenLevelUi has cognitive complexity 20 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LocalGitSync.ParseRemoteConfig (cognitive 20) · ×1
  • LocalGitSync.ParseRemoteConfig (cognitive 20) SkillsForUnity/Editor/Versioning/LocalGitSync.cs:919 — LocalGitSync.ParseRemoteConfig 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.
D2 · Cognitive Complexity · BatchSkills.ResolveValue (cognitive 19) · ×1
  • BatchSkills.ResolveValue (cognitive 19) SkillsForUnity/Editor/Skills/BatchSkills.cs:1828 — BatchSkills.ResolveValue has cognitive complexity 19 (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.
D2 · Cognitive Complexity · LinuxConnectionTableReader.FindClientInode (cognitive 19) · ×1
  • LinuxConnectionTableReader.FindClientInode (cognitive 19) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1206 — LinuxConnectionTableReader.FindClientInode has cognitive complexity 19 (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.
D2 · Cognitive Complexity · ComponentInvocationService.ResolveType (cognitive 19) · ×1
  • ComponentInvocationService.ResolveType (cognitive 19) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:67 — ComponentInvocationService.ResolveType has cognitive complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ConsoleLogHistoryService.TryLoadTailLocked (cognitive 19) · ×1
  • ConsoleLogHistoryService.TryLoadTailLocked (cognitive 19) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:613 — ConsoleLogHistoryService.TryLoadTailLocked has cognitive complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · EditorChangeTrackerService.CapturePropertyModification (cognitive 19) · ×1
  • EditorChangeTrackerService.CapturePropertyModification (cognitive 19) SkillsForUnity/Editor/Skills/EditorChangeTrackerService.cs:474 — EditorChangeTrackerService.CapturePropertyModification has cognitive complexity 19 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · GameObjectSkills.GameObjectSetTransform (cognitive 19) · ×1
  • GameObjectSkills.GameObjectSetTransform (cognitive 19) SkillsForUnity/Editor/Skills/GameObjectSkills.cs:618 — GameObjectSkills.GameObjectSetTransform has cognitive complexity 19 (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.
D2 · Cognitive Complexity · ModelSkills.ModelGetMeshInfo (cognitive 19) · ×1
  • ModelSkills.ModelGetMeshInfo (cognitive 19) SkillsForUnity/Editor/Skills/ModelSkills.cs:360 — ModelSkills.ModelGetMeshInfo has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PrefabAssetEditor.PrepareReadBack (cognitive 19) · ×1
  • PrefabAssetEditor.PrepareReadBack (cognitive 19) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:609 — PrefabAssetEditor.PrepareReadBack has cognitive complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 615). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ShaderGraphReflectionHelper.SyncNodeSettingFromInputSlot (cognitive 19) · ×1
  • ShaderGraphReflectionHelper.SyncNodeSettingFromInputSlot (cognitive 19) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1938 — ShaderGraphReflectionHelper.SyncNodeSettingFromInputSlot has cognitive complexity 19 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · SkillInstallSyncService.SyncTargets (cognitive 19) · ×1
  • SkillInstallSyncService.SyncTargets (cognitive 19) SkillsForUnity/Editor/Skills/SkillInstallSyncService.cs:173 — SkillInstallSyncService.SyncTargets has cognitive complexity 19 (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.
D2 · Cognitive Complexity · SkillPlanningService.AnalyzeComponentRemove (cognitive 19) · ×1
  • SkillPlanningService.AnalyzeComponentRemove (cognitive 19) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:128 — SkillPlanningService.AnalyzeComponentRemove has cognitive complexity 19 (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.
D2 · Cognitive Complexity · SkillsHttpServer.CollectBatchParamNodes (cognitive 19) · ×1
  • SkillsHttpServer.CollectBatchParamNodes (cognitive 19) SkillsForUnity/Editor/Skills/SkillsHttpServer.BatchRefs.cs:87 — SkillsHttpServer.CollectBatchParamNodes has cognitive complexity 19 (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.
D2 · Cognitive Complexity · SkillsHttpServer.HandlePermissionRequest (cognitive 19) · ×1
  • SkillsHttpServer.HandlePermissionRequest (cognitive 19) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:20 — SkillsHttpServer.HandlePermissionRequest has cognitive complexity 19 (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.
D2 · Cognitive Complexity · SmartSkills.SmartSceneQuery (cognitive 19) · ×1
  • SmartSkills.SmartSceneQuery (cognitive 19) SkillsForUnity/Editor/Skills/SmartSkills.cs:35 — SmartSkills.SmartSceneQuery has cognitive complexity 19 (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.
D2 · Cognitive Complexity · WorkflowFileStore.RestoreFile (cognitive 19) · ×1
  • WorkflowFileStore.RestoreFile (cognitive 19) SkillsForUnity/Editor/Skills/WorkflowFileStore.cs:113 — WorkflowFileStore.RestoreFile has cognitive complexity 19 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · WorkflowManager.CaptureDirectoryEntries (cognitive 19) · ×1
  • WorkflowManager.CaptureDirectoryEntries (cognitive 19) SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:508 — WorkflowManager.CaptureDirectoryEntries has cognitive complexity 19 (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.
D2 · Cognitive Complexity · WorkflowManager.PreviewStepsInScope (cognitive 19) · ×1
  • WorkflowManager.PreviewStepsInScope (cognitive 19) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs:186 — WorkflowManager.PreviewStepsInScope has cognitive complexity 19 (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.
D2 · Cognitive Complexity · EvaluationTabController.RenderSessionResult (cognitive 19) · ×1
  • EvaluationTabController.RenderSessionResult (cognitive 19) SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1407 — EvaluationTabController.RenderSessionResult has cognitive complexity 19 (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.
D2 · Cognitive Complexity · GitCliRunner.Run (cognitive 19) · ×1
  • GitCliRunner.Run (cognitive 19) SkillsForUnity/Editor/Versioning/GitCliRunner.cs:226 — GitCliRunner.Run has cognitive complexity 19 (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.
D2 · Cognitive Complexity · BatchExecutor.DescribeUnknownFields (cognitive 18) · ×1
  • BatchExecutor.DescribeUnknownFields (cognitive 18) SkillsForUnity/Editor/Skills/BatchExecutor.cs:230 — BatchExecutor.DescribeUnknownFields 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.
D2 · Cognitive Complexity · CameraSkills.CameraSceneViewScreenshot (cognitive 18) · ×1
  • CameraSkills.CameraSceneViewScreenshot (cognitive 18) SkillsForUnity/Editor/Skills/CameraSkills.cs:435 — CameraSkills.CameraSceneViewScreenshot has cognitive complexity 18 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CleanerSkills.CleanerFindDuplicates (cognitive 18) · ×1
  • CleanerSkills.CleanerFindDuplicates (cognitive 18) SkillsForUnity/Editor/Skills/CleanerSkills.cs:85 — CleanerSkills.CleanerFindDuplicates 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.
D2 · Cognitive Complexity · MacSysctlArgs.TryGetArgv (cognitive 18) · ×1
  • MacSysctlArgs.TryGetArgv (cognitive 18) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1889 — MacSysctlArgs.TryGetArgv has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ComponentInvocationService.TickEnumerator (cognitive 18) · ×1
  • ComponentInvocationService.TickEnumerator (cognitive 18) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:350 — ComponentInvocationService.TickEnumerator 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.
D2 · Cognitive Complexity · GameObjectFinder.FindByPath (cognitive 18) · ×1
  • GameObjectFinder.FindByPath (cognitive 18) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:809 — GameObjectFinder.FindByPath has cognitive complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PrefabAssetEditor.Run (cognitive 18) · ×1
  • PrefabAssetEditor.Run (cognitive 18) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:261 — PrefabAssetEditor.Run 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.
D2 · Cognitive Complexity · PrefabSkills.FindGenuineOverrides (cognitive 18) · ×1
  • PrefabSkills.FindGenuineOverrides (cognitive 18) SkillsForUnity/Editor/Skills/PrefabSkills.cs:892 — PrefabSkills.FindGenuineOverrides 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.
D2 · Cognitive Complexity · QFrameworkSkills.SetResKitBuildOptions (cognitive 18) · ×1
  • QFrameworkSkills.SetResKitBuildOptions (cognitive 18) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:1007 — QFrameworkSkills.SetResKitBuildOptions 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.
D2 · Cognitive Complexity · RuntimeScenarioService.Start (cognitive 18) · ×1
  • RuntimeScenarioService.Start (cognitive 18) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:57 — RuntimeScenarioService.Start has cognitive complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ScriptSkills.ScriptFindInFile (cognitive 18) · ×1
  • ScriptSkills.ScriptFindInFile (cognitive 18) SkillsForUnity/Editor/Skills/ScriptSkills.cs:232 — ScriptSkills.ScriptFindInFile 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.
D2 · Cognitive Complexity · ShaderGraphReflectionHelper.TryApplyNodeSettings (cognitive 18) · ×1
  • ShaderGraphReflectionHelper.TryApplyNodeSettings (cognitive 18) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:1978 — ShaderGraphReflectionHelper.TryApplyNodeSettings 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.
D2 · Cognitive Complexity · SkillInstaller.DeleteInstalledTemplateTree (cognitive 18) · ×1
  • SkillInstaller.DeleteInstalledTemplateTree (cognitive 18) SkillsForUnity/Editor/Skills/SkillInstaller.cs:574 — SkillInstaller.DeleteInstalledTemplateTree has cognitive complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkillRouter.ResolveUnityObjectFromResultObject (cognitive 18) · ×1
  • SkillRouter.ResolveUnityObjectFromResultObject (cognitive 18) SkillsForUnity/Editor/Skills/SkillRouter.Responses.cs:381 — SkillRouter.ResolveUnityObjectFromResultObject 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.
D2 · Cognitive Complexity · TestSkills.EvaluateSmokeSkill (cognitive 18) · ×1
  • TestSkills.EvaluateSmokeSkill (cognitive 18) SkillsForUnity/Editor/Skills/TestSkills.cs:429 — TestSkills.EvaluateSmokeSkill 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.
D2 · Cognitive Complexity · WorkflowManager.DeleteAssetToTrash (cognitive 18) · ×1
  • WorkflowManager.DeleteAssetToTrash (cognitive 18) SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:375 — WorkflowManager.DeleteAssetToTrash 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.
D2 · Cognitive Complexity · WorkflowManager.JournalHits (cognitive 18) · ×1
  • WorkflowManager.JournalHits (cognitive 18) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Conflicts.cs:369 — WorkflowManager.JournalHits has cognitive complexity 18 (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.
D2 · Cognitive Complexity · WorkflowManager.RedoCreatedSnapshot (cognitive 18) · ×1
  • WorkflowManager.RedoCreatedSnapshot (cognitive 18) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:467 — WorkflowManager.RedoCreatedSnapshot has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WorkflowManager.TryResolveObject (cognitive 18) · ×1
  • WorkflowManager.TryResolveObject (cognitive 18) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:938 — WorkflowManager.TryResolveObject has cognitive complexity 18 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · AgentInstructionService.ApplyToAllInstalled (cognitive 17) · ×1
  • AgentInstructionService.ApplyToAllInstalled (cognitive 17) SkillsForUnity/Editor/Skills/AgentInstructionService.cs:156 — AgentInstructionService.ApplyToAllInstalled 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.
D2 · Cognitive Complexity · BehaviorSkills.BehaviorAgentAdd (cognitive 17) · ×1
  • BehaviorSkills.BehaviorAgentAdd (cognitive 17) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1165 — BehaviorSkills.BehaviorAgentAdd has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · BehaviorSkills.SetAssetBlackboardVariable (cognitive 17) · ×1
  • BehaviorSkills.SetAssetBlackboardVariable (cognitive 17) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:1618 — BehaviorSkills.SetAssetBlackboardVariable has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CameraSkills.CameraSetProperties (cognitive 17) · ×1
  • CameraSkills.CameraSetProperties (cognitive 17) SkillsForUnity/Editor/Skills/CameraSkills.cs:286 — CameraSkills.CameraSetProperties 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.
D2 · Cognitive Complexity · ComponentSkills.FindBlockingDependents (cognitive 17) · ×1
  • ComponentSkills.FindBlockingDependents (cognitive 17) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1033 — ComponentSkills.FindBlockingDependents has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PerceptionSkills.CollectHotspots (cognitive 17) · ×1
  • PerceptionSkills.CollectHotspots (cognitive 17) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:289 — PerceptionSkills.CollectHotspots has cognitive complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, 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.
D2 · Cognitive Complexity · PerceptionSkills.SceneContractValidate (cognitive 17) · ×1
  • PerceptionSkills.SceneContractValidate (cognitive 17) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:728 — PerceptionSkills.SceneContractValidate 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.
D2 · Cognitive Complexity · PrefabAssetEditor.ValidateSteps (cognitive 17) · ×1
  • PrefabAssetEditor.ValidateSteps (cognitive 17) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:312 — PrefabAssetEditor.ValidateSteps has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · QFrameworkSkills.GenerateViewControllerCode (cognitive 17) · ×1
  • QFrameworkSkills.GenerateViewControllerCode (cognitive 17) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:570 — QFrameworkSkills.GenerateViewControllerCode has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · QFrameworkSkills.SetUIKitSettings (cognitive 17) · ×1
  • QFrameworkSkills.SetUIKitSettings (cognitive 17) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:813 — QFrameworkSkills.SetUIKitSettings has cognitive complexity 17 (threshold 15). 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.
D2 · Cognitive Complexity · RuntimeScenarioService.Matches (cognitive 17) · ×1
  • RuntimeScenarioService.Matches (cognitive 17) SkillsForUnity/Editor/Skills/RuntimeScenarioService.cs:230 — RuntimeScenarioService.Matches has cognitive 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.
D2 · Cognitive Complexity · SceneSkills.SceneScreenshot (cognitive 17) · ×1
  • SceneSkills.SceneScreenshot (cognitive 17) SkillsForUnity/Editor/Skills/SceneSkills.cs:222 — SceneSkills.SceneScreenshot 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.
D2 · Cognitive Complexity · ScriptableObjectSkills.ScriptableObjectSetBatch (cognitive 17) · ×1
  • ScriptableObjectSkills.ScriptableObjectSetBatch (cognitive 17) SkillsForUnity/Editor/Skills/ScriptableObjectSkills.cs:170 — ScriptableObjectSkills.ScriptableObjectSetBatch 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.
D2 · Cognitive Complexity · ShaderGraphReflectionHelper.InvokeMethod (cognitive 17) · ×1
  • ShaderGraphReflectionHelper.InvokeMethod (cognitive 17) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:2333 — ShaderGraphReflectionHelper.InvokeMethod 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.
D2 · Cognitive Complexity · SkillErrorResponse.Build (cognitive 17) · ×1
  • SkillErrorResponse.Build (cognitive 17) SkillsForUnity/Editor/Skills/SkillErrorResponse.cs:60 — SkillErrorResponse.Build 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.
D2 · Cognitive Complexity · SkillPlanningService.AnalyzeComponentSetProperty (cognitive 17) · ×1
  • SkillPlanningService.AnalyzeComponentSetProperty (cognitive 17) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:322 — SkillPlanningService.AnalyzeComponentSetProperty has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkillsHttpServer.IsBatchParamNode (cognitive 17) · ×1
  • SkillsHttpServer.IsBatchParamNode (cognitive 17) SkillsForUnity/Editor/Skills/SkillsHttpServer.BatchRefs.cs:40 — SkillsHttpServer.IsBatchParamNode 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.
D2 · Cognitive Complexity · TextureSkills.TextureSetSettingsBatch (cognitive 17) · ×1
  • TextureSkills.TextureSetSettingsBatch (cognitive 17) SkillsForUnity/Editor/Skills/TextureSkills.cs:208 — TextureSkills.TextureSetSettingsBatch has cognitive complexity 17 (threshold 15). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 216). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · WorkflowStore.AddRecordRefs (cognitive 17) · ×1
  • WorkflowStore.AddRecordRefs (cognitive 17) SkillsForUnity/Editor/Skills/WorkflowStore.cs:581 — WorkflowStore.AddRecordRefs 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.
D2 · Cognitive Complexity · HistoryTabController.BuildTimelineGroups (cognitive 17) · ×1
  • HistoryTabController.BuildTimelineGroups (cognitive 17) SkillsForUnity/Editor/UI/Controllers/HistoryTabController.cs:370 — HistoryTabController.BuildTimelineGroups 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.
D2 · Cognitive Complexity · SettingsDrawerController.InitializeValues (cognitive 17) · ×1
  • SettingsDrawerController.InitializeValues (cognitive 17) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:452 — SettingsDrawerController.InitializeValues has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · TopbarController.UpdateLiveData (cognitive 17) · ×1
  • TopbarController.UpdateLiveData (cognitive 17) SkillsForUnity/Editor/UI/Controllers/TopbarController.cs:171 — TopbarController.UpdateLiveData 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.
D2 · Cognitive Complexity · AddressablesSkills.AddressablesProfileGet (cognitive 16) · ×1
  • AddressablesSkills.AddressablesProfileGet (cognitive 16) SkillsForUnity/Editor/Skills/AddressablesSkills.cs:463 — AddressablesSkills.AddressablesProfileGet has cognitive complexity 16 (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.
D2 · Cognitive Complexity · AssetImportSkills.SpriteSetImportSettings (cognitive 16) · ×1
  • AssetImportSkills.SpriteSetImportSettings (cognitive 16) SkillsForUnity/Editor/Skills/AssetImportSkills.cs:321 — AssetImportSkills.SpriteSetImportSettings has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · AssetSkills.AssetImport (cognitive 16) · ×1
  • AssetSkills.AssetImport (cognitive 16) SkillsForUnity/Editor/Skills/AssetSkills.cs:15 — AssetSkills.AssetImport has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · BatchSkills.BuildSetPropertyPreview (cognitive 16) · ×1
  • BatchSkills.BuildSetPropertyPreview (cognitive 16) SkillsForUnity/Editor/Skills/BatchSkills.cs:1387 — BatchSkills.BuildSetPropertyPreview has cognitive complexity 16 (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.
D2 · Cognitive Complexity · ClientProcessResolver.TokenizeCommandLine (cognitive 16) · ×1
  • ClientProcessResolver.TokenizeCommandLine (cognitive 16) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:703 — ClientProcessResolver.TokenizeCommandLine has cognitive complexity 16 (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.
D2 · Cognitive Complexity · WindowsConnectionTableReader.ReadTable (cognitive 16) · ×1
  • WindowsConnectionTableReader.ReadTable (cognitive 16) SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1392 — WindowsConnectionTableReader.ReadTable has cognitive complexity 16 (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.
D2 · Cognitive Complexity · ComponentSkills.ParseJsonObjectFloats (cognitive 16) · ×1
  • ComponentSkills.ParseJsonObjectFloats (cognitive 16) SkillsForUnity/Editor/Skills/ComponentSkills.cs:1304 — ComponentSkills.ParseJsonObjectFloats has cognitive complexity 16 (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.
D2 · Cognitive Complexity · ConsoleLogHistoryService.ReadPage (cognitive 16) · ×1
  • ConsoleLogHistoryService.ReadPage (cognitive 16) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:438 — ConsoleLogHistoryService.ReadPage has cognitive complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ConsoleLogHistoryService.LoadAllLocked (cognitive 16) · ×1
  • ConsoleLogHistoryService.LoadAllLocked (cognitive 16) SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:686 — ConsoleLogHistoryService.LoadAllLocked has cognitive complexity 16 (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.
D2 · Cognitive Complexity · EventSkills.EventAddListener (cognitive 16) · ×1
  • EventSkills.EventAddListener (cognitive 16) SkillsForUnity/Editor/Skills/EventSkills.cs:82 — EventSkills.EventAddListener has cognitive complexity 16 (threshold 15). 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.
D2 · Cognitive Complexity · ModelSkills.ModelSetSettingsBatch (cognitive 16) · ×1
  • ModelSkills.ModelSetSettingsBatch (cognitive 16) SkillsForUnity/Editor/Skills/ModelSkills.cs:277 — ModelSkills.ModelSetSettingsBatch has cognitive complexity 16 (threshold 15). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 285). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · PerceptionSkills.SceneContext (cognitive 16) · ×1
  • PerceptionSkills.SceneContext (cognitive 16) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:1480 — PerceptionSkills.SceneContext has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PerceptionSkills.SceneDependencyAnalyze (cognitive 16) · ×1
  • PerceptionSkills.SceneDependencyAnalyze (cognitive 16) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2369 — PerceptionSkills.SceneDependencyAnalyze has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PrefabAssetEditor.Resolve (cognitive 16) · ×1
  • PrefabAssetEditor.Resolve (cognitive 16) SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs:94 — PrefabAssetEditor.Resolve has cognitive complexity 16 (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.
D2 · Cognitive Complexity · ScriptSkills.PlanAppend (cognitive 16) · ×1
  • ScriptSkills.PlanAppend (cognitive 16) SkillsForUnity/Editor/Skills/ScriptSkills.cs:337 — ScriptSkills.PlanAppend has cognitive complexity 16 (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.
D2 · Cognitive Complexity · ShaderGraphReflectionHelper.TryGetPackageRoot (cognitive 16) · ×1
  • ShaderGraphReflectionHelper.TryGetPackageRoot (cognitive 16) SkillsForUnity/Editor/Skills/ShaderGraphReflectionHelper.cs:2497 — ShaderGraphReflectionHelper.TryGetPackageRoot has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SkillPlanningService.ApplyRequiredInputGroups (cognitive 16) · ×1
  • SkillPlanningService.ApplyRequiredInputGroups (cognitive 16) SkillsForUnity/Editor/Skills/SkillPlanningService.RequiredInputs.cs:50 — SkillPlanningService.ApplyRequiredInputGroups has cognitive complexity 16 (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.
D2 · Cognitive Complexity · SkillRouter.AppendBatchMirrorIssues (cognitive 16) · ×1
  • SkillRouter.AppendBatchMirrorIssues (cognitive 16) SkillsForUnity/Editor/Skills/SkillRouter.Metadata.cs:100 — SkillRouter.AppendBatchMirrorIssues has cognitive complexity 16 (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.
D2 · Cognitive Complexity · SkillTelemetryService.RotateIfNeeded (cognitive 16) · ×1
  • SkillTelemetryService.RotateIfNeeded (cognitive 16) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:692 — SkillTelemetryService.RotateIfNeeded has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SkillTelemetryService.BuildRecommendationHealth (cognitive 16) · ×1
  • SkillTelemetryService.BuildRecommendationHealth (cognitive 16) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:764 — SkillTelemetryService.BuildRecommendationHealth has cognitive complexity 16 (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.
D2 · Cognitive Complexity · SkillsAuditLog.RotateIfNeeded (cognitive 16) · ×1
  • SkillsAuditLog.RotateIfNeeded (cognitive 16) SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:478 — SkillsAuditLog.RotateIfNeeded has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SkillsHttpServer.HandlePermissionGrant (cognitive 16) · ×1
  • SkillsHttpServer.HandlePermissionGrant (cognitive 16) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:160 — SkillsHttpServer.HandlePermissionGrant has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TerrainSkills.TerrainSmooth (cognitive 16) · ×1
  • TerrainSkills.TerrainSmooth (cognitive 16) SkillsForUnity/Editor/Skills/TerrainSkills.cs:360 — TerrainSkills.TerrainSmooth has cognitive complexity 16 (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.
D2 · Cognitive Complexity · UISkills.GetUIType (cognitive 16) · ×1
  • UISkills.GetUIType (cognitive 16) SkillsForUnity/Editor/Skills/UISkills.cs:723 — UISkills.GetUIType has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · UISkills.UILayoutChildren (cognitive 16) · ×1
  • UISkills.UILayoutChildren (cognitive 16) SkillsForUnity/Editor/Skills/UISkills.cs:957 — UISkills.UILayoutChildren has cognitive complexity 16 (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.
D2 · Cognitive Complexity · UISkills.UICreateDropdown (cognitive 16) · ×1
  • UISkills.UICreateDropdown (cognitive 16) SkillsForUnity/Editor/Skills/UISkills.cs:1150 — UISkills.UICreateDropdown has cognitive complexity 16 (threshold 15). 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.
D2 · Cognitive Complexity · UIToolkitSkills.UitkRuntimeBindingList (cognitive 16) · ×1
  • UIToolkitSkills.UitkRuntimeBindingList (cognitive 16) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2085 — UIToolkitSkills.UitkRuntimeBindingList has cognitive complexity 16 (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.
D2 · Cognitive Complexity · UIToolkitSkills.ResolveUxmlSrc (cognitive 16) · ×1
  • UIToolkitSkills.ResolveUxmlSrc (cognitive 16) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:2798 — UIToolkitSkills.ResolveUxmlSrc has cognitive complexity 16 (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.
D2 · Cognitive Complexity · ValidationSkills.ValidateFindMissingScripts (cognitive 16) · ×1
  • ValidationSkills.ValidateFindMissingScripts (cognitive 16) SkillsForUnity/Editor/Skills/ValidationSkills.cs:130 — ValidationSkills.ValidateFindMissingScripts has cognitive complexity 16 (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.
D2 · Cognitive Complexity · WorkflowManager.RestoreChainKey (cognitive 16) · ×1
  • WorkflowManager.RestoreChainKey (cognitive 16) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Checkpoint.cs:636 — WorkflowManager.RestoreChainKey has cognitive complexity 16 (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.
D2 · Cognitive Complexity · WorkflowManager.FilterChainsByScope (cognitive 16) · ×1
  • WorkflowManager.FilterChainsByScope (cognitive 16) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.Scope.cs:113 — WorkflowManager.FilterChainsByScope has cognitive complexity 16 (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.
D2 · Cognitive Complexity · WorkflowManager.RollBackBatch (cognitive 16) · ×1
  • WorkflowManager.RollBackBatch (cognitive 16) SkillsForUnity/Editor/Skills/WorkflowManager.cs:599 — WorkflowManager.RollBackBatch has cognitive complexity 16 (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.
D2 · Cognitive Complexity · XRReflectionHelper.FindTypeInAssemblies (cognitive 16) · ×1
  • XRReflectionHelper.FindTypeInAssemblies (cognitive 16) SkillsForUnity/Editor/Skills/XRReflectionHelper.cs:177 — XRReflectionHelper.FindTypeInAssemblies has cognitive complexity 16 (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.
D2 · Cognitive Complexity · SettingsDrawerController.RefreshPermissionsUi (cognitive 16) · ×1
  • SettingsDrawerController.RefreshPermissionsUi (cognitive 16) SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:1064 — SettingsDrawerController.RefreshPermissionsUi has cognitive complexity 16 (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.
D2 · Cognitive Complexity · UnityCliTabController.WireActions (cognitive 16) · ×1
  • UnityCliTabController.WireActions (cognitive 16) SkillsForUnity/Editor/UI/Controllers/UnityCliTabController.cs:154 — UnityCliTabController.WireActions has cognitive complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · UnitySkillsAuditWindow.CreateGUI (cognitive 16) · ×1
  • UnitySkillsAuditWindow.CreateGUI (cognitive 16) SkillsForUnity/Editor/UI/UnitySkillsWindow.cs:802 — UnitySkillsAuditWindow.CreateGUI has cognitive complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: PrefabSkills.cs → EventSkills.cs, LightSkills.cs, MaterialSkills.cs SkillsForUnity/Editor/Skills/PrefabSkills.cs — `SkillsForUnity/Editor/Skills/PrefabSkills.cs` changes together with 3 other files — `SkillsForUnity/Editor/Skills/EventSkills.cs`, `SkillsForUnity/Editor/Skills/LightSkills.cs`, `SkillsForUnity/Editor/Skills/MaterialSkills.cs` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (3 members, 6 shared lines) · ×1
  • Near-duplicate member family (3 members, 6 shared lines) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:451 — SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:451-462 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:465-475 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:499-511 — These 3 members are variants of one another: a block of 6 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication · Near-duplicate member pair (36 shared lines) · ×1
  • Near-duplicate member pair (36 shared lines) SkillsForUnity/Editor/Skills/UISkills.cs:556 — SkillsForUnity/Editor/Skills/UISkills.cs:556-608 | SkillsForUnity/Editor/Skills/UISkills.cs:1157-1321 — These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Edited copy of a member (81 corresponding lines) · ×1
  • Edited copy of a member (81 corresponding lines) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2047 — SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2047-2140 | SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2209-2289 — These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (86 corresponding lines) · ×1
  • Edited copy of a member (86 corresponding lines) SkillsForUnity/Editor/Skills/ComponentSkills.cs:361 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:361-455 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:466-551 — These two members are one piece of code written twice and then edited apart: 86 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (54 corresponding lines) · ×1
  • Edited copy of a member (54 corresponding lines) SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs:558 — SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs:558-611 | SkillsForUnity/Editor/Skills/PrimeTweenSkills.cs:621-685 — These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (82 corresponding lines) · ×1
  • Edited copy of a member (82 corresponding lines) SkillsForUnity/Editor/Skills/AudioSkills.cs:60 — SkillsForUnity/Editor/Skills/AudioSkills.cs:60-141 | SkillsForUnity/Editor/Skills/TextureSkills.cs:90-206 — These two members are one piece of code written twice and then edited apart: 82 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 55+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 55+ corresponding lines) SkillsForUnity/Editor/Skills/TerrainSkills.cs:231 — SkillsForUnity/Editor/Skills/TerrainSkills.cs:231-288 | SkillsForUnity/Editor/Skills/TerrainSkills.cs:370-426 | SkillsForUnity/Editor/Skills/TerrainSkills.cs:439-493 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 55 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (68 corresponding lines) · ×1
  • Edited copy of a member (68 corresponding lines) SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1407 — SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1407-1474 | SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:1486-1567 — These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (64 corresponding lines) · ×1
  • Edited copy of a member (64 corresponding lines) SkillsForUnity/Editor/UI/Controllers/PendingApprovalBannerController.cs:135 — SkillsForUnity/Editor/UI/Controllers/PendingApprovalBannerController.cs:135-198 | SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:1135-1204 — These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (38 corresponding lines) · ×1
  • Edited copy of a member (38 corresponding lines) SkillsForUnity/Editor/Skills/GameObjectFinder.cs:301 — SkillsForUnity/Editor/Skills/GameObjectFinder.cs:301-348 | SkillsForUnity/Editor/Skills/GameObjectFinder.cs:411-448 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×1
  • Edited copy of a member (24 corresponding lines) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1643 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1643-1676 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1687-1710 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (63 corresponding lines) · ×1
  • Edited copy of a member (63 corresponding lines) SkillsForUnity/Editor/Skills/AssetImportSkills.cs:126 — SkillsForUnity/Editor/Skills/AssetImportSkills.cs:126-193 | SkillsForUnity/Editor/Skills/AssetImportSkills.cs:210-272 — These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (49 corresponding lines) · ×1
  • Edited copy of a member (49 corresponding lines) SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:240 — SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:240-295 | SkillsForUnity/Editor/Skills/WorkflowManager.Restore.cs:301-349 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (39 corresponding lines) · ×1
  • Edited copy of a member (39 corresponding lines) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:311 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:311-354 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:401-439 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (46 corresponding lines) · ×1
  • Edited copy of a member (46 corresponding lines) SkillsForUnity/Editor/Skills/BehaviorSkills.cs:159 — SkillsForUnity/Editor/Skills/BehaviorSkills.cs:159-205 | SkillsForUnity/Editor/Skills/BehaviorSkills.cs:214-259 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (51 corresponding lines) · ×1
  • Edited copy of a member (51 corresponding lines) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:15 — SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:15-65 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:265-322 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (74 corresponding lines) · ×1
  • Edited copy of a member (74 corresponding lines) SkillsForUnity/Editor/Skills/ShaderSkills.cs:22 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:22-96 | SkillsForUnity/Editor/Skills/ShaderSkills.cs:282-355 — These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×1
  • Edited copy of a member (26 corresponding lines) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:693 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:693-718 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:479-504 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 22+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 22+ corresponding lines) SkillsForUnity/Editor/Skills/MaterialSkills.cs:905 — SkillsForUnity/Editor/Skills/MaterialSkills.cs:905-927 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:940-961 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:974-995 | SkillsForUnity/Editor/Skills/MaterialSkills.cs:1174-1201 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 14+ corresponding lines) SkillsForUnity/Editor/Skills/PrefabSkills.cs:202 — SkillsForUnity/Editor/Skills/PrefabSkills.cs:202-216 | SkillsForUnity/Editor/Skills/PrefabSkills.cs:466-479 | SkillsForUnity/Editor/Skills/PrefabSkills.cs:489-502 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (8 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (8 members, 15+ corresponding lines) SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:263 — SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:263-278 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:316-331 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:342-358 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:369-385 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:481-497 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:516-532 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:605-619 | SkillsForUnity/Editor/Skills/ShaderGraphSkills.cs:639-655 — These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 12+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 12+ corresponding lines) SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:242 — SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:242-254 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:257-270 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:273-284 | SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:287-298 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 11+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 11+ corresponding lines) SkillsForUnity/Editor/Skills/GraphicsSkills.cs:97 — SkillsForUnity/Editor/Skills/GraphicsSkills.cs:97-110 | SkillsForUnity/Editor/Skills/ProjectSkills.cs:41-51 | SkillsForUnity/Editor/Skills/ProjectSkills.cs:72-82 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×1
  • Edited copy of a member (7 corresponding lines) SkillsForUnity/Editor/Skills/SkillsModeManager.cs:614 — SkillsForUnity/Editor/Skills/SkillsModeManager.cs:614-620 | SkillsForUnity/Editor/UI/AllowlistPickerWindow.cs:315-321 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (4 corresponding lines) · ×1
  • Edited copy of a member (4 corresponding lines) SkillsForUnity/Editor/Skills/EvaluationState.cs:694 — SkillsForUnity/Editor/Skills/EvaluationState.cs:694-697 | SkillsForUnity/Editor/UI/Controllers/EvaluationTabController.cs:1875-1878 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (54–58 lines × 2) · ×1
  • Duplicated block (54–58 lines × 2) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2071 — SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2071-2128 | SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2216-2269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2071` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21–37 lines × 2) · ×1
  • Duplicated block (21–37 lines × 2) SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:269 — SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:269-305 | SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:611-631 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/WorkflowManager.Capture.cs:611` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (32–34 lines × 2) · ×1
  • Duplicated block (32–34 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:188 — SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:188-221 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:349-380 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:188` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20–32 lines × 2) · ×1
  • Duplicated block (20–32 lines × 2) SkillsForUnity/Editor/Skills/PrefabSkills.cs:282 — SkillsForUnity/Editor/Skills/PrefabSkills.cs:282-313 | SkillsForUnity/Editor/Skills/PrefabSkills.cs:898-917 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PrefabSkills.cs:282` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (26–28 lines × 2) · ×1
  • Duplicated block (26–28 lines × 2) SkillsForUnity/Editor/Skills/TerrainSkills.cs:243 — SkillsForUnity/Editor/Skills/TerrainSkills.cs:243-270 | SkillsForUnity/Editor/Skills/TerrainSkills.cs:451-476 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/TerrainSkills.cs:243` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (24–25 lines × 2) · ×1
  • Duplicated block (24–25 lines × 2) SkillsForUnity/Editor/Skills/ComponentSkills.cs:408 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:408-432 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:522-545 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ComponentSkills.cs:408` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:694 — SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:694-715 | SkillsForUnity/Editor/Skills/SkillsAuditLog.cs:480-501 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillTelemetryService.cs:694` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×1
  • Duplicated block (20 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:1213 — SkillsForUnity/Editor/Skills/UISkills.cs:1213-1232 | SkillsForUnity/Editor/Skills/UISkills.cs:1359-1378 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (21–22 lines × 2) · ×1
  • Duplicated block (21–22 lines × 2) SkillsForUnity/Editor/UI/Controllers/PendingApprovalBannerController.cs:177 — SkillsForUnity/Editor/UI/Controllers/PendingApprovalBannerController.cs:177-198 | SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:1184-1204 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/UI/Controllers/PendingApprovalBannerController.cs:177` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–21 lines × 2) · ×1
  • Duplicated block (16–21 lines × 2) SkillsForUnity/Editor/Skills/EventSkills.cs:24 — SkillsForUnity/Editor/Skills/EventSkills.cs:24-44 | SkillsForUnity/Editor/Skills/EventSkills.cs:265-280 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/EventSkills.cs:24` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (19–20 lines × 2) · ×1
  • Duplicated block (19–20 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:432 — SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:432-451 | SkillsForUnity/Editor/Skills/SkillPlanningService.Material.cs:183-201 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:432` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×1
  • Duplicated block (17 lines × 2) SkillsForUnity/Editor/Skills/AddressablesSkills.cs:38 — SkillsForUnity/Editor/Skills/AddressablesSkills.cs:38-54 | SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:60-76 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (12–16 lines × 2) · ×1
  • Duplicated block (12–16 lines × 2) SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:233 — SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:233-248 | SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:396-407 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillPlanningService.GameObject.cs:233` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (13–15 lines × 2) · ×1
  • Duplicated block (13–15 lines × 2) SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:311 — SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:311-325 | SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:401-413 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillsHttpServer.Permissions.cs:311` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9–15 lines × 2) · ×1
  • Duplicated block (9–15 lines × 2) SkillsForUnity/Editor/Skills/UISkills.cs:592 — SkillsForUnity/Editor/Skills/UISkills.cs:592-600 | SkillsForUnity/Editor/Skills/UISkills.cs:1174-1188 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8–14 lines × 4) · ×1
  • Duplicated block (8–14 lines × 4) SkillsForUnity/Editor/Skills/EventSkills.cs:30 — SkillsForUnity/Editor/Skills/EventSkills.cs:30-43 | SkillsForUnity/Editor/Skills/EventSkills.cs:234-244 | SkillsForUnity/Editor/Skills/EventSkills.cs:270-280 | SkillsForUnity/Editor/Skills/EventSkills.cs:303-310 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11 lines × 5) · ×1
  • Duplicated block (11 lines × 5) SkillsForUnity/Editor/Skills/UISkills.cs:180 — SkillsForUnity/Editor/Skills/UISkills.cs:180-190 | SkillsForUnity/Editor/Skills/UISkills.cs:259-269 | SkillsForUnity/Editor/Skills/UISkills.cs:378-388 | SkillsForUnity/Editor/Skills/UISkills.cs:1158-1168 | SkillsForUnity/Editor/Skills/UISkills.cs:1403-1413 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (10–13 lines × 2) · ×1
  • Duplicated block (10–13 lines × 2) SkillsForUnity/Editor/Skills/ComponentSkills.cs:785 — SkillsForUnity/Editor/Skills/ComponentSkills.cs:785-797 | SkillsForUnity/Editor/Skills/ComponentSkills.cs:1641-1650 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ComponentSkills.cs:785` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10 lines × 7) · ×1
  • Duplicated block (10 lines × 7) SkillsForUnity/Editor/Skills/UISkills.cs:181 — SkillsForUnity/Editor/Skills/UISkills.cs:181-190 | SkillsForUnity/Editor/Skills/UISkills.cs:260-269 | SkillsForUnity/Editor/Skills/UISkills.cs:379-388 | SkillsForUnity/Editor/Skills/UISkills.cs:485-494 | SkillsForUnity/Editor/Skills/UISkills.cs:1159-1168 | SkillsForUnity/Editor/Skills/UISkills.cs:1340-1349 | SkillsForUnity/Editor/Skills/UISkills.cs:1404-1413 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (10–12 lines × 2) · ×1
  • Duplicated block (10–12 lines × 2) SkillsForUnity/Editor/Skills/AgentInstructionService.cs:125 — SkillsForUnity/Editor/Skills/AgentInstructionService.cs:125-134 | SkillsForUnity/Editor/Skills/SkillInstaller.cs:68-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/AgentInstructionService.cs:125` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (10 lines × 10) · ×1
  • Duplicated block (10 lines × 10) SkillsForUnity/Editor/Skills/UISkills.cs:149 — SkillsForUnity/Editor/Skills/UISkills.cs:149-158 | SkillsForUnity/Editor/Skills/UISkills.cs:180-189 | SkillsForUnity/Editor/Skills/UISkills.cs:222-231 | SkillsForUnity/Editor/Skills/UISkills.cs:259-268 | SkillsForUnity/Editor/Skills/UISkills.cs:378-387 | SkillsForUnity/Editor/Skills/UISkills.cs:484-493 | SkillsForUnity/Editor/Skills/UISkills.cs:557-566 | SkillsForUnity/Editor/Skills/UISkills.cs:1158-1167 | SkillsForUnity/Editor/Skills/UISkills.cs:1339-1348 | SkillsForUnity/Editor/Skills/UISkills.cs:1403-1412 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (6–11 lines × 2) · ×1
  • Duplicated block (6–11 lines × 2) SkillsForUnity/Editor/Skills/BuildPlayerService.cs:300 — SkillsForUnity/Editor/Skills/BuildPlayerService.cs:300-310 | SkillsForUnity/Editor/Skills/PlayCaptureService.cs:257-262 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PlayCaptureService.cs:257` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 11) · ×1
  • Duplicated block (10 lines × 11) SkillsForUnity/Editor/Skills/UISkills.cs:149 — SkillsForUnity/Editor/Skills/UISkills.cs:149-158 | SkillsForUnity/Editor/Skills/UISkills.cs:180-189 | SkillsForUnity/Editor/Skills/UISkills.cs:222-231 | SkillsForUnity/Editor/Skills/UISkills.cs:259-268 | SkillsForUnity/Editor/Skills/UISkills.cs:378-387 | SkillsForUnity/Editor/Skills/UISkills.cs:484-493 | SkillsForUnity/Editor/Skills/UISkills.cs:557-566 | SkillsForUnity/Editor/Skills/UISkills.cs:1158-1167 | SkillsForUnity/Editor/Skills/UISkills.cs:1339-1348 | SkillsForUnity/Editor/Skills/UISkills.cs:1403-1412 | SkillsForUnity/Editor/Skills/UISkills.cs:1441-1450 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (8–10 lines × 3) · ×1
  • Duplicated block (8–10 lines × 3) SkillsForUnity/Editor/Skills/UISkills.cs:155 — SkillsForUnity/Editor/Skills/UISkills.cs:155-164 | SkillsForUnity/Editor/Skills/UISkills.cs:582-589 | SkillsForUnity/Editor/Skills/UISkills.cs:1244-1251 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6–10 lines × 2) · ×1
  • Duplicated block (6–10 lines × 2) SkillsForUnity/Editor/Skills/AsyncJobService.cs:1602 — SkillsForUnity/Editor/Skills/AsyncJobService.cs:1602-1611 | SkillsForUnity/Editor/Skills/EditorSkills.cs:216-221 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×1
  • Duplicated block (9–10 lines × 2) SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2147 — SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2147-2156 | SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2525-2533 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/PerceptionSkills.cs:2147` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:62 — SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:62-69 | SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:200-207 | SkillsForUnity/Editor/Skills/SkillPlanningService.Component.cs:424-431 | SkillsForUnity/Editor/Skills/SkillPlanningService.Material.cs:71-78 | SkillsForUnity/Editor/Skills/SkillPlanningService.Material.cs:175-182 — there are 5 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/SkillPlanningService.Asset.cs:62` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) SkillsForUnity/Editor/Skills/ShaderSkills.cs:27 — SkillsForUnity/Editor/Skills/ShaderSkills.cs:27-36 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:29-37 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1775-1783 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1843-1853 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1775` calls `Required` and `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:29` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×1
  • Duplicated block (8–9 lines × 2) SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:492 — SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:492-499 | SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:571-579 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/UI/Controllers/AIConfigTabController.cs:492` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×1
  • Duplicated block (6 lines × 4) SkillsForUnity/Editor/Skills/ProfilerSkills.cs:139 — SkillsForUnity/Editor/Skills/ProfilerSkills.cs:139-144 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:161-166 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:182-187 | SkillsForUnity/Editor/Skills/ProfilerSkills.cs:203-208 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `SkillsForUnity/Editor/Skills/ProfilerSkills.cs:139` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×1
  • Duplicated block (8 lines × 4) SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:37 — SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:37-44 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:71-78 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1819-1827 | SkillsForUnity/Editor/Skills/UIToolkitSkills.cs:1934-1942 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind `null` to `string content =` in one and `string ussPath =` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×1
  • Duplicated block (7 lines × 5) SkillsForUnity/Editor/Skills/UISkills.cs:398 — SkillsForUnity/Editor/Skills/UISkills.cs:398-404 | SkillsForUnity/Editor/Skills/UISkills.cs:437-443 | SkillsForUnity/Editor/Skills/UISkills.cs:452-458 | SkillsForUnity/Editor/Skills/UISkills.cs:1182-1188 | SkillsForUnity/Editor/Skills/UISkills.cs:1457-1463 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `SkillsForUnity/Editor/Skills/UISkills.cs:407` calls `GameObject`, `SetParent` and `SkillsForUnity/Editor/Skills/UISkills.cs:459` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (4–5 lines × 3) · ×1
  • Duplicated block (4–5 lines × 3) SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:804 — SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:804-807 | SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:859-863 | SkillsForUnity/Editor/Skills/QFrameworkSkills.cs:877-881 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
IC1 · Incompleteness & stubs · Guard cannot change the result · ×1
  • Guard cannot change the result — returns what the code already falls through to SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1070 — 2 guards above `return result;` also return `result`, so no input can make them matter. Implement the distinction that was intended, or delete the guards.
IC1 · Incompleteness & stubs · Empty method body · ×1
  • Empty method body — does nothing with its inputs SkillsForUnity/Editor/UI/Controllers/SettingsDrawerController.cs:192 — `OnRootDetached` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
P12 · CI test-gate honesty · Coverage collected but not gated · ×1
  • Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
P12 · CI test-gate honesty · Test suite runs only after the merge · ×1
  • Test suite runs only after the merge — `REDACTED`, `REDACTED` run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) — so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it.
SC1 · Supply-chain hygiene · JavaScript dependencies are not locked · ×1
  • JavaScript dependencies are not locked SkillsForUnity/package.json:10 — SkillsForUnity/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
X1 · Async correctness · Sync-over-async (deadlock risk) · ×1
  • Sync-over-async (deadlock risk) SkillsForUnity/Editor/Skills/ComponentInvocationService.cs:317 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
X32 · Type resolved by simple name across every loaded assembly · Type resolved by simple name across every loaded assembly · ×1
  • Type resolved by simple name across every loaded assembly SkillsForUnity/Editor/Skills/XRReflectionHelper.cs:269 — `t.Name.Equals(simpleName, StringComparison.OrdinalIgnoreCase)` matches `t` by its SIMPLE name while walking every type of every assembly in `AppDomain.CurrentDomain.GetAssemblies()`, and the loop keeps the first match (or the last one written to the map). The assembly list is in LOAD order and `Type.Name` is not unique — the namespace is what separates two types spelled the same way — so which type answers depends on which code path ran first, not on this source. Compare `FullName` or `AssemblyQualifiedName`, or collect every match and reject a name that names more than one type.
Minor — 134 finding(s)
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py:80 — `":" in item and not item.startswith("{")` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py, eval/harness/uyaml.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB5.py:104 — `"public" in m.group("mods") or "SerializeField" in m.group("attrs")` appears character-identically in 3 files — eval/pack/private/DB5.py, eval/pack/private/DB6.py, eval/pack/private/DC5.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB1.py:108 — `"public" in match.group("mods") or "SerializeField" in match.group("attrs")` appears character-identically in 4 files — eval/pack/private/DB1.py, eval/pack/private/DB3.py, eval/pack/private/DB4.py, eval/pack/private/DB6.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB2.py:145 — `"public" in words or re.search(r"\bSerializeField\b", attrs) is not None` appears character-identically in 2 files — eval/pack/private/DB2.py, eval/pack/private/DC2.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/pack/tasks/T10/task.py:56 — `V.as_int(ser.get("m_Materials.Array.size")) or 0` appears character-identically in 4 files — SkillsForUnity/Evaluation~/pack/tasks/T10/task.py, SkillsForUnity/Evaluation~/pack/tasks/T4/task.py, eval/pack/private/T10.py, eval/pack/private/T4.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/pack/tasks/OS2/task.py:50 — `V.same_id(ref, h["canvas"]) and comp["type"] == "RectTransform"` appears character-identically in 2 files — SkillsForUnity/Evaluation~/pack/tasks/OS2/task.py, eval/pack/private/OS2.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB1.py:162 — `V.same_id(ref, holder) and isinstance(now, dict) and isinstance(state, dict)` appears character-identically in 4 files — eval/pack/private/DB1.py, eval/pack/private/DB3.py, eval/pack/private/DB5.py, eval/pack/private/DB6.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py:115 — `_indent(lines[i]) == indent and lines[i].lstrip().startswith("- ")` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py, eval/harness/uyaml.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DC8.py:233 — `all(present) and not comp.get("isCompiling") and last.get("succeeded") is not False and not last.get("errorCount") and feedback == [False, F…` appears character-identically in 2 files — eval/pack/private/DC8.py, eval/pack/private/DS3.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/tools/build_pack_manifest.py:299 — `args.manifest or os.path.join(pack_root, pack.MANIFEST_NAME)` appears character-identically in 3 files — eval/tools/build_pack_manifest.py, eval/tools/check_eval_pack.py, eval/tools/lint_pack.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/tools/build_pack_manifest.py:296 — `args.pack_dir or args.pack_root or DEFAULT_PACK_ROOT` appears character-identically in 3 files — eval/tools/build_pack_manifest.py, eval/tools/check_eval_pack.py, eval/tools/lint_pack.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/tools/build_pack_manifest.py:298 — `args.private_root or DEFAULT_PRIVATE_ROOT` appears character-identically in 2 files — eval/tools/build_pack_manifest.py, eval/tools/check_eval_pack.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/paths.py:23 — `bool(directory) and os.path.isdir(os.path.join(directory, "Assets")) and os.path.isfile(os.path.join(directory, "ProjectSettings", "ProjectV…` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/paths.py, SkillsForUnity/unity-skills~/scripts/unity_eval.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB1.py:97 — `bool(text) and re.search(r"\bpublic\s+class\s+%s\s*:\s*(?:UnityEngine\.)?MonoBehaviour\b" % re.escape(cls), text) is not None` appears character-identically in 5 files — eval/pack/private/DB1.py, eval/pack/private/DB3.py, eval/pack/private/DB5.py, eval/pack/private/DB6.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB5.py:108 — `bool(text) and re.search(r"\bpublic\s+void\s+%s\s*\(\s*\)" % re.escape(name), text) is not None` appears character-identically in 2 files — eval/pack/private/DB5.py, eval/pack/private/DC5.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/verifylib/probe.py:66 — `c.get("type") == type_name or c.get("fullType") == type_name` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/verifylib/probe.py, eval/harness/verify.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/pack/tasks/DC6/task.py:93 — `client.read("editor_get_layers").get("layers") or []` appears character-identically in 2 files — SkillsForUnity/Evaluation~/pack/tasks/DC6/task.py, SkillsForUnity/Evaluation~/pack/tasks/T3/task.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/focus.py:36 — `comp.get("isCompiling") or comp.get("isUpdating") or health.get("domainReloadPending")` appears character-identically in 5 files — SkillsForUnity/Evaluation~/usk_eval/focus.py, REDACTED, REDACTED, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/DB4.py:231 — `compiled(ctx) and feedback.get("hasErrors") is False` appears character-identically in 2 files — eval/pack/private/DB4.py, eval/pack/private/DC5.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/session.py:304 — `current and current.get("status") == "active"` appears character-identically in 4 files — SkillsForUnity/Evaluation~/usk_eval/session.py, REDACTED, eval/selftest3.py, eval/suite3.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py:163 — `current is not None and not line.startswith("%")` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py, eval/harness/uyaml.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/pack/tasks/OC2/task.py:187 — `d.type_name == "Light" and not d.stripped` appears character-identically in 2 files — SkillsForUnity/Evaluation~/pack/tasks/OC2/task.py, eval/pack/private/OC2.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py:188 — `entry in doc.get("m_SavedProperties", "m_Colors", default=[]) or []` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/verifylib/uyaml.py, eval/harness/uyaml.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate eval/pack/private/OC1.py:85 — `envelope.get("status") in ("error", "partial") or envelope.get("errorCode")` appears character-identically in 8 files — eval/pack/private/OC1.py, eval/pack/private/OC3.py, eval/pack/private/OC5.py, eval/pack/private/OS1.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate SkillsForUnity/Evaluation~/usk_eval/paths.py:45 — `environ.get("USK_EVAL_REGISTRY") or os.path.join(os.path.expanduser("~"), ".unity_skills", "registry.json")` appears character-identically in 2 files — SkillsForUnity/Evaluation~/usk_eval/paths.py, SkillsForUnity/unity-skills~/scripts/unity_eval.py. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • + 15 more in this group — see findings.md.
X4 · Structured logging · Interpolated log message defeats structured logging · ×40
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/AddressablesSkills.cs:81 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/AgentInstructionService.cs:186 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/BatchExecutor.cs:215 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/BatchExecutor.cs:277 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/BatchPersistence.cs:92 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/BatchPersistence.cs:173 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/CleanerSkills.cs:137 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:232 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:248 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:261 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:302 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:307 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/ComponentSkills.cs:891 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DOTweenPresenceDetector.cs:99 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DOTweenPresenceDetector.cs:112 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DebugSkills.cs:60 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DebugSkills.cs:89 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DomainReloadStats.cs:65 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DomainReloadStats.cs:87 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:292 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:296 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/DryRunPolicyService.cs:312 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:172 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/EvaluationRunnerService.cs:282 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging SkillsForUnity/Editor/Skills/EvaluationState.cs:601 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • + 15 more in this group — see findings.md.
X7 · Silent fallback defaults · Silent fallback default in catch · ×36
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/AddressablesSkills.cs:63 — `AddrType` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/AddressablesSkills.cs:165 — `Prop` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/BatchPersistence.cs:120 — `TryKeepUnreadableCopy` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/BatchSkills.cs:1268 — `FilterTargets` swallows every exception into `return Enumerable.Empty<GameObject>();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:72 — `WarmEnabledCache` swallows every exception and sets `_enabledCache = true;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1210 — `FindClientInode` swallows every exception into `return -1;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1246 — `ResolveSymlink` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1256 — `ReadAll` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1327 — `ReadArgv` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1348 — `ReadComm` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1623 — `TryGetCommandLine` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1658 — `RunProcessCapturingStdout` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1932 — `TryGetArgv` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/CompilationResultService.cs:122 — `GetOutcomeForRequest` swallows every exception and sets `_historyOutcomes = Array.Empty<CompilationOutcome>();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/CompilationResultService.cs:139 — `AppendHistoryJson` swallows every exception and sets `history = new JArray();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ComponentSkills.cs:1024 — `AllowMultiple` swallows every exception into `return true;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs:1078 — `ParseRow` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:161 — `DumpFieldValue` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:253 — `TrySetEaseCurve` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:269 — `TrySetEase` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:283 — `TrySetLoopType` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:297 — `TrySetAnimationType` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenReflectionHelper.cs:429 — `ConvertValue` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1219 — `FindDOTweenTypes` swallows every exception into `return Array.Empty<Type>();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch SkillsForUnity/Editor/Skills/DOTweenSkills.cs:1411 — `ParseSequenceSteps` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • + 11 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×3
  • Silent fallback default on parse failure SkillsForUnity/Editor/Skills/ClientProcessResolver.cs:1338 — `ReadPpid` falls back to `-1` when `int.TryParse(value, out int ppid)` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
  • Silent fallback default on parse failure SkillsForUnity/Editor/Skills/EvaluationModeGuard.cs:122 — `ParseMode` falls back to `SkillsOperatingMode.Auto` when `TryParseMode(wire, out var mode)` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
  • Silent fallback default on parse failure SkillsForUnity/Editor/Skills/HybridCLRSkills.cs:2050 — `ParsePatchedAotAssemblyList` falls back to `Array.Empty<string>()` when `TryParsePatchedAotAssemblyList(content, out var list)` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 24 significant file(s) lose their only recent owner: SkillsForUnity/Editor/Skills/HybridCLRSkills.cs, SkillsForUnity/Editor/Skills/QFrameworkSkills.cs, SkillsForUnity/Editor/Skills/ConsoleLogHistoryService.cs, SkillsForUnity/Editor/Skills/PrefabAssetEditor.cs, SkillsForUnity/Editor/Versioning/LocalSelfUpdateService.cs, SkillsForUnity/Editor/Skills/EvaluationState.cs, SkillsForUnity/Editor/Skills/SkillsHttpServer.Dispatch.cs, SkillsForUnity/Editor/Skills/SkillParamUtil.cs (+16 more). Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 1 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 (25 single-owned of 207 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 207 of the 221 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: SkillsForUnity/Editor/Skills/ProfilerSkills.cs.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add `semgrep --config=auto` plus gitleaks for committed secrets — this tree has no MSBuild project file, so CodeQL's csharp pack (which traces a build) and NuGet security analyzers (which are referenced from a project) have nothing to attach to as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation SkillsForUnity/package.json:10 — `SkillsForUnity/package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
X23 · Unguarded diagnostic materialisation · Diagnostic log message is built whether or not it is wanted · ×1
  • Diagnostic log message is built whether or not it is wanted SkillsForUnity/Editor/Skills/WorkflowStore.cs:704 — `LogVerbose` at line 704 is called with an argument built by `string.Join("; ", failures)` (line 706), whose cost grows with the collection it walks. C# evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because LogVerbose is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `IsEnabled` test, no debug flag, no conditional-compilation region.
X5 · Nullable reference types · Nullable reference types not enabled everywhere · ×1
  • Nullable reference types not enabled everywhere — 0/221 C# file(s) are in a nullable-enabled context. This repository commits no project file, so nothing sets <Nullable>enable</Nullable> for it: a file is enabled only by its own `#nullable enable`, by a Unity `csc.rsp` with `-nullable:enable` for its assembly, or as a file-based app (`#:` directives) whose `#:property Nullable` does not turn it off. NRTs catch a whole class of null-deref bugs at compile time.
X7 · Silent fallback defaults · Silent fallback default on unknown code · ×1
  • Silent fallback default on unknown code SkillsForUnity/Editor/Skills/BatchSkills.cs:922 — `SurfaceCategoryForKind` maps every unrecognised code to `SkillCategory.GameObject`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.

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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-c78c7873ce9a43e68592a0d6ff0e30f1/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=800" --report-format json --report-path /tmp/watchdog-gitleaks-c78c7873ce9a43e68592a0d6ff0e30f1/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=1000 --max-count=729" --report-format json --report-path /tmp/watchdog-gitleaks-c78c7873ce9a43e68592a0d6ff0e30f1/history-2.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-2.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-c78c7873ce9a43e68592a0d6ff0e30f1/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .42artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0—
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 2 file(s) — `SkillsForUnity/Editor/Skills/CinemachineAdapter.cs`, `SkillsForUnity/Editor/Skills/UIToolkitSkills.cs` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D40 · Network Egress Confinementruntime-hardening—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.0—
D41 · Kernel & Syscall Confinementruntime-hardening—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.0—
D42 · Runtime Threat Enforcementruntime-hardening—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—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json

Run 01a1e588-fd0d-7ec8-860c-32b4feafbe63 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

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.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md