Public report of EFPrefix/EFQRCode, published 14 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 reportMeasured 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, 14 November 2026, 22:00 UTC · Survey ID cd_4e0b82921ea2492ea9e1d8fda12a79a0
EFPrefix/EFQRCode
Measured 14 November 2026, 21:59 UTC, at code version 3897298
Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
Down 1 since the last survey
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 medium codebase: 22,612 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 0.2 person-years · Weakest lens: Maturity, 44
Findings by how serious they are
16 critical208 serious43 minor
34 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
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
14 November 2026, 21:59 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 ▸
32of 32 dimensions measured by tools.
259of 267 findings point to an exact file and line, so you can open each one in the code. The other 8 concern the repository as a whole, such as missing documentation.
32dimensions across 5 lenses, read from 22,612 lines of product code in 1 project.
EFPrefix/EFQRCode falls short of our standard for production because 28 files are no longer known to anyone active in the project and we found no recorded design decisions and no architecture document or diagram. It scores 57 out of 100 and is rated Adequate, and all 16 of its critical findings are security problems.
Maturity, at 44, is the weakest lens and counts most in the score. The best first step for the work it takes is fixing the part of the code only one person knows, worth about 7 points. Recording design decisions would lift Maturity itself, worth about 12 points. Raising Maturity to 70 would lift the score to about 68.
Eleven pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Three pipeline steps install packages that can change without warning, and one password or key is open to anyone who can read the repository. Pinning each tool to an exact version, pinning what the pipeline installs and replacing the exposed password or key would close these risks. Limiting each secret to its own step would fix the secret exposed to more of the pipeline than needed.
The product code is 22,612 lines, about €24,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 forThe 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.
We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 25 findings
These 25 critical or serious findings were in the previous survey, on 28 October 2026, and are gone from this one.
Code Duplication · Near-duplicate member pair (40 shared lines) Source/Styles/EFQRCodeStyle25D.swift
€7,800 to €39,000, for 130 to 413 hours of work, about 0.2 person-years for one engineer
Difficulty of the problem
Standard, 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.8 at a score of 57. 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.
Size
Medium: 22,612 lines of product code
What it is not
Not 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. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.
Raises the score by about 7 points · Low effort · Bus Factor
2
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
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 €24,000 to build again, about 0.2 person-years of work. Its weakest lens is Maturity, at 44 (Weak). Maturity is about how well the project explains and looks after itself, which decides whether a new developer, or a new supplier, can take over. Because the weakest lens counts most in the score, work on Maturity also moves the score most.
Based on: the rebuild estimate · the Maturity grade · how much each lens counts
What to do: Start with the Maturity actions in Top priorities.
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 2.8 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 13% to 29% on every change.
How this is estimated: It rests on an assumption 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. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4)
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.
If you do one thing first · First action
Resolve the 1 Off-boarding risk finding(s) in Bus Factor. Of all the actions in this report, it raises the score most for the work it takes: about 7 points for low effort, because it clears the 1 Bus Factor findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
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.
5 modules, with 8 dependencies between them. One loop runs through 3 of the modules, marked above the diagonal.
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.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
19
High / Critical
A07:2025 — Authentication Failures
2
High / Critical
Roadmap
Top priorities: Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them; Resolve the 28 Orphaned file finding(s) in Knowledge Freshness — start with EFQRCodeStyleLine.swift, EFQRCodeStyleBasic.swift, EFQRCodeStyleDSJ.swift; Resolve the 1 Off-boarding risk finding(s) in Bus Factor.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
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.
Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with EFQRCode+Generator.swift, EFQRCodeStyleResampleImage.swift, EFQRCodeStyleImage.swift.
Add a SAST step to CI running what this repository's stack ships: CodeQL's Swift pack (Swift/Xcode) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
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 — 16
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 — 208
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 — 43
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 34
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 32 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, 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 — 32 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 259 of 267 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — 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. Coverage NOT MEASURED: the Swift half could not be measured — the Swift suite in . produced no coverage export. Coverage is excluded from the score rather than counted as a near-zero. This is OUR limitation, not a defect in the repo.
D11 Test Reliability — 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. Test source is present (.swift) and this repository declares a SwiftPM test suite (EFQRCode), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D14 License Compliance — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
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's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
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.
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.
AX6 Interface segregation — 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 is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
AXB1 Runtime evidence locked — no reproducible boot — 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. Subject: a native UI project (EFQRCode.xcodeproj/project.pbxproj). The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
C1 Data Protection — 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. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — 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. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — 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. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
GD1 Unfinished & placeholder code — 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 reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's Swift, c is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — 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 reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's Swift, c is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
P1 CI/CD gates — 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. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
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.
P8 Schema migrations — 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 reads EF Core usage in C# and the schema tooling its file scan recognises only, and no .NET project was loaded, and this repository's language is not one the scan models, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
S1 Web-Security Posture — 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. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
X1 Async correctness — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X12 Unreachable branch — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X13 Undrained process stream — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X15 Unvalidated length from an untrusted reader — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Ruby, Python, Go, Rust and Dart source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Ruby, Python, Go, Rust or Dart was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X16 Unfloored truncation loop — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X17 Uncapped recursion over a caller-supplied document — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X18 Disposal-pattern correctness — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X19 Unrestored process-global state — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X2 Cancellation propagation — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X22 Contradicted release guard — not measured this run — 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 reads C# syntax, and Java, TypeScript/JavaScript, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded, and this repository's C, Swift is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X23 Unguarded diagnostic materialisation — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X24 Document value interpolated into markup unescaped — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X25 Inert configuration knob — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart and Ruby source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart or Ruby was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X29 Per-element action decided by a fixed element — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript (Vue and Svelte components included), Java, Rust, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X30 Support guard that admits what it rejects — not measured this run — 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 reads C# syntax, and Scala, JavaScript/TypeScript, Java, Kotlin, Python, PHP, Go, Rust, Dart and Ruby source only, and no C# was loaded and no Scala, JavaScript, TypeScript, Java, Kotlin, Python, PHP, Go, Rust, Dart or Ruby was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X4 Structured logging — not measured this run — 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X5 Nullable reference types — not measured this run — 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 reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's C, Swift is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.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.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
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.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
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.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
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.
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.
+ 5 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with EFQRCodeStyleLine.writeQRCode (cyclomatic 143), EFQRCodeStyleDSJ.writeQRCode (cyclomatic 65). — 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 4.7 to about 6.4/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.
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.
+ 7 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 3 bodies over 120 down to 120 or less in Cognitive Complexity — start with EFQRCodeStyleLine.writeQRCode (cognitive 459), EFQRCodeStyleDSJ.writeQRCode (cognitive 204), EFQRCodeStyleBubble.writeQRCode (cognitive 139). — 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 4.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.
Do you agree with this assessment?
D3 · God Classes8.4 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 8 MethodTooLong finding(s) in God Classes — start with EFQRCodeStyleLine.swift, EFQRCodeStyleImage.swift, EFQRCodeStyleDSJ.swift. — One of this dimension's main actionable groups (8 warning-level).
Resolve the 1 FileTooLong finding(s) in God Classes — start with EFQRCode+Generator.swift. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
107 duplicated block group(s) detected. 39.5 % of the production lines (8,943 of 22,612) are in a reported copy. A further 46 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 92 of the 153 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.
+ 89 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 6 Duplicated block (8 lines × 3) finding(s) in Code Duplication — start with ImageGeneratorController.swift (3), BasicGeneratorController.swift (2), ImageFillGeneratorController.swift. — One of this dimension's main actionable groups (6 warning-level).
Resolve the 5 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with EFQRCodeStyleBubble.swift, EFQRCodeStyleImage.swift, BasicGeneratorController.swift. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 4 Duplicated block (15 lines × 2) finding(s) in Code Duplication — start with EFQRCode+Generator.swift, EFQRCodeStyleBubble.swift, EFQRCodeStyleDSJ.swift. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D6 · Cohesion (LCOM4)4.5 / 10Weak✓ 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.
Resolve the 16 Low cohesion finding(s) in Cohesion (LCOM4) — start with ViewController.swift, ParametersInterfaceController.swift, ImageGeneratorController.swift. — One of this dimension's main actionable groups (16 warning-level).
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
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.
What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.
3 outdated direct SwiftPM dependencies, 0 pinning defect(s). SwiftPM has no package registry: a dependency is a repository URL and its releases are that repository's semver tags, so currency is answered by listing tags rather than by querying an index. Only a newer tag on the SAME MAJOR is reported — a `from:` requirement admits everything below the next major and nothing above it, so a major crossing needs a Package.swift edit rather than an update, and naming the update as its remedy would be wrong. Whether any dependency is DEPRECATED or ABANDONED is not graded and cannot be: a repository publishes no such marker, and there is no registry that could carry one. Known CVEs in this dependency graph are D30's question.
Outdated: snapkit · ×2
✓ On the Gold path — maintain.
Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
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.
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
13 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is Source/EFQRCode+Generator.swift. Counted over 31 of the 32 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
What to do
Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
0 deducted task-comment markers across 22612 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.
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
4 % of calls cross a namespace and 0 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged 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.
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
19 finding(s): 0 critical, 15 high, 4 medium, 0 low. 11 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 1 file(s) — `Source/EFQRCode.h` (line 27, line 29, line 30) — 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
What to do
Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
No action in Static Analysis (SAST) — all 11 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 (11 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir 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.
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.
31 of 31 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Source/EFQRCode+Generator.swift. Counted over 31 of the 32 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Most significant orphaned file · ×3Source/EFQRCode+Generator.swift:1
Dormant codebase
What to do
Resolve the 28 Orphaned file finding(s) in Knowledge Freshness — start with EFQRCodeStyleLine.swift, EFQRCodeStyleBasic.swift, EFQRCodeStyleDSJ.swift. — One of this dimension's main actionable groups (28 recommendation-level).
Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with EFQRCode+Generator.swift, EFQRCodeStyleResampleImage.swift, EFQRCodeStyleImage.swift. — One of this dimension's main actionable groups (3 recommendation-level).
Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
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.
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.
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.
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.
Do you agree with this assessment?
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.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
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.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
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.
Do you agree with this assessment?
P1 · CI/CD gates8.5 / 10Strong✓ Tool-verified
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.
What to do
Run the test suite in CI via an explicit runner step (`swift test` for the toolchain this pipeline already uses) and gate merges on it.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
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 CodeQL's Swift pack (Swift/Xcode) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 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. — REDACTED:7
What to do
Add a SAST step to CI running what this repository's stack ships: CodeQL's Swift pack (Swift/Xcode) — or `semgrep --config=auto`, which runs on any language — 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.
Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.
Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.
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.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 2 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.
D36 Supply-chain Provenance & Signing — 4 observation(s) recorded · The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
X10 Duplicated predicate — 3 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 3 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
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 — 79 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
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 — Not applicable: this repository's Swift imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No Swift request handler (a Vapor, Hummingbird, Kitura, Swifter or Perfect route handler, as a method or a registered closure) is declared, so no state is shared between request threads.
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 — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — No personal data detected in a persisted data model — no PII-named property (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a SwiftData @Model, a Core Data, Realm, GRDB or Fluent type, a GRDB or SQLite.swift column, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (CoreData, SwiftData, GRDB, RealmSwift, SQLite, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named property (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a SwiftData @Model, a Core Data, Realm, GRDB or Fluent type, a GRDB or SQLite.swift column, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (CoreData, SwiftData, GRDB, RealmSwift, SQLite, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D11 Test Reliability — Test reliability not included — the .swift suite was found but not re-run
D14 License Compliance — Package licences not graded — dependencies declared to Carthage and CocoaPods
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D19 Documentation Quality — No runnable or published unit to look for an example in, and no multi-project root README to look for a map in; the other documentation kinds are withheld (see the gaps), so documentation quality is not applicable here.
D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
D21 Naming Consistency — N/A — too few peers to establish a naming convention (2346 declarations, no unit with a dominant convention).
D22 Internal API Consistency — API consistency is measured on C# only; the exposed Swift surface was not measured.
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 .swift, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — This repository is one build unit, `(repository root)` (8847 LoC, 78 module-visible types across 6 directories), within the size bounds. Not scored: a single unit of this size gives project cohesion nothing to grade.
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) — 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.
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
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 SwiftPM 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.)
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not measured — Swift suite
DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
M4 Documentation accuracy — Not applicable: the 1 current-state document(s) make no claim of a kind M4 checks.
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P2 Observability — This repository's Swift source (1 module(s), 32 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Swift source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `Benchmark("…")` in a file importing package-benchmark, or package-benchmark in Package.swift, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
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.
PF3 Async & latency hygiene — Not applicable: this repository declares no async functions, so there is no asynchronous code for a blocking call to stall.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X12 Unreachable branch — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X13 Undrained process stream — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
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 analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X16 Unfloored truncation loop — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X17 Uncapped recursion over a caller-supplied document — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X18 Disposal-pattern correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X19 Unrestored process-global state — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X21 Side-effecting pattern guard — Not applicable: this check looks for a pattern guard or `case` label that increments, decrements or assigns while the switch is deciding whether it matches, and in this repository's languages none can. In C a `case` label must be a constant expression, and a switch has no guards, so no label can change state. Swift has no `++` or `--`, and an assignment yields `()`, which cannot be an operand of `&&`, `||` or `?:` nor the Bool a `case … where` clause needs. Not a gap in the analyzer and not a finding about your code.
X22 Contradicted release guard — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X23 Unguarded diagnostic materialisation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X25 Inert configuration knob — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. Swift's `Array`, `Dictionary` and `Set` are values: `for x in items` walks the copy taken when the loop starts, so a body that adds to or removes from `items` changes a different value, nothing is invalidated, and every original element is still visited. This repository's Swift names no Foundation mutable collection (`NSMutableArray` and kin), the one kind a Swift loop can walk by reference. Not a gap in the analyzer and not a finding about your code.
X28 Index access outside its own emptiness guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X29 Per-element action decided by a fixed element — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X30 Support guard that admits what it rejects — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X7 Silent fallback defaults — 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.
Low cohesion: ViewController (LCOM4 21) Examples/iOS/ViewController.swift:33— ViewController's methods fall into 21 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 21 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ParametersInterfaceController (LCOM4 20) Examples/iOS/watchOS Example Extension/ParametersInterfaceController.swift:35— ParametersInterfaceController's methods fall into 20 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ImageGeneratorController (LCOM4 10) Examples/iOS/Generator/ImageGeneratorController.swift:16— ImageGeneratorController's methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: BasicGeneratorController (LCOM4 9) Examples/iOS/Generator/BasicGeneratorController.swift:15— BasicGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: BubbleGeneratorController (LCOM4 9) Examples/iOS/Generator/BubbleGeneratorController.swift:16— BubbleGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: D25GeneratorController (LCOM4 9) Examples/iOS/Generator/D25GeneratorController.swift:16— D25GeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: DSJGeneratorController (LCOM4 9) Examples/iOS/Generator/DSJGeneratorController.swift:16— DSJGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: FunctionGeneratorController (LCOM4 9) Examples/iOS/Generator/FunctionGeneratorController.swift:15— FunctionGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ImageFillGeneratorController (LCOM4 9) Examples/iOS/Generator/ImageFillGeneratorController.swift:16— ImageFillGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: LineGeneratorController (LCOM4 9) Examples/iOS/Generator/LineGeneratorController.swift:16— LineGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: RandomRectangleGeneratorController (LCOM4 9) Examples/iOS/Generator/RandomRectangleGeneratorController.swift:16— RandomRectangleGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ResampleImageGeneratorController (LCOM4 9) Examples/iOS/Generator/ResampleImageGeneratorController.swift:14— ResampleImageGeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: GeneratorController (LCOM4 9) Examples/tvOS/tvOS Example/GeneratorController.swift:59— GeneratorController's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: StyleViewController (LCOM4 7) Examples/iOS/StyleViewController.swift:38— StyleViewController's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ShowController (LCOM4 4) Examples/iOS/ShowController.swift:22— ShowController's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: DragDropImageView (LCOM4 4) Examples/macOS/macOS Example/DragDropImageView.swift:29— DragDropImageView's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
MethodTooLong: EFQRCodeStyleLine.writeQRCode Source/Styles/EFQRCodeStyleLine.swift:241— MethodTooLong — writeQRCode runs 256 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 156 over it, 2.56× 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: EFQRCodeStyleImage.writeQRCode Source/Styles/EFQRCodeStyleImage.swift:597— MethodTooLong — writeQRCode runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.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: EFQRCodeStyleDSJ.writeQRCode Source/Styles/EFQRCodeStyleDSJ.swift:230— MethodTooLong — writeQRCode runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50× 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: EFQRCodeStyleFunction.writeQRCode Source/Styles/EFQRCodeStyleFunction.swift:231— MethodTooLong — writeQRCode runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.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: EFQRCodeStyleBasic.writeQRCode Source/Styles/EFQRCodeStyleBasic.swift:320— MethodTooLong — writeQRCode 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: EFQRCodeStyleBubble.writeQRCode Source/Styles/EFQRCodeStyleBubble.swift:201— MethodTooLong — writeQRCode runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20× 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: Generator.reconcileFrameImages Source/EFQRCode+Generator.swift:855— MethodTooLong — reconcileFrameImages 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: EFQRCodeStyleResampleImage.writeQRCode Source/Styles/EFQRCodeStyleResampleImage.swift:338— MethodTooLong — writeQRCode 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.
Duplicated block (8 lines × 3) Examples/iOS/Generator/BasicGeneratorController.swift:402— Examples/iOS/Generator/BasicGeneratorController.swift:402-409 | Examples/iOS/Generator/ImageGeneratorController.swift:653-660 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:400-407 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 601 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) Examples/iOS/Generator/BasicGeneratorController.swift:459— Examples/iOS/Generator/BasicGeneratorController.swift:459-466 | Examples/iOS/Generator/ImageGeneratorController.swift:749-756 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:466-473 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 601 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) Examples/iOS/Generator/ImageFillGeneratorController.swift:462— Examples/iOS/Generator/ImageFillGeneratorController.swift:462-469 | Examples/iOS/Generator/ImageGeneratorController.swift:626-633 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:648-655 — before extracting anything, compare `Examples/iOS/Generator/ImageFillGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) Examples/iOS/Generator/ImageGeneratorController.swift:635— Examples/iOS/Generator/ImageGeneratorController.swift:635-642 | Examples/macOS/macOS Example/ViewController+Generator.swift:731-738 | Examples/tvOS/tvOS Example/GeneratorController.swift:491-498 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times.
Duplicated block (8 lines × 3) Examples/iOS/Generator/ImageGeneratorController.swift:644— Examples/iOS/Generator/ImageGeneratorController.swift:644-651 | Examples/macOS/macOS Example/ViewController+Generator.swift:740-747 | Examples/tvOS/tvOS Example/GeneratorController.swift:500-507 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times.
Duplicated block (8 lines × 3) Examples/iOS/Generator/ImageGeneratorController.swift:740— Examples/iOS/Generator/ImageGeneratorController.swift:740-747 | Examples/macOS/macOS Example/ViewController+Generator.swift:749-756 | Examples/tvOS/tvOS Example/GeneratorController.swift:509-516 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times.
Duplicated block (9 lines × 2) Source/Styles/EFQRCodeStyleBubble.swift:310— Source/Styles/EFQRCodeStyleBubble.swift:310-318 | Source/Styles/EFQRCodeStyleDSJ.swift:357-365 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBubble.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBubble.swift:310` 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 (9 lines × 2) Source/Styles/EFQRCodeStyleImage.swift:694— Source/Styles/EFQRCodeStyleImage.swift:694-702 | Source/Styles/EFQRCodeStyleImage.swift:723-731 — 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 `Source/Styles/EFQRCodeStyleImage.swift: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. 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 × 2) Examples/iOS/Generator/BasicGeneratorController.swift:824— Examples/iOS/Generator/BasicGeneratorController.swift:824-832 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:920-928 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/ResampleImageGeneratorController.swift` as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:824` 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 (9 lines × 2) Examples/iOS/StyleViewController.swift:146— Examples/iOS/StyleViewController.swift:146-154 | Examples/iOS/ViewController.swift:213-221 — before extracting anything, compare `Examples/iOS/StyleViewController.swift` and `Examples/iOS/ViewController.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) Examples/iOS/Generator/RandomRectangleGeneratorController.swift:647— Examples/iOS/Generator/RandomRectangleGeneratorController.swift:647-655 | Examples/tvOS/tvOS Example/GeneratorController.swift:693-701 — before extracting anything, compare `Examples/iOS/Generator/RandomRectangleGeneratorController.swift` and `Examples/tvOS/tvOS Example/GeneratorController.swift` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) Source/EFQRCode+Generator.swift:698— Source/EFQRCode+Generator.swift:698-712 | Source/EFQRCode+Generator.swift:713-727 — 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 (15 lines × 2) Source/Styles/EFQRCodeStyleBubble.swift:274— Source/Styles/EFQRCodeStyleBubble.swift:274-288 | Source/Styles/EFQRCodeStyleDSJ.swift:312-326 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBubble.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBubble.swift:274` 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 (15 lines × 2) Source/Styles/EFQRCodeStyleDSJ.swift:368— Source/Styles/EFQRCodeStyleDSJ.swift:368-382 | Source/Styles/EFQRCodeStyleDSJ.swift:392-406 — 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 `Source/Styles/EFQRCodeStyleDSJ.swift:368` 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 (15 lines × 2) Examples/iOS/StyleViewController.swift:129— Examples/iOS/StyleViewController.swift:129-143 | Examples/iOS/ViewController.swift:196-210 — before extracting anything, compare `Examples/iOS/StyleViewController.swift` and `Examples/iOS/ViewController.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) Source/Styles/EFQRCodeStyleBubble.swift:296— Source/Styles/EFQRCodeStyleBubble.swift:296-306 | Source/Styles/EFQRCodeStyleDSJ.swift:333-343 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBubble.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBubble.swift:296` 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 (11 lines × 2) Source/Type/EFImageMode.swift:144— Source/Type/EFImageMode.swift:144-154 | Source/Type/EFImageMode.swift:158-168 — 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 `Source/Type/EFImageMode.swift:144` 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.
Duplicated block (11 lines × 2) Source/Styles/EFQRCodeStyle25D.swift:305— Source/Styles/EFQRCodeStyle25D.swift:305-315 | Source/Styles/EFQRCodeStyleResampleImage.swift:507-517 — 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 `Source/Styles/EFQRCodeStyle25D.swift:305` 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 (11 lines × 2) Examples/iOS/Generator/BasicGeneratorController.swift:818— Examples/iOS/Generator/BasicGeneratorController.swift:818-828 | Examples/iOS/Generator/LineGeneratorController.swift:671-681 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/LineGeneratorController.swift` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 650 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:818` 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 (6 lines × 2) Source/Styles/EFQRCodeStyleBubble.swift:201— Source/Styles/EFQRCodeStyleBubble.swift:201-206 | Source/Styles/EFQRCodeStyleDSJ.swift:230-235 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBubble.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBubble.swift:201` 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 (6 lines × 2) Source/Styles/EFQRCodeStyleImage.swift:713— Source/Styles/EFQRCodeStyleImage.swift:713-718 | Source/Styles/EFQRCodeStyleImage.swift:742-747 — 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 `Source/Styles/EFQRCodeStyleImage.swift:713` 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 (6 lines × 2) Source/Styles/EFQRCodeStyleResampleImage.swift:624— Source/Styles/EFQRCodeStyleResampleImage.swift:624-629 | Source/Styles/EFQRCodeStyleResampleImage.swift:639-644 — 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 `Source/Styles/EFQRCodeStyleResampleImage.swift:624` 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) Source/Styles/EFQRCodeStyle.swift:292— Source/Styles/EFQRCodeStyle.swift:292-297 | Source/Styles/EFQRCodeStyleResampleImage.swift:565-570 — 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 (8 lines × 12) Examples/iOS/Generator/BasicGeneratorController.swift:145— Examples/iOS/Generator/BasicGeneratorController.swift:145-152 | Examples/iOS/Generator/BubbleGeneratorController.swift:138-145 | Examples/iOS/Generator/D25GeneratorController.swift:138-145 | Examples/iOS/Generator/DSJGeneratorController.swift:142-149 | Examples/iOS/Generator/FunctionGeneratorController.swift:139-146 | Examples/iOS/Generator/ImageFillGeneratorController.swift:144-151 | Examples/iOS/Generator/ImageGeneratorController.swift:164-171 | Examples/iOS/Generator/LineGeneratorController.swift:138-145 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:132-139 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:155-162 | Examples/iOS/RecognizerController.swift:110-117 | Examples/tvOS/tvOS Example/GeneratorController.swift:174-181 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift: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.
Duplicated block (8 lines × 12) Examples/iOS/Generator/BasicGeneratorController.swift:270— Examples/iOS/Generator/BasicGeneratorController.swift:270-277 | Examples/iOS/Generator/BubbleGeneratorController.swift:250-257 | Examples/iOS/Generator/D25GeneratorController.swift:248-255 | Examples/iOS/Generator/DSJGeneratorController.swift:259-266 | Examples/iOS/Generator/FunctionGeneratorController.swift:253-260 | Examples/iOS/Generator/ImageFillGeneratorController.swift:259-266 | Examples/iOS/Generator/ImageGeneratorController.swift:339-346 | Examples/iOS/Generator/LineGeneratorController.swift:253-260 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:238-245 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:286-293 | Examples/macOS/macOS Example/ViewController+Generator.swift:657-664 | Examples/tvOS/tvOS Example/GeneratorController.swift:279-286 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 12) Examples/iOS/Generator/BasicGeneratorController.swift:550— Examples/iOS/Generator/BasicGeneratorController.swift:550-557 | Examples/iOS/Generator/BubbleGeneratorController.swift:476-483 | Examples/iOS/Generator/D25GeneratorController.swift:408-415 | Examples/iOS/Generator/DSJGeneratorController.swift:503-510 | Examples/iOS/Generator/FunctionGeneratorController.swift:442-449 | Examples/iOS/Generator/ImageFillGeneratorController.swift:480-487 | Examples/iOS/Generator/ImageGeneratorController.swift:836-843 | Examples/iOS/Generator/LineGeneratorController.swift:419-426 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:329-336 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:675-682 | Examples/macOS/macOS Example/ViewController+Generator.swift:767-774 | Examples/tvOS/tvOS Example/GeneratorController.swift:527-534 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 12) Examples/iOS/Generator/BasicGeneratorController.swift:559— Examples/iOS/Generator/BasicGeneratorController.swift:559-566 | Examples/iOS/Generator/BubbleGeneratorController.swift:485-492 | Examples/iOS/Generator/D25GeneratorController.swift:417-424 | Examples/iOS/Generator/DSJGeneratorController.swift:512-519 | Examples/iOS/Generator/FunctionGeneratorController.swift:451-458 | Examples/iOS/Generator/ImageFillGeneratorController.swift:489-496 | Examples/iOS/Generator/ImageGeneratorController.swift:845-852 | Examples/iOS/Generator/LineGeneratorController.swift:428-435 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:338-345 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:684-691 | Examples/macOS/macOS Example/ViewController+Generator.swift:776-783 | Examples/tvOS/tvOS Example/GeneratorController.swift:536-543 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:608— Examples/iOS/Generator/BasicGeneratorController.swift:608-615 | Examples/iOS/Generator/BubbleGeneratorController.swift:495-502 | Examples/iOS/Generator/D25GeneratorController.swift:493-500 | Examples/iOS/Generator/DSJGeneratorController.swift:561-568 | Examples/iOS/Generator/FunctionGeneratorController.swift:518-525 | Examples/iOS/Generator/ImageFillGeneratorController.swift:508-515 | Examples/iOS/Generator/ImageGeneratorController.swift:894-901 | Examples/iOS/Generator/LineGeneratorController.swift:477-484 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:387-394 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:694-701 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:647— Examples/iOS/Generator/BasicGeneratorController.swift:647-654 | Examples/iOS/Generator/BubbleGeneratorController.swift:534-541 | Examples/iOS/Generator/D25GeneratorController.swift:532-539 | Examples/iOS/Generator/DSJGeneratorController.swift:600-607 | Examples/iOS/Generator/FunctionGeneratorController.swift:557-564 | Examples/iOS/Generator/ImageFillGeneratorController.swift:547-554 | Examples/iOS/Generator/ImageGeneratorController.swift:933-940 | Examples/iOS/Generator/LineGeneratorController.swift:516-523 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:426-433 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:733-740 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:699— Examples/iOS/Generator/BasicGeneratorController.swift:699-706 | Examples/iOS/Generator/BubbleGeneratorController.swift:586-593 | Examples/iOS/Generator/D25GeneratorController.swift:584-591 | Examples/iOS/Generator/DSJGeneratorController.swift:652-659 | Examples/iOS/Generator/FunctionGeneratorController.swift:609-616 | Examples/iOS/Generator/ImageFillGeneratorController.swift:599-606 | Examples/iOS/Generator/ImageGeneratorController.swift:985-992 | Examples/iOS/Generator/LineGeneratorController.swift:568-575 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:478-485 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:785-792 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:708— Examples/iOS/Generator/BasicGeneratorController.swift:708-715 | Examples/iOS/Generator/BubbleGeneratorController.swift:595-602 | Examples/iOS/Generator/D25GeneratorController.swift:593-600 | Examples/iOS/Generator/DSJGeneratorController.swift:661-668 | Examples/iOS/Generator/FunctionGeneratorController.swift:618-625 | Examples/iOS/Generator/ImageFillGeneratorController.swift:608-615 | Examples/iOS/Generator/ImageGeneratorController.swift:994-1001 | Examples/iOS/Generator/LineGeneratorController.swift:577-584 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:487-494 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:794-801 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Edited copies of one member (3 members, 8+ corresponding lines) · ×3
Edited copies of one member (3 members, 8+ corresponding lines) Source/Styles/EFQRCodeStyleImage.swift:910— Source/Styles/EFQRCodeStyleImage.swift:910-917 | Source/Styles/EFQRCodeStyleImageFill.swift:280-287 | Source/Styles/EFQRCodeStyleResampleImage.swift:676-683 — 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) Examples/iOS/Generator/D25GeneratorController.swift:347— Examples/iOS/Generator/D25GeneratorController.swift:347-354 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:657-664 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:666-673 — 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) Examples/iOS/Generator/BasicGeneratorController.swift:279— Examples/iOS/Generator/BasicGeneratorController.swift:279-286 | Examples/iOS/Generator/FunctionGeneratorController.swift:499-506 | Examples/iOS/Generator/LineGeneratorController.swift:262-269 — 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 (9 corresponding lines) · ×3
Edited copy of a member (9 corresponding lines) Source/Styles/EFQRCodeStyleBasic.swift:260— Source/Styles/EFQRCodeStyleBasic.swift:260-268 | Source/Styles/EFQRCodeStyleBubble.swift:152-160 — 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) Source/Styles/EFQRCodeStyleImageFill.swift:152— Source/Styles/EFQRCodeStyleImageFill.swift:152-160 | Source/Styles/EFQRCodeStyleResampleImage.swift:283-293 — 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) Examples/iOS/ViewController.swift:112— Examples/iOS/ViewController.swift:112-124 | Examples/iOS/MoreViewController.swift:87-95 — 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.
Duplicated block (12 lines × 2) Source/Styles/EFQRCodeStyleResampleImage.swift:753— Source/Styles/EFQRCodeStyleResampleImage.swift:753-764 | Source/Styles/EFQRCodeStyleResampleImage.swift:766-777 — 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 (12 lines × 2) Examples/macOS/macOS Example/ViewController+Generator.swift:810— Examples/macOS/macOS Example/ViewController+Generator.swift:810-821 | Examples/macOS/macOS Example/ViewController+Generator.swift:827-838 — 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 `Examples/macOS/macOS Example/ViewController+Generator.swift:810` 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, `Examples/macOS/macOS Example/ViewController+Generator.swift:809` calls `Array` and `Examples/macOS/macOS Example/ViewController+Generator.swift:826` 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 (12 lines × 2) Examples/iOS/StyleViewController.swift:171— Examples/iOS/StyleViewController.swift:171-182 | Examples/iOS/StyleViewController.swift:194-205 — 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 `Examples/iOS/StyleViewController.swift:171` 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, `Examples/iOS/StyleViewController.swift:170` calls `Array` and `Examples/iOS/StyleViewController.swift:192` 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 (8 lines × 9) Source/Styles/EFQRCodeStyle25D.swift:330— Source/Styles/EFQRCodeStyle25D.swift:330-337 | Source/Styles/EFQRCodeStyleBasic.swift:472-479 | Source/Styles/EFQRCodeStyleBubble.swift:364-371 | Source/Styles/EFQRCodeStyleDSJ.swift:434-441 | Source/Styles/EFQRCodeStyleFunction.swift:402-409 | Source/Styles/EFQRCodeStyleImage.swift:893-900 | Source/Styles/EFQRCodeStyleImageFill.swift:271-278 | Source/Styles/EFQRCodeStyleLine.swift:589-596 | Source/Styles/EFQRCodeStyleRandomRectangle.swift:233-240 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Source/Styles/EFQRCodeStyleRandomRectangle.swift:247` calls `clampRGBValue`, `max`, `min` and `Source/Styles/EFQRCodeStyle25D.swift:339` 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 (8 lines × 9) Examples/iOS/Generator/BasicGeneratorController.swift:336— Examples/iOS/Generator/BasicGeneratorController.swift:336-343 | Examples/iOS/Generator/BubbleGeneratorController.swift:431-438 | Examples/iOS/Generator/DSJGeneratorController.swift:403-410 | Examples/iOS/Generator/FunctionGeneratorController.swift:508-515 | Examples/iOS/Generator/ImageGeneratorController.swift:521-528 | Examples/iOS/Generator/LineGeneratorController.swift:301-308 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:334-341 | Examples/macOS/macOS Example/ViewController+Generator.swift:713-720 | Examples/tvOS/tvOS Example/GeneratorController.swift:473-480 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 9) Examples/iOS/Generator/BasicGeneratorController.swift:598— Examples/iOS/Generator/BasicGeneratorController.swift:598-605 | Examples/iOS/Generator/BubbleGeneratorController.swift:422-429 | Examples/iOS/Generator/D25GeneratorController.swift:456-463 | Examples/iOS/Generator/DSJGeneratorController.swift:551-558 | Examples/iOS/Generator/FunctionGeneratorController.swift:490-497 | Examples/iOS/Generator/ImageGeneratorController.swift:884-891 | Examples/iOS/Generator/LineGeneratorController.swift:467-474 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:377-384 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:596-603 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) Source/Styles/EFQRCodeStyleBasic.swift:403— Source/Styles/EFQRCodeStyleBasic.swift:403-410 | Source/Styles/EFQRCodeStyleBubble.swift:245-252 | Source/Styles/EFQRCodeStyleDSJ.swift:283-290 | Source/Styles/EFQRCodeStyleFunction.swift:289-296 | Source/Styles/EFQRCodeStyleImage.swift:784-791 | Source/Styles/EFQRCodeStyleLine.swift:285-292 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBasic.swift:403` 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 × 6) Examples/iOS/Generator/BasicGeneratorController.swift:345— Examples/iOS/Generator/BasicGeneratorController.swift:345-352 | Examples/iOS/Generator/DSJGeneratorController.swift:412-419 | Examples/iOS/Generator/FunctionGeneratorController.swift:351-358 | Examples/iOS/Generator/ImageGeneratorController.swift:530-537 | Examples/iOS/Generator/LineGeneratorController.swift:310-317 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:343-350 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/DSJGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) Examples/iOS/Generator/BasicGeneratorController.swift:384— Examples/iOS/Generator/BasicGeneratorController.swift:384-391 | Examples/iOS/Generator/BubbleGeneratorController.swift:440-447 | Examples/iOS/Generator/DSJGeneratorController.swift:451-458 | Examples/iOS/Generator/FunctionGeneratorController.swift:390-397 | Examples/iOS/Generator/LineGeneratorController.swift:349-356 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:382-389 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Members sharing a duplicated core (11 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (11 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:73— Examples/iOS/Generator/BasicGeneratorController.swift:73-140 | Examples/iOS/Generator/BubbleGeneratorController.swift:66-133 | Examples/iOS/Generator/D25GeneratorController.swift:66-133 | Examples/iOS/Generator/DSJGeneratorController.swift:70-137 | Examples/iOS/Generator/FunctionGeneratorController.swift:67-134 | Examples/iOS/Generator/ImageFillGeneratorController.swift:72-139 | Examples/iOS/Generator/ImageGeneratorController.swift:92-159 | Examples/iOS/Generator/LineGeneratorController.swift:66-133 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:60-127 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:83-150 | Examples/tvOS/tvOS Example/GeneratorController.swift:102-169 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 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 11 times.
Members sharing a duplicated core (11 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:1017— Examples/iOS/Generator/BasicGeneratorController.swift:1017-1058 | Examples/iOS/Generator/BubbleGeneratorController.swift:875-916 | Examples/iOS/Generator/D25GeneratorController.swift:873-914 | Examples/iOS/Generator/DSJGeneratorController.swift:957-998 | Examples/iOS/Generator/FunctionGeneratorController.swift:904-945 | Examples/iOS/Generator/ImageFillGeneratorController.swift:894-935 | Examples/iOS/Generator/ImageGeneratorController.swift:1381-1422 | Examples/iOS/Generator/LineGeneratorController.swift:849-890 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:739-780 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1129-1170 | Examples/tvOS/tvOS Example/GeneratorController.swift:799-840 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 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 11 times.
Members sharing a duplicated core (11 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:1060— Examples/iOS/Generator/BasicGeneratorController.swift:1060-1074 | Examples/iOS/Generator/BubbleGeneratorController.swift:918-932 | Examples/iOS/Generator/D25GeneratorController.swift:916-930 | Examples/iOS/Generator/DSJGeneratorController.swift:1000-1014 | Examples/iOS/Generator/FunctionGeneratorController.swift:947-961 | Examples/iOS/Generator/ImageFillGeneratorController.swift:937-951 | Examples/iOS/Generator/ImageGeneratorController.swift:1424-1438 | Examples/iOS/Generator/LineGeneratorController.swift:892-906 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:782-796 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1172-1186 | Examples/tvOS/tvOS Example/GeneratorController.swift:842-856 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 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 11 times.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×3
Edited copy of a member (20 corresponding lines) Examples/iOS/AnimatedImage.swift:69— Examples/iOS/AnimatedImage.swift:69-91 | Examples/iOS/AnimatedImage.swift:93-112 — 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) Examples/iOS/Generator/BubbleGeneratorController.swift:642— Examples/iOS/Generator/BubbleGeneratorController.swift:642-667 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:528-547 — 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) Examples/iOS/Generator/ImageFillGeneratorController.swift:654— Examples/iOS/Generator/ImageFillGeneratorController.swift:654-678 | Examples/tvOS/tvOS Example/GeneratorController.swift:564-583 — 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 copy of a member (8 corresponding lines) · ×3
Edited copy of a member (8 corresponding lines) Examples/iOS/UIColor+Example.swift:15— Examples/iOS/UIColor+Example.swift:15-22 | Examples/macOS/macOS Example/NSColor+Example.swift:33-40 — 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) Examples/iOS/Generator/BasicGeneratorController.swift:393— Examples/iOS/Generator/BasicGeneratorController.swift:393-400 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:391-398 — 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) Examples/iOS/Generator/BasicGeneratorController.swift:450— Examples/iOS/Generator/BasicGeneratorController.swift:450-457 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:457-464 — 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.
Duplicated block (8 lines × 2) Examples/iOS/Generator/BasicGeneratorController.swift:288— Examples/iOS/Generator/BasicGeneratorController.swift:288-295 | Examples/iOS/Generator/LineGeneratorController.swift:401-408 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/LineGeneratorController.swift` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 650 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) Examples/iOS/Generator/BasicGeneratorController.swift:441— Examples/iOS/Generator/BasicGeneratorController.swift:441-448 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:439-446 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/ResampleImageGeneratorController.swift` as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) Examples/iOS/Generator/BasicGeneratorController.swift:498— Examples/iOS/Generator/BasicGeneratorController.swift:498-505 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:505-512 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/ResampleImageGeneratorController.swift` as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (7 members, 50+ identical tokens) Source/Styles/EFQRCodeStyle25D.swift:217— Source/Styles/EFQRCodeStyle25D.swift:217-267 | Source/Styles/EFQRCodeStyleBasic.swift:320-462 | Source/Styles/EFQRCodeStyleBubble.swift:201-354 | Source/Styles/EFQRCodeStyleDSJ.swift:230-424 | Source/Styles/EFQRCodeStyleFunction.swift:231-392 | Source/Styles/EFQRCodeStyleImage.swift:597-863 | Source/Styles/EFQRCodeStyleLine.swift:241-579 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 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 7 times.
Members sharing a duplicated core (7 members, 50+ identical tokens) Source/Styles/EFQRCodeStyleBasic.swift:320— Source/Styles/EFQRCodeStyleBasic.swift:320-462 | Source/Styles/EFQRCodeStyleBubble.swift:201-354 | Source/Styles/EFQRCodeStyleDSJ.swift:230-424 | Source/Styles/EFQRCodeStyleFunction.swift:231-392 | Source/Styles/EFQRCodeStyleImage.swift:597-863 | Source/Styles/EFQRCodeStyleLine.swift:241-579 | Source/Styles/EFQRCodeStyleResampleImage.swift:338-469 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 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 7 times.
D4 · Code Duplication· Edited copies of one member (3 members, 11+ corresponding lines) · ×2
Edited copies of one member (3 members, 11+ corresponding lines) Source/Styles/EFQRCodeStyle.swift:349— Source/Styles/EFQRCodeStyle.swift:349-359 | Source/Styles/EFQRCodeStyle25D.swift:317-328 | Source/Styles/EFQRCodeStyleResampleImage.swift:577-588 — 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.
Edited copies of one member (3 members, 11+ corresponding lines) Source/Styles/EFQRCodeStyle.swift:159— Source/Styles/EFQRCodeStyle.swift:159-171 | Source/Styles/EFQRCodeStyleImage.swift:388-398 | Source/Styles/EFQRCodeStyleResampleImage.swift:283-293 — 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 (16 corresponding lines) · ×2
Edited copy of a member (16 corresponding lines) Examples/iOS/AnimatedImage.swift:137— Examples/iOS/AnimatedImage.swift:137-152 | Source/Type/EFAnimatedImageFormat.swift:79-94 — 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) Examples/macOS/macOS Example/ViewController+Generator.swift:805— Examples/macOS/macOS Example/ViewController+Generator.swift:805-821 | Examples/macOS/macOS Example/ViewController+Generator.swift:823-838 — 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· Edited copy of a member (5 corresponding lines) · ×2
Edited copy of a member (5 corresponding lines) Source/EFQRCode+Generator.swift:779— Source/EFQRCode+Generator.swift:779-783 | Source/EFQRCode+Generator.swift:1178-1182 — 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) Examples/macOS/macOS Example/AppDelegate.swift:44— Examples/macOS/macOS Example/AppDelegate.swift:44-48 | Examples/macOS/macOS Example/ViewController.swift:231-235 — 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· Edited copies of one member (3 members, 13+ corresponding lines) · ×2
Edited copies of one member (3 members, 13+ corresponding lines) Source/Styles/EFQRCodeStyle.swift:183— Source/Styles/EFQRCodeStyle.swift:183-197 | Source/Styles/EFQRCodeStyleImage.swift:410-422 | Source/Styles/EFQRCodeStyleResampleImage.swift:304-316 — These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 13+ corresponding lines) Source/Styles/EFQRCodeStyleDSJ.swift:106— Source/Styles/EFQRCodeStyleDSJ.swift:106-118 | Source/Styles/EFQRCodeStyleFunction.swift:112-124 | Source/Styles/EFQRCodeStyleLine.swift:113-125 — These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (11 corresponding lines) · ×2
Edited copy of a member (11 corresponding lines) Source/Styles/EFQRCodeStyleResampleImage.swift:304— Source/Styles/EFQRCodeStyleResampleImage.swift:304-316 | Source/Styles/EFQRCodeStyleImageFill.swift:170-180 — 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) Examples/iOS/UIImage+Example.swift:113— Examples/iOS/UIImage+Example.swift:113-123 | Examples/iOS/UIImage+Example.swift:125-135 — 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.
Duplicated block (13 lines × 2) Source/Extension/CGImage+EFQRCode.swift:165— Source/Extension/CGImage+EFQRCode.swift:165-177 | Source/Extension/CGImage+EFQRCode.swift:200-212 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Source/Extension/CGImage+EFQRCode.swift:197` calls `resize` and `Source/Extension/CGImage+EFQRCode.swift:163` 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 (13 lines × 2) Source/Styles/EFQRCodeStyleLine.swift:507— Source/Styles/EFQRCodeStyleLine.swift:507-519 | Source/Styles/EFQRCodeStyleLine.swift:533-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 `Source/Styles/EFQRCodeStyleLine.swift:507` 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 (4–13 lines × 3) Source/Styles/EFQRCodeStyleLine.swift:350— Source/Styles/EFQRCodeStyleLine.swift:350-353 | Source/Styles/EFQRCodeStyleLine.swift:379-391 | Source/Styles/EFQRCodeStyleLine.swift:430-442 — 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 `Source/Styles/EFQRCodeStyleLine.swift:350` 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.
Duplicated block (4–13 lines × 3) Source/Styles/EFQRCodeStyleLine.swift:322— Source/Styles/EFQRCodeStyleLine.swift:322-325 | Source/Styles/EFQRCodeStyleLine.swift:401-413 | Source/Styles/EFQRCodeStyleLine.swift:452-464 — 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 `Source/Styles/EFQRCodeStyleLine.swift:322` 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.
Duplicated block (11 lines × 3) Source/Styles/EFQRCodeStyleLine.swift:328— Source/Styles/EFQRCodeStyleLine.swift:328-338 | Source/Styles/EFQRCodeStyleLine.swift:406-416 | Source/Styles/EFQRCodeStyleLine.swift:457-467 — 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 `Source/Styles/EFQRCodeStyleLine.swift:328` 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 (11 lines × 3) Source/Styles/EFQRCodeStyleLine.swift:356— Source/Styles/EFQRCodeStyleLine.swift:356-366 | Source/Styles/EFQRCodeStyleLine.swift:384-394 | Source/Styles/EFQRCodeStyleLine.swift:435-445 — 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 `Source/Styles/EFQRCodeStyleLine.swift:356` 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 (9 lines × 3) Source/Styles/EFQRCodeStyleBubble.swift:280— Source/Styles/EFQRCodeStyleBubble.swift:280-288 | Source/Styles/EFQRCodeStyleDSJ.swift:318-326 | Source/Styles/EFQRCodeStyleDSJ.swift:344-352 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBubble.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBubble.swift:280` 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 (9 lines × 3) Examples/iOS/Generator/BubbleGeneratorController.swift:777— Examples/iOS/Generator/BubbleGeneratorController.swift:777-785 | Examples/iOS/Generator/D25GeneratorController.swift:775-783 | Examples/iOS/Generator/FunctionGeneratorController.swift:806-814 — before extracting anything, compare `Examples/iOS/Generator/BubbleGeneratorController.swift` and `Examples/iOS/Generator/D25GeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) Source/Styles/EFQRCodeStyle.swift:351— Source/Styles/EFQRCodeStyle.swift:351-357 | Source/Styles/EFQRCodeStyleResampleImage.swift:580-586 — 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 `Source/Styles/EFQRCodeStyle.swift:351` 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 (7 lines × 2) Source/Styles/EFQRCodeStyle25D.swift:286— Source/Styles/EFQRCodeStyle25D.swift:286-292 | Source/Styles/EFQRCodeStyleResampleImage.swift:488-494 — 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 (3–6 lines × 5) Source/Styles/EFQRCodeStyleBasic.swift:366— Source/Styles/EFQRCodeStyleBasic.swift:366-368 | Source/Styles/EFQRCodeStyleBasic.swift:382-384 | Source/Styles/EFQRCodeStyleBasic.swift:454-459 | Source/Styles/EFQRCodeStyleImage.swift:832-834 | Source/Styles/EFQRCodeStyleImage.swift:848-854 — there are 5 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 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 `Source/Styles/EFQRCodeStyleBasic.swift:366` 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 (3–6 lines × 5) Source/Styles/EFQRCodeStyleBasic.swift:386— Source/Styles/EFQRCodeStyleBasic.swift:386-388 | Source/Styles/EFQRCodeStyleBubble.swift:224-229 | Source/Styles/EFQRCodeStyleDSJ.swift:266-268 | Source/Styles/EFQRCodeStyleFunction.swift:268-273 | Source/Styles/EFQRCodeStyleLine.swift:268-270 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBasic.swift:386` 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.
Duplicated block (5 lines × 2) Source/Styles/EFQRCodeStyle.swift:282— Source/Styles/EFQRCodeStyle.swift:282-286 | Source/Styles/EFQRCodeStyleResampleImage.swift:555-559 — 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 `Source/Styles/EFQRCodeStyle.swift:282` 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 (5 lines × 2) Source/Styles/EFQRCodeStyleResampleImage.swift:362— Source/Styles/EFQRCodeStyleResampleImage.swift:362-366 | Source/Styles/EFQRCodeStyleResampleImage.swift:380-384 — 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 `Source/Styles/EFQRCodeStyleResampleImage.swift: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.
D4 · Code Duplication· Edited copies of one member (3 members, 9+ corresponding lines) · ×2
Edited copies of one member (3 members, 9+ corresponding lines) Examples/iOS/Generator/BasicGeneratorController.swift:916— Examples/iOS/Generator/BasicGeneratorController.swift:916-924 | Examples/iOS/Generator/LineGeneratorController.swift:757-765 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1026-1034 — 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) Examples/iOS/Generator/DSJGeneratorController.swift:857— Examples/iOS/Generator/DSJGeneratorController.swift:857-865 | Examples/iOS/Generator/ImageFillGeneratorController.swift:797-805 | Examples/iOS/Generator/ImageGeneratorController.swift:1255-1274 — 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.
Duplicated block (42 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:507— Examples/iOS/Generator/BasicGeneratorController.swift:507-548 | Examples/iOS/Generator/BubbleGeneratorController.swift:349-390 | Examples/iOS/Generator/D25GeneratorController.swift:365-406 | Examples/iOS/Generator/DSJGeneratorController.swift:460-501 | Examples/iOS/Generator/FunctionGeneratorController.swift:399-440 | Examples/iOS/Generator/ImageFillGeneratorController.swift:376-417 | Examples/iOS/Generator/ImageGeneratorController.swift:426-467 | Examples/iOS/Generator/LineGeneratorController.swift:358-399 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:286-327 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:523-564 | Examples/tvOS/tvOS Example/GeneratorController.swift:378-419 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (42 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:1017— Examples/iOS/Generator/BasicGeneratorController.swift:1017-1058 | Examples/iOS/Generator/BubbleGeneratorController.swift:875-916 | Examples/iOS/Generator/D25GeneratorController.swift:873-914 | Examples/iOS/Generator/DSJGeneratorController.swift:957-998 | Examples/iOS/Generator/FunctionGeneratorController.swift:904-945 | Examples/iOS/Generator/ImageFillGeneratorController.swift:894-935 | Examples/iOS/Generator/ImageGeneratorController.swift:1381-1422 | Examples/iOS/Generator/LineGeneratorController.swift:849-890 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:739-780 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1129-1170 | Examples/tvOS/tvOS Example/GeneratorController.swift:799-840 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:166— Examples/iOS/Generator/BasicGeneratorController.swift:166-180 | Examples/iOS/Generator/BubbleGeneratorController.swift:159-173 | Examples/iOS/Generator/D25GeneratorController.swift:159-173 | Examples/iOS/Generator/DSJGeneratorController.swift:163-177 | Examples/iOS/Generator/FunctionGeneratorController.swift:160-174 | Examples/iOS/Generator/ImageFillGeneratorController.swift:165-179 | Examples/iOS/Generator/ImageGeneratorController.swift:185-199 | Examples/iOS/Generator/LineGeneratorController.swift:159-173 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:153-167 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:176-190 | Examples/tvOS/tvOS Example/GeneratorController.swift:195-209 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:166` 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 register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (15 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:1060— Examples/iOS/Generator/BasicGeneratorController.swift:1060-1074 | Examples/iOS/Generator/BubbleGeneratorController.swift:918-932 | Examples/iOS/Generator/D25GeneratorController.swift:916-930 | Examples/iOS/Generator/DSJGeneratorController.swift:1000-1014 | Examples/iOS/Generator/FunctionGeneratorController.swift:947-961 | Examples/iOS/Generator/ImageFillGeneratorController.swift:937-951 | Examples/iOS/Generator/ImageGeneratorController.swift:1424-1438 | Examples/iOS/Generator/LineGeneratorController.swift:892-906 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:782-796 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1172-1186 | Examples/tvOS/tvOS Example/GeneratorController.swift:842-856 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) Examples/iOS/Generator/DSJGeneratorController.swift:268— Examples/iOS/Generator/DSJGeneratorController.swift:268-275 | Examples/iOS/Generator/ImageGeneratorController.swift:512-519 | Examples/macOS/macOS Example/ViewController+Generator.swift:704-711 | Examples/tvOS/tvOS Example/GeneratorController.swift:464-471 — before extracting anything, compare `Examples/iOS/Generator/DSJGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 593 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) Examples/iOS/Generator/ImageFillGeneratorController.swift:471— Examples/iOS/Generator/ImageFillGeneratorController.swift:471-478 | Examples/iOS/Generator/ImageGeneratorController.swift:617-624 | Examples/macOS/macOS Example/ViewController+Generator.swift:722-729 | Examples/tvOS/tvOS Example/GeneratorController.swift:482-489 — before extracting anything, compare `Examples/iOS/Generator/ImageFillGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
EFQRCodeStyleLine.writeQRCode (cyclomatic 143) Source/Styles/EFQRCodeStyleLine.swift:241— EFQRCodeStyleLine.writeQRCode has cyclomatic complexity 143 (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.
EFQRCodeStyleDSJ.writeQRCode (cyclomatic 65) Source/Styles/EFQRCodeStyleDSJ.swift:230— EFQRCodeStyleDSJ.writeQRCode has cyclomatic complexity 65 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
EFQRCodeStyleImage.writeQRCode (cyclomatic 58) Source/Styles/EFQRCodeStyleImage.swift:597— EFQRCodeStyleImage.writeQRCode has cyclomatic complexity 58 (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.
EFQRCodeStyleBubble.writeQRCode (cyclomatic 47) Source/Styles/EFQRCodeStyleBubble.swift:201— EFQRCodeStyleBubble.writeQRCode has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CGImage.getGrayPointList (cyclomatic 35) Source/Styles/EFQRCodeStyleResampleImage.swift:739— CGImage.getGrayPointList has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
EFQRCodeStyleFunction.writeQRCode (cyclomatic 29) Source/Styles/EFQRCodeStyleFunction.swift:231— EFQRCodeStyleFunction.writeQRCode 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.
EFQRCodeStyleBasic.writeQRCode (cyclomatic 26) Source/Styles/EFQRCodeStyleBasic.swift:320— EFQRCodeStyleBasic.writeQRCode has cyclomatic complexity 26 (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.
EFQRCodeStyleResampleImage.writeQRCode (cyclomatic 22) Source/Styles/EFQRCodeStyleResampleImage.swift:338— EFQRCodeStyleResampleImage.writeQRCode 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.
Generator.reconcileFrameImages (cyclomatic 19) Source/EFQRCode+Generator.swift:855— Generator.reconcileFrameImages 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.
Generator.checkIfNeedResize (cyclomatic 18) Source/EFQRCode+Generator.swift:679— Generator.checkIfNeedResize has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body's own statements and 3 belong to one function item 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.
EFQRCodeStyleLine.writeQRCode (cognitive 459) Source/Styles/EFQRCodeStyleLine.swift:241— EFQRCodeStyleLine.writeQRCode has cognitive complexity 459 (threshold 15). Drivers by points: if/else 52 (238 pts), loops 24 (147 pts), boolean chains 66, match/switch 2 (8 pts) (nesting depth added 315). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EFQRCodeStyleDSJ.writeQRCode (cognitive 204) Source/Styles/EFQRCodeStyleDSJ.swift:230— EFQRCodeStyleDSJ.writeQRCode has cognitive complexity 204 (threshold 15). Drivers by points: if/else 21 (88 pts), loops 16 (87 pts), boolean chains 25, match/switch 1 (4 pts) (nesting depth added 141). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
EFQRCodeStyleBubble.writeQRCode (cognitive 139) Source/Styles/EFQRCodeStyleBubble.swift:201— EFQRCodeStyleBubble.writeQRCode has cognitive complexity 139 (threshold 15). Drivers by points: if/else 17 (70 pts), loops 10 (50 pts), boolean chains 15, match/switch 1 (4 pts) (nesting depth added 96). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EFQRCodeStyleImage.writeQRCode (cognitive 119) Source/Styles/EFQRCodeStyleImage.swift:597— EFQRCodeStyleImage.writeQRCode has cognitive complexity 119 (threshold 15). Drivers by points: if/else 20 (41 pts), match/switch 7 (36 pts), loops 6 (20 pts), ternaries 4 (16 pts), boolean chains 6 (nesting depth added 76). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EFQRCodeStyleFunction.writeQRCode (cognitive 81) Source/Styles/EFQRCodeStyleFunction.swift:231— EFQRCodeStyleFunction.writeQRCode has cognitive complexity 81 (threshold 15). Drivers by points: if/else 14 (46 pts), match/switch 5 (21 pts), loops 4 (13 pts), boolean chains 1 (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CGImage.getGrayPointList (cognitive 76) Source/Styles/EFQRCodeStyleResampleImage.swift:739— CGImage.getGrayPointList has cognitive complexity 76 (threshold 15). Drivers by points: if/else 17 (49 pts), loops 7 (15 pts), boolean chains 12 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Generator.reconcileFrameImages (cognitive 68) Source/EFQRCode+Generator.swift:855— Generator.reconcileFrameImages has cognitive complexity 68 (threshold 15). Drivers by points: if/else 24 (62 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EFQRCodeStyleResampleImage.writeQRCode (cognitive 51) Source/Styles/EFQRCodeStyleResampleImage.swift:338— EFQRCodeStyleResampleImage.writeQRCode has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 4 (13 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
EFQRCodeStyleBasic.writeQRCode (cognitive 38) Source/Styles/EFQRCodeStyleBasic.swift:320— EFQRCodeStyleBasic.writeQRCode has cognitive complexity 38 (threshold 15). Drivers by points: match/switch 4 (16 pts), loops 4 (13 pts), if/else 6 (8 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Generator.createVideoDataWith (cognitive 21) Source/EFQRCode+Generator.swift:1197— Generator.createVideoDataWith has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Generator.checkIfNeedResize (cognitive 18) Source/EFQRCode+Generator.swift:679— Generator.checkIfNeedResize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, match/switch 2 (nesting depth added 2). Of this number, 15 points are the body's own statements and 3 belong to one function item 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, 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.
Generator.reconcileQRImages (cognitive 16) Source/EFQRCode+Generator.swift:799— Generator.reconcileQRImages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), ternaries 2 (6 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileTooLong: Source/EFQRCode+Generator.swift Source/EFQRCode+Generator.swift— FileTooLong — 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
Near-duplicate member pair (40 shared lines) Source/Styles/EFQRCodeStyle25D.swift:269— Source/Styles/EFQRCodeStyle25D.swift:269-315 | Source/Styles/EFQRCodeStyleResampleImage.swift:471-517 — These two members are variants of one another: 40 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· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (9 members, 50+ identical tokens) Source/Styles/EFQRCodeStyle25D.swift:330— Source/Styles/EFQRCodeStyle25D.swift:330-337 | Source/Styles/EFQRCodeStyleBasic.swift:472-479 | Source/Styles/EFQRCodeStyleBubble.swift:364-371 | Source/Styles/EFQRCodeStyleDSJ.swift:434-441 | Source/Styles/EFQRCodeStyleFunction.swift:402-409 | Source/Styles/EFQRCodeStyleImage.swift:893-900 | Source/Styles/EFQRCodeStyleImageFill.swift:271-278 | Source/Styles/EFQRCodeStyleLine.swift:589-596 | Source/Styles/EFQRCodeStyleRandomRectangle.swift:233-240 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 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 9 times.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×1
Edited copy of a member (19 corresponding lines) Source/Styles/EFQRCodeStyleImage.swift:138— Source/Styles/EFQRCodeStyleImage.swift:138-156 | Source/Styles/EFQRCodeStyleResampleImage.swift:130-148 — 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 copies of one member (3 members, 3+ corresponding lines) · ×1
Edited copies of one member (3 members, 3+ corresponding lines) Source/Styles/EFQRCodeStyleImage.swift:924— Source/Styles/EFQRCodeStyleImage.swift:924-926 | Source/Styles/EFQRCodeStyleImageFill.swift:289-291 | Source/Styles/EFQRCodeStyleResampleImage.swift:685-687 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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, 3+ corresponding lines) · ×1
Edited copies of one member (8 members, 3+ corresponding lines) Source/Styles/EFQRCodeStyleBasic.swift:464— Source/Styles/EFQRCodeStyleBasic.swift:464-466 | Source/Styles/EFQRCodeStyleBubble.swift:356-358 | Source/Styles/EFQRCodeStyleDSJ.swift:426-428 | Source/Styles/EFQRCodeStyleFunction.swift:394-396 | Source/Styles/EFQRCodeStyleImage.swift:872-874 | Source/Styles/EFQRCodeStyleImageFill.swift:263-265 | Source/Styles/EFQRCodeStyleLine.swift:581-583 | Source/Styles/EFQRCodeStyleRandomRectangle.swift:214-216 — These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 3 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 (7 members, 3+ corresponding lines) · ×1
Edited copies of one member (7 members, 3+ corresponding lines) Source/Styles/EFQRCodeStyle25D.swift:347— Source/Styles/EFQRCodeStyle25D.swift:347-349 | Source/Styles/EFQRCodeStyleBasic.swift:489-491 | Source/Styles/EFQRCodeStyleBubble.swift:381-383 | Source/Styles/EFQRCodeStyleDSJ.swift:451-453 | Source/Styles/EFQRCodeStyleFunction.swift:419-421 | Source/Styles/EFQRCodeStyleLine.swift:606-608 | Source/Styles/EFQRCodeStyleRandomRectangle.swift:270-272 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 3 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 7 times and the copies will drift further apart.
Duplicated block (17–18 lines × 3) Source/EFQRCode+Generator.swift:894— Source/EFQRCode+Generator.swift:894-910 | Source/EFQRCode+Generator.swift:913-929 | Source/EFQRCode+Generator.swift:931-948 — 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 `Source/EFQRCode+Generator.swift:931` 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 (13–15 lines × 2) Source/Styles/EFQRCodeStyle25D.swift:269— Source/Styles/EFQRCodeStyle25D.swift:269-283 | Source/Styles/EFQRCodeStyleResampleImage.swift:471-483 — 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 `Source/Styles/EFQRCodeStyle25D.swift:269` 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.
Duplicated block (16 lines × 6) Source/Styles/EFQRCodeStyleBasic.swift:386— Source/Styles/EFQRCodeStyleBasic.swift:386-401 | Source/Styles/EFQRCodeStyleBubble.swift:228-243 | Source/Styles/EFQRCodeStyleDSJ.swift:266-281 | Source/Styles/EFQRCodeStyleFunction.swift:272-287 | Source/Styles/EFQRCodeStyleImage.swift:767-782 | Source/Styles/EFQRCodeStyleLine.swift:268-283 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBasic.swift:386` 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 (14 lines × 2) Source/Styles/EFQRCodeStyleLine.swift:480— Source/Styles/EFQRCodeStyleLine.swift:480-493 | Source/Styles/EFQRCodeStyleLine.swift:551-564 — 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 `Source/Styles/EFQRCodeStyleLine.swift:480` 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 (2–8 lines × 19) Source/Styles/EFQRCodeStyleBasic.swift:423— Source/Styles/EFQRCodeStyleBasic.swift:423-424 | Source/Styles/EFQRCodeStyleBasic.swift:425-426 | Source/Styles/EFQRCodeStyleBasic.swift:430-437 | Source/Styles/EFQRCodeStyleBubble.swift:265-266 | Source/Styles/EFQRCodeStyleBubble.swift:267-268 | Source/Styles/EFQRCodeStyleBubble.swift:272-279 | Source/Styles/EFQRCodeStyleDSJ.swift:303-304 | Source/Styles/EFQRCodeStyleDSJ.swift:305-306 | Source/Styles/EFQRCodeStyleDSJ.swift:310-317 | Source/Styles/EFQRCodeStyleFunction.swift:309-310 | Source/Styles/EFQRCodeStyleFunction.swift:311-312 | Source/Styles/EFQRCodeStyleFunction.swift:316-323 | Source/Styles/EFQRCodeStyleImage.swift:804-805 | Source/Styles/EFQRCodeStyleImage.swift:806-807 | Source/Styles/EFQRCodeStyleImage.swift:811-818 | Source/Styles/EFQRCodeStyleLine.swift:305-306 | Source/Styles/EFQRCodeStyleLine.swift:307-308 | Source/Styles/EFQRCodeStyleLine.swift:312-319 | Source/Styles/EFQRCodeStyleResampleImage.swift:446-447 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBasic.swift:430` 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. 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 (13 lines × 3) Source/Styles/EFQRCodeStyle.swift:234— Source/Styles/EFQRCodeStyle.swift:234-246 | Source/Styles/EFQRCodeStyle25D.swift:296-308 | Source/Styles/EFQRCodeStyleResampleImage.swift:498-510 — 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 `Source/Styles/EFQRCodeStyle.swift:234` 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 (2–7 lines × 8) Source/Styles/EFQRCodeStyle25D.swift:245— Source/Styles/EFQRCodeStyle25D.swift:245-246 | Source/Styles/EFQRCodeStyle25D.swift:254-255 | Source/Styles/EFQRCodeStyleBasic.swift:416-422 | Source/Styles/EFQRCodeStyleBubble.swift:258-264 | Source/Styles/EFQRCodeStyleDSJ.swift:296-302 | Source/Styles/EFQRCodeStyleFunction.swift:302-308 | Source/Styles/EFQRCodeStyleImage.swift:797-803 | Source/Styles/EFQRCodeStyleLine.swift:298-304 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBasic.swift:416` 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 (2–7 lines × 5) Source/Styles/EFQRCodeStyleBasic.swift:363— Source/Styles/EFQRCodeStyleBasic.swift:363-364 | Source/Styles/EFQRCodeStyleBasic.swift:379-380 | Source/Styles/EFQRCodeStyleBasic.swift:451-452 | Source/Styles/EFQRCodeStyleImage.swift:823-829 | Source/Styles/EFQRCodeStyleImage.swift:839-845 — there are 5 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 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 `Source/Styles/EFQRCodeStyleBasic.swift:363` 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. 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 (3–6 lines × 4) Source/Styles/EFQRCodeStyleBasic.swift:357— Source/Styles/EFQRCodeStyleBasic.swift:357-362 | Source/Styles/EFQRCodeStyleBasic.swift:373-378 | Source/Styles/EFQRCodeStyleBasic.swift:441-446 | Source/Styles/EFQRCodeStyleFunction.swift:336-338 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleFunction.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (8–10 lines × 3) Source/Styles/EFQRCodeStyleBubble.swift:217— Source/Styles/EFQRCodeStyleBubble.swift:217-226 | Source/Styles/EFQRCodeStyleDSJ.swift:253-262 | Source/Styles/EFQRCodeStyleLine.swift:257-264 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBubble.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleBubble.swift:217` 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 (3–5 lines × 7) Source/Styles/EFQRCodeStyleLine.swift:340— Source/Styles/EFQRCodeStyleLine.swift:340-344 | Source/Styles/EFQRCodeStyleLine.swift:368-372 | Source/Styles/EFQRCodeStyleLine.swift:418-422 | Source/Styles/EFQRCodeStyleLine.swift:469-471 | Source/Styles/EFQRCodeStyleLine.swift:474-476 | Source/Styles/EFQRCodeStyleLine.swift:497-500 | Source/Styles/EFQRCodeStyleLine.swift:523-526 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `Source/Styles/EFQRCodeStyleLine.swift:340` 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. 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 (55 lines × 2) Source/Extension/BinaryFloatingPoint+EFQRCode.swift:67— Source/Extension/BinaryFloatingPoint+EFQRCode.swift:67-121 | Source/Extension/BinaryInteger+EFQRCode.swift:67-121 — 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 (7 lines × 7) Source/Styles/EFQRCodeStyle25D.swift:339— Source/Styles/EFQRCodeStyle25D.swift:339-345 | Source/Styles/EFQRCodeStyleBasic.swift:481-487 | Source/Styles/EFQRCodeStyleBubble.swift:373-379 | Source/Styles/EFQRCodeStyleDSJ.swift:443-449 | Source/Styles/EFQRCodeStyleFunction.swift:411-417 | Source/Styles/EFQRCodeStyleLine.swift:598-604 | Source/Styles/EFQRCodeStyleRandomRectangle.swift:258-264 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleBubble.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) Source/Styles/EFQRCodeStyleBasic.swift:156— Source/Styles/EFQRCodeStyleBasic.swift:156-164 | Source/Styles/EFQRCodeStyleBasic.swift:191-199 | Source/Styles/EFQRCodeStyleDSJ.swift:139-147 | Source/Styles/EFQRCodeStyleFunction.swift:145-153 | Source/Styles/EFQRCodeStyleLine.swift:146-154 | Source/Styles/EFQRCodeStyleResampleImage.swift:253-261 — before extracting anything, compare `Source/Styles/EFQRCodeStyleBasic.swift` and `Source/Styles/EFQRCodeStyleDSJ.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `color` to `CGColor = EFStyleBasicParamsAlign.defaultColor` in one and `CGColor = EFStyleBasicParamsTiming.defaultColor` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Source/Styles/EFQRCodeStyleBasic.swift:176` calls `createWith` and `Source/Styles/EFQRCodeStyleFunction.swift:159` 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 (10 lines × 2) Source/Styles/EFQRCodeStyleDSJ.swift:86— Source/Styles/EFQRCodeStyleDSJ.swift:86-95 | Source/Styles/EFQRCodeStyleFunction.swift:92-101 — before extracting anything, compare `Source/Styles/EFQRCodeStyleDSJ.swift` and `Source/Styles/EFQRCodeStyleFunction.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Near-duplicate member family (11 members, 39 shared lines) · ×1
Near-duplicate member family (11 members, 39 shared lines) Examples/iOS/Generator/BasicGeneratorController.swift:818— Examples/iOS/Generator/BasicGeneratorController.swift:818-905 | Examples/iOS/Generator/BubbleGeneratorController.swift:689-766 | Examples/iOS/Generator/D25GeneratorController.swift:687-764 | Examples/iOS/Generator/DSJGeneratorController.swift:763-846 | Examples/iOS/Generator/FunctionGeneratorController.swift:716-795 | Examples/iOS/Generator/ImageFillGeneratorController.swift:700-786 | Examples/iOS/Generator/ImageGeneratorController.swift:1126-1244 | Examples/iOS/Generator/LineGeneratorController.swift:671-746 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:569-636 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:912-1015 | Examples/tvOS/tvOS Example/GeneratorController.swift:605-682 — These 11 members are variants of one another: a block of 39 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 11 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 11 times.
D4 · Code Duplication· Near-duplicate member family (11 members, 38 shared lines) · ×1
Near-duplicate member family (11 members, 38 shared lines) Examples/iOS/Generator/BasicGeneratorController.swift:166— Examples/iOS/Generator/BasicGeneratorController.swift:166-258 | Examples/iOS/Generator/BubbleGeneratorController.swift:159-238 | Examples/iOS/Generator/D25GeneratorController.swift:159-236 | Examples/iOS/Generator/DSJGeneratorController.swift:163-247 | Examples/iOS/Generator/FunctionGeneratorController.swift:160-241 | Examples/iOS/Generator/ImageFillGeneratorController.swift:165-247 | Examples/iOS/Generator/ImageGeneratorController.swift:185-293 | Examples/iOS/Generator/LineGeneratorController.swift:159-241 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:153-226 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:176-274 | Examples/tvOS/tvOS Example/GeneratorController.swift:195-267 — These 11 members are variants of one another: a block of 38 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 11 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 11 times.
D4 · Code Duplication· Near-duplicate member family (11 members, 25 shared lines) · ×1
Near-duplicate member family (11 members, 25 shared lines) Examples/iOS/Generator/BasicGeneratorController.swift:967— Examples/iOS/Generator/BasicGeneratorController.swift:967-1013 | Examples/iOS/Generator/BubbleGeneratorController.swift:825-871 | Examples/iOS/Generator/D25GeneratorController.swift:823-869 | Examples/iOS/Generator/DSJGeneratorController.swift:908-953 | Examples/iOS/Generator/FunctionGeneratorController.swift:854-900 | Examples/iOS/Generator/ImageFillGeneratorController.swift:842-890 | Examples/iOS/Generator/ImageGeneratorController.swift:1329-1377 | Examples/iOS/Generator/LineGeneratorController.swift:799-845 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:689-735 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1077-1125 | Examples/tvOS/tvOS Example/GeneratorController.swift:735-795 — These 11 members are variants of one another: a block of 25 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 11 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 11 times.
D4 · Code Duplication· Members sharing a duplicated core (57 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (57 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:306— Examples/iOS/Generator/BasicGeneratorController.swift:306-334 | Examples/iOS/Generator/BasicGeneratorController.swift:354-382 | Examples/iOS/Generator/BasicGeneratorController.swift:411-439 | Examples/iOS/Generator/BasicGeneratorController.swift:468-496 | Examples/iOS/Generator/BasicGeneratorController.swift:568-596 | Examples/iOS/Generator/BasicGeneratorController.swift:617-645 | Examples/iOS/Generator/BubbleGeneratorController.swift:259-287 | Examples/iOS/Generator/BubbleGeneratorController.swift:289-317 | Examples/iOS/Generator/BubbleGeneratorController.swift:319-347 | Examples/iOS/Generator/BubbleGeneratorController.swift:392-420 | Examples/iOS/Generator/BubbleGeneratorController.swift:504-532 | Examples/iOS/Generator/D25GeneratorController.swift:257-285 | Examples/iOS/Generator/D25GeneratorController.swift:287-315 | Examples/iOS/Generator/D25GeneratorController.swift:317-345 | Examples/iOS/Generator/D25GeneratorController.swift:426-454 | Examples/iOS/Generator/D25GeneratorController.swift:502-530 | Examples/iOS/Generator/DSJGeneratorController.swift:286-314 | Examples/iOS/Generator/DSJGeneratorController.swift:325-353 | Examples/iOS/Generator/DSJGeneratorController.swift:364-392 | Examples/iOS/Generator/DSJGeneratorController.swift:421-449 | Examples/iOS/Generator/DSJGeneratorController.swift:521-549 | Examples/iOS/Generator/DSJGeneratorController.swift:570-598 | Examples/iOS/Generator/FunctionGeneratorController.swift:262-290 | Examples/iOS/Generator/FunctionGeneratorController.swift:312-340 | Examples/iOS/Generator/FunctionGeneratorController.swift:360-388 | Examples/iOS/Generator/FunctionGeneratorController.swift:460-488 | Examples/iOS/Generator/FunctionGeneratorController.swift:527-555 | Examples/iOS/Generator/ImageFillGeneratorController.swift:268-296 | Examples/iOS/Generator/ImageFillGeneratorController.swift:298-326 | Examples/iOS/Generator/ImageFillGeneratorController.swift:328-356 | Examples/iOS/Generator/ImageFillGeneratorController.swift:517-545 | Examples/iOS/Generator/ImageGeneratorController.swift:348-376 | Examples/iOS/Generator/ImageGeneratorController.swift:387-415 | Examples/iOS/Generator/ImageGeneratorController.swift:539-567 | Examples/iOS/Generator/ImageGeneratorController.swift:578-606 | Examples/iOS/Generator/ImageGeneratorController.swift:662-690 | Examples/iOS/Generator/ImageGeneratorController.swift:701-729 | Examples/iOS/Generator/ImageGeneratorController.swift:758-786 | Examples/iOS/Generator/ImageGeneratorController.swift:797-825 | Examples/iOS/Generator/ImageGeneratorController.swift:854-882 | Examples/iOS/Generator/ImageGeneratorController.swift:903-931 | Examples/iOS/Generator/LineGeneratorController.swift:271-299 | Examples/iOS/Generator/LineGeneratorController.swift:319-347 | Examples/iOS/Generator/LineGeneratorController.swift:437-465 | Examples/iOS/Generator/LineGeneratorController.swift:486-514 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:247-275 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:347-375 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:396-424 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:295-323 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:352-380 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:409-437 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:475-503 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:566-594 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:703-731 | Examples/tvOS/tvOS Example/GeneratorController.swift:288-316 | Examples/tvOS/tvOS Example/GeneratorController.swift:318-346 | Examples/tvOS/tvOS Example/GeneratorController.swift:348-376 — These 57 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 57 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 57 times.
D4 · Code Duplication· Members sharing a duplicated core (25 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (25 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:507— Examples/iOS/Generator/BasicGeneratorController.swift:507-548 | Examples/iOS/Generator/BasicGeneratorController.swift:656-697 | Examples/iOS/Generator/BubbleGeneratorController.swift:349-390 | Examples/iOS/Generator/BubbleGeneratorController.swift:543-584 | Examples/iOS/Generator/D25GeneratorController.swift:365-406 | Examples/iOS/Generator/D25GeneratorController.swift:541-582 | Examples/iOS/Generator/DSJGeneratorController.swift:460-501 | Examples/iOS/Generator/DSJGeneratorController.swift:609-650 | Examples/iOS/Generator/FunctionGeneratorController.swift:399-440 | Examples/iOS/Generator/FunctionGeneratorController.swift:566-607 | Examples/iOS/Generator/ImageFillGeneratorController.swift:376-417 | Examples/iOS/Generator/ImageFillGeneratorController.swift:419-460 | Examples/iOS/Generator/ImageFillGeneratorController.swift:556-597 | Examples/iOS/Generator/ImageGeneratorController.swift:426-467 | Examples/iOS/Generator/ImageGeneratorController.swift:469-510 | Examples/iOS/Generator/ImageGeneratorController.swift:942-983 | Examples/iOS/Generator/LineGeneratorController.swift:358-399 | Examples/iOS/Generator/LineGeneratorController.swift:525-566 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:286-327 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:435-476 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:523-564 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:605-646 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:742-783 | Examples/tvOS/tvOS Example/GeneratorController.swift:378-419 | Examples/tvOS/tvOS Example/GeneratorController.swift:421-462 — These 25 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 25 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 25 times.
D4 · Code Duplication· Members sharing a duplicated core (12 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (12 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:143— Examples/iOS/Generator/BasicGeneratorController.swift:143-159 | Examples/iOS/Generator/BubbleGeneratorController.swift:136-152 | Examples/iOS/Generator/D25GeneratorController.swift:136-152 | Examples/iOS/Generator/DSJGeneratorController.swift:140-156 | Examples/iOS/Generator/FunctionGeneratorController.swift:137-153 | Examples/iOS/Generator/ImageFillGeneratorController.swift:142-158 | Examples/iOS/Generator/ImageGeneratorController.swift:162-178 | Examples/iOS/Generator/LineGeneratorController.swift:136-152 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:130-146 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:153-169 | Examples/iOS/RecognizerController.swift:108-124 | Examples/tvOS/tvOS Example/GeneratorController.swift:172-188 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 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 12 times.
D4 · Code Duplication· Members sharing a duplicated core (10 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (10 members, 50+ identical tokens) Examples/iOS/Generator/BasicGeneratorController.swift:717— Examples/iOS/Generator/BasicGeneratorController.swift:717-728 | Examples/iOS/Generator/BubbleGeneratorController.swift:604-615 | Examples/iOS/Generator/D25GeneratorController.swift:602-613 | Examples/iOS/Generator/DSJGeneratorController.swift:670-681 | Examples/iOS/Generator/FunctionGeneratorController.swift:627-638 | Examples/iOS/Generator/ImageFillGeneratorController.swift:617-628 | Examples/iOS/Generator/ImageGeneratorController.swift:1003-1014 | Examples/iOS/Generator/LineGeneratorController.swift:586-597 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:496-507 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:803-814 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 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 10 times.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×1
Edited copy of a member (22 corresponding lines) Examples/iOS/StyleViewController.swift:160— Examples/iOS/StyleViewController.swift:160-182 | Examples/iOS/StyleViewController.swift:184-205 — 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 (38 corresponding lines) · ×1
Edited copy of a member (38 corresponding lines) Examples/iOS/Generator/ImageGeneratorController.swift:1060— Examples/iOS/Generator/ImageGeneratorController.swift:1060-1104 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:853-890 — 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 copies of one member (3 members, 26+ corresponding lines) · ×1
Edited copies of one member (3 members, 26+ corresponding lines) Examples/iOS/Generator/BasicGeneratorController.swift:763— Examples/iOS/Generator/BasicGeneratorController.swift:763-796 | Examples/iOS/Generator/FunctionGeneratorController.swift:667-694 | Examples/iOS/Generator/LineGeneratorController.swift:624-649 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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 (6 members, 23+ corresponding lines) · ×1
Edited copies of one member (6 members, 23+ corresponding lines) Examples/iOS/Generator/BasicGeneratorController.swift:931— Examples/iOS/Generator/BasicGeneratorController.swift:931-956 | Examples/iOS/Generator/BubbleGeneratorController.swift:792-814 | Examples/iOS/Generator/D25GeneratorController.swift:790-812 | Examples/iOS/Generator/DSJGeneratorController.swift:872-897 | Examples/iOS/Generator/FunctionGeneratorController.swift:821-843 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1041-1066 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 23 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 6 times and the copies will drift further apart.
Duplicated block (68 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:73— Examples/iOS/Generator/BasicGeneratorController.swift:73-140 | Examples/iOS/Generator/BubbleGeneratorController.swift:66-133 | Examples/iOS/Generator/D25GeneratorController.swift:66-133 | Examples/iOS/Generator/DSJGeneratorController.swift:70-137 | Examples/iOS/Generator/FunctionGeneratorController.swift:67-134 | Examples/iOS/Generator/ImageFillGeneratorController.swift:72-139 | Examples/iOS/Generator/ImageGeneratorController.swift:92-159 | Examples/iOS/Generator/LineGeneratorController.swift:66-133 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:60-127 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:83-150 | Examples/tvOS/tvOS Example/GeneratorController.swift:102-169 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:73` 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 (42 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:656— Examples/iOS/Generator/BasicGeneratorController.swift:656-697 | Examples/iOS/Generator/BubbleGeneratorController.swift:543-584 | Examples/iOS/Generator/D25GeneratorController.swift:541-582 | Examples/iOS/Generator/DSJGeneratorController.swift:609-650 | Examples/iOS/Generator/FunctionGeneratorController.swift:566-607 | Examples/iOS/Generator/ImageFillGeneratorController.swift:556-597 | Examples/iOS/Generator/ImageGeneratorController.swift:942-983 | Examples/iOS/Generator/LineGeneratorController.swift:525-566 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:435-476 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:742-783 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (37 lines × 2) Examples/macOS/macOS Example/ViewController+Generator.swift:235— Examples/macOS/macOS Example/ViewController+Generator.swift:235-271 | Examples/tvOS/tvOS Example/GeneratorController.swift:211-247 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/macOS/macOS Example/ViewController+Generator.swift:235` 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 (42 lines × 4) Examples/iOS/Generator/ImageFillGeneratorController.swift:419— Examples/iOS/Generator/ImageFillGeneratorController.swift:419-460 | Examples/iOS/Generator/ImageGeneratorController.swift:469-510 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:605-646 | Examples/tvOS/tvOS Example/GeneratorController.swift:421-462 — before extracting anything, compare `Examples/iOS/Generator/ImageFillGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23–27 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:236— Examples/iOS/Generator/BasicGeneratorController.swift:236-258 | Examples/iOS/Generator/BubbleGeneratorController.swift:216-238 | Examples/iOS/Generator/D25GeneratorController.swift:214-236 | Examples/iOS/Generator/DSJGeneratorController.swift:225-247 | Examples/iOS/Generator/FunctionGeneratorController.swift:219-241 | Examples/iOS/Generator/ImageFillGeneratorController.swift:225-247 | Examples/iOS/Generator/ImageGeneratorController.swift:267-293 | Examples/iOS/Generator/LineGeneratorController.swift:219-241 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:204-226 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:252-274 | Examples/tvOS/tvOS Example/GeneratorController.swift:245-267 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:236` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Examples/iOS/Generator/ImageFillGeneratorController.swift:223` calls `withAlphaComponent` and `Examples/iOS/Generator/RandomRectangleGeneratorController.swift:202` 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 (26 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:849— Examples/iOS/Generator/BasicGeneratorController.swift:849-874 | Examples/iOS/Generator/BubbleGeneratorController.swift:712-737 | Examples/iOS/Generator/D25GeneratorController.swift:710-735 | Examples/iOS/Generator/DSJGeneratorController.swift:790-815 | Examples/iOS/Generator/FunctionGeneratorController.swift:741-766 | Examples/iOS/Generator/ImageFillGeneratorController.swift:722-747 | Examples/iOS/Generator/ImageGeneratorController.swift:1168-1193 | Examples/iOS/Generator/LineGeneratorController.swift:694-719 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:586-611 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:947-972 | Examples/tvOS/tvOS Example/GeneratorController.swift:622-647 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:849` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Examples/iOS/Generator/RandomRectangleGeneratorController.swift:612` calls `withAlphaComponent` and `Examples/iOS/Generator/ImageFillGeneratorController.swift:748` 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 (22–24 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:183— Examples/iOS/Generator/BasicGeneratorController.swift:183-206 | Examples/iOS/Generator/BubbleGeneratorController.swift:176-199 | Examples/iOS/Generator/D25GeneratorController.swift:176-199 | Examples/iOS/Generator/DSJGeneratorController.swift:180-203 | Examples/iOS/Generator/FunctionGeneratorController.swift:177-200 | Examples/iOS/Generator/ImageFillGeneratorController.swift:191-212 | Examples/iOS/Generator/ImageGeneratorController.swift:211-232 | Examples/iOS/Generator/LineGeneratorController.swift:176-199 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:170-193 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:202-223 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:183` 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 (23 lines × 3) Examples/iOS/Generator/ImageFillGeneratorController.swift:868— Examples/iOS/Generator/ImageFillGeneratorController.swift:868-890 | Examples/iOS/Generator/ImageGeneratorController.swift:1355-1377 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1103-1125 — before extracting anything, compare `Examples/iOS/Generator/ImageFillGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/ImageFillGeneratorController.swift:868` 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 (21 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:969— Examples/iOS/Generator/BasicGeneratorController.swift:969-989 | Examples/iOS/Generator/BubbleGeneratorController.swift:827-847 | Examples/iOS/Generator/D25GeneratorController.swift:825-845 | Examples/iOS/Generator/DSJGeneratorController.swift:909-929 | Examples/iOS/Generator/FunctionGeneratorController.swift:856-876 | Examples/iOS/Generator/ImageFillGeneratorController.swift:844-864 | Examples/iOS/Generator/ImageGeneratorController.swift:1331-1351 | Examples/iOS/Generator/LineGeneratorController.swift:801-821 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:691-711 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1079-1099 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:969` 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 (21 lines × 9) Examples/iOS/Generator/BasicGeneratorController.swift:885— Examples/iOS/Generator/BasicGeneratorController.swift:885-905 | Examples/iOS/Generator/BubbleGeneratorController.swift:746-766 | Examples/iOS/Generator/D25GeneratorController.swift:744-764 | Examples/iOS/Generator/DSJGeneratorController.swift:826-846 | Examples/iOS/Generator/FunctionGeneratorController.swift:775-795 | Examples/iOS/Generator/ImageGeneratorController.swift:1224-1244 | Examples/iOS/Generator/LineGeneratorController.swift:726-746 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:616-636 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:995-1015 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:885` 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 (21 lines × 7) Examples/iOS/Generator/BasicGeneratorController.swift:993— Examples/iOS/Generator/BasicGeneratorController.swift:993-1013 | Examples/iOS/Generator/BubbleGeneratorController.swift:851-871 | Examples/iOS/Generator/D25GeneratorController.swift:849-869 | Examples/iOS/Generator/DSJGeneratorController.swift:933-953 | Examples/iOS/Generator/FunctionGeneratorController.swift:880-900 | Examples/iOS/Generator/LineGeneratorController.swift:825-845 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:715-735 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:993` 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 (19 lines × 57) Examples/iOS/Generator/BasicGeneratorController.swift:309— Examples/iOS/Generator/BasicGeneratorController.swift:309-327 | Examples/iOS/Generator/BasicGeneratorController.swift:357-375 | Examples/iOS/Generator/BasicGeneratorController.swift:414-432 | Examples/iOS/Generator/BasicGeneratorController.swift:471-489 | Examples/iOS/Generator/BasicGeneratorController.swift:571-589 | Examples/iOS/Generator/BasicGeneratorController.swift:620-638 | Examples/iOS/Generator/BubbleGeneratorController.swift:262-280 | Examples/iOS/Generator/BubbleGeneratorController.swift:292-310 | Examples/iOS/Generator/BubbleGeneratorController.swift:322-340 | Examples/iOS/Generator/BubbleGeneratorController.swift:395-413 | Examples/iOS/Generator/BubbleGeneratorController.swift:507-525 | Examples/iOS/Generator/D25GeneratorController.swift:260-278 | Examples/iOS/Generator/D25GeneratorController.swift:290-308 | Examples/iOS/Generator/D25GeneratorController.swift:320-338 | Examples/iOS/Generator/D25GeneratorController.swift:429-447 | Examples/iOS/Generator/D25GeneratorController.swift:505-523 | Examples/iOS/Generator/DSJGeneratorController.swift:289-307 | Examples/iOS/Generator/DSJGeneratorController.swift:328-346 | Examples/iOS/Generator/DSJGeneratorController.swift:367-385 | Examples/iOS/Generator/DSJGeneratorController.swift:424-442 | Examples/iOS/Generator/DSJGeneratorController.swift:524-542 | Examples/iOS/Generator/DSJGeneratorController.swift:573-591 | Examples/iOS/Generator/FunctionGeneratorController.swift:265-283 | Examples/iOS/Generator/FunctionGeneratorController.swift:315-333 | Examples/iOS/Generator/FunctionGeneratorController.swift:363-381 | Examples/iOS/Generator/FunctionGeneratorController.swift:463-481 | Examples/iOS/Generator/FunctionGeneratorController.swift:530-548 | Examples/iOS/Generator/ImageFillGeneratorController.swift:271-289 | Examples/iOS/Generator/ImageFillGeneratorController.swift:301-319 | Examples/iOS/Generator/ImageFillGeneratorController.swift:331-349 | Examples/iOS/Generator/ImageFillGeneratorController.swift:520-538 | Examples/iOS/Generator/ImageGeneratorController.swift:351-369 | Examples/iOS/Generator/ImageGeneratorController.swift:390-408 | Examples/iOS/Generator/ImageGeneratorController.swift:542-560 | Examples/iOS/Generator/ImageGeneratorController.swift:581-599 | Examples/iOS/Generator/ImageGeneratorController.swift:665-683 | Examples/iOS/Generator/ImageGeneratorController.swift:704-722 | Examples/iOS/Generator/ImageGeneratorController.swift:761-779 | Examples/iOS/Generator/ImageGeneratorController.swift:800-818 | Examples/iOS/Generator/ImageGeneratorController.swift:857-875 | Examples/iOS/Generator/ImageGeneratorController.swift:906-924 | Examples/iOS/Generator/LineGeneratorController.swift:274-292 | Examples/iOS/Generator/LineGeneratorController.swift:322-340 | Examples/iOS/Generator/LineGeneratorController.swift:440-458 | Examples/iOS/Generator/LineGeneratorController.swift:489-507 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:250-268 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:350-368 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:399-417 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:298-316 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:355-373 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:412-430 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:478-496 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:569-587 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:706-724 | Examples/tvOS/tvOS Example/GeneratorController.swift:291-309 | Examples/tvOS/tvOS Example/GeneratorController.swift:321-339 | Examples/tvOS/tvOS Example/GeneratorController.swift:351-369 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:309` 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 (18 lines × 2) Examples/iOS/StyleViewController.swift:51— Examples/iOS/StyleViewController.swift:51-68 | Examples/iOS/ViewController.swift:73-90 — before extracting anything, compare `Examples/iOS/StyleViewController.swift` and `Examples/iOS/ViewController.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/StyleViewController.swift:51` 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 (17 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:143— Examples/iOS/Generator/BasicGeneratorController.swift:143-159 | Examples/iOS/Generator/BubbleGeneratorController.swift:136-152 | Examples/iOS/Generator/D25GeneratorController.swift:136-152 | Examples/iOS/Generator/DSJGeneratorController.swift:140-156 | Examples/iOS/Generator/FunctionGeneratorController.swift:137-153 | Examples/iOS/Generator/ImageFillGeneratorController.swift:142-158 | Examples/iOS/Generator/ImageGeneratorController.swift:162-178 | Examples/iOS/Generator/LineGeneratorController.swift:136-152 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:130-146 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:153-169 | Examples/tvOS/tvOS Example/GeneratorController.swift:172-188 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:143` 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 (17 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:170— Examples/iOS/Generator/BasicGeneratorController.swift:170-186 | Examples/iOS/Generator/BubbleGeneratorController.swift:163-179 | Examples/iOS/Generator/D25GeneratorController.swift:163-179 | Examples/iOS/Generator/DSJGeneratorController.swift:167-183 | Examples/iOS/Generator/FunctionGeneratorController.swift:164-180 | Examples/iOS/Generator/ImageFillGeneratorController.swift:169-185 | Examples/iOS/Generator/ImageGeneratorController.swift:189-205 | Examples/iOS/Generator/LineGeneratorController.swift:163-179 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:157-173 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:180-196 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (16 lines × 3) Examples/iOS/Generator/ImageFillGeneratorController.swift:55— Examples/iOS/Generator/ImageFillGeneratorController.swift:55-70 | Examples/iOS/Generator/ImageGeneratorController.swift:75-90 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:66-81 — before extracting anything, compare `Examples/iOS/Generator/ImageFillGeneratorController.swift` and `Examples/iOS/Generator/ImageGeneratorController.swift` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:882— Examples/iOS/Generator/BasicGeneratorController.swift:882-894 | Examples/iOS/Generator/BubbleGeneratorController.swift:743-755 | Examples/iOS/Generator/D25GeneratorController.swift:741-753 | Examples/iOS/Generator/DSJGeneratorController.swift:823-835 | Examples/iOS/Generator/FunctionGeneratorController.swift:772-784 | Examples/iOS/Generator/ImageFillGeneratorController.swift:763-775 | Examples/iOS/Generator/ImageGeneratorController.swift:1221-1233 | Examples/iOS/Generator/LineGeneratorController.swift:723-735 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:613-625 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:992-1004 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:882` 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 (12 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:882— Examples/iOS/Generator/BasicGeneratorController.swift:882-893 | Examples/iOS/Generator/BubbleGeneratorController.swift:743-754 | Examples/iOS/Generator/D25GeneratorController.swift:741-752 | Examples/iOS/Generator/DSJGeneratorController.swift:823-834 | Examples/iOS/Generator/FunctionGeneratorController.swift:772-783 | Examples/iOS/Generator/ImageFillGeneratorController.swift:763-774 | Examples/iOS/Generator/ImageGeneratorController.swift:1221-1232 | Examples/iOS/Generator/LineGeneratorController.swift:723-734 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:613-624 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:992-1003 | Examples/tvOS/tvOS Example/GeneratorController.swift:665-676 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:882` 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 × 14) Examples/iOS/Generator/BasicGeneratorController.swift:884— Examples/iOS/Generator/BasicGeneratorController.swift:884-894 | Examples/iOS/Generator/BubbleGeneratorController.swift:745-755 | Examples/iOS/Generator/D25GeneratorController.swift:743-753 | Examples/iOS/Generator/DSJGeneratorController.swift:825-835 | Examples/iOS/Generator/FunctionGeneratorController.swift:774-784 | Examples/iOS/Generator/ImageFillGeneratorController.swift:749-759 | Examples/iOS/Generator/ImageFillGeneratorController.swift:765-775 | Examples/iOS/Generator/ImageGeneratorController.swift:1195-1205 | Examples/iOS/Generator/ImageGeneratorController.swift:1223-1233 | Examples/iOS/Generator/LineGeneratorController.swift:725-735 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:615-625 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:974-984 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:994-1004 | Examples/tvOS/tvOS Example/GeneratorController.swift:649-659 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:884` 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 (10 lines × 25) Examples/iOS/Generator/BasicGeneratorController.swift:510— Examples/iOS/Generator/BasicGeneratorController.swift:510-519 | Examples/iOS/Generator/BasicGeneratorController.swift:659-668 | Examples/iOS/Generator/BubbleGeneratorController.swift:352-361 | Examples/iOS/Generator/BubbleGeneratorController.swift:546-555 | Examples/iOS/Generator/D25GeneratorController.swift:368-377 | Examples/iOS/Generator/D25GeneratorController.swift:544-553 | Examples/iOS/Generator/DSJGeneratorController.swift:463-472 | Examples/iOS/Generator/DSJGeneratorController.swift:612-621 | Examples/iOS/Generator/FunctionGeneratorController.swift:402-411 | Examples/iOS/Generator/FunctionGeneratorController.swift:569-578 | Examples/iOS/Generator/ImageFillGeneratorController.swift:379-388 | Examples/iOS/Generator/ImageFillGeneratorController.swift:422-431 | Examples/iOS/Generator/ImageFillGeneratorController.swift:559-568 | Examples/iOS/Generator/ImageGeneratorController.swift:429-438 | Examples/iOS/Generator/ImageGeneratorController.swift:472-481 | Examples/iOS/Generator/ImageGeneratorController.swift:945-954 | Examples/iOS/Generator/LineGeneratorController.swift:361-370 | Examples/iOS/Generator/LineGeneratorController.swift:528-537 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:289-298 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:438-447 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:526-535 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:608-617 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:745-754 | Examples/tvOS/tvOS Example/GeneratorController.swift:381-390 | Examples/tvOS/tvOS Example/GeneratorController.swift:424-433 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:510` 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 (9–10 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:967— Examples/iOS/Generator/BasicGeneratorController.swift:967-976 | Examples/iOS/Generator/BubbleGeneratorController.swift:825-834 | Examples/iOS/Generator/D25GeneratorController.swift:823-832 | Examples/iOS/Generator/DSJGeneratorController.swift:908-916 | Examples/iOS/Generator/FunctionGeneratorController.swift:854-863 | Examples/iOS/Generator/ImageFillGeneratorController.swift:842-851 | Examples/iOS/Generator/ImageGeneratorController.swift:1329-1338 | Examples/iOS/Generator/LineGeneratorController.swift:799-808 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:689-698 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1077-1086 | Examples/tvOS/tvOS Example/GeneratorController.swift:735-744 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:967` 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 (12 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:717— Examples/iOS/Generator/BasicGeneratorController.swift:717-728 | Examples/iOS/Generator/BubbleGeneratorController.swift:604-615 | Examples/iOS/Generator/D25GeneratorController.swift:602-613 | Examples/iOS/Generator/DSJGeneratorController.swift:670-681 | Examples/iOS/Generator/FunctionGeneratorController.swift:627-638 | Examples/iOS/Generator/ImageFillGeneratorController.swift:617-628 | Examples/iOS/Generator/ImageGeneratorController.swift:1003-1014 | Examples/iOS/Generator/LineGeneratorController.swift:586-597 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:496-507 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:803-814 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 14) Examples/iOS/Generator/BasicGeneratorController.swift:679— Examples/iOS/Generator/BasicGeneratorController.swift:679-687 | Examples/iOS/Generator/BubbleGeneratorController.swift:566-574 | Examples/iOS/Generator/D25GeneratorController.swift:564-572 | Examples/iOS/Generator/DSJGeneratorController.swift:632-640 | Examples/iOS/Generator/FunctionGeneratorController.swift:589-597 | Examples/iOS/Generator/ImageFillGeneratorController.swift:442-450 | Examples/iOS/Generator/ImageFillGeneratorController.swift:579-587 | Examples/iOS/Generator/ImageGeneratorController.swift:492-500 | Examples/iOS/Generator/ImageGeneratorController.swift:965-973 | Examples/iOS/Generator/LineGeneratorController.swift:548-556 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:458-466 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:628-636 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:765-773 | Examples/tvOS/tvOS Example/GeneratorController.swift:444-452 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:679` 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 (9–16 lines × 12) Examples/iOS/Generator/BasicGeneratorController.swift:985— Examples/iOS/Generator/BasicGeneratorController.swift:985-1000 | Examples/iOS/Generator/BubbleGeneratorController.swift:843-858 | Examples/iOS/Generator/D25GeneratorController.swift:841-856 | Examples/iOS/Generator/DSJGeneratorController.swift:925-940 | Examples/iOS/Generator/FunctionGeneratorController.swift:872-887 | Examples/iOS/Generator/ImageFillGeneratorController.swift:860-875 | Examples/iOS/Generator/ImageGeneratorController.swift:1347-1362 | Examples/iOS/Generator/LineGeneratorController.swift:817-832 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:707-722 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:1095-1110 | Examples/tvOS/tvOS Example/GeneratorController.swift:754-762 | Examples/tvOS/tvOS Example/GeneratorController.swift:775-783 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BasicGeneratorController.swift:985` 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. 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 (9 lines × 4) Examples/iOS/Generator/BubbleGeneratorController.swift:698— Examples/iOS/Generator/BubbleGeneratorController.swift:698-706 | Examples/iOS/Generator/DSJGeneratorController.swift:776-784 | Examples/iOS/Generator/FunctionGeneratorController.swift:727-735 | Examples/iOS/Generator/LineGeneratorController.swift:680-688 — before extracting anything, compare `Examples/iOS/Generator/BubbleGeneratorController.swift` and `Examples/iOS/Generator/DSJGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 624 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Examples/iOS/Generator/BubbleGeneratorController.swift:698` 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 (9 lines × 10) Examples/iOS/Generator/BasicGeneratorController.swift:63— Examples/iOS/Generator/BasicGeneratorController.swift:63-71 | Examples/iOS/Generator/BubbleGeneratorController.swift:56-64 | Examples/iOS/Generator/D25GeneratorController.swift:56-64 | Examples/iOS/Generator/DSJGeneratorController.swift:60-68 | Examples/iOS/Generator/FunctionGeneratorController.swift:57-65 | Examples/iOS/Generator/LineGeneratorController.swift:56-64 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:50-58 | Examples/iOS/RecognizerController.swift:39-47 | Examples/iOS/StyleViewController.swift:40-48 | Examples/tvOS/tvOS Example/GeneratorController.swift:92-100 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 11) Examples/iOS/Generator/BasicGeneratorController.swift:261— Examples/iOS/Generator/BasicGeneratorController.swift:261-268 | Examples/iOS/Generator/BubbleGeneratorController.swift:241-248 | Examples/iOS/Generator/D25GeneratorController.swift:239-246 | Examples/iOS/Generator/DSJGeneratorController.swift:250-257 | Examples/iOS/Generator/FunctionGeneratorController.swift:244-251 | Examples/iOS/Generator/ImageFillGeneratorController.swift:250-257 | Examples/iOS/Generator/ImageGeneratorController.swift:330-337 | Examples/iOS/Generator/LineGeneratorController.swift:244-251 | Examples/iOS/Generator/RandomRectangleGeneratorController.swift:229-236 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:277-284 | Examples/tvOS/tvOS Example/GeneratorController.swift:270-277 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 7) Examples/iOS/Generator/BasicGeneratorController.swift:297— Examples/iOS/Generator/BasicGeneratorController.swift:297-304 | Examples/iOS/Generator/BubbleGeneratorController.swift:458-465 | Examples/iOS/Generator/FunctionGeneratorController.swift:292-299 | Examples/iOS/Generator/LineGeneratorController.swift:410-417 | Examples/iOS/Generator/ResampleImageGeneratorController.swift:325-332 | Examples/macOS/macOS Example/ViewController+Generator.swift:758-765 | Examples/tvOS/tvOS Example/GeneratorController.swift:518-525 — before extracting anything, compare `Examples/iOS/Generator/BasicGeneratorController.swift` and `Examples/iOS/Generator/BubbleGeneratorController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) Examples/iOS/Generator/RandomRectangleGeneratorController.swift:662— Examples/iOS/Generator/RandomRectangleGeneratorController.swift:662-678 | Examples/tvOS/tvOS Example/GeneratorController.swift:708-724 — before extracting anything, compare `Examples/iOS/Generator/RandomRectangleGeneratorController.swift` and `Examples/tvOS/tvOS Example/GeneratorController.swift` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Orphaned file Source/Styles/EFQRCodeStyleLine.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyleBasic.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyleDSJ.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyle.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyleFunction.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyleBubble.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyle25D.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyleImageFill.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Styles/EFQRCodeStyleRandomRectangle.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/CGImage+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Type/EFImageMode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/CGColor+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/EFQRCode+Recognizer.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/CIImage+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Type/EFQRCodeError.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Type/EFVideoFormat.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Type/EFEdgeInsets.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/BinaryFloatingPoint+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/String+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/BinaryInteger+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Type/EFCorrectionLevel.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Type/EFAnimatedImageFormat.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/UIImage+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/Extension/NSImage+EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Source/EFQRCode.swift:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
+ 3 more in this group — see findings.md.
D34 · Knowledge Freshness· Most significant orphaned file · ×3
Most significant orphaned file Source/EFQRCode+Generator.swift:1— One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
Most significant orphaned file Source/Styles/EFQRCodeStyleResampleImage.swift:1— One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
Most significant orphaned file Source/Styles/EFQRCodeStyleImage.swift:1— One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
Duplicated predicate Source/Styles/EFQRCodeStyleBubble.swift:280— `available[x][y] && ava2[x][y] && x < nCount - 2 && y < nCount - 2` appears character-identically in 2 files — Source/Styles/EFQRCodeStyleBubble.swift, Source/Styles/EFQRCodeStyleDSJ.swift. 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 Source/Styles/EFQRCodeStyleDSJ.swift:391— `x == 0 || (x > 0 && (!qrcode.model.isDark(x - 1, y) || !ava2[x - 1][y]))` appears character-identically in 2 files — Source/Styles/EFQRCodeStyleDSJ.swift, Source/Styles/EFQRCodeStyleLine.swift. 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 Source/Styles/EFQRCodeStyleDSJ.swift:367— `y == 0 || (y > 0 && (!qrcode.model.isDark(x, y - 1) || !ava2[x][y - 1]))` appears character-identically in 2 files — Source/Styles/EFQRCodeStyleDSJ.swift, Source/Styles/EFQRCodeStyleLine.swift. 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.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 13 significant file(s) lose their only recent owner: Source/EFQRCode+Generator.swift, Source/Styles/EFQRCodeStyleResampleImage.swift, Source/Styles/EFQRCodeStyleImage.swift, Source/Styles/EFQRCodeStyleLine.swift, Source/Styles/EFQRCodeStyleBasic.swift, Source/Styles/EFQRCodeStyle.swift, Source/Styles/EFQRCodeStyleFunction.swift, Source/Styles/EFQRCodeStyleBubble.swift (+5 more). Pair on, review, or document these before any departure.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
Dormant codebase — 31 of 31 significant files have no living knowledge — the codebase as a whole is dormant, not 31 separate risks. Counted over 31 of the 32 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation· No architecture diagram/doc · ×1
No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
No SAST REDACTED:7— No static application security testing detected. For this repository's stack, add CodeQL's Swift pack (Swift/Xcode) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 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.
Outdated: snapkit — `snapkit` is resolved at 5.6.0, but 5.7.1 is the newest release tagged on https://github.com/SnapKit/SnapKit.git within the same major. SwiftPM resolves from git tags, and a `from:` requirement admits every release below the next major — so `swift package update snapkit` reaches this one with no change to Package.swift.
Outdated: swiftdraw — `swiftdraw` is resolved at 0.22.0, but 0.29.0 is the newest release tagged on https://github.com/swhitty/SwiftDraw.git within the same major. SwiftPM resolves from git tags, and a `from:` requirement admits every release below the next major — so `swift package update swiftdraw` reaches this one with no change to Package.swift.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a1dc13-00c6-7d77-98d8-06a115c1ea18 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 16 · Warnings: 208 · Recommendations: 41 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 14-11-2026 @ 21:59 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.