Public report of MasterJ93/ATProtoKit, published 17 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, 17 November 2026, 03:49 UTC · Survey ID cd_06d8f2e88682495b851667bb991c0f0f
MasterJ93/ATProtoKit
Measured 17 November 2026, 03:48 UTC, at code version 8ad3b61
First survey, so nothing to compare with yet
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A medium codebase: 57,897 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 0.4 person-years · Weakest lens: Production Readiness, 49.4
Findings by how serious they are
6 critical281 serious18 minor
28 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
17 November 2026, 03:48 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 ▸
36of 36 dimensions measured by tools.
291of 305 findings point to an exact file and line, so you can open each one in the code. The other 14 concern the repository as a whole, such as missing documentation.
36dimensions across 6 lenses, read from 57,897 lines of product code in 1 project.
MasterJ93/ATProtoKit falls short of our standard for a preview release because we found no automated security scanning of the code, its secrets or its dependencies. It scores 59.4 out of 100 and is rated Adequate, and all six of its critical findings are security problems.
Production Readiness, at 49.4, is the weakest lens and counts most in the score. The best first step is fixing the password or key in the code, worth about 7.3 points. Recording design decisions comes next, worth about 6.3 points. Raising Production Readiness to 62 would lift the score to about 63.7.
Five pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. One password or key is open to anyone who can read the repository. Replacing the exposed password or key and pinning each tool to an exact version would close both risks.
The product code is 57,897 lines, about €63,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.
If Production Readiness rose from 49.4 to 62, the lowest score rated Strong, the score would rise from 59.4 to about 63.7.
Code composition: what the lines of code are
Product code 98%Tests 2%
Rebuild cost: about €63,000 · Estimate
Cost to rebuild
€21,000 to €110,000, for 349 to 1,107 hours of work, about 0.4 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 59. 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: 57,897 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 Leaked secret finding(s) in Secret Scanning — start with REDACTED.
Raises the score by about 7.3 points · Low effort · Secret Scanning
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.
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.
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 €63,000 to build again, about 0.4 person-years of work. Its weakest lens is Production Readiness, at 49.4 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 1 Leaked secret finding(s) in Secret Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 7.3 points for low effort, because it clears the 1 Secret Scanning findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
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
6
High / Critical
A03:2025 — Software Supply Chain Failures
5
Medium
A07:2025 — Authentication Failures
1
High / Critical
Roadmap
Top priorities: Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with REDACTED; 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 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.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with REDACTED.
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 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.
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
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.
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 — 6
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 — 281
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 — 18
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 28
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 36 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 36 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, 291 of 305 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.
D4 Code Duplication — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 162 duplicated block group(s) on this row were found in the languages this pass could tokenize, and they do NOT cover all of this repository's production source: .swift (57,897 lines, 100% of production source) went unread, because no language model this pass could load exposed a clone-unit token stream for those file kinds. Duplication in that source is UNMEASURED — its absence from the count above is a gap in this analyzer's language coverage, not a finding that the code is free of duplication.
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 (ATProtoKit), 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.
D16 Bus Factor — 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. Single-maintainer repository — bus factor is not applicable (20 contributor(s) across 2321 commit(s) sampled, automation and bot accounts excluded). One of them holds 93% of the history; the other 19 hold 0.4% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
D21 Naming 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. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
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 per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): 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.
D26 Project Cohesion — 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. `(repository root)` (57897 LoC, 190 module-visible types across 45 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetSessionMethod.swift`, `Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift`, `Sources/ATProtoKit/Utilities/APIClientService.swift`, `Sources/ATProtoKit/Utilities/ATFacetParser.swift`, `Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift`, … (+1 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
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.
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, Scala, Rust and Java source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Java was found, and this repository's 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.
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, Scala and Rust source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby, Scala or Rust was found, and this repository's 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.
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.
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, Kotlin and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin 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.
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, Kotlin, Rust and Java source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin, Rust or Java 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, Dart, F# and Elixir source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Ruby, Python, Go, Rust, Dart, F# or Elixir 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, Kotlin and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala, Kotlin 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.
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, Kotlin and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin 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.
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, PHP and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala, PHP 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.
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# and Visual Basic syntax, and Java, TypeScript/JavaScript, Python, Dart, Ruby, Scala, Kotlin, PHP, F# and Visual Basic source only, and no C# was loaded, and this repository's 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, PHP and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin, PHP 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.
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, Ruby and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart, Ruby 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.
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, Ruby and Erlang source only, and no C# was loaded and no Scala, JavaScript, TypeScript, Java, Kotlin, Python, PHP, Go, Rust, Dart, Ruby or Erlang 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, Kotlin source, and Rust source only, and no C# was loaded, no TypeScript was found, and this repository's 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.
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 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
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.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
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.
+ 7 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 12 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with ATProtoAdmin.queryStatuses (cyclomatic 45), ATProtoBluesky.createPostRecord (cyclomatic 37), ATProtoKit.searchPostsV2 (cyclomatic 35). — 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 12 together lifts Cyclomatic Complexity from 7.9 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
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.
+ 8 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 13 bodies over 15 down to 15 or less in Cognitive Complexity — start with ATProtoBluesky.updateProfileRecord (cognitive 58), ATProtoBluesky.createPostRecord (cognitive 56), ATProtoAdmin.queryStatuses (cognitive 44). — 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 13 together lifts Cognitive Complexity from 7.5 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D4 · Code Duplication4.7 / 10Weak✓ Tool-verified
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
162 duplicated block group(s) detected. 13.2 % of the production lines (7,656 of 57,897) are in a reported copy. A further 68 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. Measured on part of this repository only: .swift (100% of production source) was not exposed to the token comparison, so duplication there is unmeasured and is not in this count.
Edited copy of a member (15 corresponding lines) · ×4Sources/ATProtoKit/Utilities/ATFacetParser.swift:652
+ 172 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 7 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with CreateFollowRecord.swift, AddMemberAsAdmin.swift, CreateCommunicationTemplateAsAdmin.swift. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 5 Duplicated block (22 lines × 2) finding(s) in Code Duplication — start with CreatePostgateRecord.swift, CreateCommunicationTemplateAsAdmin.swift, QueryModerationEventsAsAdmin.swift. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 5 Duplicated block (14 lines × 2) finding(s) in Code Duplication — start with CreateListRecord.swift, EmitEventAsAdmin.swift, ToolsOzoneQueueGetAssignmentsMethod.swift. — One of this dimension's main actionable groups (5 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
D10 · Test Quality9.6 / 10Stronggated by 1 serious finding✓ 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.
0 skipped, 1 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 36 tests.
No assertions: concreteConfigurationsExposeFocusedCapabilitiesTests/ATProtoKitTests/OAuth/OAuthIntegrationHookTests.swift:238
What to do
Resolve the 1 No assertions finding(s) in Test Quality — start with OAuthIntegrationHookTests.swift. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
2 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: swift-docc-plugin · ×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: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 3 SwiftPM package(s) use a banned license. SwiftPM has no package registry, so each package's licence is the one its repository declares: 3 of them read from the licence file the repository carries at the revision Package.resolved pins, and 0 — unpinned, or whose licence file could not be read or named — from api.deps.dev, which reports the licence the repository declares today. Graded: every package a committed Package.resolved pins, direct and transitive, and every declared dependency none pins.
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: 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.
10 deducted task-comment markers across 57897 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.
Resolve the 10 TodoComment finding(s) in Explicit Debt — start with SessionCapabilities.swift (3), ATCBORManager.swift, ATIdentityProtocol.swift. — One of this dimension's main actionable groups (10 warning-level).
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D27 · Navigability8.7 / 10Strong✓ Tool-verified
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.
0 % of calls cross a namespace and 25 % go through an interface, but 100 % of collaborators are co-located — so following a call takes several hops. 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: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
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).
6 finding(s): 0 critical, 5 high, 1 medium, 0 low. 5 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.
REDACTED
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
No action in Static Analysis (SAST) — all 5 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 (5 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.
5 of 332 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.swift. Counted over 332 of the 665 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 4 Change coupling finding(s) in Change Coupling — start with AppBskyActorSearchActorsMethod.swift, CreateLikeRecord.swift, CreatePostgateRecord.swift. — One of this dimension's main actionable groups (4 warning-level).
Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with CreateBlockRecord.swift. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. 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.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
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.
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.
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.
Do you agree with this assessment?
P2 · Observability7.0 / 10Strong✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
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 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
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.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
What to do
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×7) — Sources/ATProtoKit/ATProtoKit.swift:70, Sources/ATProtoKit/Utilities/ATProtoTools.swift:66, Sources/ATProtoKit/Utilities/ATProtoTools.swift:85, …
What to do
Swallowed exception (caught, then discarded)
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.
P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
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.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 76 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
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
C1 Data Protection — 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
D16 Bus Factor — single-maintainer repository — bus factor is not applicable
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 — D21 withholds its case and prefix conventions rows: 1 candidate(s) found and not reported.
D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go 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 — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D3 God Classes — Most of this repository's production source (.swift) was not read by god-class detection, so class size was not assessed for the languages that are the product — whatever else this pass did read is not this repository's class size. Not scored — this is a gap in the analyzer, not a verdict about this repository.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 6 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
D5 Coupling — Not applicable — this 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, Scala, Rust and Java, 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 2 current-state document(s) make no claim of a kind M4 checks.
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 — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage 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.
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 applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
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. 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
X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X27 Collection changed while being enumerated — 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 — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Swift was read, and it logs through none: `print` and `NSLog` take one finished line, and os's `Logger` keeps each interpolated value as its own argument, so an assembled message there loses nothing the API could have kept (as with log4net in C#). Calls through swift-log (`import Logging`) and `os_log` calls would be judged.
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.
TodoComment Sources/ATProtoKit/Utilities/ATCBORManager.swift:152— // TODO: Add error handling. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/Utilities/ATIdentityProtocol.swift:8— // TODO: Create article on resolving identities with ATIdentityProtocol. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:64— // TODO: Move date format decode/encode methods to KeyedDecodingContainer — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/Models/Lexicons/app.bsky/Feed/AppBskyFeedDefs.swift:1223— // TODO: Make sure this is correct. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:411— // TODO: Replace with a better error. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:524— // TODO: Create a better error. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:600— // TODO: Create a better error. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoImportRepoMethod.swift:15— // TODO: Find out more information about what needs to be added to "Content-Length's HTTP header. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorExportAccountDataMethod.swift:37— // TODO: Figure out what exactly should be done here. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:14— // TODO: Consider com.atproto.repo.applyWrites for atomic post and gate creation. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Duplicated block (9 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:33— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:33-41 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:32-40 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:33` 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 (9 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:37— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:37-45 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:39-47 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:37` 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) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:44— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:44-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:48-57 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 110 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:44` 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) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:38— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:38-46 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportUnassignModeratorMethod.swift:30-38 — 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:38` 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) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:29— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftUpdateDraftMethod.swift:33-42 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftUpdateDraftMethod.swift:33` 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) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:33— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:33-41 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:39-48 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:39` 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) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:30— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:30-38 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityUpdateHandleMethod.swift:30-38 — 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.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/ATProtoKit.swift:70— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/Utilities/ATProtoTools.swift:66— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/Utilities/ATProtoTools.swift:85— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/Utilities/ATProtoTools.swift:364— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:441— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:643— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:898— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Duplicated block (22 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:115— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:115-136 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:99-120 — 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 `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:115` 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, `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:97` calls `Date` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:113` 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 (22 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:66-87 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 110 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59` 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 (22 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:135— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:135-156 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:269-290 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:135` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:157` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:291` 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 (22 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:58-79 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52` 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 (22 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65-86 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:65-86 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65` 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 (14 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:99— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:99-112 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:81-94 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 (14 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationCancelScheduledActionsMethod.swift:46-59 — 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62` 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 (14 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:42-55 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:56` calls `prefix` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:57` 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 (14 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:33— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:33-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDescribeServerMethod.swift:30-43 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:33` 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 (14 lines × 2) Sources/ATProtoKit/Utilities/ATProtoTools.swift:55— Sources/ATProtoKit/Utilities/ATProtoTools.swift:55-68 | Sources/ATProtoKit/Utilities/ATProtoTools.swift:74-87 — 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 `Sources/ATProtoKit/Utilities/ATProtoTools.swift:55` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:34— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:34-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:37-47 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift` as WHOLE FILES: this scan already matched 4 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:34` 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 (11 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:31— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:31-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:40-50 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:31` 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) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:42— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:42-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:32-42 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:42` 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) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:36— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:36-46 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:40-50 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:36` 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 (11 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:47— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:47-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:46-56 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:47` 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.
Change coupling: AppBskyActorSearchActorsMethod.swift ↔ AppBskyActorSearchActorsTypeaheadMethod.swift Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:1— `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift` change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `e28a811d` Update lexicon methods due to rework (at that commit the files were still `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActors.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift`); `40b3d7b6` Update lexicon methods due to rework (at that commit the files were still `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActors.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift`); `d2f4472f` Add more auth-optional methods, tweak all auth-optional methods (at that commit the files were still `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActors.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift`) — run `git show` on any of them.
Change coupling: CreateLikeRecord.swift ↔ CreatePostRecord.swift Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:1— `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift` change together 63% of the time (17 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are `87b5de37` Add sleep timer to remaining record creation methods; `e324a0ff` Update ATProtoBluesky methods; `0ed7335f` Add do-catch blocks to ATProtoBluesky — run `git show` on any of them.
Change coupling: CreatePostgateRecord.swift ↔ CreateThreadgateRecord.swift Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:1— `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift` change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `48ba6ba9` Fix broken links in documentation; `87b5de37` Add sleep timer to remaining record creation methods; `e324a0ff` Update ATProtoBluesky methods — run `git show` on any of them.
Change coupling: AppBskyActorGetProfilesMethod.swift ↔ AppBskyActorSearchActorsTypeaheadMethod.swift Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:1— `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift` change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `a020d3c4` Remove pdsURL check in lexicon methods; `b1a67451` Begin to remove shouldAuthenticate (at that commit the files were still `Sources/ATProtoKit/APIReference/AppBskyAPI/GetProfiles.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift`); `d2f4472f` Add more auth-optional methods, tweak all auth-optional methods (at that commit the files were still `Sources/ATProtoKit/APIReference/AppBskyAPI/GetProfiles.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift`) — run `git show` on any of them.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×4
Edited copy of a member (15 corresponding lines) Sources/ATProtoKit/Utilities/ATFacetParser.swift:652— Sources/ATProtoKit/Utilities/ATFacetParser.swift:652-668 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:679-693 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Sources/ATProtoKit/Utilities/ATProtoTools.swift:259— Sources/ATProtoKit/Utilities/ATProtoTools.swift:259-273 | Sources/ATProtoKit/Utilities/ATProtoTools.swift:376-393 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Sources/ATProtoKit/Utilities/ATCBORManager.swift:138— Sources/ATProtoKit/Utilities/ATCBORManager.swift:138-157 | Sources/ATProtoKit/Utilities/ATCBORManager.swift:164-178 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:196— Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:196-210 | Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:218-237 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (17 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:48— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:48-64 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift:48-64 — 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.
Duplicated block (17 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:49— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:43-59 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:49` 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 (17 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:41— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:41-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetUploadLimitsMethod.swift:39-55 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:41` 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 × 2) Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:515— Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:515-531 | Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:591-607 — 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 `Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:515` 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 × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:132— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:132-141 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:50-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:53-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:47-55 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:47` 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 × 5) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:43— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:43-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:50-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:42-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:40-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:40-48 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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 × 5) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:32— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:32-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:44-52 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:40-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:36-44 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:41-49 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 × 5) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:40— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:40-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDeactivateAccountMethod.swift:34-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRevokeAppPasswordMethod.swift:29-37 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:39-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:37-46 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:40` 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 (16 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactVerifyPhoneMethod.swift:46-61 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47` 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 (16 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesV2Method.swift:60— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesV2Method.swift:60-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:51-66 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesV2Method.swift:60` 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 (16 lines × 2) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:40-55 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift` and `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38` 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 (9 lines × 4) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:86— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:86-94 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:29-37 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:63-71 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:28-36 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:86` 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, `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:76` calls `Array`, `prefix` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:100` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 4) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:30— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactRemoveDataMethod.swift:27-35 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:34-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:33-41 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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 × 4) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesMethod.swift:29— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:30-38 — 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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication· Near-duplicate member family (7 members, 28 shared lines) · ×2
Near-duplicate member family (7 members, 28 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:41-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:36-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:34-80 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:31-84 — These 7 members are variants of one another: a block of 28 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 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.
Near-duplicate member family (7 members, 28 shared lines) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:31— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:31-72 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:30-71 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:26-67 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:27-69 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:31-84 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:32-82 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:32-72 — These 7 members are variants of one another: a block of 28 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 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· Members sharing a duplicated core (31 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (31 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:34— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:34-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:38-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:39-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:37-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationCancelScheduledActionsMethod.swift:31-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:30-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:37-81 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:32-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:33-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:33-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:38-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:35-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:32-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportUnassignModeratorMethod.swift:28-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:34-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:31-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:38-88 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:33-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:35-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:32-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:40-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:35-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:35-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:30-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:33-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactVerifyPhoneMethod.swift:34-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:37-80 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:33-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:41-86 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:39-86 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateAppPasswordMethod.swift:35-73 — These 31 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 31 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 31 times.
Members sharing a duplicated core (31 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:33— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:33-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactRemoveDataMethod.swift:26-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:33-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:32-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:28-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftUpdateDraftMethod.swift:30-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorListMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorMethod.swift:28-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteThreadMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorListMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorMethod.swift:28-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:33-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:33-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:29-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:31-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:29-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityUpdateHandleMethod.swift:29-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:32-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:35-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoImportRepoMethod.swift:34-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:37-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDeactivateAccountMethod.swift:33-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRevokeAppPasswordMethod.swift:28-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:35-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempAddReservedHandleMethod.swift:31-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRevokeAccountCredentialsMethod.swift:29-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:33-70 — These 31 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 31 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 31 times.
D4 · Code Duplication· Members sharing a duplicated core (11 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (11 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:23— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:23-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:31-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteValuesAsAdmin.swift:30-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:33-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:36-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:30-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:24-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:34-64 — 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) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:26— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:26-61 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:33-74 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:28-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:26-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoMuteConvoMethod.swift:26-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:33-74 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageBatchMethod.swift:28-64 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:30-68 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUnmuteConvoMethod.swift:26-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:26-63 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:28-66 — 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· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (4 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:55— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:55-97 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:67-164 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:336-590 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:59-123 — These 4 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 4 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 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211— Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211-217 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:250-257 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:291-298 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:329-335 — These 4 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 4 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 4 times.
D4 · Code Duplication· Edited copy of a member (38 corresponding lines) · ×2
Edited copy of a member (38 corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateInviteCodeMethod.swift:34— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateInviteCodeMethod.swift:34-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateInviteCodesMethod.swift:30-67 — 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.
Edited copy of a member (38 corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:29— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:29-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:30-69 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×2
Edited copy of a member (26 corresponding lines) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:606— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:606-631 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:646-673 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (26 corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestPasswordResetMethod.swift:30— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestPasswordResetMethod.swift:30-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncRequestCrawlMethod.swift:30-61 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 34+ corresponding lines) · ×2
Edited copies of one member (4 members, 34+ corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftCreateDraftMethod.swift:31— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftCreateDraftMethod.swift:31-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSendInteractionsMethod.swift:34-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutActivitySubscriptionMethod.swift:32-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:35-74 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 34+ corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:29— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:29-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:30-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:30-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckSignupQueueMethod.swift:33-66 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 29+ corresponding lines) · ×2
Edited copies of one member (3 members, 29+ corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:29— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:29-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:28-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationGetPreferencesMethod.swift:29-58 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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, 29+ corresponding lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteSetAsAdmin.swift:29— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteSetAsAdmin.swift:29-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertSetAsAdmin.swift:30-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailUpdateMethod.swift:28-56 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (7 corresponding lines) · ×2
Edited copy of a member (7 corresponding lines) Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:74— Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:74-80 | Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:89-97 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:110— Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:110-116 | Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:128-136 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (20 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:47— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:47-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:50-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:44-63 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift` as WHOLE FILES: this scan already matched 4 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:47` 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 (20 lines × 3) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:50— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:50-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:55-74 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:51-70 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:50` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15–18 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:53— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:53-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetSuggestionsMethod.swift:52-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:53-70 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:53` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15–18 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:50-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:48-65 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:33— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:33-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift:29-46 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:33` 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 (18 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:31— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:31-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:31-48 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:31` 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 (16 lines × 57) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:56— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:56-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48-63 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:53-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:74-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:214-229 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:61-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:76-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:68-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:82-97 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:75-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:129-144 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:66-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:60-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:66-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:77-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:125-140 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:222-237 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:63-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:60-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:52-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:62-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:73-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:116-131 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:58-73 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:40-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:55-70 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:66-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:53-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:57-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:51-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:46-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:60-75 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:53-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:53-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:49-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:70` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:209` 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 (16 lines × 57) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:49-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:75-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:215-230 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:62-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:68-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:77-92 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:69-84 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:83-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:76-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:130-145 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:56-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:61-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:65-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:65-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:65-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:78-93 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:126-141 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:223-238 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:61-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:85-100 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:56-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:63-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:74-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:68-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:117-132 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:41-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:56-71 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:56-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:67-82 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:58-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:52-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:47-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:61-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:54-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:50-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:61-76 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57` 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:79` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:64` 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 (16 lines × 3) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:82— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:82-97 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:149-164 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:108-123 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:82` 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 (16 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:71— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:71-86 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:49-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift` as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:71` 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 (15 lines × 12) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:41— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:41-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:43-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:41-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:41-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:45-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:42-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyLabelerGetServicesMethod.swift:44-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:45-59 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:44-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:49-63 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:41` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42` calls `prefix` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:39` 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 (15 lines × 12) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:43-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedSkeletonMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:37-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:43-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:37-51 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:37-51 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:43-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:35-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:38-52 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:41-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:40-54 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40` 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 × 3) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:144— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:144-158 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:495-509 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:103-117 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.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.
Duplicated block (15 lines × 3) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:38— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:38-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoMuteConvoMethod.swift:38-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUnmuteConvoMethod.swift:38-52 — 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:38` 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 (12 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:37— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:37-48 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:37-48 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:37` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:47— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:47-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:42-53 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:47` 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 × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:48— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:48-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:51-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:104-113 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:43-52 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:48` 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 (10 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:32-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:25-35 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35` 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 (10 lines × 3) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift:45— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift:45-54 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift:44-53 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.swift:71-80 — 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.
Duplicated block (10 lines × 3) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:41-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoImportRepoMethod.swift:36-45 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37` 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 × 19) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:45-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:45-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:37-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:48-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:39-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:39-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:39-47 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:45-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:39-47 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48` 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 (9 lines × 19) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:35— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:35-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:34-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:33-41 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorListMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteThreadMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorListMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:37-47 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityUpdateHandleMethod.swift:30-38 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:39-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRevokeAppPasswordMethod.swift:29-37 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempAddReservedHandleMethod.swift:32-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRevokeAccountCredentialsMethod.swift:30-38 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:36-46 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:35` 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 (9 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:25— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:25-34 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteValuesAsAdmin.swift:33-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:36-44 — 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:25` 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 (9 lines × 3) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:46— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:46-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:67-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:41-49 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:46` 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 (5 lines × 2) Sources/ATProtoKit/Utilities/ATFacetParser.swift:655— Sources/ATProtoKit/Utilities/ATFacetParser.swift:655-659 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:682-686 — 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 after the matched lines, `Sources/ATProtoKit/Utilities/ATFacetParser.swift:661` calls `Index` and `Sources/ATProtoKit/Utilities/ATFacetParser.swift:688` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) Sources/ATProtoKit/Utilities/ATFacetParser.swift:239— Sources/ATProtoKit/Utilities/ATFacetParser.swift:239-243 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:281-285 — 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 `Sources/ATProtoKit/Utilities/ATFacetParser.swift:239` 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.
ATProtoAdmin.queryStatuses (cyclomatic 45) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:91— ATProtoAdmin.queryStatuses has cyclomatic complexity 45 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoBluesky.createPostRecord (cyclomatic 37) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:336— ATProtoBluesky.createPostRecord has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ATProtoKit.searchPostsV2 (cyclomatic 35) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:65— ATProtoKit.searchPostsV2 has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoBluesky.updateProfileRecord (cyclomatic 33) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift:28— ATProtoBluesky.updateProfileRecord has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ATProtoBluesky.buildVideo (cyclomatic 29) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:719— ATProtoBluesky.buildVideo 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.
ATProtoAdmin.queryEvents (cyclomatic 29) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:74— ATProtoAdmin.queryEvents has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoBluesky.updateListRecord (cyclomatic 25) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:28— ATProtoBluesky.updateListRecord has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
APIClientService.performRequest (cyclomatic 21) Sources/ATProtoKit/Utilities/APIClientService.swift:291— APIClientService.performRequest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ATProtoAdmin.queryReports (cyclomatic 20) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:47— ATProtoAdmin.queryReports has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoKit.searchPosts (cyclomatic 17) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54— ATProtoKit.searchPosts has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoKit.searchPostsSkeleton (cyclomatic 16) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:53— ATProtoKit.searchPostsSkeleton has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AppPasswordSessionManaging.authenticate (cyclomatic 16) Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:343— AppPasswordSessionManaging.authenticate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
No assertions: concreteConfigurationsExposeFocusedCapabilities Tests/ATProtoKitTests/OAuth/OAuthIntegrationHookTests.swift:238— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
ATProtoBluesky.updateProfileRecord (cognitive 58) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift:28— ATProtoBluesky.updateProfileRecord has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (44 pts), match/switch 3 (10 pts), loops 2, boolean chains 1, error handling 1 (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.
ATProtoBluesky.createPostRecord (cognitive 56) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:336— ATProtoBluesky.createPostRecord has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (20 pts), match/switch 3 (11 pts), loops 4 (9 pts), error handling 4 (8 pts), ternaries 3 (7 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ATProtoAdmin.queryStatuses (cognitive 44) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:91— ATProtoAdmin.queryStatuses has cognitive complexity 44 (threshold 15). Drivers by points: if/else 35, boolean chains 8, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoBluesky.buildVideo (cognitive 40) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:719— ATProtoBluesky.buildVideo has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 4 (7 pts), match/switch 3 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AppPasswordSessionManaging.authenticate (cognitive 36) Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:343— AppPasswordSessionManaging.authenticate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (25 pts), error handling 3 (5 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ATProtoKit.searchPostsV2 (cognitive 34) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:65— ATProtoKit.searchPostsV2 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, boolean chains 2, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoBluesky.updateListRecord (cognitive 33) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:28— ATProtoBluesky.updateListRecord has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 3 (9 pts), boolean chains 2, loops 2, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ATProtoAdmin.queryEvents (cognitive 28) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:74— ATProtoAdmin.queryEvents has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 3, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATProtoKit.uploadVideo (cognitive 21) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoUploadVideoMethod.swift:32— ATProtoKit.uploadVideo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
APIClientService.performRequest (cognitive 20) Sources/ATProtoKit/Utilities/APIClientService.swift:291— APIClientService.performRequest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ATProtoAdmin.queryReports (cognitive 19) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:47— ATProtoAdmin.queryReports has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ATFacetParser.parseURLs (cognitive 19) Sources/ATProtoKit/Utilities/ATFacetParser.swift:181— ATFacetParser.parseURLs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ATProtoKit.searchPosts (cognitive 16) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54— ATProtoKit.searchPosts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Change-coupling hub: CreateBlockRecord.swift → CreateLikeRecord.swift, CreatePostRecord.swift, CreateThreadgateRecord.swift Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/BlockRecord/CreateBlockRecord.swift— `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/BlockRecord/CreateBlockRecord.swift` changes together with 3 other files — `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift`, `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift`, `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D4 · Code Duplication· Near-duplicate member family (42 members, 28 shared lines) · ×1
Near-duplicate member family (42 members, 28 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:33— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:34-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:37-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:34-87 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:38-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:26-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:28-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:36-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:36-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:29-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:31-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:37-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:37-88 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:29-68 — These 42 members are variants of one another: a block of 28 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 42 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 42 times.
D4 · Code Duplication· Near-duplicate member family (17 members, 26 shared lines) · ×1
Near-duplicate member family (17 members, 26 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:34-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:29-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:32-81 — These 17 members are variants of one another: a block of 26 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 17 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 17 times.
D4 · Code Duplication· Near-duplicate member family (13 members, 29 shared lines) · ×1
Near-duplicate member family (13 members, 29 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:41-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:35-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54-154 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:38-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:36-88 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:31-84 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:37-88 — These 13 members are variants of one another: a block of 29 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 13 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 13 times.
D4 · Code Duplication· Near-duplicate member family (13 members, 26 shared lines) · ×1
Near-duplicate member family (13 members, 26 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:36— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:36-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:29-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:31-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:37-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetMessageContextMethod.swift:35-92 — These 13 members are variants of one another: a block of 26 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 13 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 13 times.
D4 · Code Duplication· Near-duplicate member family (10 members, 30 shared lines) · ×1
Near-duplicate member family (10 members, 30 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:41-121 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:37-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:34-83 — These 10 members are variants of one another: a block of 30 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 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· Near-duplicate member family (6 members, 33 shared lines) · ×1
Near-duplicate member family (6 members, 33 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:39— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:39-102 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:74-242 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:37-104 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:39-110 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:37-103 — These 6 members are variants of one another: a block of 33 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 6 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 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 27 shared lines) · ×1
Near-duplicate member family (6 members, 27 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 — These 6 members are variants of one another: a block of 27 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 6 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 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 26 shared lines) · ×1
Near-duplicate member family (6 members, 26 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:37— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:37-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:38-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:28-68 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:31-72 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:30-71 — These 6 members are variants of one another: a block of 26 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 6 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 6 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 37 shared lines) · ×1
Near-duplicate member family (5 members, 37 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:46-106 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 — These 5 members are variants of one another: a block of 37 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 5 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 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 33 shared lines) · ×1
Near-duplicate member family (5 members, 33 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:38— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:38-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:39-102 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:41-121 — These 5 members are variants of one another: a block of 33 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 5 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 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 31 shared lines) · ×1
Near-duplicate member family (5 members, 31 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54-154 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:35-88 — These 5 members are variants of one another: a block of 31 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 5 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 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 27 shared lines) · ×1
Near-duplicate member family (5 members, 27 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:29— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:29-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:30-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:28-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:28-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:28-66 — These 5 members are variants of one another: a block of 27 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 5 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 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 24 shared lines) · ×1
Near-duplicate member family (5 members, 24 shared lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:29— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:29-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:36-93 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:36-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:32-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:35-88 — These 5 members are variants of one another: a block of 24 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 5 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 5 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 38 shared lines) · ×1
Near-duplicate member family (4 members, 38 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:41— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:41-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:35-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54-154 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:65-251 — These 4 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 4 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 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 29 shared lines) · ×1
Near-duplicate member family (4 members, 29 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:74-242 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:91-329 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:41-121 — These 4 members are variants of one another: a block of 29 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 4 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 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 28 shared lines) · ×1
Near-duplicate member family (4 members, 28 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:36— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:36-95 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:35-96 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:29-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:33-82 — These 4 members are variants of one another: a block of 28 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 4 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 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 27 shared lines) · ×1
Near-duplicate member family (4 members, 27 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 — These 4 members are variants of one another: a block of 27 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 4 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 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 25 shared lines) · ×1
Near-duplicate member family (4 members, 25 shared lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:34— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:34-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:32-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:31-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectStatusAsAdmin.swift:35-79 — These 4 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 4 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 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 21 shared lines) · ×1
Near-duplicate member family (4 members, 21 shared lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:46— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:46-106 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 — These 4 members are variants of one another: a block of 21 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 4 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 4 times.
D4 · Code Duplication· Edited copy of a member (33 corresponding lines) · ×1
Edited copy of a member (33 corresponding lines) Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:36— Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:36-69 | Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:86-121 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (9 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:33— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:33-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:36-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUnassignModeratorMethod.swift:30-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:30-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:32-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:35-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:37-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:35-72 — 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· Members sharing a duplicated core (8 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (8 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:29— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:32-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:28-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:29-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:29-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:34-64 — These 8 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 8 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 8 times.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:23— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:23-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:24-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:33-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:33-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:33-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:33-73 — These 6 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 6 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 6 times.
D4 · Code Duplication· Edited copy of a member (58 corresponding lines) · ×1
Edited copy of a member (58 corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:45— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:45-102 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:44-113 — These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (51 corresponding lines) · ×1
Edited copy of a member (51 corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:39— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:39-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:35-85 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 52+ corresponding lines) · ×1
Edited copies of one member (3 members, 52+ corresponding lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:36— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:36-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:34-85 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:35-91 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 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 (5 members, 45+ corresponding lines) · ×1
Edited copies of one member (5 members, 45+ corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:46— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:46-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:36-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:35-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:35-85 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:39-94 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 45 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 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (30 corresponding lines) · ×1
Edited copy of a member (30 corresponding lines) Sources/ATProtoKit/Utilities/ATFacetParser.swift:146— Sources/ATProtoKit/Utilities/ATFacetParser.swift:146-175 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:276-305 — These two members are one piece of code written twice and then edited apart: 30 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 (44 corresponding lines) · ×1
Edited copy of a member (44 corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:35— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:35-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:34-77 — These two members are one piece of code written twice and then edited apart: 44 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 (23 corresponding lines) · ×1
Edited copy of a member (23 corresponding lines) Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:397— Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:397-419 | Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:640-664 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 44+ corresponding lines) · ×1
Edited copies of one member (3 members, 44+ corresponding lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:35-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetSuggestionsMethod.swift:34-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:39-82 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 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 (42 corresponding lines) · ×1
Edited copy of a member (42 corresponding lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:33— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:33-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:35-76 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×1
Edited copy of a member (28 corresponding lines) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift:41— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift:41-72 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift:40-67 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 44+ corresponding lines) · ×1
Edited copies of one member (4 members, 44+ corresponding lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:33— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:33-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:32-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:34-79 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:34-85 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 31+ corresponding lines) · ×1
Edited copies of one member (3 members, 31+ corresponding lines) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:31— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:31-65 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:30-64 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/RepostRecord/CreateRepostRecord.swift:28-58 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 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 (4 members, 36+ corresponding lines) · ×1
Edited copies of one member (4 members, 36+ corresponding lines) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:28— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:28-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:32-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:31-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetUploadLimitsMethod.swift:29-64 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (34 corresponding lines) · ×1
Edited copy of a member (34 corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:30— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:30-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:29-64 — These two members are one piece of code written twice and then edited apart: 34 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, 37+ corresponding lines) · ×1
Edited copies of one member (3 members, 37+ corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:41— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:41-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetAccountInviteCodesMethod.swift:33-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:32-68 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 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 (13 corresponding lines) · ×1
Edited copy of a member (13 corresponding lines) Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:117— Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:117-129 | Sources/ATProtoKit/Models/Common/SessionToken.swift:197-214 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×1
Edited copy of a member (31 corresponding lines) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorDeleteAccountMethod.swift:25— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorDeleteAccountMethod.swift:25-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationPutPreferencesMethod.swift:32-70 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (27 corresponding lines) · ×1
Edited copy of a member (27 corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCheckAccountStatusMethod.swift:32— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCheckAccountStatusMethod.swift:32-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:30-58 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 12+ corresponding lines) · ×1
Edited copies of one member (3 members, 12+ corresponding lines) Sources/ATProtoKit/Utilities/ATFacetParser.swift:440— Sources/ATProtoKit/Utilities/ATFacetParser.swift:440-453 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:459-472 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:478-489 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 28+ corresponding lines) · ×1
Edited copies of one member (4 members, 28+ corresponding lines) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRefreshIdentityMethod.swift:32— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRefreshIdentityMethod.swift:32-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateSessionMethod.swift:39-70 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerReserveSigningKeyMethod.swift:31-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerResetPasswordMethod.swift:32-61 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 19+ corresponding lines) · ×1
Edited copies of one member (4 members, 19+ corresponding lines) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedDescribeFeedGeneratorMethod.swift:30— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedDescribeFeedGeneratorMethod.swift:30-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:31-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDescribeServerMethod.swift:29-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRefreshSessionMethod.swift:35-53 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×1
Edited copy of a member (19 corresponding lines) Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:694— Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:694-714 | Sources/ATProtoKit/APIReference/SessionManager/SessionConfiguration.swift:86-104 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (11 corresponding lines) · ×1
Edited copy of a member (11 corresponding lines) Sources/ATProtoKit/APIReference/SessionManager/ATOAuthSessionConfiguration.swift:118— Sources/ATProtoKit/APIReference/SessionManager/ATOAuthSessionConfiguration.swift:118-128 | Sources/ATProtoKit/APIReference/SessionManager/ATOAuthSessionConfiguration.swift:133-148 — 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 (31–32 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:88— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:88-118 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:31-62 — 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 `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:88` 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 (28 lines × 2) Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:42— Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:42-69 | Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:93-120 — 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 `Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:93` 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 (25–27 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:36— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:36-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:34-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:33-57 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:36` 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 (26 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:41— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:41-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:39-64 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:41` 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 (25 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:91— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:91-115 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:83-107 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 144 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:91` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:116` calls `prefix` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:108` 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 (24 lines × 4) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRequestPlcOperationSignatureMethod.swift:27— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRequestPlcOperationSignatureMethod.swift:27-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerActivateAccountMethod.swift:28-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestAccountDeleteMethod.swift:30-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailConfirmationMethod.swift:27-50 — 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 4 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:58— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:58-81 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:64-87 — 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 `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:58` 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, `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:62` calls `Date` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:56` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (22 lines × 4) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:59— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:59-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:70-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:55-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:66-87 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:59` 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–22 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:52-72 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49` 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 (19–22 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportUnassignModeratorMethod.swift:42-60 — 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52` 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 (20–21 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:34— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:34-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:40-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:39-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:34` 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–21 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120-140 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:83-99 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:75-91 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120` 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 × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:45— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:45-65 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:44-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:45` 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 (19–21 lines × 2) Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:469— Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:469-487 | Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:542-562 — 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 `Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:542` 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, `Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:564` calls `getSession` and `Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:489` 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 (20 lines × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:38— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:38-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:39-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:49-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:46-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:55-74 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:38` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18–20 lines × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:39-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:38-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:32-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:33-52 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41` 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 (20 lines × 4) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:49— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:49-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:53-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:57-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:52-71 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:49` 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 (38–39 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:65— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:65-102 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:30-68 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:65` 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 (19–20 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:35-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:40-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:35` 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 (20 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncNotifyOfUpdateMethod.swift:45— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncNotifyOfUpdateMethod.swift:45-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncRequestCrawlMethod.swift:42-61 — 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncNotifyOfUpdateMethod.swift:45` 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 (19 lines × 39) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:48— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:48-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:69-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:56-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:50-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:61-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:55-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:59-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:59-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:59-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:48-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:120-138 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:217-235 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:52-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:52-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:58-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:55-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:47-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:50-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:62-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:111-129 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:53-71 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:50-68 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:50-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:61-79 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:48-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:55-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:48-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:48-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:44-62 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:116` calls `prefix` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:65` 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 (18–19 lines × 8) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:36— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:36-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:34-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:34-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:48-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:36-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:39-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:38-55 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:36` 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 (19 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:36— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:36-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:37-55 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:36` 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–18 lines × 83) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:67— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:67-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:63-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:48-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfosAsAdmin.swift:46-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:40-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:60-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:46-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:52-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:45-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectStatusAsAdmin.swift:55-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:57-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:78-94 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:74-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:42-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:218-234 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:305-321 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:74-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:65-81 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:61-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:67-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:97-113 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:71-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:80-96 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:72-88 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:86-102 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:79-95 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:133-149 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:59-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:57-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:67-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:41-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:64-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:59-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:45-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:66-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:59-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:59-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:77-93 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:59-75 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:57-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetAccountInviteCodesMethod.swift:52-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:61-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:45-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:57-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:64-80 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:44-60 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:63` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:70` 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 (18 lines × 7) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:70— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:70-87 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:64-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:58-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:81-98 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:129-146 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:226-243 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:88-105 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 129 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:70` 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–18 lines × 7) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47-64 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:46-63 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:41-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:44-61 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:59-76 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:59-75 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:47-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift` and `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47` 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–18 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:40— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:40-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:38-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:37-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:50-66 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:40` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:35-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:40-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:39-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetUploadLimitsMethod.swift:34-51 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:35` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15–18 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:54— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:54-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:54-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:49-65 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:54` 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 (18 lines × 3) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:36— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:36-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:44-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:37-54 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:36` 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 (17–18 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:52— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:52-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:50-66 — 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:52` 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. 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 (17 lines × 15) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:37— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:37-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:40-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:34-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:40-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:34-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:34-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:40-56 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:31-47 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:32-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:32-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:35-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:38-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:38-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckSignupQueueMethod.swift:35-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:37-53 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:37` 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 (17 lines × 8) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:41— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:41-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:41-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:44-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:41-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:40-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:41-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:41-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:45-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:41` 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 (16–17 lines × 5) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:50— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:50-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:43-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:50-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:45-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:43-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift` and `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:50` 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 (17 lines × 4) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:78— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:78-94 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:61-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:70-86 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:78` 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 × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:61— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:60-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:59-75 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:61` 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 (16 lines × 18) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:62— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:62-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:58-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:300-315 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:56-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:62-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:62-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:42-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:44-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:44-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:56-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:44-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:54-69 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:62` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 17) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:56— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:56-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:59-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:51-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:49-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:51-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:49-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:63-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:48-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:56-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:62-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:62-77 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:56` 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 (16 lines × 9) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:48— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:48-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:48-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:51-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUnassignModeratorMethod.swift:45-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:45-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:52-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:57-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:53-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:53-72 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift` as WHOLE FILES: this scan already matched 4 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:48` 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 (15–16 lines × 7) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:31— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:31-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift:31-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:30-45 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorExportAccountDataMethod.swift:27-42 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationGetPreferencesMethod.swift:31-45 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityGetRecommendedDidCredentialsMethod.swift:31-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:32-47 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:31` 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 (16 lines × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:39-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:38-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:50-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:32-49 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15 lines × 59) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:49-63 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:54-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:75-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:215-229 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:62-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:68-82 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:77-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:69-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:83-97 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:76-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:130-144 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:67-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:61-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:67-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:54-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:78-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:126-140 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:223-237 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:64-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:61-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:85-99 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:63-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:74-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:68-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:117-131 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:59-74 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:41-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:56-70 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:56-70 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:67-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:54-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:58-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:52-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:47-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:61-75 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:54-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:54-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:61-75 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:79` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:64` 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 (15 lines × 23) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:64— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:64-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:60-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:302-316 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:64-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:94-108 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:64-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:75-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:61-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:44-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:56-70 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetMessageContextMethod.swift:64-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:66-80 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:64` 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:63` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:93` 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 (15 lines × 20) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:57— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:60-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:52-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:50-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:47-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:52-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:50-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:64-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:50-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:49-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:57-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:49-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:63-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:63-77 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15 lines × 16) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:52— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:52-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyLabelerGetServicesMethod.swift:46-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:71-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:120-135 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:39-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:39-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:42-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:69-84 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:47-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:51-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:40-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:55-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:64-79 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:57-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:53-68 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:52` 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 (15 lines × 7) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:51-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:44-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:51-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:46-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:40-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:44-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift` and `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38` 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–15 lines × 6) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:126— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:126-135 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:179-193 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:199-208 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:72-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:88-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:80-87 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:126` 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:80` calls `prefix` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:194` 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 (15 lines × 6) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:51-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:58-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:64-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:64-78 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15 lines × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:46-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactVerifyPhoneMethod.swift:46-61 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (15 lines × 2) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:31— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:31-45 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift:31-45 — 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 `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:31` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 22) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:61-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:48-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:66-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:65-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:51-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:58-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:64-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:64-78 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58` 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 (14 lines × 19) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:61-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:48-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:66-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:46-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:65-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:51-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:50-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58` 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 (14 lines × 16) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:43-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedSkeletonMethod.swift:51-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:37-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:43-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:37-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:37-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:43-56 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:34-47 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:35-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:35-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:38-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:41-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:41-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckSignupQueueMethod.swift:38-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:40-53 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40` 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–14 lines × 13) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:30— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:30-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift:30-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:29-41 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorExportAccountDataMethod.swift:26-39 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationGetPreferencesMethod.swift:30-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityGetRecommendedDidCredentialsMethod.swift:30-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRequestPlcOperationSignatureMethod.swift:27-39 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerActivateAccountMethod.swift:28-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDeleteSessionMethod.swift:35-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:31-43 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestAccountDeleteMethod.swift:30-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailConfirmationMethod.swift:27-39 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailUpdateMethod.swift:29-41 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:30` 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 (13–14 lines × 12) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfosAsAdmin.swift:46-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:45-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:42-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:58-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:47-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:58-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:44-57 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47-59 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:46-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42` calls `prefix` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:39` 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–14 lines × 11) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:47— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:47-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:46-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:56-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:60-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:55-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:48-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:45-57 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:60` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 11) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:39— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:39-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:52-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:45-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:39-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoMuteConvoMethod.swift:39-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:52-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageBatchMethod.swift:43-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:47-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUnmuteConvoMethod.swift:39-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:41-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:45-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift` and `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:39` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 9) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:40-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:40-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:53-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:55-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:55-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:41-54 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:44-57 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:43-56 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42` 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 (13–14 lines × 7) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:37— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:37-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift:33-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:37-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift:37-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:36-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityGetRecommendedDidCredentialsMethod.swift:37-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:38-50 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:37` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (14 lines × 7) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:58— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:52-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:59-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:51-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:65-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateAppPasswordMethod.swift:51-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:58` 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 (12–14 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:131— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:131-144 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:49-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:52-63 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:42-53 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:131` 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 (14 lines × 3) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:519— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:519-532 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:76-89 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:41-54 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 (12–14 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:140— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:140-153 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:274-287 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:84-95 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:157` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:291` 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–14 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99-112 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:46-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99` 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 lines × 21) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationCancelScheduledActionsMethod.swift:46-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:45-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:60-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:47-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:54-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:57-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:58-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:49-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:57-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:54-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:67-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:58-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:47-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:66-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:52-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:51-64 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (13 lines × 16) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:38— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:39-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:37-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:39-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:31-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:42-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:33-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:33-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:33-45 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:39-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:37-49 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 131 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:38` 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 lines × 15) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:43-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:48-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:45-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:43-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:43-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:39-51 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (13 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:32— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:32-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift:28-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCheckAccountStatusMethod.swift:33-45 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:32` 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 (13 lines × 2) Sources/ATProtoKit/ATProtoKit.swift:192— Sources/ATProtoKit/ATProtoKit.swift:192-204 | Sources/ATProtoKit/ATProtoKit.swift:379-391 — 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 × 21) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:42— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:40-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:48-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:34-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:70-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:40-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:40-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:45-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:28-39 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:34-45 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:28-39 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:37-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:34-45 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:43-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:31-42 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:42` 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, `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:55` calls `prefix` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:47` 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 × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:47— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:47-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:50-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:46-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:45-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:55-66 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:47` 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 × 4) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:51— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:51-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:43-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:41-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:41-52 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.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 (9–12 lines × 4) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:34— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:34-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:34-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:39-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:35-46 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:34` 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 (11 lines × 57) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:37— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:47-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:33-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:33-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:42-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:36-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:53-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:69-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:97-107 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:44-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:27-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:29-39 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:33-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:40-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:52-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:30-40 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:32-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:32-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:36-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:32-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:38-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:32-42 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:31-41 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:27-37 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:28-38 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:36-46 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:38-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:33-43 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetMessageContextMethod.swift:41-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:36-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:42-52 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:30-40 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 131 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, `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:51` calls `String` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:49` 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 (11 lines × 16) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:55— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:55-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:54-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:54-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:50-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:47-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:45-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:45-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:51-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:40-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:43-53 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:55` 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 × 12) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:44— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:44-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:47-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:43-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99-110 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:128-139 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:43-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:42-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:52-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:49-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:46-56 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:44` 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:54` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:140` 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 (11 lines × 5) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:62— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:62-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:162-174 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:213-225 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:59-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:49-59 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 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 before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:58` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:208` 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–11 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:35— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:35-45 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:33-43 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:32-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectStatusAsAdmin.swift:40-49 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:35` 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 (10–11 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:44— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:44-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:43-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:33-42 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:39-49 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:44` 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:56` calls `prefix` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:57` 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 (11 lines × 4) Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:34— Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:34-44 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:36-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:40-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:38-48 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 `Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:34` 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 (11 lines × 3) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:74— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:74-84 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:347-357 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/CreateProfileRecord.swift:142-152 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:74` 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 (10–11 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:40— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:40-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:48-57 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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–11 lines × 3) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:152— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:152-162 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:249-259 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:59-67 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:152` 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 × 26) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:43— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:43-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:30-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:41-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:31-40 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:29-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:29-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:46-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:42-51 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:29-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:98-107 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:127-136 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:42-51 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:41-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:39-48 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:41-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:31-40 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:45-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:42-51 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:48-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:32-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:45-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:64-73 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:51` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:54` 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 × 15) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:51— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:59-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:59-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:50-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:50-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:56-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:45-54 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:48-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:54-63 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 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 (10 lines × 9) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:53— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:53-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:52-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:64-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:60-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:49-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:51-60 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:53` 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 (10 lines × 8) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:53— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:61-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:57-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:68-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:64-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:56-65 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:53` 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 (10 lines × 6) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:48— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:48-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:48-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:48-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:39-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:44-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:49-58 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 137 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:48` 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 × 5) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:35-44 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:41-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:39-48 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39` 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 × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:164— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:164-173 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:179-188 — 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:164` 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–10 lines × 2) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:57— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:57-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:56-65 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 144 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 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 × 7) Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:47— Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:47-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:47-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:47-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:75-83 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:38-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:48-56 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift` and `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 137 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 `Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8–9 lines × 4) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:151— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:151-159 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:248-256 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:295-303 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:58-65 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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 × 8) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:32— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:32-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:39-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:33-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:27-35 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift` as WHOLE FILES: this scan already matched 4 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:36` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 6) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:32— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:32-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:32-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:26-35 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:35-42 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35` 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 × 3) Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:34— Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:34-41 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:33-40 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/CreateProfileRecord.swift:141-148 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift` and `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:34` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (8 lines × 2) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteCommunicationTemplateAsAdmin.swift:31— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteCommunicationTemplateAsAdmin.swift:31-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteMemberAsAdmin.swift:32-39 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:36— Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:36-45 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:34-40 — before extracting anything, compare `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift` and `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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 `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:36` 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. 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 × 7) Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:125— Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:125-130 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:168-173 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:178-183 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:198-203 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:71-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:87-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:79-83 — before extracting anything, compare `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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 `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:125` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:67` calls `max`, `min` and `Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 4) Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211— Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211-215 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:250-254 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:291-295 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:329-333 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:255` calls `decode` and `Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:216` 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.
P12 · CI test-gate honesty· Test suite runs only after the merge · ×1
Test suite runs only after the merge — `REDACTED`, `REDACTED` run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) — so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it.
Orphaned file Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.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 Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.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 Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/HelperFunctions/DeleteActionRecord.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 Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.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 Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.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.
D34 · Knowledge Freshness· Orphaned files with no living knowledge · ×1
Orphaned files with no living knowledge — 5 of 332 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 332 of the 665 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/HelperFunctions/DeleteActionRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
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 — 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 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
No release approval gate — The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
Duplicated predicate Sources/ATProtoKit/APIReference/SessionManager/ATProtocolConfiguration.swift:43— `os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS)` appears character-identically in 2 files — Sources/ATProtoKit/APIReference/SessionManager/ATProtocolConfiguration.swift, Sources/ATProtoKit/APIReference/SessionManager/AppleSecureKeychain.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.
Outdated: swift-docc-plugin — `swift-docc-plugin` is resolved at 1.4.3, but 1.5.0 is the newest release tagged on https://github.com/swiftlang/swift-docc-plugin.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 swift-docc-plugin` reaches this one with no change to Package.swift.
Outdated: swift-log — `swift-log` is resolved at 1.6.1, but 1.17.0 is the newest release tagged on https://github.com/apple/swift-log.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 swift-log` 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. semgrep could not parse 6 file(s) — `Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetSessionMethod.swift`, `Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift`, `Sources/ATProtoKit/Utilities/APIClientService.swift`, `Sources/ATProtoKit/Utilities/ATFacetParser.swift`, `Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift`, … (+1 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a1e79f-00ba-7b70-b517-b70db368d0b5 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 6 · Warnings: 281 · Recommendations: 16 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 03:48 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.