Public report — xmpp, published 2 Oct 2026.
Concrete security findings (which rule fired, in which file, on which line; CVE IDs, secret matches,
dependency versions) are REDACTED in this version; ask the repo owner for the full report.
Public
Codebase surveyMeasured under the Code Assurance Index · rubric rubric-2026.09.18 (frozen) · verify this surveyFiledcd_98edcdb598a947188b1af63c7ee53fda
Filed 2 October 2026, 05:17 UTC
Public
Medium · 84,434 LoC · 1 projects · rebuild ~0.6 person-years · weakest lens: Maturity (47%)
Findings by grade
7 critical574 serious19 minor46 could not be resolved — could be critical — see Limitations
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
2 October 2026, 05:12 UTC
A measurement, not a certificate. The Code Assurance Index does not certify,
approve or guarantee this codebase; it records a reproducible number and the evidence it was computed from. The
standard is authored by Canine Development, who also build Watchdog — its only implementation today. That is said
here so the number is checked rather than believed.
Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸
581findings with an exact file:lineof 600 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
30/121dimensions across the health lenses84434 LoC · 1 projects — wide & deep
The system holds an adequate overall standing of 59%, indicating a workable asset that carries real, compounding risk. While the core logic is sound, the organization lacks the maturity to support efficient, long-term growth. This gap creates a hidden tax on every change, slowing delivery and increasing the likelihood of defects as the team scales.
The value at stake is significant, with over 84,000 lines of production code representing a medium-sized asset. Rebuilding this from scratch would cost approximately €89,000 and require one to two engineers for six months. However, the current state is not fragile; the underlying architecture is strong, and the domain logic is well-structured. The primary risk lies not in the code’s correctness, but in the team’s ability to maintain and evolve it without excessive friction.
The most critical theme is Maturity Drift. With a maturity score of 47%, the system suffers from a lack of institutional knowledge and operational clarity. Documentation is outdated, claiming features like Docker and machine learning that do not exist, which misleads new hires and complicates onboarding. This disconnect between reality and documentation creates a high risk of wasted effort and confusion, directly impacting the speed at which new team members can contribute effectively.
A second theme is the Velocity Tax. Code quality signals suggest that every modification in weaker areas costs 4–9% more effort than in clean code. This is not a one-time cost but a recurring tax on the 75,000 lines changed annually. Over time, this drag compounds, making incremental improvements slower and more expensive. The cost of inaction is substantial, with the annual drag potentially costing dozens of engineer-days, far exceeding the effort required to fix the root causes.
What is genuinely good is the architectural foundation and the event-sourcing implementation, which are robust and well-designed. The code is largely free of boilerplate, indicating a focused and intentional design. These strengths provide a solid base for improvement, ensuring that remediation efforts will yield lasting benefits rather than temporary fixes.
Focus first on recording significant decisions in a centralized, discoverable format. This single action addresses the maturity gap, aligns documentation with reality, and reduces the velocity tax by clarifying context for future changes. It is the highest-leverage move, paying for itself within months by reducing the annual drag on engineering effort.
How the score is built — each lens's share of the headlineWidth is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
D12 · No dependency lockfile committed (rebar.config)
A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.
0.8× (at 59% quality) — the last 20% of quality is most of the work
Size & shape
Medium · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)
This codebase represents roughly ~0.6 person-years of build effort (about ~€89,000 to rebuild). Its weakest lens is Maturity at 47% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.0) — standard service × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).
Top priorities
The highest-leverage moves; the full ranked list is in the Roadmap below.
1
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
Reconcile the README with reality: README claims fast_xml library is used but no such project exists; README advertises Docker containerisation, but no Dockerfile/compose file exists; README advertises a RAG / ML engine, but no ML/RAG code or dependency exists.
The top-ranked fix costs roughly 3–10 engineer-days once. Not doing it costs about 7.8–47.1 engineer-days every year, paid as drag on the ~75,368 lines this team changes annually — a bill that arrives whether or not anyone books it. On those figures the fix breaks even in roughly 1–15 months and is free after that. Method, stated so this is not read as a quotation: debt from the ranked task's effort band; interest = annual changed lines (measured, annualised from the 90-day window) ÷ an ASSUMED 150–400 lines per engineer-day × the 4–9% drag implied by the code-quality signals; breaking point = debt ÷ annual interest. A modelled planning range built from measured inputs and one named assumption — not a quotation, a valuation, or a certified figure.
Evidence: D15 churn: 18,584 line(s) changed over a 90-day window ⇒ ~75,368/year · D1/D2/D4 code quality: averaging 6.3/10 ⇒ a 4–9% drag on each change · top-ranked remediation: Medium effort ⇒ about 3–10 engineer-day(s)
→ Do the top-ranked fix now if this code will still be yours in 15 months.
Value concentrated against a weak lens · Medium · Value at risk
This is a Medium asset (~0.6 person-years to rebuild), and its weakest lens is Maturity at 47%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Maturity first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form). The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 6.3/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 4–9% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2/D4 code quality: averaging 6.3/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A03:2021 — Injection
6
High / Critical
Roadmap
Begin by establishing a formal record of significant architectural decisions to ensure design context is preserved and discoverable. Simultaneously, correct critical inaccuracies in the README regarding missing libraries and features, and add a clear section on how to run the test suite. Finally, address orphaned knowledge by updating the xmpp.erl module to ensure technical documentation remains current and accurate.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
Reconcile the README with reality: README claims fast_xml library is used but no such project exists; README advertises Docker containerisation, but no Dockerfile/compose file exists; README advertises a RAG / ML engine, but no ML/RAG code or dependency exists.
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 — 7
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 — 574
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 — 19
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 46
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 26 of 30 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 30 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, 581 of 600 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D6 Cohesion (LCOM4) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check'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.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.erl) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (`rebar3 do eunit --cover, cover` (or covertool for Cobertura XML)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`rebar3 do eunit --cover, cover` (or covertool for Cobertura XML)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.erl) and this repository declares a rebar3 project (repository root, 1 test file), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 6 rebar3 declaration(s) across 1 `rebar.config` and 0 package(s) pinned by a committed `rebar.lock` were read for PINNING discipline (1 defect(s) reported), but the outdated/retired signal needs hex.pm, which publishes none of these packages, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D14 License Compliance — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a rebar.config / erlang.mk DEPS (Hex)), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (src/xmpp.app.src), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D44 Platform End-of-Life — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
P10 Library API & versioning — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads NuGet packaging and C# public API, and npm, PyPI, crates.io, Maven/Gradle, Go module, RubyGems, Composer, SwiftPM, pub.dev and Hex package manifests only, and no .NET project and no package manifest of those ecosystems 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.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
P8 Schema migrations — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads EF Core usage in C# and the schema tooling its file scan recognises only, and no .NET project was loaded, and this repository's language is not one the scan models, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
PF1 Benchmark discipline — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check'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.
S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript and Java source only, and no C# was loaded and no JavaScript/TypeScript 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.
X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript and Java source only, and no C# was loaded and no JavaScript/TypeScript 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.
X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, Kotlin and Scala source only, and no C# was loaded, no Java, Kotlin or Scala was found, and this repository's C is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java and Rust source only, and no C# was loaded and no Java 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.
X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Scala source only, and no C# was loaded and no Scala 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 — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java 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.
X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Scala source only, and no C# was loaded and no Scala was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X6 Hand-rolled structured-format parsing — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Python, JavaScript/TypeScript, Go, Java/Kotlin/Scala, Ruby, PHP and Rust source only, and no C# was loaded and none of those languages 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.
X7 Silent fallback defaults — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C#, Python, TypeScript/JavaScript, Rust, Go, Java and Kotlin syntax only, and no C#, Python, TypeScript/JavaScript, Rust, Go, Java or Kotlin was loaded for 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.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — 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.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
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").
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.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (4): D19, D21, D26, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
41 function(s) exceeded the cyclomatic complexity threshold of 15; the worst was muc_roomconfig.do_decode at 142. A further 31 function(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being xmpp_codec.get_mod at 735 — they are counted neither in the figure above nor in this dimension's score. 3 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: src/xmpp_codec.erl (xmpp_codec.get_mod at 735), src/xep0363.erl (xep0363.do_decode at 31), src/xep0369.erl (xep0369.do_decode at 28). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 36 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 muc_roomconfig.do_decode (cyclomatic 142) finding(s) in Cyclomatic Complexity — start with muc_roomconfig.erl. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 pubsub_node_config.do_decode (cyclomatic 133) finding(s) in Cyclomatic Complexity — start with pubsub_node_config.erl. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 pubsub_publish_options.do_decode (cyclomatic 133) finding(s) in Cyclomatic Complexity — start with pubsub_publish_options.erl. — One of this dimension's main actionable groups (1 warning-level).
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 25 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 muc_roomconfig.do_decode (cognitive 117) finding(s) in Cognitive Complexity — start with muc_roomconfig.erl. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 pubsub_node_config.do_decode (cognitive 111) finding(s) in Cognitive Complexity — start with pubsub_node_config.erl. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 pubsub_publish_options.do_decode (cognitive 111) finding(s) in Cognitive Complexity — start with pubsub_publish_options.erl. — One of this dimension's main actionable groups (1 warning-level).
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes6.8 / 10Adequate✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
55 over-large unit(s) detected — types, modules or files that carry too much.
FileTooLong: src/xep0054.erl · ×37src/xep0054.erl
TooManyFunctions: xep0220 · ×18src/xep0220.erl:4
What to do
Resolve the 37 FileTooLong finding(s) in God Classes — start with xep0054.erl, rfc6120.erl, xep0060.erl. — One of this dimension's main actionable groups (37 warning-level).
Resolve the 18 TooManyFunctions finding(s) in God Classes — start with xep0220.erl, p1_mucsub.erl, xep0048.erl. — One of this dimension's main actionable groups (18 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
428 duplicated block group(s) detected. A further 9 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
+ 187 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 32 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with pubsub_node_config.erl (8), xep0045.erl (5), xep0054.erl (4). — One of this dimension's main actionable groups (32 warning-level).
Resolve the 25 Duplicated block (15 lines × 2) finding(s) in Code Duplication — start with xep0045.erl (4), pubsub_node_config.erl (3), xep0054.erl (2). — One of this dimension's main actionable groups (25 warning-level).
Resolve the 18 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with xmpp_stream_in.erl (3), rfc6120.erl (3), xep0077.erl (3). — One of this dimension's main actionable groups (18 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
7 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/xmpp_stream_in.erl. Counted over 107 of the 149 production source files in this repository: 32 are under the ~2,400-byte size floor this dimension measures over, and the remaining 10 have no attributable history left to measure.
Off-boarding risk: anonymized user #1 · ×2
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
5 deducted task-comment markers across 84434 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.
TodoComment · ×5src/xmpp_stream_pkix.erl:128
What to do
Resolve the 5 TodoComment finding(s) in Explicit Debt — start with xmpp_stream_pkix.erl, xmpp_stream_out.erl, xmpp_stream_in.erl. — One of this dimension's main actionable groups (5 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The repository's root README is a comprehensive single document that describes the Erlang/Elixir XMPP library (what it does and its purpose), links to CI, coverage, and Hex version badges, and lists an outline of Status, Compiling, API, Usage, Initialization and header files, XMPP elements, Decoding and encoding, Stanzas, Common fields, Constructing stanza responses, Error elements, Text elements, Pretty printer, Namespaces, XMPP addresses, Language translation, Supported XMPP elements. The separate doc/API.md is a detailed reference of exported functions from modules xmpp, xmpp_util, jid (with an exhaustive list of function signatures), and the two are well cross-linked; together they give a complete API reference. Both documents are clear and well-structured.
What to do
Improve Documentation Quality — currently 8.0/10. — The repository's root README is a comprehensive single document that describes the Erlang/Elixir XMPP library (what it does and its purpose), links to CI, coverage, and Hex version badges, and lists an outline of Status, Compiling, API, Usage, Initialization and header files, XMPP elements, Decoding and encoding, Stanzas, Common fields, Constructing stanza responses, Error elements, Text elements, Pretty printer, Namespaces, XMPP addresses, Language translation, Supported XMPP elements. The separate doc/API.md is a detailed reference of exported functions from modules xmpp, xmpp_util, jid (with an exhaustive list of function signatures), and the two are well cross-linked; together they give a complete API reference. Both documents are clear and well-structured.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
1 of 1 build units (rebar3) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
0 % of calls cross a namespace and 0 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: 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, 6 high, 0 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. semgrep hit a parse error in 1 file(s) — `configure` — so no absence of findings in them is evidence of anything, and nothing in them was analysed. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.
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 issue-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 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.
14 of 117 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/xmpp.erl. Counted over 117 of the 149 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Orphaned knowledgesrc/xmpp.erl
Further orphaned files (smaller)
What to do
Resolve the 1 Orphaned knowledge finding(s) in Knowledge Freshness — start with xmpp.erl. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 1 Change coupling finding(s) in Change Coupling — start with xmpp_sasl_digest.erl. — 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.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the 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 · Event Sourcing — Whether the event-sourcing replay fold reconstructs state purely from the event (no wall clock, UUID or randomness) so replay is reproducible.
Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.
Other · Event Sourcing — Whether persisted events stay immutable (never rewritten in place).
Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
44 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
What to do
Add a 'Testing' section to the root README — how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Review the README against recent changes; refresh the parts that drifted.
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 significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
README claims fast_xml library is used but no such project exists — searched for: `fast_xml`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
README advertises Docker containerisation, but no Dockerfile/compose file exists — searched for: `dockerfile`, `docker-compose`, `compose.yaml`, `compose.yml`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
README advertises a RAG / ML engine, but no ML/RAG code or dependency exists — searched for: `rag`, `langchain`, `llamaindex`, `pinecone`, `weaviate`, `qdrant`, `embeddings`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
What to do
Reconcile the README with reality: README claims fast_xml library is used but no such project exists; README advertises Docker containerisation, but no Dockerfile/compose file exists; README advertises a RAG / ML engine, but no ML/RAG code or dependency exists.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
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.
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.
X31 Test-only surface in a production module — 5 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 85 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: the BEAM has no dependency-injection container — state lives in processes, and no process is handed an instance whose lifetime another one scopes.
AX2 Stateful singletons — Not applicable: Erlang processes share no mutable memory — state lives in a process's own mailbox — so there is no shared object to race on.
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
C1 Data Protection — 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.
D10 Test Quality — ~0 lines of test source are present (.erl) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included — the .erl suite was found but not re-run
D12 Dependency Hygiene — Not scored — 6 rebar3 declaration(s) across 1 `rebar.config` and 0 package(s) pinned by a committed `rebar.lock` were read for PINNING discipline (1 defect(s) reported), but the outdated/retired signal needs hex.pm, which publishes none of these packages, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D14 License Compliance — Package manifest not parsed for licence data — analyzer language-coverage gap
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.
D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout nor 2+ sibling source directories each declaring an aggregate root. 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 — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a rebar.config / erlang.mk DEPS (Hex) — not scanned yet).
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a rebar.config / erlang.mk DEPS (Hex) — not scanned yet).
D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
D5 Coupling — Not applicable — this OTP 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.)
D6 Cohesion (LCOM4) — D6 reads a CS/VB/GO/SCALA/SWIFT/DART/JAVA/PY/KT/TS/TSX/MTS/CTS/JS/JSX/MJS/CJS/PHP/RB/RS class graph only — this repository's production source is .c, .erl, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
D9 Test Distribution — Test source is present (.erl) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (6464 value object(s))
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P10 Library API & versioning — 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
P2 Observability — This repository's Erlang source (1 module(s), 149 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Erlang source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`rebar3 do eunit --cover, cover` (or covertool for Cobertura XML)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Benchmark discipline was not assessed: this repository is written in Erlang, whose benchmark frameworks this check does not search yet. That is a gap in the analyzer's language reach, not a finding about your code.
PF2 Allocation hygiene — Not applicable: Erlang runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
PF3 Async & latency hygiene — Not applicable: Erlang has no async/await function colour, so there is no asynchronous code for a blocking call to stall.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
X24 Document value interpolated into markup unescaped — 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 analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X27 Collection changed while being enumerated — not 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
X28 Index access outside its own emptiness 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
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
X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X30 Support guard that admits what it rejects — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X6 Hand-rolled structured-format parsing — 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
X7 Silent fallback defaults — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Orphaned knowledge src/xmpp.erl— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
FileTooLong: src/xep0054.erl src/xep0054.erl— FileTooLong — 8397 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 393 functions. The bar is 500 significant lines; this is 7897 over it, 16.79× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/rfc6120.erl src/rfc6120.erl— FileTooLong — 6420 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 368 functions. The bar is 500 significant lines; this is 5920 over it, 12.84× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0060.erl src/xep0060.erl— FileTooLong — 5526 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 275 functions. The bar is 500 significant lines; this is 5026 over it, 11.05× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0077.erl src/xep0077.erl— FileTooLong — 2714 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 129 functions. The bar is 500 significant lines; this is 2214 over it, 5.43× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0045.erl src/xep0045.erl— FileTooLong — 2676 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 165 functions. The bar is 500 significant lines; this is 2176 over it, 5.35× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0388.erl src/xep0388.erl— FileTooLong — 2217 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 116 functions. The bar is 500 significant lines; this is 1717 over it, 4.43× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/muc_roomconfig.erl src/muc_roomconfig.erl— FileTooLong — 2161 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 58 functions. The bar is 500 significant lines; this is 1661 over it, 4.32× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xmpp_codec.erl src/xmpp_codec.erl— FileTooLong — 2159 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1659 over it, 4.32× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/pubsub_publish_options.erl src/pubsub_publish_options.erl— FileTooLong — 2105 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 1605 over it, 4.21× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/pubsub_node_config.erl src/pubsub_node_config.erl— FileTooLong — 2103 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 1603 over it, 4.21× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0166.erl src/xep0166.erl— FileTooLong — 1754 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 94 functions. The bar is 500 significant lines; this is 1254 over it, 3.51× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xmpp_stream_in.erl src/xmpp_stream_in.erl— FileTooLong — 1659 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 104 functions. The bar is 500 significant lines; this is 1159 over it, 3.32× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0313.erl src/xep0313.erl— FileTooLong — 1401 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 101 functions. The bar is 500 significant lines; this is 901 over it, 2.80× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0363.erl src/xep0363.erl— FileTooLong — 1384 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 105 functions. The bar is 500 significant lines; this is 884 over it, 2.77× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xmpp_stream_out.erl src/xmpp_stream_out.erl— FileTooLong — 1373 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 85 functions. The bar is 500 significant lines; this is 873 over it, 2.75× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0198.erl src/xep0198.erl— FileTooLong — 1314 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 70 functions. The bar is 500 significant lines; this is 814 over it, 2.63× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0369.erl src/xep0369.erl— FileTooLong — 1249 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 88 functions. The bar is 500 significant lines; this is 749 over it, 2.50× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0234.erl src/xep0234.erl— FileTooLong — 1238 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 85 functions. The bar is 500 significant lines; this is 738 over it, 2.48× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/muc_roominfo.erl src/muc_roominfo.erl— FileTooLong — 1158 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 41 functions. The bar is 500 significant lines; this is 658 over it, 2.32× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0004.erl src/xep0004.erl— FileTooLong — 1025 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 73 functions. The bar is 500 significant lines; this is 525 over it, 2.05× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/captcha_form.erl src/captcha_form.erl— FileTooLong — 922 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 39 functions. The bar is 500 significant lines; this is 422 over it, 1.84× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xmpp.erl src/xmpp.erl— FileTooLong — 912 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 179 functions. The bar is 500 significant lines; this is 412 over it, 1.82× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/pubsub_meta_data.erl src/pubsub_meta_data.erl— FileTooLong — 877 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 36 functions. The bar is 500 significant lines; this is 377 over it, 1.75× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0260.erl src/xep0260.erl— FileTooLong — 781 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 281 over it, 1.56× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
FileTooLong: src/xep0417.erl src/xep0417.erl— FileTooLong — 778 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 63 functions. The bar is 500 significant lines; this is 278 over it, 1.56× the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:1641— src/pubsub_node_config.erl:1641-1653 | src/pubsub_publish_options.erl:1643-1655 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:1677— src/pubsub_node_config.erl:1677-1689 | src/pubsub_publish_options.erl:1679-1691 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:1947— src/pubsub_node_config.erl:1947-1959 | src/pubsub_publish_options.erl:1949-1961 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:1964— src/pubsub_node_config.erl:1964-1976 | src/pubsub_publish_options.erl:1966-1978 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:1981— src/pubsub_node_config.erl:1981-1993 | src/pubsub_publish_options.erl:1983-1995 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:1998— src/pubsub_node_config.erl:1998-2010 | src/pubsub_publish_options.erl:2000-2012 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:2082— src/pubsub_node_config.erl:2082-2094 | src/pubsub_publish_options.erl:2084-2096 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/pubsub_node_config.erl:2159— src/pubsub_node_config.erl:2159-2171 | src/pubsub_publish_options.erl:2161-2173 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/xep0055.erl:229— src/xep0055.erl:229-241 | src/xep0055.erl:261-273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) src/xmpp_stream_in.erl:345— src/xmpp_stream_in.erl:345-357 | src/xmpp_stream_out.erl:382-394 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) src/xep0065.erl:131— src/xep0065.erl:131-144 | src/xep0065.erl:156-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) src/xep0050.erl:535— src/xep0050.erl:535-547 | src/xep0050.erl:559-572 — 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 (13 lines × 2) src/xep0045.erl:1576— src/xep0045.erl:1576-1588 | src/xep0045.erl:1607-1620 — 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 (13 lines × 2) src/xep0369.erl:240— src/xep0369.erl:240-252 | src/xep0369.erl:282-294 — 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 (13 lines × 2) src/xep0417.erl:427— src/xep0417.erl:427-439 | src/xep0417.erl:451-463 — 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 (13 lines × 2) src/xep0013.erl:99— src/xep0013.erl:99-111 | src/xep0013.erl:123-135 — 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 (13 lines × 2) src/xep0092.erl:75— src/xep0092.erl:75-87 | src/xep0092.erl:99-111 — 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 (13 lines × 2) src/xep0045.erl:1774— src/xep0045.erl:1774-1786 | src/xep0045.erl:1798-1810 — 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 (13 lines × 2) src/rfc6120.erl:6133— src/rfc6120.erl:6133-6145 | src/rfc6120.erl:6179-6191 — 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 (13 lines × 2) src/xep0054.erl:3873— src/xep0054.erl:3873-3885 | src/xep0054.erl:3897-3909 — 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 (13 lines × 2) src/xep0045.erl:1236— src/xep0045.erl:1236-1248 | src/xep0045.erl:1260-1272 — 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 (13 lines × 2) src/xep0045.erl:644— src/xep0045.erl:644-656 | src/xep0045.erl:668-680 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) src/rfc6120.erl:5515— src/rfc6120.erl:5515-5527 | src/rfc6120.erl:5564-5576 — 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 (13 lines × 2) src/xep0050.erl:152— src/xep0050.erl:152-164 | src/xep0050.erl:176-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.
Duplicated block (13 lines × 2) src/xep0363.erl:1243— src/xep0363.erl:1243-1255 | src/xep0363.erl:1278-1290 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/pubsub_node_config.erl:1559— src/pubsub_node_config.erl:1559-1573 | src/pubsub_publish_options.erl:1561-1575 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) src/pubsub_node_config.erl:1622— src/pubsub_node_config.erl:1622-1636 | src/pubsub_publish_options.erl:1624-1638 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) src/pubsub_node_config.erl:1658— src/pubsub_node_config.erl:1658-1672 | src/pubsub_publish_options.erl:1660-1674 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) src/xep0054.erl:5843— src/xep0054.erl:5843-5857 | src/xep0054.erl:5877-5891 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xmpp_stream_in.erl:1692— src/xmpp_stream_in.erl:1692-1706 | src/xmpp_stream_out.erl:966-980 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) src/xep0033.erl:53— src/xep0033.erl:53-67 | src/xep0084.erl:75-89 — 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 (15 lines × 2) src/xep0048.erl:439— src/xep0048.erl:439-453 | src/xep0402.erl:266-280 — 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 (15 lines × 2) src/xep0424.erl:346— src/xep0424.erl:346-361 | src/xep0424.erl:364-378 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0045.erl:729— src/xep0045.erl:729-744 | src/xep0045.erl:747-761 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0060.erl:5166— src/xep0060.erl:5166-5181 | src/xep0060.erl:5184-5198 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0264.erl:54— src/xep0264.erl:54-69 | src/xep0264.erl:72-86 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0045.erl:1859— src/xep0045.erl:1859-1873 | src/xep0045.erl:1876-1891 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0313.erl:262— src/xep0313.erl:262-277 | src/xep0313.erl:280-294 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0045.erl:1027— src/xep0045.erl:1027-1042 | src/xep0045.erl:1045-1059 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/rfc6120.erl:6743— src/rfc6120.erl:6743-6758 | src/rfc6120.erl:6763-6777 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0166.erl:679— src/xep0166.erl:679-694 | src/xep0166.erl:697-711 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0363.erl:840— src/xep0363.erl:840-855 | src/xep0363.erl:858-872 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0045.erl:2732— src/xep0045.erl:2732-2746 | src/xep0045.erl:2749-2764 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0166.erl:446— src/xep0166.erl:446-461 | src/xep0166.erl:464-478 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0022.erl:82— src/xep0022.erl:82-96 | src/xep0022.erl:110-124 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0004.erl:175— src/xep0004.erl:175-189 | src/xep0004.erl:203-217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0138.erl:356— src/xep0138.erl:356-370 | src/xep0138.erl:377-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 (15 lines × 2) src/xep0004.erl:641— src/xep0004.erl:641-655 | src/xep0004.erl:669-683 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0054.erl:6910— src/xep0054.erl:6910-6924 | src/xep0054.erl:6938-6952 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) src/xep0260.erl:180— src/xep0260.erl:180-194 | src/xep0260.erl:207-221 — 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.
TooManyFunctions: xep0220 src/xep0220.erl:4— TooManyFunctions — 44 functions. The bar is 30 functions; this is 14 over it, 1.47× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: p1_mucsub src/p1_mucsub.erl:4— TooManyFunctions — 43 functions. The bar is 30 functions; this is 13 over it, 1.43× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0048 src/xep0048.erl:4— TooManyFunctions — 43 functions. The bar is 30 functions; this is 13 over it, 1.43× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0065 src/xep0065.erl:4— TooManyFunctions — 43 functions. The bar is 30 functions; this is 13 over it, 1.43× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0484 src/xep0484.erl:4— TooManyFunctions — 42 functions. The bar is 30 functions; this is 12 over it, 1.40× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xmpp_socket src/xmpp_socket.erl:18— TooManyFunctions — 40 functions. The bar is 30 functions; this is 10 over it, 1.33× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0356 src/xep0356.erl:4— TooManyFunctions — 38 functions. The bar is 30 functions; this is 8 over it, 1.27× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0138 src/xep0138.erl:4— TooManyFunctions — 37 functions. The bar is 30 functions; this is 7 over it, 1.23× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0039 src/xep0039.erl:4— TooManyFunctions — 36 functions. The bar is 30 functions; this is 6 over it, 1.20× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0078 src/xep0078.erl:4— TooManyFunctions — 36 functions. The bar is 30 functions; this is 6 over it, 1.20× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0355 src/xep0355.erl:4— TooManyFunctions — 36 functions. The bar is 30 functions; this is 6 over it, 1.20× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0485 src/xep0485.erl:4— TooManyFunctions — 36 functions. The bar is 30 functions; this is 6 over it, 1.20× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0047 src/xep0047.erl:4— TooManyFunctions — 35 functions. The bar is 30 functions; this is 5 over it, 1.17× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0513 src/xep0513.erl:4— TooManyFunctions — 35 functions. The bar is 30 functions; this is 5 over it, 1.17× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: unifiedpush src/unifiedpush.erl:4— TooManyFunctions — 33 functions. The bar is 30 functions; this is 3 over it, 1.10× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0402 src/xep0402.erl:4— TooManyFunctions — 33 functions. The bar is 30 functions; this is 3 over it, 1.10× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0430 src/xep0430.erl:4— TooManyFunctions — 33 functions. The bar is 30 functions; this is 3 over it, 1.10× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: xep0033 src/xep0033.erl:4— TooManyFunctions — 31 functions. The bar is 30 functions; this is 1 over it, 1.03× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
Duplicated block (7 lines × 2) src/xmpp_stream_in.erl:368— src/xmpp_stream_in.erl:368-374 | src/xmpp_stream_out.erl:397-403 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) src/xmpp_stream_in.erl:566— src/xmpp_stream_in.erl:566-572 | src/xmpp_stream_out.erl:520-526 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) src/xmpp_stream_in.erl:1753— src/xmpp_stream_in.erl:1753-1759 | src/xmpp_stream_out.erl:1032-1038 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) src/rfc6120.erl:3778— src/rfc6120.erl:3778-3784 | src/xep0388.erl:1576-1582 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0388.erl` as WHOLE FILES: this scan already matched 6 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.
Duplicated block (7 lines × 2) src/rfc6120.erl:3827— src/rfc6120.erl:3827-3833 | src/xep0388.erl:1625-1631 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0388.erl` as WHOLE FILES: this scan already matched 6 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.
Duplicated block (7 lines × 2) src/rfc6120.erl:4039— src/rfc6120.erl:4039-4045 | src/xep0078.erl:270-276 — 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) src/xep0004.erl:1072— src/xep0004.erl:1072-1078 | src/xep0066.erl:191-197 — 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) src/xep0039.erl:68— src/xep0039.erl:68-74 | src/xep0355.erl:69-78 — 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) src/xep0045.erl:432— src/xep0045.erl:432-438 | src/xep0049.erl:34-40 — 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) src/xep0055.erl:614— src/xep0055.erl:614-620 | src/xep0077.erl:2496-2502 — before extracting anything, compare `src/xep0055.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) src/xep0055.erl:729— src/xep0055.erl:729-735 | src/xep0077.erl:2578-2584 — before extracting anything, compare `src/xep0055.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) src/xep0066.erl:228— src/xep0066.erl:228-234 | src/xep0077.erl:2250-2256 — 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) src/xep0077.erl:2127— src/xep0077.erl:2127-2133 | src/xep0388.erl:785-791 — 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) src/xep0077.erl:2209— src/xep0077.erl:2209-2215 | src/xep0234.erl:1299-1305 — 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) src/xep0077.erl:2744— src/xep0077.erl:2744-2750 | src/xep0078.erl:399-405 — 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) src/xep0234.erl:1090— src/xep0234.erl:1090-1096 | src/xep0363.erl:1420-1426 — 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) src/xep0386.erl:195— src/xep0386.erl:195-201 | src/xep0388.erl:2131-2137 — 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) src/captcha_form.erl:798— src/captcha_form.erl:798-805 | src/captcha_form.erl:905-911 — 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 (16 lines × 2) src/xep0054.erl:4784— src/xep0054.erl:4784-4799 | src/xep0054.erl:6054-6069 — 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 (16 lines × 2) src/xep0234.erl:776— src/xep0234.erl:776-791 | src/xep0234.erl:811-826 — 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 (16 lines × 2) src/xep0249.erl:58— src/xep0249.erl:58-73 | src/xep0249.erl:78-93 — 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 (16 lines × 2) src/xep0198.erl:1125— src/xep0198.erl:1125-1140 | src/xep0198.erl:1145-1160 — 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 (16 lines × 2) src/xep0084.erl:244— src/xep0084.erl:244-259 | src/xep0084.erl:264-279 — 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 (16 lines × 2) src/rfc6120.erl:5672— src/rfc6120.erl:5672-5687 | src/rfc6120.erl:5692-5707 — 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 (16 lines × 2) src/rfc6121.erl:339— src/rfc6121.erl:339-354 | src/rfc6121.erl:359-374 — 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 (16 lines × 2) src/xep0115.erl:51— src/xep0115.erl:51-66 | src/xep0115.erl:69-84 — 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 (16 lines × 2) src/xep0050.erl:220— src/xep0050.erl:220-235 | src/xep0050.erl:240-255 — 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 (16 lines × 2) src/xep0033.erl:199— src/xep0033.erl:199-214 | src/xep0033.erl:219-234 — 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 (16 lines × 2) src/rfc6120.erl:6292— src/rfc6120.erl:6292-6307 | src/rfc6120.erl:6312-6327 — 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 (16 lines × 2) src/xep0016.erl:559— src/xep0016.erl:559-574 | src/xep0016.erl:577-592 — 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 (16 lines × 2) src/xep0030.erl:513— src/xep0030.erl:513-528 | src/xep0030.erl:531-546 — 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 (16 lines × 2) src/xep0060.erl:5001— src/xep0060.erl:5001-5016 | src/xep0060.erl:5019-5034 — 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 (14 lines × 2) src/pubsub_node_config.erl:1778— src/pubsub_node_config.erl:1778-1791 | src/pubsub_publish_options.erl:1780-1793 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (14 lines × 2) src/pubsub_node_config.erl:2031— src/pubsub_node_config.erl:2031-2044 | src/pubsub_publish_options.erl:2033-2046 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (14 lines × 2) src/xep0059.erl:280— src/xep0059.erl:280-293 | src/xep0059.erl:312-325 — 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 (14 lines × 2) src/xmpp_stream_in.erl:401— src/xmpp_stream_in.erl:401-414 | src/xmpp_stream_out.erl:413-426 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (14 lines × 2) src/xep0220.erl:226— src/xep0220.erl:226-240 | src/xep0220.erl:242-255 — 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 (14 lines × 2) src/xep0016.erl:458— src/xep0016.erl:458-471 | src/xep0016.erl:484-497 — 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 (14 lines × 2) src/xep0402.erl:112— src/xep0402.erl:112-125 | src/xep0402.erl:137-150 — 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 (14 lines × 2) src/xep0055.erl:261— src/xep0055.erl:261-274 | src/xep0055.erl:294-307 — 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 (14 lines × 2) src/xep0078.erl:116— src/xep0078.erl:116-129 | src/xep0078.erl:142-155 — 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 (14 lines × 2) src/xep0313.erl:1154— src/xep0313.erl:1154-1167 | src/xep0313.erl:1186-1199 — 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 (14 lines × 2) src/xep0055.erl:442— src/xep0055.erl:442-455 | src/xep0055.erl:468-481 — 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 (14 lines × 2) src/xep0060.erl:1705— src/xep0060.erl:1705-1718 | src/xep0060.erl:1760-1773 — 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 (11 lines × 2) src/muc_roomconfig.erl:229— src/muc_roomconfig.erl:229-239 | src/muc_roominfo.erl:221-231 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/muc_roomconfig.erl:1904— src/muc_roomconfig.erl:1904-1914 | src/muc_roominfo.erl:1198-1208 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/pubsub_node_config.erl:1732— src/pubsub_node_config.erl:1732-1742 | src/pubsub_publish_options.erl:1734-1744 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/pubsub_node_config.erl:1870— src/pubsub_node_config.erl:1870-1880 | src/pubsub_publish_options.erl:1872-1882 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/pubsub_node_config.erl:2015— src/pubsub_node_config.erl:2015-2025 | src/pubsub_publish_options.erl:2017-2027 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/pubsub_node_config.erl:2176— src/pubsub_node_config.erl:2176-2186 | src/pubsub_publish_options.erl:2178-2188 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/xmpp_stream_in.erl:1812— src/xmpp_stream_in.erl:1812-1822 | src/xmpp_stream_out.erl:1525-1535 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/muc_roomconfig.erl:811— src/muc_roomconfig.erl:811-821 | src/muc_roominfo.erl:368-379 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/muc_register.erl:235— src/muc_register.erl:235-245 | src/pubsub_subscribe_authorization.erl:231-241 — before extracting anything, compare `src/muc_register.erl` and `src/pubsub_subscribe_authorization.erl` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/muc_roomconfig.erl:1013— src/muc_roomconfig.erl:1013-1023 | src/muc_roominfo.erl:804-814 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/muc_register.erl:377— src/muc_register.erl:377-387 | src/muc_request.erl:286-296 — before extracting anything, compare `src/muc_register.erl` and `src/muc_request.erl` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/muc_roomconfig.erl:980— src/muc_roomconfig.erl:980-990 | src/muc_roominfo.erl:516-526 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) src/xep0054.erl:4801— src/xep0054.erl:4801-4808 | src/xep0054.erl:6071-6078 — 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 (8 lines × 2) src/xep0054.erl:4848— src/xep0054.erl:4848-4855 | src/xep0054.erl:6118-6125 — 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 (8 lines × 2) src/xep0054.erl:5365— src/xep0054.erl:5365-5372 | src/xep0054.erl:6353-6360 — 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 (8 lines × 2) src/xmpp_stream_in.erl:459— src/xmpp_stream_in.erl:459-466 | src/xmpp_stream_out.erl:466-473 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) src/xmpp_stream_in.erl:989— src/xmpp_stream_in.erl:989-996 | src/xmpp_stream_in.erl:1114-1121 — 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 (8 lines × 2) src/xmpp_stream_in.erl:1072— src/xmpp_stream_in.erl:1072-1079 | src/xmpp_stream_in.erl:1318-1325 — 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 (8 lines × 2) src/muc_roomconfig.erl:2116— src/muc_roomconfig.erl:2116-2124 | src/pubsub_subscribe_options.erl:652-659 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/pubsub_subscribe_options.erl` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) src/muc_roomconfig.erl:2100— src/muc_roomconfig.erl:2100-2107 | src/pubsub_subscribe_options.erl:624-632 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/pubsub_subscribe_options.erl` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) src/pubsub_node_config.erl:1710— src/pubsub_node_config.erl:1710-1726 | src/pubsub_publish_options.erl:1712-1728 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) src/pubsub_node_config.erl:2100— src/pubsub_node_config.erl:2100-2116 | src/pubsub_publish_options.erl:2102-2118 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) src/xmpp_stream_in.erl:1673— src/xmpp_stream_in.erl:1673-1689 | src/xmpp_stream_out.erl:947-963 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) src/xep0060.erl:4574— src/xep0060.erl:4574-4590 | src/xep0060.erl:4629-4645 — 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 (17 lines × 2) src/xep0060.erl:1547— src/xep0060.erl:1547-1563 | src/xep0060.erl:1590-1606 — 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 (17 lines × 2) src/xep0054.erl:4493— src/xep0054.erl:4493-4509 | src/xep0054.erl:4523-4539 — 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 (17 lines × 2) src/xep0045.erl:1429— src/xep0045.erl:1429-1445 | src/xep0045.erl:1472-1488 — 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 (14 lines × 3) src/rfc6120.erl:4794— src/rfc6120.erl:4794-4807 | src/rfc6120.erl:5742-5755 | src/rfc6120.erl:6361-6374 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) src/xep0054.erl:5809— src/xep0054.erl:5809-5822 | src/xep0054.erl:5843-5856 | src/xep0054.erl:5877-5890 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) src/xep0022.erl:83— src/xep0022.erl:83-96 | src/xep0022.erl:111-124 | src/xep0022.erl:139-152 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) src/xep0004.erl:642— src/xep0004.erl:642-655 | src/xep0004.erl:670-683 | src/xep0004.erl:699-712 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) src/xep0363.erl:767— src/xep0363.erl:767-780 | src/xep0363.erl:787-800 | src/xep0363.erl:807-820 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) src/xep0004.erl:176— src/xep0004.erl:176-189 | src/xep0004.erl:204-217 | src/xep0004.erl:232-245 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) src/xep0260.erl:181— src/xep0260.erl:181-194 | src/xep0260.erl:208-221 | src/xep0260.erl:235-248 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 2) src/xmpp_stream_in.erl:204— src/xmpp_stream_in.erl:204-209 | src/xmpp_stream_out.erl:219-224 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (6 lines × 2) src/xmpp_stream_in.erl:608— src/xmpp_stream_in.erl:608-613 | src/xmpp_stream_out.erl:542-547 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (6 lines × 2) src/xmpp_sasl_fast.erl:124— src/xmpp_sasl_fast.erl:124-129 | src/xmpp_sasl_plain.erl:85-90 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) src/xmpp_stream_in.erl:229— src/xmpp_stream_in.erl:229-234 | src/xmpp_stream_out.erl:228-233 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (6 lines × 2) src/xmpp_stream_in.erl:263— src/xmpp_stream_in.erl:263-268 | src/xmpp_stream_out.erl:264-269 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (6 lines × 2) src/xep0184.erl:46— src/xep0184.erl:46-51 | src/xep0333.erl:154-159 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) src/xmpp_stream_in.erl:273— src/xmpp_stream_in.erl:273-278 | src/xmpp_stream_out.erl:281-286 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (16 lines × 3) src/pubsub_meta_data.erl:765— src/pubsub_meta_data.erl:765-780 | src/pubsub_node_config.erl:1831-1846 | src/pubsub_publish_options.erl:1833-1848 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (16 lines × 3) src/xep0054.erl:4494— src/xep0054.erl:4494-4509 | src/xep0054.erl:4524-4539 | src/xep0054.erl:4554-4569 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 3) src/xep0513.erl:225— src/xep0513.erl:225-240 | src/xep0513.erl:249-264 | src/xep0513.erl:273-288 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 3) src/xep0060.erl:1548— src/xep0060.erl:1548-1563 | src/xep0060.erl:1591-1606 | src/xep0060.erl:1634-1649 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 3) src/xep0060.erl:4575— src/xep0060.erl:4575-4590 | src/xep0060.erl:4630-4645 | src/xep0060.erl:4684-4699 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 3) src/xep0045.erl:1430— src/xep0045.erl:1430-1445 | src/xep0045.erl:1473-1488 | src/xep0045.erl:1528-1543 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) src/xep0059.erl:248— src/xep0059.erl:248-260 | src/xep0059.erl:280-292 | src/xep0059.erl:312-324 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) src/xep0016.erl:459— src/xep0016.erl:459-471 | src/xep0016.erl:485-497 | src/xep0016.erl:511-523 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) src/xep0055.erl:447— src/xep0055.erl:447-459 | src/xep0055.erl:473-485 | src/xep0055.erl:499-511 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) src/xep0078.erl:121— src/xep0078.erl:121-133 | src/xep0078.erl:147-159 | src/xep0078.erl:173-185 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) src/xep0060.erl:1650— src/xep0060.erl:1650-1662 | src/xep0060.erl:1705-1717 | src/xep0060.erl:1760-1772 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) src/xep0313.erl:1122— src/xep0313.erl:1122-1134 | src/xep0313.erl:1154-1166 | src/xep0313.erl:1186-1198 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) src/pubsub_meta_data.erl:749— src/pubsub_meta_data.erl:749-759 | src/pubsub_node_config.erl:1763-1773 | src/pubsub_publish_options.erl:1765-1775 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) src/pubsub_meta_data.erl:850— src/pubsub_meta_data.erl:850-860 | src/pubsub_node_config.erl:2206-2216 | src/pubsub_publish_options.erl:2208-2218 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) src/pubsub_meta_data.erl:866— src/pubsub_meta_data.erl:866-876 | src/pubsub_node_config.erl:1851-1861 | src/pubsub_publish_options.erl:1853-1863 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) src/xep0388.erl:611— src/xep0388.erl:611-622 | src/xep0388.erl:638-648 | src/xep0388.erl:664-674 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) src/rfc6120.erl:5479— src/rfc6120.erl:5479-5489 | src/rfc6120.erl:5525-5535 | src/rfc6120.erl:5574-5584 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) src/rfc6120.erl:6095— src/rfc6120.erl:6095-6105 | src/rfc6120.erl:6144-6154 | src/rfc6120.erl:6190-6200 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) src/rfc6120.erl:2984— src/rfc6120.erl:2984-2990 | src/xep0388.erl:2189-2195 | src/xep0484.erl:198-204 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0388.erl` as WHOLE FILES: this scan already matched 6 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.
Duplicated block (7 lines × 3) src/rfc6120.erl:4087— src/rfc6120.erl:4087-4093 | src/xep0313.erl:729-735 | src/xep0369.erl:1189-1195 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0313.erl` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) src/xep0004.erl:549— src/xep0004.erl:549-555 | src/xep0055.erl:770-776 | src/xep0077.erl:2787-2793 — before extracting anything, compare `src/xep0055.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) src/xep0045.erl:2680— src/xep0045.erl:2680-2686 | src/xep0425.erl:123-130 | src/xep0425.erl:173-179 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (7 lines × 3) src/xep0055.erl:692— src/xep0055.erl:692-698 | src/xep0059.erl:623-629 | src/xep0077.erl:2537-2543 — before extracting anything, compare `src/xep0055.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) src/xep0077.erl:2619— src/xep0077.erl:2619-2625 | src/xep0092.erl:245-251 | src/xep0234.erl:1139-1145 — 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.
TodoComment src/xmpp_stream_pkix.erl:128— %% TODO: return atomic errors — 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 src/xmpp_stream_out.erl:477— %% TODO: make fast_tls return atoms — 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 src/xmpp_stream_in.erl:562— %% TODO: make fast_tls return atoms — 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 src/xmpp_socket.erl:289— %% TODO: their code should be improved — 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 src/xmpp_sasl.erl:24— %% TODO: write correct types for these callbacks — 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 (14 lines × 4) src/xep0234.erl:706— src/xep0234.erl:706-719 | src/xep0234.erl:741-754 | src/xep0234.erl:776-789 | src/xep0234.erl:811-824 — 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.
Duplicated block (14 lines × 4) src/xep0054.erl:6912— src/xep0054.erl:6912-6925 | src/xep0054.erl:6940-6953 | src/xep0054.erl:6968-6981 | src/xep0054.erl:6996-7009 — 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.
Duplicated block (14 lines × 4) src/xep0260.erl:184— src/xep0260.erl:184-197 | src/xep0260.erl:211-224 | src/xep0260.erl:238-251 | src/xep0260.erl:265-278 — 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.
Duplicated block (14 lines × 4) src/xep0004.erl:177— src/xep0004.erl:177-190 | src/xep0004.erl:205-218 | src/xep0004.erl:233-246 | src/xep0004.erl:262-275 — 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.
Duplicated block (14 lines × 4) src/xep0022.erl:84— src/xep0022.erl:84-97 | src/xep0022.erl:112-125 | src/xep0022.erl:140-153 | src/xep0022.erl:168-181 — 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.
Duplicated block (9 lines × 2) src/xmpp_stream_in.erl:182— src/xmpp_stream_in.erl:182-190 | src/xmpp_stream_out.erl:201-209 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) src/rfc6120.erl:3813— src/rfc6120.erl:3813-3821 | src/xep0388.erl:1611-1619 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0388.erl` as WHOLE FILES: this scan already matched 6 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.
Duplicated block (9 lines × 2) src/rfc6120.erl:3862— src/rfc6120.erl:3862-3870 | src/xep0388.erl:1660-1668 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0388.erl` as WHOLE FILES: this scan already matched 6 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.
Duplicated block (9 lines × 2) src/xep0047.erl:182— src/xep0047.erl:182-190 | src/xep0231.erl:145-153 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) src/xmpp_lang.erl:50— src/xmpp_lang.erl:50-58 | src/xmpp_uri.erl:50-58 — 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 (15 lines × 4) src/xep0054.erl:4495— src/xep0054.erl:4495-4509 | src/xep0054.erl:4525-4539 | src/xep0054.erl:4555-4569 | src/xep0054.erl:4585-4599 — 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.
Duplicated block (15 lines × 4) src/rfc6120.erl:1132— src/rfc6120.erl:1132-1146 | src/rfc6120.erl:1158-1172 | src/rfc6120.erl:1184-1198 | src/rfc6120.erl:1210-1224 — 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.
Duplicated block (15 lines × 4) src/xep0060.erl:4576— src/xep0060.erl:4576-4590 | src/xep0060.erl:4631-4645 | src/xep0060.erl:4685-4699 | src/xep0060.erl:4739-4753 — 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.
Duplicated block (15 lines × 4) src/xep0060.erl:1549— src/xep0060.erl:1549-1563 | src/xep0060.erl:1592-1606 | src/xep0060.erl:1635-1649 | src/xep0060.erl:1690-1704 — 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.
Duplicated block (15 lines × 4) src/xep0045.erl:1431— src/xep0045.erl:1431-1445 | src/xep0045.erl:1474-1488 | src/xep0045.erl:1529-1543 | src/xep0045.erl:1561-1575 — 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.
Duplicated block (11 lines × 4) src/muc_roominfo.erl:479— src/muc_roominfo.erl:479-490 | src/pubsub_meta_data.erl:376-386 | src/pubsub_node_config.erl:773-783 | src/pubsub_publish_options.erl:775-785 — before extracting anything, compare `src/muc_roominfo.erl` and `src/pubsub_meta_data.erl` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 4) src/xep0016.erl:443— src/xep0016.erl:443-453 | src/xep0016.erl:469-479 | src/xep0016.erl:495-505 | src/xep0016.erl:521-531 — 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.
Duplicated block (11 lines × 4) src/xep0054.erl:4540— src/xep0054.erl:4540-4550 | src/xep0054.erl:4570-4580 | src/xep0054.erl:4600-4610 | src/xep0054.erl:4630-4640 — 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.
Duplicated block (11 lines × 4) src/xep0055.erl:427— src/xep0055.erl:427-437 | src/xep0055.erl:453-463 | src/xep0055.erl:479-489 | src/xep0055.erl:505-515 — 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.
Duplicated block (11 lines × 4) src/xep0078.erl:101— src/xep0078.erl:101-111 | src/xep0078.erl:127-137 | src/xep0078.erl:153-163 | src/xep0078.erl:179-189 — 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.
Duplicated block (17 lines × 6) src/xep0054.erl:5179— src/xep0054.erl:5179-5195 | src/xep0054.erl:5226-5242 | src/xep0054.erl:5273-5289 | src/xep0054.erl:5320-5336 | src/xep0054.erl:5367-5383 | src/xep0054.erl:5414-5430 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 6) src/xep0054.erl:6449— src/xep0054.erl:6449-6465 | src/xep0054.erl:6496-6512 | src/xep0054.erl:6543-6559 | src/xep0054.erl:6590-6606 | src/xep0054.erl:6637-6653 | src/xep0054.erl:6684-6700 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 6) src/xep0234.erl:582— src/xep0234.erl:582-598 | src/xep0234.erl:618-634 | src/xep0234.erl:654-670 | src/xep0234.erl:689-705 | src/xep0234.erl:724-740 | src/xep0234.erl:759-775 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 6) src/xep0054.erl:5656— src/xep0054.erl:5656-5672 | src/xep0054.erl:5690-5706 | src/xep0054.erl:5724-5740 | src/xep0054.erl:5758-5774 | src/xep0054.erl:5792-5808 | src/xep0054.erl:5826-5842 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 7) src/xep0054.erl:5132— src/xep0054.erl:5132-5147 | src/xep0054.erl:5179-5194 | src/xep0054.erl:5226-5241 | src/xep0054.erl:5273-5288 | src/xep0054.erl:5320-5335 | src/xep0054.erl:5367-5382 | src/xep0054.erl:5414-5429 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 7) src/xep0054.erl:6402— src/xep0054.erl:6402-6417 | src/xep0054.erl:6449-6464 | src/xep0054.erl:6496-6511 | src/xep0054.erl:6543-6558 | src/xep0054.erl:6590-6605 | src/xep0054.erl:6637-6652 | src/xep0054.erl:6684-6699 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 7) src/xep0234.erl:583— src/xep0234.erl:583-598 | src/xep0234.erl:619-634 | src/xep0234.erl:655-670 | src/xep0234.erl:690-705 | src/xep0234.erl:725-740 | src/xep0234.erl:760-775 | src/xep0234.erl:795-810 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 7) src/xep0054.erl:5657— src/xep0054.erl:5657-5672 | src/xep0054.erl:5691-5706 | src/xep0054.erl:5725-5740 | src/xep0054.erl:5759-5774 | src/xep0054.erl:5793-5808 | src/xep0054.erl:5827-5842 | src/xep0054.erl:5861-5876 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 2) src/pubsub_node_config.erl:1747— src/pubsub_node_config.erl:1747-1758 | src/pubsub_publish_options.erl:1749-1760 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 lines × 2) src/pubsub_node_config.erl:2208— src/pubsub_node_config.erl:2208-2219 | src/pubsub_publish_options.erl:2210-2221 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 lines × 2) src/xmpp_stream_in.erl:1719— src/xmpp_stream_in.erl:1719-1730 | src/xmpp_stream_out.erl:985-996 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 lines × 2) src/xep0054.erl:3626— src/xep0054.erl:3626-3637 | src/xep0054.erl:3643-3654 — 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 (10 lines × 5) src/rfc6120.erl:2686— src/rfc6120.erl:2686-2695 | src/rfc6120.erl:3651-3660 | src/rfc6120.erl:4952-4961 | src/xep0166.erl:1432-1441 | src/xep0377.erl:131-140 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0166.erl` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 × 5) src/xep0022.erl:67— src/xep0022.erl:67-76 | src/xep0022.erl:95-104 | src/xep0022.erl:123-132 | src/xep0022.erl:151-160 | src/xep0022.erl:179-188 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 5) src/xep0004.erl:159— src/xep0004.erl:159-168 | src/xep0004.erl:188-197 | src/xep0004.erl:216-225 | src/xep0004.erl:244-253 | src/xep0004.erl:273-282 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 5) src/xep0054.erl:6895— src/xep0054.erl:6895-6904 | src/xep0054.erl:6923-6932 | src/xep0054.erl:6951-6960 | src/xep0054.erl:6979-6988 | src/xep0054.erl:7007-7016 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 5) src/rfc6120.erl:2739— src/rfc6120.erl:2739-2753 | src/rfc6120.erl:3704-3718 | src/rfc6120.erl:4995-5008 | src/xep0166.erl:1485-1499 | src/xep0377.erl:174-187 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0166.erl` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 (14 lines × 5) src/xep0060.erl:4577— src/xep0060.erl:4577-4590 | src/xep0060.erl:4632-4645 | src/xep0060.erl:4686-4699 | src/xep0060.erl:4740-4753 | src/xep0060.erl:4782-4795 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 5) src/xep0060.erl:1550— src/xep0060.erl:1550-1563 | src/xep0060.erl:1593-1606 | src/xep0060.erl:1636-1649 | src/xep0060.erl:1691-1704 | src/xep0060.erl:1746-1759 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 5) src/xep0054.erl:4496— src/xep0054.erl:4496-4509 | src/xep0054.erl:4526-4539 | src/xep0054.erl:4556-4569 | src/xep0054.erl:4586-4599 | src/xep0054.erl:4616-4629 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 3) src/xep0313.erl:1008— src/xep0313.erl:1008-1024 | src/xep0313.erl:1040-1056 | src/xep0313.erl:1072-1089 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 3) src/xep0084.erl:426— src/xep0084.erl:426-442 | src/xep0084.erl:448-464 | src/xep0084.erl:470-486 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 3) src/xep0060.erl:5657— src/xep0060.erl:5657-5673 | src/xep0060.erl:5679-5695 | src/xep0060.erl:5701-5717 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 3) src/xep0260.erl:571— src/xep0260.erl:571-587 | src/xep0260.erl:593-609 | src/xep0260.erl:615-631 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (4 members, 50+ identical tokens) src/pubsub_get_pending.erl:257— src/pubsub_get_pending.erl:257-272 | src/pubsub_meta_data.erl:765-780 | src/pubsub_node_config.erl:1831-1846 | src/pubsub_publish_options.erl:1833-1848 — 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) src/rfc6120.erl:4793— src/rfc6120.erl:4793-4817 | src/rfc6120.erl:5736-5770 | src/rfc6120.erl:6355-6389 | src/rfc6120.erl:6806-6822 — 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) src/xep0054.erl:340— src/xep0054.erl:340-414 | src/xep0054.erl:416-491 | src/xep0054.erl:493-524 | src/xmpp_codec.erl:1794-2190 — 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.
Duplicated block (31–32 lines × 3) src/pubsub_meta_data.erl:374— src/pubsub_meta_data.erl:374-404 | src/pubsub_node_config.erl:770-801 | src/pubsub_publish_options.erl:772-803 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (31–32 lines × 3) src/pubsub_meta_data.erl:405— src/pubsub_meta_data.erl:405-436 | src/pubsub_node_config.erl:864-894 | src/pubsub_publish_options.erl:866-896 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (31–32 lines × 3) src/pubsub_meta_data.erl:587— src/pubsub_meta_data.erl:587-617 | src/pubsub_node_config.erl:895-926 | src/pubsub_publish_options.erl:897-928 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (30–31 lines × 2) src/pubsub_get_pending.erl:213— src/pubsub_get_pending.erl:213-242 | src/pubsub_subscribe_authorization.erl:260-290 — before extracting anything, compare `src/pubsub_get_pending.erl` and `src/pubsub_subscribe_authorization.erl` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 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 (30–31 lines × 2) src/xep0054.erl:3178— src/xep0054.erl:3178-3208 | src/xep0077.erl:1775-1804 — before extracting anything, compare `src/xep0054.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 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 (30–31 lines × 2) src/xep0054.erl:3251— src/xep0054.erl:3251-3281 | src/xep0077.erl:1832-1861 — before extracting anything, compare `src/xep0054.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 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 (29 lines × 2) src/pubsub_node_config.erl:1797— src/pubsub_node_config.erl:1797-1825 | src/pubsub_publish_options.erl:1799-1827 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (29 lines × 2) src/xep0054.erl:307— src/xep0054.erl:307-335 | src/xep0054.erl:682-710 — 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 (29 lines × 2) src/xep0054.erl:906— src/xep0054.erl:906-934 | src/xep0054.erl:989-1017 — 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 (14 lines × 10) src/xep0054.erl:4990— src/xep0054.erl:4990-5003 | src/xep0054.erl:5037-5050 | src/xep0054.erl:5084-5097 | src/xep0054.erl:5131-5144 | src/xep0054.erl:5178-5191 | src/xep0054.erl:5225-5238 | src/xep0054.erl:5272-5285 | src/xep0054.erl:5319-5332 | src/xep0054.erl:5366-5379 | src/xep0054.erl:5413-5426 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 10) src/xep0054.erl:6260— src/xep0054.erl:6260-6273 | src/xep0054.erl:6307-6320 | src/xep0054.erl:6354-6367 | src/xep0054.erl:6401-6414 | src/xep0054.erl:6448-6461 | src/xep0054.erl:6495-6508 | src/xep0054.erl:6542-6555 | src/xep0054.erl:6589-6602 | src/xep0054.erl:6636-6649 | src/xep0054.erl:6683-6696 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 10) src/xep0215.erl:328— src/xep0215.erl:328-342 | src/xep0215.erl:344-358 | src/xep0215.erl:360-374 | src/xep0215.erl:376-390 | src/xep0215.erl:392-406 | src/xep0215.erl:408-422 | src/xep0215.erl:424-438 | src/xep0215.erl:440-454 | src/xep0215.erl:456-470 | src/xep0215.erl:472-485 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 11) src/xep0054.erl:4943— src/xep0054.erl:4943-4955 | src/xep0054.erl:4990-5002 | src/xep0054.erl:5037-5049 | src/xep0054.erl:5084-5096 | src/xep0054.erl:5131-5143 | src/xep0054.erl:5178-5190 | src/xep0054.erl:5225-5237 | src/xep0054.erl:5272-5284 | src/xep0054.erl:5319-5331 | src/xep0054.erl:5366-5378 | src/xep0054.erl:5413-5425 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 11) src/xep0054.erl:6213— src/xep0054.erl:6213-6225 | src/xep0054.erl:6260-6272 | src/xep0054.erl:6307-6319 | src/xep0054.erl:6354-6366 | src/xep0054.erl:6401-6413 | src/xep0054.erl:6448-6460 | src/xep0054.erl:6495-6507 | src/xep0054.erl:6542-6554 | src/xep0054.erl:6589-6601 | src/xep0054.erl:6636-6648 | src/xep0054.erl:6683-6695 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 11) src/xep0388.erl:873— src/xep0388.erl:873-886 | src/xep0388.erl:898-911 | src/xep0388.erl:923-936 | src/xep0388.erl:948-961 | src/xep0388.erl:973-986 | src/xep0388.erl:998-1011 | src/xep0388.erl:1023-1036 | src/xep0388.erl:1048-1061 | src/xep0388.erl:1073-1086 | src/xep0388.erl:1098-1110 | src/xep0388.erl:1122-1135 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 12) src/xep0054.erl:4896— src/xep0054.erl:4896-4907 | src/xep0054.erl:4943-4954 | src/xep0054.erl:4990-5001 | src/xep0054.erl:5037-5048 | src/xep0054.erl:5084-5095 | src/xep0054.erl:5131-5142 | src/xep0054.erl:5178-5189 | src/xep0054.erl:5225-5236 | src/xep0054.erl:5272-5283 | src/xep0054.erl:5319-5330 | src/xep0054.erl:5366-5377 | src/xep0054.erl:5413-5424 — all 12 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.
Duplicated block (12 lines × 12) src/xep0054.erl:6166— src/xep0054.erl:6166-6177 | src/xep0054.erl:6213-6224 | src/xep0054.erl:6260-6271 | src/xep0054.erl:6307-6318 | src/xep0054.erl:6354-6365 | src/xep0054.erl:6401-6412 | src/xep0054.erl:6448-6459 | src/xep0054.erl:6495-6506 | src/xep0054.erl:6542-6553 | src/xep0054.erl:6589-6600 | src/xep0054.erl:6636-6647 | src/xep0054.erl:6683-6694 — all 12 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.
Duplicated block (12 lines × 12) src/xep0388.erl:851— src/xep0388.erl:851-862 | src/xep0388.erl:875-887 | src/xep0388.erl:900-912 | src/xep0388.erl:925-937 | src/xep0388.erl:950-962 | src/xep0388.erl:975-987 | src/xep0388.erl:1000-1012 | src/xep0388.erl:1025-1037 | src/xep0388.erl:1050-1062 | src/xep0388.erl:1075-1087 | src/xep0388.erl:1100-1111 | src/xep0388.erl:1124-1136 — all 12 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.
Duplicated block (10 lines × 3) src/muc_roomconfig.erl:1936— src/muc_roomconfig.erl:1936-1945 | src/pubsub_node_config.erl:2101-2110 | src/pubsub_publish_options.erl:2103-2112 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 151 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 × 3) src/pubsub_meta_data.erl:219— src/pubsub_meta_data.erl:219-228 | src/pubsub_node_config.erl:302-311 | src/pubsub_publish_options.erl:303-312 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 × 3) src/pubsub_meta_data.erl:262— src/pubsub_meta_data.erl:262-271 | src/pubsub_node_config.erl:368-378 | src/pubsub_publish_options.erl:369-379 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (5 lines × 2) src/xmpp_stream_in.erl:256— src/xmpp_stream_in.erl:256-260 | src/xmpp_stream_out.erl:257-261 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (5 lines × 2) src/xmpp_stream_in.erl:1800— src/xmpp_stream_in.erl:1800-1804 | src/xmpp_stream_out.erl:1513-1517 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (5 lines × 2) src/xmpp_stream_in.erl:1806— src/xmpp_stream_in.erl:1806-1810 | src/xmpp_stream_out.erl:1519-1523 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 4) src/xep0313.erl:1009— src/xep0313.erl:1009-1025 | src/xep0313.erl:1041-1057 | src/xep0313.erl:1073-1089 | src/xep0313.erl:1105-1121 — 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.
Duplicated block (17 lines × 4) src/xep0059.erl:135— src/xep0059.erl:135-151 | src/xep0059.erl:167-183 | src/xep0059.erl:199-215 | src/xep0059.erl:231-247 — 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.
Duplicated block (17 lines × 4) src/xep0055.erl:116— src/xep0055.erl:116-132 | src/xep0055.erl:148-164 | src/xep0055.erl:180-196 | src/xep0055.erl:212-228 — 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.
Duplicated block (16 lines × 5) src/xep0313.erl:1010— src/xep0313.erl:1010-1025 | src/xep0313.erl:1042-1057 | src/xep0313.erl:1074-1089 | src/xep0313.erl:1106-1121 | src/xep0313.erl:1138-1153 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 5) src/xep0059.erl:136— src/xep0059.erl:136-151 | src/xep0059.erl:168-183 | src/xep0059.erl:200-215 | src/xep0059.erl:232-247 | src/xep0059.erl:264-279 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 5) src/xep0055.erl:117— src/xep0055.erl:117-132 | src/xep0055.erl:149-164 | src/xep0055.erl:181-196 | src/xep0055.erl:213-228 | src/xep0055.erl:245-260 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 6) src/xep0313.erl:1011— src/xep0313.erl:1011-1025 | src/xep0313.erl:1043-1057 | src/xep0313.erl:1075-1089 | src/xep0313.erl:1107-1121 | src/xep0313.erl:1139-1153 | src/xep0313.erl:1171-1185 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 6) src/xep0059.erl:137— src/xep0059.erl:137-151 | src/xep0059.erl:169-183 | src/xep0059.erl:201-215 | src/xep0059.erl:233-247 | src/xep0059.erl:265-279 | src/xep0059.erl:297-311 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 6) src/xep0055.erl:118— src/xep0055.erl:118-132 | src/xep0055.erl:150-164 | src/xep0055.erl:182-196 | src/xep0055.erl:214-228 | src/xep0055.erl:246-260 | src/xep0055.erl:279-293 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication· Members sharing a duplicated core (15 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (15 members, 50+ identical tokens) src/captcha_form.erl:155— src/captcha_form.erl:155-173 | src/flex_offline.erl:140-158 | src/http_upload.erl:141-159 | src/mam_query.erl:140-158 | src/muc_register.erl:146-164 | src/muc_request.erl:143-161 | src/muc_roomconfig.erl:174-192 | src/muc_roominfo.erl:157-175 | src/pubsub_get_pending.erl:140-158 | src/pubsub_meta_data.erl:152-170 | src/pubsub_node_config.erl:172-190 | src/pubsub_publish_options.erl:172-190 | src/pubsub_subscribe_authorization.erl:143-161 | src/pubsub_subscribe_options.erl:147-165 | src/push_summary.erl:143-161 — These 15 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 15 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 15 times.
Members sharing a duplicated core (15 members, 50+ identical tokens) src/captcha_form.erl:183— src/captcha_form.erl:183-195 | src/flex_offline.erl:171-183 | src/http_upload.erl:174-186 | src/mam_query.erl:168-180 | src/muc_register.erl:181-193 | src/muc_request.erl:175-187 | src/muc_roomconfig.erl:205-217 | src/muc_roominfo.erl:188-200 | src/pubsub_get_pending.erl:173-185 | src/pubsub_meta_data.erl:183-195 | src/pubsub_node_config.erl:203-215 | src/pubsub_publish_options.erl:204-216 | src/pubsub_subscribe_authorization.erl:183-195 | src/pubsub_subscribe_options.erl:179-191 | src/push_summary.erl:171-183 — These 15 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 15 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 15 times.
Duplicated block (40–41 lines × 2) src/muc_roomconfig.erl:455— src/muc_roomconfig.erl:455-494 | src/muc_roominfo.erl:404-444 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 (40–41 lines × 2) src/muc_roomconfig.erl:1436— src/muc_roomconfig.erl:1436-1476 | src/muc_roominfo.erl:614-653 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 (30 lines × 2) src/pubsub_node_config.erl:2125— src/pubsub_node_config.erl:2125-2154 | src/pubsub_publish_options.erl:2127-2156 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (30 lines × 2) src/xep0054.erl:528— src/xep0054.erl:528-557 | src/xep0054.erl:3323-3352 — 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 (28 lines × 5) src/xep0054.erl:4819— src/xep0054.erl:4819-4846 | src/xep0054.erl:4866-4893 | src/xep0054.erl:4913-4940 | src/xep0054.erl:4960-4987 | src/xep0054.erl:5007-5034 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (28 lines × 5) src/xep0054.erl:6089— src/xep0054.erl:6089-6116 | src/xep0054.erl:6136-6163 | src/xep0054.erl:6183-6210 | src/xep0054.erl:6230-6257 | src/xep0054.erl:6277-6304 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (28 lines × 3) src/pubsub_meta_data.erl:281— src/pubsub_meta_data.erl:281-308 | src/pubsub_node_config.erl:630-657 | src/pubsub_publish_options.erl:632-659 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (28 lines × 3) src/xep0054.erl:906— src/xep0054.erl:906-933 | src/xep0054.erl:989-1016 | src/xep0054.erl:1072-1099 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (27 lines × 6) src/xep0054.erl:4820— src/xep0054.erl:4820-4846 | src/xep0054.erl:4867-4893 | src/xep0054.erl:4914-4940 | src/xep0054.erl:4961-4987 | src/xep0054.erl:5008-5034 | src/xep0054.erl:5055-5081 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (27 lines × 6) src/xep0054.erl:6090— src/xep0054.erl:6090-6116 | src/xep0054.erl:6137-6163 | src/xep0054.erl:6184-6210 | src/xep0054.erl:6231-6257 | src/xep0054.erl:6278-6304 | src/xep0054.erl:6325-6351 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (26 lines × 8) src/xep0054.erl:4822— src/xep0054.erl:4822-4847 | src/xep0054.erl:4869-4894 | src/xep0054.erl:4916-4941 | src/xep0054.erl:4963-4988 | src/xep0054.erl:5010-5035 | src/xep0054.erl:5057-5082 | src/xep0054.erl:5104-5129 | src/xep0054.erl:5151-5176 — all 8 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.
Duplicated block (26 lines × 8) src/xep0054.erl:6092— src/xep0054.erl:6092-6117 | src/xep0054.erl:6139-6164 | src/xep0054.erl:6186-6211 | src/xep0054.erl:6233-6258 | src/xep0054.erl:6280-6305 | src/xep0054.erl:6327-6352 | src/xep0054.erl:6374-6399 | src/xep0054.erl:6421-6446 — all 8 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.
Duplicated block (26 lines × 2) src/pubsub_node_config.erl:1886— src/pubsub_node_config.erl:1886-1911 | src/pubsub_publish_options.erl:1888-1913 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (26 lines × 2) src/xep0077.erl:1645— src/xep0077.erl:1645-1670 | src/xep0077.erl:1709-1734 — 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 (25 lines × 9) src/xep0054.erl:4823— src/xep0054.erl:4823-4847 | src/xep0054.erl:4870-4894 | src/xep0054.erl:4917-4941 | src/xep0054.erl:4964-4988 | src/xep0054.erl:5011-5035 | src/xep0054.erl:5058-5082 | src/xep0054.erl:5105-5129 | src/xep0054.erl:5152-5176 | src/xep0054.erl:5199-5223 — all 9 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.
Duplicated block (25 lines × 9) src/xep0054.erl:6093— src/xep0054.erl:6093-6117 | src/xep0054.erl:6140-6164 | src/xep0054.erl:6187-6211 | src/xep0054.erl:6234-6258 | src/xep0054.erl:6281-6305 | src/xep0054.erl:6328-6352 | src/xep0054.erl:6375-6399 | src/xep0054.erl:6422-6446 | src/xep0054.erl:6469-6493 — all 9 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.
Duplicated block (25 lines × 2) src/pubsub_node_config.erl:1918— src/pubsub_node_config.erl:1918-1942 | src/pubsub_publish_options.erl:1920-1944 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (25 lines × 2) src/xep0054.erl:3331— src/xep0054.erl:3331-3355 | src/xep0077.erl:1894-1918 — before extracting anything, compare `src/xep0054.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 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 (24 lines × 10) src/xep0054.erl:4824— src/xep0054.erl:4824-4847 | src/xep0054.erl:4871-4894 | src/xep0054.erl:4918-4941 | src/xep0054.erl:4965-4988 | src/xep0054.erl:5012-5035 | src/xep0054.erl:5059-5082 | src/xep0054.erl:5106-5129 | src/xep0054.erl:5153-5176 | src/xep0054.erl:5200-5223 | src/xep0054.erl:5247-5270 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (24 lines × 10) src/xep0054.erl:6094— src/xep0054.erl:6094-6117 | src/xep0054.erl:6141-6164 | src/xep0054.erl:6188-6211 | src/xep0054.erl:6235-6258 | src/xep0054.erl:6282-6305 | src/xep0054.erl:6329-6352 | src/xep0054.erl:6376-6399 | src/xep0054.erl:6423-6446 | src/xep0054.erl:6470-6493 | src/xep0054.erl:6517-6540 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (22 lines × 2) src/xep0060.erl:2856— src/xep0060.erl:2856-2877 | src/xep0060.erl:3006-3027 — 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 (22 lines × 2) src/xep0054.erl:680— src/xep0054.erl:680-701 | src/xep0077.erl:325-346 — before extracting anything, compare `src/xep0054.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 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 (21 lines × 2) src/xep0054.erl:5367— src/xep0054.erl:5367-5387 | src/xep0054.erl:5414-5434 — 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 (21 lines × 2) src/xep0054.erl:6637— src/xep0054.erl:6637-6657 | src/xep0054.erl:6684-6704 — 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 (20 lines × 3) src/xep0054.erl:5320— src/xep0054.erl:5320-5339 | src/xep0054.erl:5367-5386 | src/xep0054.erl:5414-5433 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20 lines × 3) src/xep0054.erl:6590— src/xep0054.erl:6590-6609 | src/xep0054.erl:6637-6656 | src/xep0054.erl:6684-6703 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 4) src/xep0054.erl:5273— src/xep0054.erl:5273-5291 | src/xep0054.erl:5320-5338 | src/xep0054.erl:5367-5385 | src/xep0054.erl:5414-5432 — 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.
Duplicated block (19 lines × 4) src/xep0054.erl:6543— src/xep0054.erl:6543-6561 | src/xep0054.erl:6590-6608 | src/xep0054.erl:6637-6655 | src/xep0054.erl:6684-6702 — 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.
Duplicated block (18 lines × 5) src/xep0054.erl:5226— src/xep0054.erl:5226-5243 | src/xep0054.erl:5273-5290 | src/xep0054.erl:5320-5337 | src/xep0054.erl:5367-5384 | src/xep0054.erl:5414-5431 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18 lines × 5) src/xep0054.erl:6496— src/xep0054.erl:6496-6513 | src/xep0054.erl:6543-6560 | src/xep0054.erl:6590-6607 | src/xep0054.erl:6637-6654 | src/xep0054.erl:6684-6701 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 8) src/xep0054.erl:5085— src/xep0054.erl:5085-5099 | src/xep0054.erl:5132-5146 | src/xep0054.erl:5179-5193 | src/xep0054.erl:5226-5240 | src/xep0054.erl:5273-5287 | src/xep0054.erl:5320-5334 | src/xep0054.erl:5367-5381 | src/xep0054.erl:5414-5428 — all 8 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.
Duplicated block (15 lines × 8) src/xep0054.erl:6355— src/xep0054.erl:6355-6369 | src/xep0054.erl:6402-6416 | src/xep0054.erl:6449-6463 | src/xep0054.erl:6496-6510 | src/xep0054.erl:6543-6557 | src/xep0054.erl:6590-6604 | src/xep0054.erl:6637-6651 | src/xep0054.erl:6684-6698 — all 8 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.
Duplicated block (14 lines × 12) src/xep0060.erl:2147— src/xep0060.erl:2147-2160 | src/xep0060.erl:2200-2213 | src/xep0060.erl:2253-2266 | src/xep0060.erl:2328-2341 | src/xep0060.erl:2381-2394 | src/xep0060.erl:2456-2469 | src/xep0060.erl:2532-2545 | src/xep0060.erl:2585-2598 | src/xep0060.erl:2660-2673 | src/xep0060.erl:2757-2770 | src/xep0060.erl:2854-2867 | src/xep0060.erl:3004-3017 — all 12 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.
Duplicated block (14 lines × 12) src/rfc6120.erl:3053— src/rfc6120.erl:3053-3066 | src/rfc6120.erl:3075-3089 | src/rfc6120.erl:3098-3112 | src/rfc6120.erl:3121-3135 | src/rfc6120.erl:3144-3158 | src/rfc6120.erl:3167-3181 | src/rfc6120.erl:3190-3204 | src/rfc6120.erl:3213-3227 | src/rfc6120.erl:3236-3250 | src/rfc6120.erl:3259-3272 | src/rfc6120.erl:3281-3294 | src/rfc6120.erl:3303-3317 — all 12 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.
Duplicated block (12 lines × 5) src/xep0054.erl:5741— src/xep0054.erl:5741-5752 | src/xep0054.erl:5775-5786 | src/xep0054.erl:5809-5820 | src/xep0054.erl:5843-5854 | src/xep0054.erl:5877-5888 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 5) src/xep0260.erl:163— src/xep0260.erl:163-174 | src/xep0260.erl:191-202 | src/xep0260.erl:218-229 | src/xep0260.erl:245-256 | src/xep0260.erl:272-283 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 3) src/pubsub_meta_data.erl:701— src/pubsub_meta_data.erl:701-712 | src/pubsub_node_config.erl:1694-1705 | src/pubsub_publish_options.erl:1696-1707 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 lines × 3) src/xep0054.erl:4570— src/xep0054.erl:4570-4581 | src/xep0054.erl:4600-4611 | src/xep0054.erl:4630-4641 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 13) src/xep0054.erl:4849— src/xep0054.erl:4849-4859 | src/xep0054.erl:4896-4906 | src/xep0054.erl:4943-4953 | src/xep0054.erl:4990-5000 | src/xep0054.erl:5037-5047 | src/xep0054.erl:5084-5094 | src/xep0054.erl:5131-5141 | src/xep0054.erl:5178-5188 | src/xep0054.erl:5225-5235 | src/xep0054.erl:5272-5282 | src/xep0054.erl:5319-5329 | src/xep0054.erl:5366-5376 | src/xep0054.erl:5413-5423 — all 13 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.
Duplicated block (11 lines × 13) src/xep0054.erl:6119— src/xep0054.erl:6119-6129 | src/xep0054.erl:6166-6176 | src/xep0054.erl:6213-6223 | src/xep0054.erl:6260-6270 | src/xep0054.erl:6307-6317 | src/xep0054.erl:6354-6364 | src/xep0054.erl:6401-6411 | src/xep0054.erl:6448-6458 | src/xep0054.erl:6495-6505 | src/xep0054.erl:6542-6552 | src/xep0054.erl:6589-6599 | src/xep0054.erl:6636-6646 | src/xep0054.erl:6683-6693 — all 13 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.
Duplicated block (10 lines × 14) src/xep0054.erl:4802— src/xep0054.erl:4802-4811 | src/xep0054.erl:4849-4858 | src/xep0054.erl:4896-4905 | src/xep0054.erl:4943-4952 | src/xep0054.erl:4990-4999 | src/xep0054.erl:5037-5046 | src/xep0054.erl:5084-5093 | src/xep0054.erl:5131-5140 | src/xep0054.erl:5178-5187 | src/xep0054.erl:5225-5234 | src/xep0054.erl:5272-5281 | src/xep0054.erl:5319-5328 | src/xep0054.erl:5366-5375 | src/xep0054.erl:5413-5422 — all 14 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.
Duplicated block (10 lines × 14) src/xep0054.erl:6072— src/xep0054.erl:6072-6081 | src/xep0054.erl:6119-6128 | src/xep0054.erl:6166-6175 | src/xep0054.erl:6213-6222 | src/xep0054.erl:6260-6269 | src/xep0054.erl:6307-6316 | src/xep0054.erl:6354-6363 | src/xep0054.erl:6401-6410 | src/xep0054.erl:6448-6457 | src/xep0054.erl:6495-6504 | src/xep0054.erl:6542-6551 | src/xep0054.erl:6589-6598 | src/xep0054.erl:6636-6645 | src/xep0054.erl:6683-6692 — all 14 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.
Duplicated block (7 lines × 5) src/xep0045.erl:1338— src/xep0045.erl:1338-1344 | src/xep0048.erl:460-466 | src/xep0077.erl:2660-2666 | src/xep0078.erl:356-362 | src/xep0402.erl:325-331 — 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 5 call sites, so a change lands once.
Duplicated block (7 lines × 5) src/xep0048.erl:503— src/xep0048.erl:503-509 | src/xep0055.erl:655-661 | src/xep0077.erl:2703-2709 | src/xep0369.erl:1235-1241 | src/xep0402.erl:371-377 — before extracting anything, compare `src/xep0055.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 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 × 2) src/xep0260.erl:422— src/xep0260.erl:422-431 | src/xep0261.erl:120-129 — 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 (10 lines × 2) src/xep0363.erl:555— src/xep0363.erl:555-564 | src/xep0417.erl:294-303 — 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 (23 lines × 11) src/xep0054.erl:4825— src/xep0054.erl:4825-4847 | src/xep0054.erl:4872-4894 | src/xep0054.erl:4919-4941 | src/xep0054.erl:4966-4988 | src/xep0054.erl:5013-5035 | src/xep0054.erl:5060-5082 | src/xep0054.erl:5107-5129 | src/xep0054.erl:5154-5176 | src/xep0054.erl:5201-5223 | src/xep0054.erl:5248-5270 | src/xep0054.erl:5295-5317 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (23 lines × 11) src/xep0054.erl:6095— src/xep0054.erl:6095-6117 | src/xep0054.erl:6142-6164 | src/xep0054.erl:6189-6211 | src/xep0054.erl:6236-6258 | src/xep0054.erl:6283-6305 | src/xep0054.erl:6330-6352 | src/xep0054.erl:6377-6399 | src/xep0054.erl:6424-6446 | src/xep0054.erl:6471-6493 | src/xep0054.erl:6518-6540 | src/xep0054.erl:6565-6587 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (22 lines × 12) src/xep0054.erl:6096— src/xep0054.erl:6096-6117 | src/xep0054.erl:6143-6164 | src/xep0054.erl:6190-6211 | src/xep0054.erl:6237-6258 | src/xep0054.erl:6284-6305 | src/xep0054.erl:6331-6352 | src/xep0054.erl:6378-6399 | src/xep0054.erl:6425-6446 | src/xep0054.erl:6472-6493 | src/xep0054.erl:6519-6540 | src/xep0054.erl:6566-6587 | src/xep0054.erl:6613-6634 — all 12 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.
Duplicated block (22 lines × 12) src/xep0054.erl:4826— src/xep0054.erl:4826-4847 | src/xep0054.erl:4873-4894 | src/xep0054.erl:4920-4941 | src/xep0054.erl:4967-4988 | src/xep0054.erl:5014-5035 | src/xep0054.erl:5061-5082 | src/xep0054.erl:5108-5129 | src/xep0054.erl:5155-5176 | src/xep0054.erl:5202-5223 | src/xep0054.erl:5249-5270 | src/xep0054.erl:5296-5317 | src/xep0054.erl:5343-5364 — all 12 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.
Duplicated block (21 lines × 13) src/xep0054.erl:6097— src/xep0054.erl:6097-6117 | src/xep0054.erl:6144-6164 | src/xep0054.erl:6191-6211 | src/xep0054.erl:6238-6258 | src/xep0054.erl:6285-6305 | src/xep0054.erl:6332-6352 | src/xep0054.erl:6379-6399 | src/xep0054.erl:6426-6446 | src/xep0054.erl:6473-6493 | src/xep0054.erl:6520-6540 | src/xep0054.erl:6567-6587 | src/xep0054.erl:6614-6634 | src/xep0054.erl:6661-6681 — all 13 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.
Duplicated block (21 lines × 13) src/xep0054.erl:4827— src/xep0054.erl:4827-4847 | src/xep0054.erl:4874-4894 | src/xep0054.erl:4921-4941 | src/xep0054.erl:4968-4988 | src/xep0054.erl:5015-5035 | src/xep0054.erl:5062-5082 | src/xep0054.erl:5109-5129 | src/xep0054.erl:5156-5176 | src/xep0054.erl:5203-5223 | src/xep0054.erl:5250-5270 | src/xep0054.erl:5297-5317 | src/xep0054.erl:5344-5364 | src/xep0054.erl:5391-5411 — all 13 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.
Duplicated block (20 lines × 2) src/xep0234.erl:578— src/xep0234.erl:578-597 | src/xep0234.erl:614-633 — 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 (20 lines × 2) src/xep0054.erl:5652— src/xep0054.erl:5652-5671 | src/xep0054.erl:5686-5705 — 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 (19 lines × 3) src/xep0234.erl:579— src/xep0234.erl:579-597 | src/xep0234.erl:615-633 | src/xep0234.erl:651-669 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 3) src/xep0054.erl:5653— src/xep0054.erl:5653-5671 | src/xep0054.erl:5687-5705 | src/xep0054.erl:5721-5739 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 5) src/xep0234.erl:581— src/xep0234.erl:581-597 | src/xep0234.erl:617-633 | src/xep0234.erl:653-670 | src/xep0234.erl:688-705 | src/xep0234.erl:723-739 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 5) src/xep0054.erl:5655— src/xep0054.erl:5655-5671 | src/xep0054.erl:5689-5705 | src/xep0054.erl:5723-5739 | src/xep0054.erl:5757-5773 | src/xep0054.erl:5791-5807 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 5) src/xep0045.erl:1433— src/xep0045.erl:1433-1446 | src/xep0045.erl:1476-1489 | src/xep0045.erl:1531-1544 | src/xep0045.erl:1563-1575 | src/xep0045.erl:1594-1607 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 5) src/xep0234.erl:671— src/xep0234.erl:671-683 | src/xep0234.erl:706-718 | src/xep0234.erl:741-753 | src/xep0234.erl:776-788 | src/xep0234.erl:811-823 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 4) src/xep0060.erl:1607— src/xep0060.erl:1607-1618 | src/xep0060.erl:1650-1661 | src/xep0060.erl:1705-1716 | src/xep0060.erl:1760-1771 — 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.
Duplicated block (12 lines × 4) src/xep0059.erl:216— src/xep0059.erl:216-227 | src/xep0059.erl:248-259 | src/xep0059.erl:280-291 | src/xep0059.erl:312-323 — 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.
Duplicated block (10 lines × 6) src/xep0054.erl:4479— src/xep0054.erl:4479-4488 | src/xep0054.erl:4509-4518 | src/xep0054.erl:4539-4548 | src/xep0054.erl:4569-4578 | src/xep0054.erl:4599-4608 | src/xep0054.erl:4629-4638 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 6) src/xep0059.erl:152— src/xep0059.erl:152-161 | src/xep0059.erl:184-193 | src/xep0059.erl:216-225 | src/xep0059.erl:248-257 | src/xep0059.erl:280-289 | src/xep0059.erl:312-321 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 6) src/mam_query.erl:354— src/mam_query.erl:354-361 | src/mam_query.erl:368-375 | src/muc_roomconfig.erl:1958-1967 | src/muc_roomconfig.erl:1974-1983 | src/muc_roominfo.erl:1052-1061 | src/muc_roominfo.erl:1182-1191 — before extracting anything, compare `src/mam_query.erl` and `src/muc_roomconfig.erl` as WHOLE FILES: this scan already matched 9 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.
Duplicated block (8 lines × 6) src/muc_register.erl:486— src/muc_register.erl:486-493 | src/muc_roominfo.erl:1215-1224 | src/pubsub_node_config.erl:1642-1651 | src/pubsub_node_config.erl:1678-1687 | src/pubsub_publish_options.erl:1644-1653 | src/pubsub_publish_options.erl:1680-1689 — before extracting anything, compare `src/muc_register.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 10 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.
Duplicated block (10 lines × 7) src/xep0054.erl:5673— src/xep0054.erl:5673-5682 | src/xep0054.erl:5707-5716 | src/xep0054.erl:5741-5750 | src/xep0054.erl:5775-5784 | src/xep0054.erl:5809-5818 | src/xep0054.erl:5843-5852 | src/xep0054.erl:5877-5886 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 7) src/xep0059.erl:119— src/xep0059.erl:119-128 | src/xep0059.erl:151-160 | src/xep0059.erl:183-192 | src/xep0059.erl:215-224 | src/xep0059.erl:247-256 | src/xep0059.erl:279-288 | src/xep0059.erl:311-320 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
muc_roomconfig.do_decode (cyclomatic 142) src/muc_roomconfig.erl:423— muc_roomconfig.do_decode has cyclomatic complexity 142 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
pubsub_node_config.do_decode (cyclomatic 133) src/pubsub_node_config.erl:430— pubsub_node_config.do_decode has cyclomatic complexity 133 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
pubsub_publish_options.do_decode (cyclomatic 133) src/pubsub_publish_options.erl:432— pubsub_publish_options.do_decode has cyclomatic complexity 133 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
muc_roominfo.do_decode (cyclomatic 75) src/muc_roominfo.erl:293— muc_roominfo.do_decode has cyclomatic complexity 75 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
captcha_form.do_decode (cyclomatic 68) src/captcha_form.erl:268— captcha_form.do_decode has cyclomatic complexity 68 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0054.decode_vcard_temp_els (cyclomatic 64) src/xep0054.erl:776— xep0054.decode_vcard_temp_els has cyclomatic complexity 64 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
pubsub_meta_data.do_decode (cyclomatic 56) src/pubsub_meta_data.erl:281— pubsub_meta_data.do_decode has cyclomatic complexity 56 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
rfc6120.decode_stream_error_els (cyclomatic 56) src/rfc6120.erl:1400— rfc6120.decode_stream_error_els has cyclomatic complexity 56 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
rfc6120.decode_error_els (cyclomatic 54) src/rfc6120.erl:4145— rfc6120.decode_error_els has cyclomatic complexity 54 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0077.decode_register_els (cyclomatic 48) src/xep0077.erl:397— xep0077.decode_register_els has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0198.decode_sm_failed_els (cyclomatic 48) src/xep0198.erl:159— xep0198.decode_sm_failed_els has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0060.decode_pubsub_els (cyclomatic 45) src/xep0060.erl:1943— xep0060.decode_pubsub_els has cyclomatic complexity 45 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0060.do_decode (cyclomatic 64) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0166.decode_jingle_reason_els (cyclomatic 42) src/xep0166.erl:826— xep0166.decode_jingle_reason_els has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xmpp_stream_in.handle_info (cyclomatic 42) src/xmpp_stream_in.erl:366— xmpp_stream_in.handle_info has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
pubsub_subscribe_options.do_decode (cyclomatic 35) src/pubsub_subscribe_options.erl:264— pubsub_subscribe_options.do_decode has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xmpp_stream_out.handle_info (cyclomatic 33) src/xmpp_stream_out.erl:397— xmpp_stream_out.handle_info has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0388.decode_sasl2_failure_els (cyclomatic 32) src/xep0388.erl:833— xep0388.decode_sasl2_failure_els has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
muc_register.do_decode (cyclomatic 31) src/muc_register.erl:234— muc_register.do_decode has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0054.decode_vcard_ADR_els (cyclomatic 30) src/xep0054.erl:6053— xep0054.decode_vcard_ADR_els has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_TEL_els) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0054.decode_vcard_TEL_els (cyclomatic 30) src/xep0054.erl:4783— xep0054.decode_vcard_TEL_els has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_ADR_els) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xmpp_sasl_scram.mech_step (cyclomatic 30) src/xmpp_sasl_scram.erl:109— xmpp_sasl_scram.mech_step has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
rfc6120.decode_sasl_failure_els (cyclomatic 28) src/rfc6120.erl:3034— rfc6120.decode_sasl_failure_els has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xmpp_stream_in.process_stream (cyclomatic 26) src/xmpp_stream_in.erl:608— xmpp_stream_in.process_stream has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xmpp_stream_in.process_element (cyclomatic 35) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0060.decode_pubsub_event_els (cyclomatic 22) src/xep0060.erl:4539— xep0060.decode_pubsub_event_els has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0060.do_decode (cyclomatic 64) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0060.decode_pubsub_owner_els (cyclomatic 21) src/xep0060.erl:1522— xep0060.decode_pubsub_owner_els has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0060.do_decode (cyclomatic 64) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
mam_query.do_decode (cyclomatic 20) src/mam_query.erl:207— mam_query.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
muc_request.do_decode (cyclomatic 20) src/muc_request.erl:224— muc_request.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
pubsub_subscribe_authorization.do_decode (cyclomatic 20) src/pubsub_subscribe_authorization.erl:230— pubsub_subscribe_authorization.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
push_summary.do_decode (cyclomatic 20) src/push_summary.erl:219— push_summary.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
rfc6120.decode_message_els (cyclomatic 18) src/rfc6120.erl:6089— rfc6120.decode_message_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (rfc6120.decode_presence_els) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
rfc6120.decode_presence_els (cyclomatic 18) src/rfc6120.erl:5473— rfc6120.decode_presence_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (rfc6120.decode_message_els) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0045.decode_muc_user_els (cyclomatic 18) src/xep0045.erl:1405— xep0045.decode_muc_user_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0045.do_decode (cyclomatic 26) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0054.decode_vcard_LABEL_els (cyclomatic 18) src/xep0054.erl:5627— xep0054.decode_vcard_LABEL_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xep0234.decode_jingle_ft_file_els (cyclomatic 18) src/xep0234.erl:551— xep0234.decode_jingle_ft_file_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xmpp_stream_out.handle_cast (cyclomatic 18) src/xmpp_stream_out.erl:343— xmpp_stream_out.handle_cast has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xmpp_stream_in.handle_cast (cyclomatic 17) src/xmpp_stream_in.erl:302— xmpp_stream_in.handle_cast has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xmpp_stream_in.process_element (cyclomatic 35) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xdata_codec.get_dec_fun (cyclomatic 16) src/xdata_codec.erl:640— xdata_codec.get_dec_fun has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0055.decode_search_els (cyclomatic 16) src/xep0055.erl:90— xep0055.decode_search_els has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0059.decode_rsm_set_els (cyclomatic 16) src/xep0059.erl:115— xep0059.decode_rsm_set_els has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
xep0313.decode_mam_query_els (cyclomatic 16) src/xep0313.erl:989— xep0313.decode_mam_query_els has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: xep0313.do_decode (cyclomatic 35) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
xmpp_sasl_digest.mech_step (cyclomatic 16) src/xmpp_sasl_digest.erl:68— xmpp_sasl_digest.mech_step has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
No dependency lockfile committed (rebar.config) — rebar.config declares 6 dependencies but no lockfile (rebar.lock or mix.lock) is committed beside it, so `rebar3 compile` resolves versions afresh on every machine and every CI run — two builds of this commit are not guaranteed to be the same build. Run `rebar3 compile` and commit the resulting `rebar.lock`.
muc_roomconfig.do_decode (cognitive 117) src/muc_roomconfig.erl:423— muc_roomconfig.do_decode has cognitive complexity 117 (threshold 15). Drivers by points: match/switch 71, error handling 35, loops 5 (10 pts), if/else 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
pubsub_node_config.do_decode (cognitive 111) src/pubsub_node_config.erl:430— pubsub_node_config.do_decode has cognitive complexity 111 (threshold 15). Drivers by points: match/switch 67, error handling 33, loops 5 (10 pts), if/else 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
pubsub_publish_options.do_decode (cognitive 111) src/pubsub_publish_options.erl:432— pubsub_publish_options.do_decode has cognitive complexity 111 (threshold 15). Drivers by points: match/switch 67, error handling 33, loops 5 (10 pts), if/else 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_sasl_scram.mech_step (cognitive 70) src/xmpp_sasl_scram.erl:109— xmpp_sasl_scram.mech_step has cognitive complexity 70 (threshold 15). Drivers by points: match/switch 23 (61 pts), error handling 2 (6 pts), if/else 3 (nesting depth added 42). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0054.decode_vcard_temp_els (cognitive 62) src/xep0054.erl:776— xep0054.decode_vcard_temp_els has cognitive complexity 62 (threshold 15). Drivers by points: match/switch 61 (62 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
muc_roominfo.do_decode (cognitive 60) src/muc_roominfo.erl:293— muc_roominfo.do_decode has cognitive complexity 60 (threshold 15). Drivers by points: match/switch 37, error handling 18, loops 2 (4 pts), if/else 1 (nesting depth added 2). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
rfc6120.decode_stream_error_els (cognitive 54) src/rfc6120.erl:1400— rfc6120.decode_stream_error_els has cognitive complexity 54 (threshold 15). Drivers by points: match/switch 54. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
rfc6120.decode_error_els (cognitive 52) src/rfc6120.erl:4145— rfc6120.decode_error_els has cognitive complexity 52 (threshold 15). Drivers by points: match/switch 51 (52 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
captcha_form.do_decode (cognitive 50) src/captcha_form.erl:268— captcha_form.do_decode has cognitive complexity 50 (threshold 15). Drivers by points: match/switch 33, error handling 16, if/else 1. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
pubsub_meta_data.do_decode (cognitive 47) src/pubsub_meta_data.erl:281— pubsub_meta_data.do_decode has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 27, error handling 13, loops 3 (6 pts), if/else 1 (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0077.decode_register_els (cognitive 46) src/xep0077.erl:397— xep0077.decode_register_els has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 45 (46 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0198.decode_sm_failed_els (cognitive 46) src/xep0198.erl:159— xep0198.decode_sm_failed_els has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 46. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0166.decode_jingle_reason_els (cognitive 40) src/xep0166.erl:826— xep0166.decode_jingle_reason_els has cognitive complexity 40 (threshold 15). Drivers by points: match/switch 39 (40 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0060.decode_pubsub_els (cognitive 32) src/xep0060.erl:1943— xep0060.decode_pubsub_els has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 32. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0388.decode_sasl2_failure_els (cognitive 30) src/xep0388.erl:833— xep0388.decode_sasl2_failure_els has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 29 (30 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_stream_in.handle_info (cognitive 29) src/xmpp_stream_in.erl:366— xmpp_stream_in.handle_info has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 13 (19 pts), error handling 8 (10 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
pubsub_subscribe_options.do_decode (cognitive 28) src/pubsub_subscribe_options.erl:264— pubsub_subscribe_options.do_decode has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 17, error handling 8, loops 1 (2 pts), if/else 1 (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0054.decode_vcard_ADR_els (cognitive 28) src/xep0054.erl:6053— xep0054.decode_vcard_ADR_els has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_TEL_els) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
xep0054.decode_vcard_TEL_els (cognitive 28) src/xep0054.erl:4783— xep0054.decode_vcard_TEL_els has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_ADR_els) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
rfc6120.decode_sasl_failure_els (cognitive 26) src/rfc6120.erl:3034— rfc6120.decode_sasl_failure_els has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 26. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
muc_register.do_decode (cognitive 25) src/muc_register.erl:234— muc_register.do_decode has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 15, error handling 7, loops 1 (2 pts), if/else 1 (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_stream_out.handle_info (cognitive 22) src/xmpp_stream_out.erl:397— xmpp_stream_out.handle_info has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9 (12 pts), error handling 8 (10 pts) (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_stream_in.process_stream (cognitive 20) src/xmpp_stream_in.erl:608— xmpp_stream_in.process_stream has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (10 pts), boolean chains 5, if/else 3, error handling 2 (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_sasl_digest.mech_step (cognitive 18) src/xmpp_sasl_digest.erl:68— xmpp_sasl_digest.mech_step has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 9 (18 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_socket.get_tls_cert_hash (cognitive 18) src/xmpp_socket.erl:385— xmpp_socket.get_tls_cert_hash has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (13 pts), error handling 2 (5 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_stream_in.process_sasl2_request (cognitive 17) src/xmpp_stream_in.erl:1095— xmpp_stream_in.process_sasl2_request has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 9 (13 pts), error handling 3 (4 pts) (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_stream_out.handle_cast (cognitive 17) src/xmpp_stream_out.erl:343— xmpp_stream_out.handle_cast has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (12 pts), error handling 2 (5 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0054.decode_vcard_LABEL_els (cognitive 16) src/xep0054.erl:5627— xep0054.decode_vcard_LABEL_els has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xep0234.decode_jingle_ft_file_els (cognitive 16) src/xep0234.erl:551— xep0234.decode_jingle_ft_file_els has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
xmpp_stream_in.process_bind2 (cognitive 16) src/xmpp_stream_in.erl:1258— xmpp_stream_in.process_bind2 has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (12 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Change coupling: xmpp_sasl_digest.erl ↔ xmpp_sasl_scram.erl src/xmpp_sasl_digest.erl— `src/xmpp_sasl_digest.erl` and `src/xmpp_sasl_scram.erl` change together 91% of the time (10 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `8c1920d4` Improve handling of c=y sasl flag when plus variants are disabled; `89d93b1f` Add guards for undefined ClientIn; `8929be60` Support for get_password returning multiple passwords — run `git show` on any of them.
D4 · Code Duplication· Near-duplicate member family (15 members, 20 shared lines) · ×1
Near-duplicate member family (15 members, 20 shared lines) src/captcha_form.erl:268— src/captcha_form.erl:268-762 | src/flex_offline.erl:205-245 | src/http_upload.erl:207-246 | src/mam_query.erl:207-334 | src/muc_register.erl:234-449 | src/muc_request.erl:224-354 | src/muc_roomconfig.erl:423-1650 | src/muc_roominfo.erl:293-932 | src/pubsub_get_pending.erl:213-252 | src/pubsub_meta_data.erl:281-696 | src/pubsub_node_config.erl:430-1508 | src/pubsub_publish_options.erl:432-1510 | src/pubsub_subscribe_authorization.erl:230-364 | src/pubsub_subscribe_options.erl:264-530 | src/push_summary.erl:219-361 — These 15 members are variants of one another: a block of 20 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 15 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 15 times.
Near-duplicate member pair (54 shared lines) src/xmpp_stream_in.erl:366— src/xmpp_stream_in.erl:366-480 | src/xmpp_stream_out.erl:397-489 — These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (23 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (23 members, 50+ identical tokens) src/muc_request.erl:360— src/muc_request.erl:360-377 | src/muc_roomconfig.erl:1673-1699 | src/muc_roomconfig.erl:1727-1752 | src/muc_roomconfig.erl:2233-2253 | src/muc_roominfo.erl:989-1015 | src/pubsub_meta_data.erl:883-922 | src/pubsub_meta_data.erl:928-954 | src/pubsub_node_config.erl:1514-1554 | src/pubsub_node_config.erl:1582-1616 | src/pubsub_node_config.erl:1797-1825 | src/pubsub_node_config.erl:1886-1911 | src/pubsub_node_config.erl:1918-1942 | src/pubsub_node_config.erl:2050-2077 | src/pubsub_node_config.erl:2125-2154 | src/pubsub_publish_options.erl:1516-1556 | src/pubsub_publish_options.erl:1584-1618 | src/pubsub_publish_options.erl:1799-1827 | src/pubsub_publish_options.erl:1888-1913 | src/pubsub_publish_options.erl:1920-1944 | src/pubsub_publish_options.erl:2052-2079 | src/pubsub_publish_options.erl:2127-2156 | src/pubsub_subscribe_options.erl:668-691 | src/pubsub_subscribe_options.erl:698-723 — These 23 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 23 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 23 times.
D4 · Code Duplication· Members sharing a duplicated core (16 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (16 members, 50+ identical tokens) src/captcha_form.erl:137— src/captcha_form.erl:137-153 | src/flex_offline.erl:122-138 | src/http_upload.erl:123-139 | src/mam_query.erl:122-138 | src/muc_register.erl:128-144 | src/muc_request.erl:125-141 | src/muc_roomconfig.erl:156-172 | src/muc_roominfo.erl:139-155 | src/pubsub_get_pending.erl:122-138 | src/pubsub_meta_data.erl:134-150 | src/pubsub_node_config.erl:154-170 | src/pubsub_publish_options.erl:154-170 | src/pubsub_subscribe_authorization.erl:125-141 | src/pubsub_subscribe_options.erl:129-145 | src/push_summary.erl:125-141 | src/xdata_codec.erl:183-194 — These 16 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 16 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 16 times.
Duplicated block (337 lines × 2) src/pubsub_node_config.erl:918— src/pubsub_node_config.erl:918-1254 | src/pubsub_publish_options.erl:920-1256 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (206 lines × 2) src/pubsub_node_config.erl:221— src/pubsub_node_config.erl:221-426 | src/pubsub_publish_options.erl:222-427 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (185 lines × 2) src/pubsub_node_config.erl:456— src/pubsub_node_config.erl:456-640 | src/pubsub_publish_options.erl:458-642 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (176 lines × 2) src/pubsub_node_config.erl:1272— src/pubsub_node_config.erl:1272-1447 | src/pubsub_publish_options.erl:1274-1449 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (131 lines × 2) src/pubsub_node_config.erl:649— src/pubsub_node_config.erl:649-779 | src/pubsub_publish_options.erl:651-781 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (79 lines × 2) src/pubsub_node_config.erl:794— src/pubsub_node_config.erl:794-872 | src/pubsub_publish_options.erl:796-874 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (60 lines × 3) src/pubsub_meta_data.erl:527— src/pubsub_meta_data.erl:527-586 | src/pubsub_node_config.erl:1439-1498 | src/pubsub_publish_options.erl:1441-1500 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (41–42 lines × 2) src/muc_roomconfig.erl:879— src/muc_roomconfig.erl:879-920 | src/muc_roominfo.erl:835-875 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 (41 lines × 2) src/muc_roomconfig.erl:840— src/muc_roomconfig.erl:840-880 | src/muc_roominfo.erl:325-365 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 (39–40 lines × 3) src/pubsub_meta_data.erl:883— src/pubsub_meta_data.erl:883-921 | src/pubsub_node_config.erl:1514-1553 | src/pubsub_publish_options.erl:1516-1555 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (38 lines × 28) src/xep0054.erl:853— src/xep0054.erl:853-890 | src/xep0054.erl:935-972 | src/xep0054.erl:1017-1054 | src/xep0054.erl:1099-1136 | src/xep0054.erl:1181-1218 | src/xep0054.erl:1262-1299 | src/xep0054.erl:1343-1380 | src/xep0054.erl:1424-1461 | src/xep0054.erl:1505-1542 | src/xep0054.erl:1586-1623 | src/xep0054.erl:1667-1704 | src/xep0054.erl:1748-1785 | src/xep0054.erl:1829-1866 | src/xep0054.erl:1910-1947 | src/xep0054.erl:1991-2028 | src/xep0054.erl:2072-2109 | src/xep0054.erl:2153-2190 | src/xep0054.erl:2234-2271 | src/xep0054.erl:2315-2352 | src/xep0054.erl:2396-2433 | src/xep0054.erl:2477-2514 | src/xep0054.erl:2558-2595 | src/xep0054.erl:2639-2676 | src/xep0054.erl:2720-2757 | src/xep0054.erl:2801-2838 | src/xep0054.erl:2882-2919 | src/xep0054.erl:2963-3000 | src/xep0054.erl:3044-3081 — all 28 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.
Duplicated block (37 lines × 29) src/xep0054.erl:854— src/xep0054.erl:854-890 | src/xep0054.erl:936-972 | src/xep0054.erl:1018-1054 | src/xep0054.erl:1100-1136 | src/xep0054.erl:1182-1218 | src/xep0054.erl:1263-1299 | src/xep0054.erl:1344-1380 | src/xep0054.erl:1425-1461 | src/xep0054.erl:1506-1542 | src/xep0054.erl:1587-1623 | src/xep0054.erl:1668-1704 | src/xep0054.erl:1749-1785 | src/xep0054.erl:1830-1866 | src/xep0054.erl:1911-1947 | src/xep0054.erl:1992-2028 | src/xep0054.erl:2073-2109 | src/xep0054.erl:2154-2190 | src/xep0054.erl:2235-2271 | src/xep0054.erl:2316-2352 | src/xep0054.erl:2397-2433 | src/xep0054.erl:2478-2514 | src/xep0054.erl:2559-2595 | src/xep0054.erl:2640-2676 | src/xep0054.erl:2721-2757 | src/xep0054.erl:2802-2838 | src/xep0054.erl:2883-2919 | src/xep0054.erl:2964-3000 | src/xep0054.erl:3045-3081 | src/xep0054.erl:3126-3162 — all 29 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.
Duplicated block (35–37 lines × 3) src/pubsub_meta_data.erl:652— src/pubsub_meta_data.erl:652-686 | src/pubsub_node_config.erl:1245-1281 | src/pubsub_publish_options.erl:1247-1283 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (34–35 lines × 3) src/pubsub_meta_data.erl:618— src/pubsub_meta_data.erl:618-652 | src/pubsub_node_config.erl:430-463 | src/pubsub_publish_options.erl:432-465 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (35 lines × 2) src/pubsub_node_config.erl:1582— src/pubsub_node_config.erl:1582-1616 | src/pubsub_publish_options.erl:1584-1618 — before extracting anything, compare `src/pubsub_node_config.erl` and `src/pubsub_publish_options.erl` as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 2135 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 (31 lines × 2) src/xep0054.erl:558— src/xep0054.erl:558-588 | src/xep0054.erl:744-774 — 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 (30 lines × 20) src/xep0077.erl:458— src/xep0077.erl:458-487 | src/xep0077.erl:522-551 | src/xep0077.erl:586-615 | src/xep0077.erl:650-679 | src/xep0077.erl:714-743 | src/xep0077.erl:778-807 | src/xep0077.erl:842-871 | src/xep0077.erl:906-935 | src/xep0077.erl:970-999 | src/xep0077.erl:1034-1063 | src/xep0077.erl:1098-1127 | src/xep0077.erl:1162-1191 | src/xep0077.erl:1226-1255 | src/xep0077.erl:1290-1319 | src/xep0077.erl:1354-1383 | src/xep0077.erl:1418-1447 | src/xep0077.erl:1482-1511 | src/xep0077.erl:1546-1575 | src/xep0077.erl:1610-1639 | src/xep0077.erl:1674-1703 — all 20 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.
Duplicated block (29 lines × 36) src/xep0054.erl:856— src/xep0054.erl:856-884 | src/xep0054.erl:938-966 | src/xep0054.erl:1020-1048 | src/xep0054.erl:1102-1130 | src/xep0054.erl:1184-1212 | src/xep0054.erl:1265-1293 | src/xep0054.erl:1346-1374 | src/xep0054.erl:1427-1455 | src/xep0054.erl:1508-1536 | src/xep0054.erl:1589-1617 | src/xep0054.erl:1670-1698 | src/xep0054.erl:1751-1779 | src/xep0054.erl:1832-1860 | src/xep0054.erl:1913-1941 | src/xep0054.erl:1994-2022 | src/xep0054.erl:2075-2103 | src/xep0054.erl:2156-2184 | src/xep0054.erl:2237-2265 | src/xep0054.erl:2318-2346 | src/xep0054.erl:2399-2427 | src/xep0054.erl:2480-2508 | src/xep0054.erl:2561-2589 | src/xep0054.erl:2642-2670 | src/xep0054.erl:2723-2751 | src/xep0054.erl:2804-2832 | src/xep0054.erl:2885-2913 | src/xep0054.erl:2930-2958 | src/xep0054.erl:2966-2994 | src/xep0054.erl:3011-3039 | src/xep0054.erl:3047-3075 | src/xep0054.erl:3092-3120 | src/xep0054.erl:3128-3156 | src/xep0054.erl:3170-3198 | src/xep0054.erl:3209-3237 | src/xep0054.erl:3243-3271 | src/xep0054.erl:3287-3315 — all 36 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.
Duplicated block (29 lines × 21) src/xep0077.erl:459— src/xep0077.erl:459-487 | src/xep0077.erl:523-551 | src/xep0077.erl:587-615 | src/xep0077.erl:651-679 | src/xep0077.erl:715-743 | src/xep0077.erl:779-807 | src/xep0077.erl:843-871 | src/xep0077.erl:907-935 | src/xep0077.erl:971-999 | src/xep0077.erl:1035-1063 | src/xep0077.erl:1099-1127 | src/xep0077.erl:1163-1191 | src/xep0077.erl:1227-1255 | src/xep0077.erl:1291-1319 | src/xep0077.erl:1355-1383 | src/xep0077.erl:1419-1447 | src/xep0077.erl:1483-1511 | src/xep0077.erl:1547-1575 | src/xep0077.erl:1611-1639 | src/xep0077.erl:1675-1703 | src/xep0077.erl:1739-1767 — all 21 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.
Duplicated block (29 lines × 7) src/xep0054.erl:2602— src/xep0054.erl:2602-2630 | src/xep0054.erl:2683-2711 | src/xep0054.erl:2764-2792 | src/xep0054.erl:2845-2873 | src/xep0054.erl:2926-2954 | src/xep0054.erl:3007-3035 | src/xep0054.erl:3088-3116 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (29 lines × 4) src/xep0054.erl:385— src/xep0054.erl:385-413 | src/xep0054.erl:462-490 | src/xep0054.erl:495-523 | src/xmpp_codec.erl:1963-1991 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (28 lines × 9) src/xep0060.erl:2010— src/xep0060.erl:2010-2037 | src/xep0060.erl:2063-2090 | src/xep0060.erl:2116-2143 | src/xep0060.erl:2169-2196 | src/xep0060.erl:2222-2249 | src/xep0060.erl:2297-2324 | src/xep0060.erl:2350-2377 | src/xep0060.erl:2425-2452 | src/xep0060.erl:2500-2527 — all 9 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.
Duplicated block (28 lines × 8) src/xep0054.erl:2521— src/xep0054.erl:2521-2548 | src/xep0054.erl:2602-2629 | src/xep0054.erl:2683-2710 | src/xep0054.erl:2764-2791 | src/xep0054.erl:2845-2872 | src/xep0054.erl:2926-2953 | src/xep0054.erl:3007-3034 | src/xep0054.erl:3088-3115 — all 8 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.
Duplicated block (28 lines × 2) src/muc_roomconfig.erl:428— src/muc_roomconfig.erl:428-455 | src/muc_roominfo.erl:298-325 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 (27 lines × 10) src/xep0060.erl:2011— src/xep0060.erl:2011-2037 | src/xep0060.erl:2064-2090 | src/xep0060.erl:2117-2143 | src/xep0060.erl:2170-2196 | src/xep0060.erl:2223-2249 | src/xep0060.erl:2298-2324 | src/xep0060.erl:2351-2377 | src/xep0060.erl:2426-2452 | src/xep0060.erl:2501-2527 | src/xep0060.erl:2555-2581 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (27 lines × 9) src/xep0054.erl:2440— src/xep0054.erl:2440-2466 | src/xep0054.erl:2521-2547 | src/xep0054.erl:2602-2628 | src/xep0054.erl:2683-2709 | src/xep0054.erl:2764-2790 | src/xep0054.erl:2845-2871 | src/xep0054.erl:2926-2952 | src/xep0054.erl:3007-3033 | src/xep0054.erl:3088-3114 — all 9 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.
Duplicated block (27 lines × 4) src/xep0054.erl:906— src/xep0054.erl:906-932 | src/xep0054.erl:989-1015 | src/xep0054.erl:1072-1098 | src/xep0054.erl:1155-1181 — 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.
Duplicated block (26–27 lines × 3) src/pubsub_meta_data.erl:928— src/pubsub_meta_data.erl:928-953 | src/pubsub_node_config.erl:2050-2076 | src/pubsub_publish_options.erl:2052-2078 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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 (27 lines × 2) src/muc_roomconfig.erl:1673— src/muc_roomconfig.erl:1673-1699 | src/muc_roominfo.erl:989-1015 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 (26–27 lines × 2) src/xmpp_stream_in.erl:423— src/xmpp_stream_in.erl:423-449 | src/xmpp_stream_out.erl:426-451 — before extracting anything, compare `src/xmpp_stream_in.erl` and `src/xmpp_stream_out.erl` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 192 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 (26 lines × 12) src/xep0060.erl:2013— src/xep0060.erl:2013-2038 | src/xep0060.erl:2066-2091 | src/xep0060.erl:2119-2144 | src/xep0060.erl:2172-2197 | src/xep0060.erl:2225-2250 | src/xep0060.erl:2300-2325 | src/xep0060.erl:2353-2378 | src/xep0060.erl:2428-2453 | src/xep0060.erl:2503-2528 | src/xep0060.erl:2557-2582 | src/xep0060.erl:2632-2657 | src/xep0060.erl:2729-2754 — all 12 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.
Duplicated block (26 lines × 10) src/xep0054.erl:2359— src/xep0054.erl:2359-2384 | src/xep0054.erl:2440-2465 | src/xep0054.erl:2521-2546 | src/xep0054.erl:2602-2627 | src/xep0054.erl:2683-2708 | src/xep0054.erl:2764-2789 | src/xep0054.erl:2845-2870 | src/xep0054.erl:2926-2951 | src/xep0054.erl:3007-3032 | src/xep0054.erl:3088-3113 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (25 lines × 13) src/xep0060.erl:2014— src/xep0060.erl:2014-2038 | src/xep0060.erl:2067-2091 | src/xep0060.erl:2120-2144 | src/xep0060.erl:2173-2197 | src/xep0060.erl:2226-2250 | src/xep0060.erl:2301-2325 | src/xep0060.erl:2354-2378 | src/xep0060.erl:2429-2453 | src/xep0060.erl:2504-2528 | src/xep0060.erl:2558-2582 | src/xep0060.erl:2633-2657 | src/xep0060.erl:2730-2754 | src/xep0060.erl:2827-2851 — all 13 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.
Duplicated block (25 lines × 12) src/xep0054.erl:2196— src/xep0054.erl:2196-2220 | src/xep0054.erl:2277-2301 | src/xep0054.erl:2358-2382 | src/xep0054.erl:2439-2463 | src/xep0054.erl:2520-2544 | src/xep0054.erl:2601-2625 | src/xep0054.erl:2682-2706 | src/xep0054.erl:2763-2787 | src/xep0054.erl:2844-2868 | src/xep0054.erl:2925-2949 | src/xep0054.erl:3006-3030 | src/xep0054.erl:3087-3111 — all 12 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.
Duplicated block (25 lines × 4) src/xep0077.erl:1516— src/xep0077.erl:1516-1540 | src/xep0077.erl:1580-1604 | src/xep0077.erl:1644-1668 | src/xep0077.erl:1708-1732 — 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.
Duplicated block (24 lines × 14) src/xep0060.erl:2015— src/xep0060.erl:2015-2038 | src/xep0060.erl:2068-2091 | src/xep0060.erl:2121-2144 | src/xep0060.erl:2174-2197 | src/xep0060.erl:2227-2250 | src/xep0060.erl:2302-2325 | src/xep0060.erl:2355-2378 | src/xep0060.erl:2430-2453 | src/xep0060.erl:2505-2528 | src/xep0060.erl:2559-2582 | src/xep0060.erl:2634-2657 | src/xep0060.erl:2731-2754 | src/xep0060.erl:2828-2851 | src/xep0060.erl:2925-2948 — all 14 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.
Duplicated block (24 lines × 13) src/xep0054.erl:2115— src/xep0054.erl:2115-2138 | src/xep0054.erl:2196-2219 | src/xep0054.erl:2277-2300 | src/xep0054.erl:2358-2381 | src/xep0054.erl:2439-2462 | src/xep0054.erl:2520-2543 | src/xep0054.erl:2601-2624 | src/xep0054.erl:2682-2705 | src/xep0054.erl:2763-2786 | src/xep0054.erl:2844-2867 | src/xep0054.erl:2925-2948 | src/xep0054.erl:3006-3029 | src/xep0054.erl:3087-3110 — all 13 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.
Duplicated block (24 lines × 5) src/xep0077.erl:1452— src/xep0077.erl:1452-1475 | src/xep0077.erl:1516-1539 | src/xep0077.erl:1580-1603 | src/xep0077.erl:1644-1667 | src/xep0077.erl:1708-1731 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (23 lines × 14) src/xep0054.erl:2034— src/xep0054.erl:2034-2056 | src/xep0054.erl:2115-2137 | src/xep0054.erl:2196-2218 | src/xep0054.erl:2277-2299 | src/xep0054.erl:2358-2380 | src/xep0054.erl:2439-2461 | src/xep0054.erl:2520-2542 | src/xep0054.erl:2601-2623 | src/xep0054.erl:2682-2704 | src/xep0054.erl:2763-2785 | src/xep0054.erl:2844-2866 | src/xep0054.erl:2925-2947 | src/xep0054.erl:3006-3028 | src/xep0054.erl:3087-3109 — all 14 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.
Duplicated block (23 lines × 6) src/xep0077.erl:1388— src/xep0077.erl:1388-1410 | src/xep0077.erl:1452-1474 | src/xep0077.erl:1516-1538 | src/xep0077.erl:1580-1602 | src/xep0077.erl:1644-1666 | src/xep0077.erl:1708-1730 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (22 lines × 16) src/xep0054.erl:1871— src/xep0054.erl:1871-1892 | src/xep0054.erl:1952-1973 | src/xep0054.erl:2033-2054 | src/xep0054.erl:2114-2135 | src/xep0054.erl:2195-2216 | src/xep0054.erl:2276-2297 | src/xep0054.erl:2357-2378 | src/xep0054.erl:2438-2459 | src/xep0054.erl:2519-2540 | src/xep0054.erl:2600-2621 | src/xep0054.erl:2681-2702 | src/xep0054.erl:2762-2783 | src/xep0054.erl:2843-2864 | src/xep0054.erl:2924-2945 | src/xep0054.erl:3005-3026 | src/xep0054.erl:3086-3107 — all 16 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.
Duplicated block (22 lines × 7) src/xep0077.erl:1324— src/xep0077.erl:1324-1345 | src/xep0077.erl:1388-1409 | src/xep0077.erl:1452-1473 | src/xep0077.erl:1516-1537 | src/xep0077.erl:1580-1601 | src/xep0077.erl:1644-1665 | src/xep0077.erl:1708-1729 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (21 lines × 17) src/xep0054.erl:1790— src/xep0054.erl:1790-1810 | src/xep0054.erl:1871-1891 | src/xep0054.erl:1952-1972 | src/xep0054.erl:2033-2053 | src/xep0054.erl:2114-2134 | src/xep0054.erl:2195-2215 | src/xep0054.erl:2276-2296 | src/xep0054.erl:2357-2377 | src/xep0054.erl:2438-2458 | src/xep0054.erl:2519-2539 | src/xep0054.erl:2600-2620 | src/xep0054.erl:2681-2701 | src/xep0054.erl:2762-2782 | src/xep0054.erl:2843-2863 | src/xep0054.erl:2924-2944 | src/xep0054.erl:3005-3025 | src/xep0054.erl:3086-3106 — all 17 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.
Duplicated block (21 lines × 8) src/xep0077.erl:1260— src/xep0077.erl:1260-1280 | src/xep0077.erl:1324-1344 | src/xep0077.erl:1388-1408 | src/xep0077.erl:1452-1472 | src/xep0077.erl:1516-1536 | src/xep0077.erl:1580-1600 | src/xep0077.erl:1644-1664 | src/xep0077.erl:1708-1728 — all 8 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.
Duplicated block (21 lines × 3) src/xep0060.erl:2759— src/xep0060.erl:2759-2779 | src/xep0060.erl:2856-2876 | src/xep0060.erl:3006-3026 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20 lines × 18) src/xep0054.erl:1709— src/xep0054.erl:1709-1728 | src/xep0054.erl:1790-1809 | src/xep0054.erl:1871-1890 | src/xep0054.erl:1952-1971 | src/xep0054.erl:2033-2052 | src/xep0054.erl:2114-2133 | src/xep0054.erl:2195-2214 | src/xep0054.erl:2276-2295 | src/xep0054.erl:2357-2376 | src/xep0054.erl:2438-2457 | src/xep0054.erl:2519-2538 | src/xep0054.erl:2600-2619 | src/xep0054.erl:2681-2700 | src/xep0054.erl:2762-2781 | src/xep0054.erl:2843-2862 | src/xep0054.erl:2924-2943 | src/xep0054.erl:3005-3024 | src/xep0054.erl:3086-3105 — all 18 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.
Duplicated block (20 lines × 9) src/xep0077.erl:1196— src/xep0077.erl:1196-1215 | src/xep0077.erl:1260-1279 | src/xep0077.erl:1324-1343 | src/xep0077.erl:1388-1407 | src/xep0077.erl:1452-1471 | src/xep0077.erl:1516-1535 | src/xep0077.erl:1580-1599 | src/xep0077.erl:1644-1663 | src/xep0077.erl:1708-1727 — all 9 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.
Duplicated block (20 lines × 5) src/xep0060.erl:2586— src/xep0060.erl:2586-2605 | src/xep0060.erl:2661-2680 | src/xep0060.erl:2758-2777 | src/xep0060.erl:2855-2874 | src/xep0060.erl:3005-3024 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 19) src/xep0054.erl:1628— src/xep0054.erl:1628-1646 | src/xep0054.erl:1709-1727 | src/xep0054.erl:1790-1808 | src/xep0054.erl:1871-1889 | src/xep0054.erl:1952-1970 | src/xep0054.erl:2033-2051 | src/xep0054.erl:2114-2132 | src/xep0054.erl:2195-2213 | src/xep0054.erl:2276-2294 | src/xep0054.erl:2357-2375 | src/xep0054.erl:2438-2456 | src/xep0054.erl:2519-2537 | src/xep0054.erl:2600-2618 | src/xep0054.erl:2681-2699 | src/xep0054.erl:2762-2780 | src/xep0054.erl:2843-2861 | src/xep0054.erl:2924-2942 | src/xep0054.erl:3005-3023 | src/xep0054.erl:3086-3104 — all 19 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.
Duplicated block (19 lines × 15) src/captcha_form.erl:155— src/captcha_form.erl:155-173 | src/flex_offline.erl:140-158 | src/http_upload.erl:141-159 | src/mam_query.erl:140-158 | src/muc_register.erl:146-164 | src/muc_request.erl:143-161 | src/muc_roomconfig.erl:174-192 | src/muc_roominfo.erl:157-175 | src/pubsub_get_pending.erl:140-158 | src/pubsub_meta_data.erl:152-170 | src/pubsub_node_config.erl:172-190 | src/pubsub_publish_options.erl:172-190 | src/pubsub_subscribe_authorization.erl:143-161 | src/pubsub_subscribe_options.erl:147-165 | src/push_summary.erl:143-161 — before extracting anything, compare `src/captcha_form.erl` and `src/flex_offline.erl` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 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 (19 lines × 10) src/xep0077.erl:1132— src/xep0077.erl:1132-1150 | src/xep0077.erl:1196-1214 | src/xep0077.erl:1260-1278 | src/xep0077.erl:1324-1342 | src/xep0077.erl:1388-1406 | src/xep0077.erl:1452-1470 | src/xep0077.erl:1516-1534 | src/xep0077.erl:1580-1598 | src/xep0077.erl:1644-1662 | src/xep0077.erl:1708-1726 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 6) src/xep0060.erl:2533— src/xep0060.erl:2533-2551 | src/xep0060.erl:2586-2604 | src/xep0060.erl:2661-2679 | src/xep0060.erl:2758-2776 | src/xep0060.erl:2855-2873 | src/xep0060.erl:3005-3023 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 2) src/rfc6120.erl:5737— src/rfc6120.erl:5737-5755 | src/rfc6120.erl:6356-6374 — 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 (18 lines × 20) src/xep0054.erl:1547— src/xep0054.erl:1547-1564 | src/xep0054.erl:1628-1645 | src/xep0054.erl:1709-1726 | src/xep0054.erl:1790-1807 | src/xep0054.erl:1871-1888 | src/xep0054.erl:1952-1969 | src/xep0054.erl:2033-2050 | src/xep0054.erl:2114-2131 | src/xep0054.erl:2195-2212 | src/xep0054.erl:2276-2293 | src/xep0054.erl:2357-2374 | src/xep0054.erl:2438-2455 | src/xep0054.erl:2519-2536 | src/xep0054.erl:2600-2617 | src/xep0054.erl:2681-2698 | src/xep0054.erl:2762-2779 | src/xep0054.erl:2843-2860 | src/xep0054.erl:2924-2941 | src/xep0054.erl:3005-3022 | src/xep0054.erl:3086-3103 — all 20 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.
Duplicated block (18 lines × 11) src/xep0077.erl:1068— src/xep0077.erl:1068-1085 | src/xep0077.erl:1132-1149 | src/xep0077.erl:1196-1213 | src/xep0077.erl:1260-1277 | src/xep0077.erl:1324-1341 | src/xep0077.erl:1388-1405 | src/xep0077.erl:1452-1469 | src/xep0077.erl:1516-1533 | src/xep0077.erl:1580-1597 | src/xep0077.erl:1644-1661 | src/xep0077.erl:1708-1725 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18 lines × 7) src/xep0060.erl:2457— src/xep0060.erl:2457-2474 | src/xep0060.erl:2533-2550 | src/xep0060.erl:2586-2603 | src/xep0060.erl:2661-2678 | src/xep0060.erl:2758-2775 | src/xep0060.erl:2855-2872 | src/xep0060.erl:3005-3022 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17–18 lines × 2) src/xep0060.erl:1944— src/xep0060.erl:1944-1961 | src/xep0077.erl:399-415 — 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 (17 lines × 21) src/xep0054.erl:1466— src/xep0054.erl:1466-1482 | src/xep0054.erl:1547-1563 | src/xep0054.erl:1628-1644 | src/xep0054.erl:1709-1725 | src/xep0054.erl:1790-1806 | src/xep0054.erl:1871-1887 | src/xep0054.erl:1952-1968 | src/xep0054.erl:2033-2049 | src/xep0054.erl:2114-2130 | src/xep0054.erl:2195-2211 | src/xep0054.erl:2276-2292 | src/xep0054.erl:2357-2373 | src/xep0054.erl:2438-2454 | src/xep0054.erl:2519-2535 | src/xep0054.erl:2600-2616 | src/xep0054.erl:2681-2697 | src/xep0054.erl:2762-2778 | src/xep0054.erl:2843-2859 | src/xep0054.erl:2924-2940 | src/xep0054.erl:3005-3021 | src/xep0054.erl:3086-3102 — all 21 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.
Duplicated block (17 lines × 13) src/xep0077.erl:939— src/xep0077.erl:939-955 | src/xep0077.erl:1003-1019 | src/xep0077.erl:1067-1083 | src/xep0077.erl:1131-1147 | src/xep0077.erl:1195-1211 | src/xep0077.erl:1259-1275 | src/xep0077.erl:1323-1339 | src/xep0077.erl:1387-1403 | src/xep0077.erl:1451-1467 | src/xep0077.erl:1515-1531 | src/xep0077.erl:1579-1595 | src/xep0077.erl:1643-1659 | src/xep0077.erl:1707-1723 — all 13 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.
Duplicated block (17 lines × 8) src/xep0060.erl:2382— src/xep0060.erl:2382-2398 | src/xep0060.erl:2457-2473 | src/xep0060.erl:2533-2549 | src/xep0060.erl:2586-2602 | src/xep0060.erl:2661-2677 | src/xep0060.erl:2758-2774 | src/xep0060.erl:2855-2871 | src/xep0060.erl:3005-3021 — all 8 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.
Duplicated block (16 lines × 22) src/xep0054.erl:1385— src/xep0054.erl:1385-1400 | src/xep0054.erl:1466-1481 | src/xep0054.erl:1547-1562 | src/xep0054.erl:1628-1643 | src/xep0054.erl:1709-1724 | src/xep0054.erl:1790-1805 | src/xep0054.erl:1871-1886 | src/xep0054.erl:1952-1967 | src/xep0054.erl:2033-2048 | src/xep0054.erl:2114-2129 | src/xep0054.erl:2195-2210 | src/xep0054.erl:2276-2291 | src/xep0054.erl:2357-2372 | src/xep0054.erl:2438-2453 | src/xep0054.erl:2519-2534 | src/xep0054.erl:2600-2615 | src/xep0054.erl:2681-2696 | src/xep0054.erl:2762-2777 | src/xep0054.erl:2843-2858 | src/xep0054.erl:2924-2939 | src/xep0054.erl:3005-3020 | src/xep0054.erl:3086-3101 — all 22 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.
Duplicated block (16 lines × 14) src/xep0077.erl:875— src/xep0077.erl:875-890 | src/xep0077.erl:939-954 | src/xep0077.erl:1003-1018 | src/xep0077.erl:1067-1082 | src/xep0077.erl:1131-1146 | src/xep0077.erl:1195-1210 | src/xep0077.erl:1259-1274 | src/xep0077.erl:1323-1338 | src/xep0077.erl:1387-1402 | src/xep0077.erl:1451-1466 | src/xep0077.erl:1515-1530 | src/xep0077.erl:1579-1594 | src/xep0077.erl:1643-1658 | src/xep0077.erl:1707-1722 — all 14 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.
Duplicated block (16 lines × 10) src/xep0060.erl:2253— src/xep0060.erl:2253-2268 | src/xep0060.erl:2328-2343 | src/xep0060.erl:2381-2396 | src/xep0060.erl:2456-2471 | src/xep0060.erl:2532-2547 | src/xep0060.erl:2585-2600 | src/xep0060.erl:2660-2675 | src/xep0060.erl:2757-2772 | src/xep0060.erl:2854-2869 | src/xep0060.erl:3004-3019 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 24) src/xep0054.erl:1222— src/xep0054.erl:1222-1236 | src/xep0054.erl:1303-1317 | src/xep0054.erl:1384-1398 | src/xep0054.erl:1465-1479 | src/xep0054.erl:1546-1560 | src/xep0054.erl:1627-1641 | src/xep0054.erl:1708-1722 | src/xep0054.erl:1789-1803 | src/xep0054.erl:1870-1884 | src/xep0054.erl:1951-1965 | src/xep0054.erl:2032-2046 | src/xep0054.erl:2113-2127 | src/xep0054.erl:2194-2208 | src/xep0054.erl:2275-2289 | src/xep0054.erl:2356-2370 | src/xep0054.erl:2437-2451 | src/xep0054.erl:2518-2532 | src/xep0054.erl:2599-2613 | src/xep0054.erl:2680-2694 | src/xep0054.erl:2761-2775 | src/xep0054.erl:2842-2856 | src/xep0054.erl:2923-2937 | src/xep0054.erl:3004-3018 | src/xep0054.erl:3085-3099 — all 24 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.
Duplicated block (15 lines × 15) src/xep0077.erl:811— src/xep0077.erl:811-825 | src/xep0077.erl:875-889 | src/xep0077.erl:939-953 | src/xep0077.erl:1003-1017 | src/xep0077.erl:1067-1081 | src/xep0077.erl:1131-1145 | src/xep0077.erl:1195-1209 | src/xep0077.erl:1259-1273 | src/xep0077.erl:1323-1337 | src/xep0077.erl:1387-1401 | src/xep0077.erl:1451-1465 | src/xep0077.erl:1515-1529 | src/xep0077.erl:1579-1593 | src/xep0077.erl:1643-1657 | src/xep0077.erl:1707-1721 — all 15 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.
Duplicated block (15 lines × 11) src/xep0060.erl:2200— src/xep0060.erl:2200-2214 | src/xep0060.erl:2253-2267 | src/xep0060.erl:2328-2342 | src/xep0060.erl:2381-2395 | src/xep0060.erl:2456-2470 | src/xep0060.erl:2532-2546 | src/xep0060.erl:2585-2599 | src/xep0060.erl:2660-2674 | src/xep0060.erl:2757-2771 | src/xep0060.erl:2854-2868 | src/xep0060.erl:3004-3018 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 9) src/xep0215.erl:328— src/xep0215.erl:328-342 | src/xep0215.erl:344-358 | src/xep0215.erl:360-374 | src/xep0215.erl:376-390 | src/xep0215.erl:392-406 | src/xep0215.erl:408-422 | src/xep0215.erl:424-438 | src/xep0215.erl:440-454 | src/xep0215.erl:456-470 — all 9 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.
Duplicated block (7–15 lines × 3) src/rfc6120.erl:5740— src/rfc6120.erl:5740-5754 | src/rfc6120.erl:6359-6373 | src/rfc6120.erl:6807-6813 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 3) src/xep0234.erl:741— src/xep0234.erl:741-755 | src/xep0234.erl:776-790 | src/xep0234.erl:811-825 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 25) src/xep0054.erl:1140— src/xep0054.erl:1140-1153 | src/xep0054.erl:1222-1235 | src/xep0054.erl:1303-1316 | src/xep0054.erl:1384-1397 | src/xep0054.erl:1465-1478 | src/xep0054.erl:1546-1559 | src/xep0054.erl:1627-1640 | src/xep0054.erl:1708-1721 | src/xep0054.erl:1789-1802 | src/xep0054.erl:1870-1883 | src/xep0054.erl:1951-1964 | src/xep0054.erl:2032-2045 | src/xep0054.erl:2113-2126 | src/xep0054.erl:2194-2207 | src/xep0054.erl:2275-2288 | src/xep0054.erl:2356-2369 | src/xep0054.erl:2437-2450 | src/xep0054.erl:2518-2531 | src/xep0054.erl:2599-2612 | src/xep0054.erl:2680-2693 | src/xep0054.erl:2761-2774 | src/xep0054.erl:2842-2855 | src/xep0054.erl:2923-2936 | src/xep0054.erl:3004-3017 | src/xep0054.erl:3085-3098 — all 25 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.
Duplicated block (14 lines × 16) src/xep0077.erl:747— src/xep0077.erl:747-760 | src/xep0077.erl:811-824 | src/xep0077.erl:875-888 | src/xep0077.erl:939-952 | src/xep0077.erl:1003-1016 | src/xep0077.erl:1067-1080 | src/xep0077.erl:1131-1144 | src/xep0077.erl:1195-1208 | src/xep0077.erl:1259-1272 | src/xep0077.erl:1323-1336 | src/xep0077.erl:1387-1400 | src/xep0077.erl:1451-1464 | src/xep0077.erl:1515-1528 | src/xep0077.erl:1579-1592 | src/xep0077.erl:1643-1656 | src/xep0077.erl:1707-1720 — all 16 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.
Duplicated block (13 lines × 26) src/xep0054.erl:1058— src/xep0054.erl:1058-1070 | src/xep0054.erl:1140-1152 | src/xep0054.erl:1222-1234 | src/xep0054.erl:1303-1315 | src/xep0054.erl:1384-1396 | src/xep0054.erl:1465-1477 | src/xep0054.erl:1546-1558 | src/xep0054.erl:1627-1639 | src/xep0054.erl:1708-1720 | src/xep0054.erl:1789-1801 | src/xep0054.erl:1870-1882 | src/xep0054.erl:1951-1963 | src/xep0054.erl:2032-2044 | src/xep0054.erl:2113-2125 | src/xep0054.erl:2194-2206 | src/xep0054.erl:2275-2287 | src/xep0054.erl:2356-2368 | src/xep0054.erl:2437-2449 | src/xep0054.erl:2518-2530 | src/xep0054.erl:2599-2611 | src/xep0054.erl:2680-2692 | src/xep0054.erl:2761-2773 | src/xep0054.erl:2842-2854 | src/xep0054.erl:2923-2935 | src/xep0054.erl:3004-3016 | src/xep0054.erl:3085-3097 — all 26 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.
Duplicated block (13 lines × 17) src/xep0077.erl:683— src/xep0077.erl:683-695 | src/xep0077.erl:747-759 | src/xep0077.erl:811-823 | src/xep0077.erl:875-887 | src/xep0077.erl:939-951 | src/xep0077.erl:1003-1015 | src/xep0077.erl:1067-1079 | src/xep0077.erl:1131-1143 | src/xep0077.erl:1195-1207 | src/xep0077.erl:1259-1271 | src/xep0077.erl:1323-1335 | src/xep0077.erl:1387-1399 | src/xep0077.erl:1451-1463 | src/xep0077.erl:1515-1527 | src/xep0077.erl:1579-1591 | src/xep0077.erl:1643-1655 | src/xep0077.erl:1707-1719 — all 17 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.
Duplicated block (13 lines × 15) src/captcha_form.erl:183— src/captcha_form.erl:183-195 | src/flex_offline.erl:171-183 | src/http_upload.erl:174-186 | src/mam_query.erl:168-180 | src/muc_register.erl:181-193 | src/muc_request.erl:175-187 | src/muc_roomconfig.erl:205-217 | src/muc_roominfo.erl:188-200 | src/pubsub_get_pending.erl:173-185 | src/pubsub_meta_data.erl:183-195 | src/pubsub_node_config.erl:203-215 | src/pubsub_publish_options.erl:204-216 | src/pubsub_subscribe_authorization.erl:183-195 | src/pubsub_subscribe_options.erl:179-191 | src/push_summary.erl:171-183 — before extracting anything, compare `src/captcha_form.erl` and `src/flex_offline.erl` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 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–13 lines × 15) src/xep0060.erl:1965— src/xep0060.erl:1965-1976 | src/xep0060.erl:2040-2051 | src/xep0060.erl:2093-2104 | src/xep0060.erl:2146-2157 | src/xep0060.erl:2199-2210 | src/xep0060.erl:2252-2263 | src/xep0060.erl:2327-2338 | src/xep0060.erl:2380-2391 | src/xep0060.erl:2455-2466 | src/xep0060.erl:2530-2542 | src/xep0060.erl:2584-2595 | src/xep0060.erl:2659-2670 | src/xep0060.erl:2756-2767 | src/xep0060.erl:2853-2864 | src/xep0060.erl:3003-3014 — all 15 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.
Duplicated block (13 lines × 4) src/xep0054.erl:5775— src/xep0054.erl:5775-5787 | src/xep0054.erl:5809-5821 | src/xep0054.erl:5843-5855 | src/xep0054.erl:5877-5889 — 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.
Duplicated block (12 lines × 27) src/xep0054.erl:976— src/xep0054.erl:976-987 | src/xep0054.erl:1058-1069 | src/xep0054.erl:1140-1151 | src/xep0054.erl:1222-1233 | src/xep0054.erl:1303-1314 | src/xep0054.erl:1384-1395 | src/xep0054.erl:1465-1476 | src/xep0054.erl:1546-1557 | src/xep0054.erl:1627-1638 | src/xep0054.erl:1708-1719 | src/xep0054.erl:1789-1800 | src/xep0054.erl:1870-1881 | src/xep0054.erl:1951-1962 | src/xep0054.erl:2032-2043 | src/xep0054.erl:2113-2124 | src/xep0054.erl:2194-2205 | src/xep0054.erl:2275-2286 | src/xep0054.erl:2356-2367 | src/xep0054.erl:2437-2448 | src/xep0054.erl:2518-2529 | src/xep0054.erl:2599-2610 | src/xep0054.erl:2680-2691 | src/xep0054.erl:2761-2772 | src/xep0054.erl:2842-2853 | src/xep0054.erl:2923-2934 | src/xep0054.erl:3004-3015 | src/xep0054.erl:3085-3096 — all 27 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.
Duplicated block (11–12 lines × 20) src/xep0077.erl:490— src/xep0077.erl:490-500 | src/xep0077.erl:553-564 | src/xep0077.erl:618-628 | src/xep0077.erl:682-692 | src/xep0077.erl:745-756 | src/xep0077.erl:810-820 | src/xep0077.erl:873-884 | src/xep0077.erl:937-948 | src/xep0077.erl:1001-1012 | src/xep0077.erl:1065-1076 | src/xep0077.erl:1129-1140 | src/xep0077.erl:1193-1204 | src/xep0077.erl:1257-1268 | src/xep0077.erl:1321-1332 | src/xep0077.erl:1385-1396 | src/xep0077.erl:1449-1460 | src/xep0077.erl:1513-1524 | src/xep0077.erl:1577-1588 | src/xep0077.erl:1641-1652 | src/xep0077.erl:1705-1716 — all 20 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.
Duplicated block (11 lines × 29) src/xep0054.erl:814— src/xep0054.erl:814-824 | src/xep0054.erl:893-903 | src/xep0054.erl:975-985 | src/xep0054.erl:1057-1067 | src/xep0054.erl:1139-1149 | src/xep0054.erl:1221-1231 | src/xep0054.erl:1302-1312 | src/xep0054.erl:1383-1393 | src/xep0054.erl:1464-1474 | src/xep0054.erl:1545-1555 | src/xep0054.erl:1626-1636 | src/xep0054.erl:1707-1717 | src/xep0054.erl:1788-1798 | src/xep0054.erl:1869-1879 | src/xep0054.erl:1950-1960 | src/xep0054.erl:2031-2041 | src/xep0054.erl:2112-2122 | src/xep0054.erl:2193-2203 | src/xep0054.erl:2274-2284 | src/xep0054.erl:2355-2365 | src/xep0054.erl:2436-2446 | src/xep0054.erl:2517-2527 | src/xep0054.erl:2598-2608 | src/xep0054.erl:2679-2689 | src/xep0054.erl:2760-2770 | src/xep0054.erl:2841-2851 | src/xep0054.erl:2922-2932 | src/xep0054.erl:3003-3013 | src/xep0054.erl:3084-3094 — all 29 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.
Duplicated block (9–11 lines × 2) src/muc_roomconfig.erl:1736— src/muc_roomconfig.erl:1736-1746 | src/muc_roomconfig.erl:2240-2248 — 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 (10–11 lines × 2) src/muc_roomconfig.erl:1889— src/muc_roomconfig.erl:1889-1898 | src/muc_roominfo.erl:955-965 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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 × 15) src/captcha_form.erl:753— src/captcha_form.erl:753-762 | src/flex_offline.erl:236-245 | src/http_upload.erl:237-246 | src/mam_query.erl:325-334 | src/muc_register.erl:440-449 | src/muc_request.erl:345-354 | src/muc_roomconfig.erl:1641-1650 | src/muc_roominfo.erl:923-932 | src/pubsub_get_pending.erl:243-252 | src/pubsub_meta_data.erl:687-696 | src/pubsub_node_config.erl:1499-1508 | src/pubsub_publish_options.erl:1501-1510 | src/pubsub_subscribe_authorization.erl:355-364 | src/pubsub_subscribe_options.erl:521-530 | src/push_summary.erl:352-361 — before extracting anything, compare `src/captcha_form.erl` and `src/flex_offline.erl` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 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–10 lines × 3) src/pubsub_meta_data.erl:836— src/pubsub_meta_data.erl:836-844 | src/pubsub_node_config.erl:2191-2200 | src/pubsub_publish_options.erl:2193-2202 — before extracting anything, compare `src/pubsub_meta_data.erl` and `src/pubsub_node_config.erl` as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 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–10 lines × 2) src/muc_roomconfig.erl:2189— src/muc_roomconfig.erl:2189-2197 | src/muc_roominfo.erl:1103-1112 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 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) src/pubsub_get_pending.erl:258— src/pubsub_get_pending.erl:258-266 | src/pubsub_meta_data.erl:766-774 | src/pubsub_node_config.erl:1832-1840 | src/pubsub_publish_options.erl:1834-1842 — before extracting anything, compare `src/pubsub_get_pending.erl` and `src/pubsub_meta_data.erl` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 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–9 lines × 2) src/xmpp_stream_in.erl:1002— src/xmpp_stream_in.erl:1002-1009 | src/xmpp_stream_in.erl:1129-1137 — 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 (8 lines × 16) src/xep0060.erl:1965— src/xep0060.erl:1965-1972 | src/xep0060.erl:2040-2047 | src/xep0060.erl:2093-2100 | src/xep0060.erl:2146-2153 | src/xep0060.erl:2199-2206 | src/xep0060.erl:2252-2259 | src/xep0060.erl:2327-2334 | src/xep0060.erl:2380-2387 | src/xep0060.erl:2455-2462 | src/xep0060.erl:2530-2538 | src/xep0060.erl:2584-2591 | src/xep0060.erl:2659-2666 | src/xep0060.erl:2756-2763 | src/xep0060.erl:2853-2860 | src/xep0060.erl:2950-2957 | src/xep0060.erl:3003-3010 — all 16 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.
Duplicated block (7 lines × 50) src/xep0054.erl:814— src/xep0054.erl:814-820 | src/xep0054.erl:893-899 | src/xep0054.erl:975-981 | src/xep0054.erl:1057-1063 | src/xep0054.erl:1139-1145 | src/xep0054.erl:1221-1227 | src/xep0054.erl:1302-1308 | src/xep0054.erl:1383-1389 | src/xep0054.erl:1464-1470 | src/xep0054.erl:1545-1551 | src/xep0054.erl:1626-1632 | src/xep0054.erl:1707-1713 | src/xep0054.erl:1788-1794 | src/xep0054.erl:1869-1875 | src/xep0054.erl:1950-1956 | src/xep0054.erl:2031-2037 | src/xep0054.erl:2112-2118 | src/xep0054.erl:2193-2199 | src/xep0054.erl:2274-2280 | src/xep0054.erl:2355-2361 | src/xep0054.erl:2436-2442 | src/xep0054.erl:2517-2523 | src/xep0054.erl:2598-2604 | src/xep0054.erl:2679-2685 | src/xep0054.erl:2760-2766 | src/xep0054.erl:2841-2847 | src/xep0054.erl:2922-2928 | src/xep0054.erl:3003-3009 | src/xep0054.erl:3084-3090 | src/xep0077.erl:425-431 | src/xep0077.erl:489-495 | src/xep0077.erl:553-559 | src/xep0077.erl:617-623 | src/xep0077.erl:681-687 | src/xep0077.erl:745-751 | src/xep0077.erl:809-815 | src/xep0077.erl:873-879 | src/xep0077.erl:937-943 | src/xep0077.erl:1001-1007 | src/xep0077.erl:1065-1071 | src/xep0077.erl:1129-1135 | src/xep0077.erl:1193-1199 | src/xep0077.erl:1257-1263 | src/xep0077.erl:1321-1327 | src/xep0077.erl:1385-1391 | src/xep0077.erl:1449-1455 | src/xep0077.erl:1513-1519 | src/xep0077.erl:1577-1583 | src/xep0077.erl:1641-1647 | src/xep0077.erl:1705-1711 — before extracting anything, compare `src/xep0054.erl` and `src/xep0077.erl` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 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 (5 lines × 16) src/captcha_form.erl:137— src/captcha_form.erl:137-142 | src/flex_offline.erl:122-127 | src/http_upload.erl:123-128 | src/mam_query.erl:122-127 | src/muc_register.erl:128-133 | src/muc_request.erl:125-130 | src/muc_roomconfig.erl:156-161 | src/muc_roominfo.erl:139-144 | src/pubsub_get_pending.erl:122-127 | src/pubsub_meta_data.erl:134-139 | src/pubsub_node_config.erl:154-159 | src/pubsub_publish_options.erl:154-159 | src/pubsub_subscribe_authorization.erl:125-130 | src/pubsub_subscribe_options.erl:129-134 | src/push_summary.erl:125-130 | src/xdata_codec.erl:183-187 — before extracting anything, compare `src/captcha_form.erl` and `src/flex_offline.erl` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 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 (5 lines × 3) src/xdata_codec.erl:557— src/xdata_codec.erl:557-561 | src/xdata_codec.erl:584-588 | src/xdata_codec.erl:619-623 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (34 lines × 7) src/rfc6120.erl:2777— src/rfc6120.erl:2777-2814 | src/xep0033.erl:159-192 | src/xep0166.erl:637-674 | src/xep0313.erl:790-823 | src/xep0386.erl:203-240 | src/xep0388.erl:457-494 | src/xep0424.erl:123-161 — before extracting anything, compare `src/rfc6120.erl` and `src/xep0166.erl` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (37 lines × 2) src/xep0047.erl:206— src/xep0047.erl:206-242 | src/xep0261.erl:64-101 — before extracting anything, compare `src/xep0047.erl` and `src/xep0261.erl` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 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 (5 lines × 41) src/captcha_form.erl:89— src/captcha_form.erl:89-93 | src/flex_offline.erl:74-78 | src/http_upload.erl:75-79 | src/mam_query.erl:74-78 | src/muc_register.erl:80-84 | src/muc_request.erl:77-81 | src/muc_roomconfig.erl:108-112 | src/muc_roominfo.erl:91-95 | src/pubsub_get_pending.erl:74-78 | src/pubsub_meta_data.erl:86-90 | src/pubsub_node_config.erl:106-110 | src/pubsub_publish_options.erl:106-110 | src/pubsub_subscribe_authorization.erl:77-81 | src/pubsub_subscribe_options.erl:81-85 | src/push_summary.erl:77-81 | src/rfc6120.erl:1048-1052 | src/xdata_codec.erl:126-132 | src/xep0012.erl:30-34 | src/xep0016.erl:105-109 | src/xep0023.erl:29-33 | src/xep0039.erl:60-64 | src/xep0045.erl:277-281 | src/xep0047.erl:65-69 | src/xep0059.erl:85-89 | src/xep0060.erl:922-926 | src/xep0065.erl:76-80 | src/xep0084.erl:105-109 | src/xep0198.erl:135-139 | src/xep0215.erl:91-95 | src/xep0221.erl:44-48 | src/xep0231.erl:29-33 | src/xep0234.erl:194-198 | src/xep0260.erl:111-115 | src/xep0261.erl:44-48 | src/xep0264.erl:32-36 | src/xep0279.erl:44-48 | src/xep0363.erl:266-270 | src/xep0430.erl:52-56 | src/xep0480.erl:62-66 | src/xep0484.erl:66-70 | src/xep0513.erl:56-60 — before extracting anything, compare `src/captcha_form.erl` and `src/flex_offline.erl` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 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 (5 lines × 36) src/captcha_form.erl:97— src/captcha_form.erl:97-101 | src/flex_offline.erl:82-86 | src/http_upload.erl:83-87 | src/mam_query.erl:82-86 | src/muc_register.erl:88-92 | src/muc_request.erl:85-89 | src/muc_roomconfig.erl:116-120 | src/muc_roominfo.erl:99-103 | src/pubsub_get_pending.erl:82-86 | src/pubsub_meta_data.erl:94-98 | src/pubsub_node_config.erl:114-118 | src/pubsub_publish_options.erl:114-118 | src/pubsub_subscribe_authorization.erl:85-89 | src/pubsub_subscribe_options.erl:89-93 | src/push_summary.erl:85-89 | src/rfc6120.erl:1029-1033 | src/rfc6121.erl:88-92 | src/xdata_codec.erl:137-142 | src/xep0004.erl:122-126 | src/xep0013.erl:60-64 | src/xep0016.erl:99-103 | src/xep0033.erl:81-85 | src/xep0045.erl:271-275 | src/xep0047.erl:59-63 | src/xep0050.erl:96-100 | src/xep0060.erl:916-920 | src/xep0065.erl:70-74 | src/xep0166.erl:314-318 | src/xep0215.erl:83-87 | src/xep0220.erl:88-92 | src/xep0234.erl:188-192 | src/xep0260.erl:105-109 | src/xep0261.erl:38-42 | src/xep0313.erl:209-213 | src/xep0356.erl:82-86 | src/xep0485.erl:81-85 — before extracting anything, compare `src/captcha_form.erl` and `src/flex_offline.erl` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 15) src/xep0060.erl:2016— src/xep0060.erl:2016-2038 | src/xep0060.erl:2069-2091 | src/xep0060.erl:2122-2144 | src/xep0060.erl:2175-2197 | src/xep0060.erl:2228-2250 | src/xep0060.erl:2303-2325 | src/xep0060.erl:2356-2378 | src/xep0060.erl:2431-2453 | src/xep0060.erl:2506-2528 | src/xep0060.erl:2560-2582 | src/xep0060.erl:2635-2657 | src/xep0060.erl:2732-2754 | src/xep0060.erl:2829-2851 | src/xep0060.erl:2926-2948 | src/xep0060.erl:2979-3001 — all 15 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.
Duplicated block (18 lines × 4) src/xep0054.erl:5654— src/xep0054.erl:5654-5671 | src/xep0054.erl:5688-5705 | src/xep0054.erl:5722-5739 | src/xep0054.erl:5756-5773 — 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.
Duplicated block (18 lines × 3) src/xep0055.erl:115— src/xep0055.erl:115-132 | src/xep0055.erl:147-164 | src/xep0055.erl:179-196 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18 lines × 2) src/xep0059.erl:133— src/xep0059.erl:133-150 | src/xep0059.erl:165-182 — 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 (14 lines × 26) src/rfc6120.erl:1419— src/rfc6120.erl:1419-1432 | src/rfc6120.erl:1441-1455 | src/rfc6120.erl:1464-1477 | src/rfc6120.erl:1486-1500 | src/rfc6120.erl:1509-1522 | src/rfc6120.erl:1531-1544 | src/rfc6120.erl:1553-1567 | src/rfc6120.erl:1576-1590 | src/rfc6120.erl:1599-1612 | src/rfc6120.erl:1621-1634 | src/rfc6120.erl:1643-1657 | src/rfc6120.erl:1666-1679 | src/rfc6120.erl:1688-1701 | src/rfc6120.erl:1710-1724 | src/rfc6120.erl:1733-1747 | src/rfc6120.erl:1756-1771 | src/rfc6120.erl:1780-1793 | src/rfc6120.erl:1802-1816 | src/rfc6120.erl:1825-1838 | src/rfc6120.erl:1847-1860 | src/rfc6120.erl:1869-1883 | src/rfc6120.erl:1892-1906 | src/rfc6120.erl:1915-1929 | src/rfc6120.erl:1938-1952 | src/rfc6120.erl:1961-1975 | src/rfc6120.erl:1984-1998 — all 26 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.
Duplicated block (14 lines × 22) src/xep0198.erl:178— src/xep0198.erl:178-191 | src/xep0198.erl:200-213 | src/xep0198.erl:222-236 | src/xep0198.erl:245-258 | src/xep0198.erl:267-280 | src/xep0198.erl:289-303 | src/xep0198.erl:312-325 | src/xep0198.erl:334-347 | src/xep0198.erl:356-369 | src/xep0198.erl:378-391 | src/xep0198.erl:400-413 | src/xep0198.erl:422-436 | src/xep0198.erl:445-459 | src/xep0198.erl:468-481 | src/xep0198.erl:490-504 | src/xep0198.erl:513-527 | src/xep0198.erl:536-550 | src/xep0198.erl:559-573 | src/xep0198.erl:582-596 | src/xep0198.erl:605-619 | src/xep0198.erl:628-642 | src/xep0198.erl:651-665 — all 22 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.
Duplicated block (12 lines × 16) src/xep0166.erl:868— src/xep0166.erl:868-879 | src/xep0166.erl:892-903 | src/xep0166.erl:916-929 | src/xep0166.erl:941-952 | src/xep0166.erl:965-976 | src/xep0166.erl:989-1002 | src/xep0166.erl:1014-1027 | src/xep0166.erl:1039-1051 | src/xep0166.erl:1063-1074 | src/xep0166.erl:1087-1101 | src/xep0166.erl:1113-1125 | src/xep0166.erl:1137-1150 | src/xep0166.erl:1162-1173 | src/xep0166.erl:1186-1197 | src/xep0166.erl:1210-1224 | src/xep0166.erl:1236-1249 — all 16 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.
Duplicated block (12 lines × 17) src/xep0166.erl:853— src/xep0166.erl:853-865 | src/xep0166.erl:878-889 | src/xep0166.erl:902-913 | src/xep0166.erl:926-938 | src/xep0166.erl:951-962 | src/xep0166.erl:975-986 | src/xep0166.erl:999-1011 | src/xep0166.erl:1024-1036 | src/xep0166.erl:1049-1060 | src/xep0166.erl:1073-1084 | src/xep0166.erl:1097-1110 | src/xep0166.erl:1123-1134 | src/xep0166.erl:1147-1159 | src/xep0166.erl:1172-1183 | src/xep0166.erl:1196-1207 | src/xep0166.erl:1220-1233 | src/xep0166.erl:1246-1258 — all 17 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.
Duplicated block (13 lines × 22) src/rfc6120.erl:4187— src/rfc6120.erl:4187-4199 | src/rfc6120.erl:4211-4224 | src/rfc6120.erl:4236-4248 | src/rfc6120.erl:4260-4272 | src/rfc6120.erl:4284-4297 | src/rfc6120.erl:4309-4321 | src/rfc6120.erl:4333-4345 | src/rfc6120.erl:4357-4369 | src/rfc6120.erl:4381-4393 | src/rfc6120.erl:4405-4417 | src/rfc6120.erl:4429-4442 | src/rfc6120.erl:4454-4467 | src/rfc6120.erl:4479-4492 | src/rfc6120.erl:4504-4516 | src/rfc6120.erl:4528-4541 | src/rfc6120.erl:4553-4566 | src/rfc6120.erl:4578-4591 | src/rfc6120.erl:4603-4616 | src/rfc6120.erl:4628-4641 | src/rfc6120.erl:4653-4666 | src/rfc6120.erl:4678-4691 | src/rfc6120.erl:4703-4716 — all 22 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.
Duplicated block (12 lines × 23) src/rfc6120.erl:4168— src/rfc6120.erl:4168-4179 | src/rfc6120.erl:4192-4203 | src/rfc6120.erl:4216-4228 | src/rfc6120.erl:4241-4252 | src/rfc6120.erl:4265-4276 | src/rfc6120.erl:4289-4301 | src/rfc6120.erl:4314-4325 | src/rfc6120.erl:4338-4349 | src/rfc6120.erl:4362-4373 | src/rfc6120.erl:4386-4397 | src/rfc6120.erl:4410-4421 | src/rfc6120.erl:4434-4446 | src/rfc6120.erl:4459-4471 | src/rfc6120.erl:4484-4496 | src/rfc6120.erl:4509-4520 | src/rfc6120.erl:4533-4545 | src/rfc6120.erl:4558-4570 | src/rfc6120.erl:4583-4595 | src/rfc6120.erl:4608-4620 | src/rfc6120.erl:4633-4645 | src/rfc6120.erl:4658-4670 | src/rfc6120.erl:4683-4695 | src/rfc6120.erl:4708-4720 — all 23 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.
Duplicated block (12 lines × 11) src/muc_roomconfig.erl:790— src/muc_roomconfig.erl:790-801 | src/muc_roomconfig.erl:1376-1388 | src/muc_roomconfig.erl:1486-1498 | src/muc_roominfo.erl:454-466 | src/pubsub_meta_data.erl:289-300 | src/pubsub_meta_data.erl:481-492 | src/pubsub_meta_data.erl:508-519 | src/pubsub_node_config.erl:545-557 | src/pubsub_node_config.erl:638-649 | src/pubsub_publish_options.erl:547-559 | src/pubsub_publish_options.erl:640-651 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) src/xep0054.erl:5707— src/xep0054.erl:5707-5717 | src/xep0054.erl:5741-5751 | src/xep0054.erl:5775-5785 | src/xep0054.erl:5809-5819 | src/xep0054.erl:5843-5853 | src/xep0054.erl:5877-5887 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 5) src/xep0059.erl:184— src/xep0059.erl:184-194 | src/xep0059.erl:216-226 | src/xep0059.erl:248-258 | src/xep0059.erl:280-290 | src/xep0059.erl:312-322 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 51) src/muc_register.erl:456— src/muc_register.erl:456-464 | src/muc_request.erl:412-419 | src/muc_roomconfig.erl:1708-1716 | src/muc_roomconfig.erl:1759-1767 | src/muc_roomconfig.erl:1778-1786 | src/muc_roomconfig.erl:1794-1802 | src/muc_roomconfig.erl:1810-1816 | src/muc_roomconfig.erl:1844-1851 | src/muc_roomconfig.erl:1875-1883 | src/muc_roomconfig.erl:1891-1898 | src/muc_roomconfig.erl:1906-1914 | src/muc_roomconfig.erl:1922-1928 | src/muc_roomconfig.erl:2026-2032 | src/muc_roomconfig.erl:2040-2046 | src/muc_roomconfig.erl:2054-2061 | src/muc_roomconfig.erl:2070-2078 | src/muc_roomconfig.erl:2086-2092 | src/muc_roomconfig.erl:2132-2139 | src/muc_roomconfig.erl:2147-2154 | src/muc_roomconfig.erl:2260-2267 | src/muc_roomconfig.erl:2275-2281 | src/muc_roominfo.erl:957-965 | src/muc_roominfo.erl:973-982 | src/muc_roominfo.erl:1149-1157 | src/muc_roominfo.erl:1200-1208 | src/pubsub_node_config.erl:1734-1741 | src/pubsub_node_config.erl:1749-1757 | src/pubsub_node_config.erl:1949-1957 | src/pubsub_node_config.erl:1966-1974 | src/pubsub_node_config.erl:1983-1991 | src/pubsub_node_config.erl:2000-2008 | src/pubsub_node_config.erl:2017-2024 | src/pubsub_node_config.erl:2034-2042 | src/pubsub_node_config.erl:2084-2092 | src/pubsub_node_config.erl:2161-2169 | src/pubsub_node_config.erl:2178-2185 | src/pubsub_publish_options.erl:1736-1743 | src/pubsub_publish_options.erl:1751-1759 | src/pubsub_publish_options.erl:1951-1959 | src/pubsub_publish_options.erl:1968-1976 | src/pubsub_publish_options.erl:1985-1993 | src/pubsub_publish_options.erl:2002-2010 | src/pubsub_publish_options.erl:2019-2026 | src/pubsub_publish_options.erl:2036-2044 | src/pubsub_publish_options.erl:2086-2094 | src/pubsub_publish_options.erl:2163-2171 | src/pubsub_publish_options.erl:2180-2187 | src/pubsub_subscribe_authorization.erl:371-379 | src/pubsub_subscribe_options.erl:537-545 | src/pubsub_subscribe_options.erl:554-562 | src/pubsub_subscribe_options.erl:606-614 — before extracting anything, compare `src/muc_register.erl` and `src/muc_request.erl` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 103 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 × 4) src/xep0004.erl:626— src/xep0004.erl:626-635 | src/xep0004.erl:654-663 | src/xep0004.erl:682-691 | src/xep0004.erl:711-720 — 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.
Duplicated block (8 lines × 10) src/flex_offline.erl:252— src/flex_offline.erl:252-260 | src/http_upload.erl:253-260 | src/muc_roomconfig.erl:1825-1834 | src/muc_roominfo.erl:939-947 | src/muc_roominfo.erl:1119-1126 | src/pubsub_meta_data.erl:787-795 | src/pubsub_node_config.erl:1871-1879 | src/pubsub_publish_options.erl:1873-1881 | src/push_summary.erl:368-376 | src/push_summary.erl:387-396 — before extracting anything, compare `src/flex_offline.erl` and `src/http_upload.erl` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 83 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 × 5) src/mam_query.erl:340— src/mam_query.erl:340-347 | src/muc_request.erl:383-390 | src/pubsub_meta_data.erl:735-743 | src/pubsub_subscribe_authorization.erl:401-408 | src/push_summary.erl:406-414 — before extracting anything, compare `src/mam_query.erl` and `src/muc_request.erl` as WHOLE FILES: this scan already matched 9 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.
Duplicated block (7 lines × 11) src/muc_roomconfig.erl:1860— src/muc_roomconfig.erl:1860-1867 | src/muc_roomconfig.erl:2163-2169 | src/muc_roomconfig.erl:2206-2212 | src/muc_roominfo.erl:1023-1030 | src/pubsub_meta_data.erl:704-711 | src/pubsub_meta_data.erl:805-812 | src/pubsub_meta_data.erl:822-829 | src/pubsub_node_config.erl:1626-1634 | src/pubsub_node_config.erl:1697-1704 | src/pubsub_publish_options.erl:1628-1636 | src/pubsub_publish_options.erl:1699-1706 — before extracting anything, compare `src/muc_roomconfig.erl` and `src/muc_roominfo.erl` as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 46) src/captcha_form.erl:784— src/captcha_form.erl:784-791 | src/captcha_form.erl:830-836 | src/captcha_form.erl:844-852 | src/captcha_form.erl:860-867 | src/captcha_form.erl:875-881 | src/captcha_form.erl:889-897 | src/captcha_form.erl:919-926 | src/captcha_form.erl:934-941 | src/captcha_form.erl:949-956 | src/captcha_form.erl:964-971 | src/captcha_form.erl:994-1000 | src/mam_query.erl:383-390 | src/muc_register.erl:473-479 | src/muc_register.erl:501-507 | src/muc_register.erl:515-521 | src/muc_register.erl:529-535 | src/muc_register.erl:543-549 | src/muc_request.erl:398-404 | src/muc_roomconfig.erl:1657-1665 | src/muc_roomconfig.erl:2177-2183 | src/muc_roomconfig.erl:2191-2197 | src/muc_roominfo.erl:1039-1045 | src/muc_roominfo.erl:1069-1077 | src/muc_roominfo.erl:1089-1097 | src/muc_roominfo.erl:1105-1112 | src/muc_roominfo.erl:1134-1141 | src/muc_roominfo.erl:1166-1174 | src/muc_roominfo.erl:1233-1241 | src/pubsub_meta_data.erl:751-758 | src/pubsub_meta_data.erl:838-844 | src/pubsub_meta_data.erl:852-860 | src/pubsub_node_config.erl:1561-1569 | src/pubsub_node_config.erl:1712-1720 | src/pubsub_node_config.erl:1765-1772 | src/pubsub_node_config.erl:2193-2200 | src/pubsub_node_config.erl:2208-2216 | src/pubsub_publish_options.erl:1563-1571 | src/pubsub_publish_options.erl:1714-1722 | src/pubsub_publish_options.erl:1767-1774 | src/pubsub_publish_options.erl:2195-2202 | src/pubsub_publish_options.erl:2210-2218 | src/pubsub_subscribe_authorization.erl:388-394 | src/pubsub_subscribe_authorization.erl:416-424 | src/pubsub_subscribe_options.erl:572-580 | src/pubsub_subscribe_options.erl:589-597 | src/push_summary.erl:423-431 — before extracting anything, compare `src/captcha_form.erl` and `src/mam_query.erl` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 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 (6 lines × 21) src/muc_request.erl:371— src/muc_request.erl:371-376 | src/muc_roomconfig.erl:1691-1698 | src/muc_roomconfig.erl:1743-1751 | src/muc_roomconfig.erl:2246-2252 | src/muc_roominfo.erl:1007-1014 | src/pubsub_meta_data.erl:916-921 | src/pubsub_meta_data.erl:948-953 | src/pubsub_node_config.erl:1547-1553 | src/pubsub_node_config.erl:1606-1614 | src/pubsub_node_config.erl:1816-1823 | src/pubsub_node_config.erl:1902-1909 | src/pubsub_node_config.erl:1935-1941 | src/pubsub_node_config.erl:2070-2076 | src/pubsub_node_config.erl:2145-2153 | src/pubsub_publish_options.erl:1549-1555 | src/pubsub_publish_options.erl:1608-1616 | src/pubsub_publish_options.erl:1818-1825 | src/pubsub_publish_options.erl:1904-1911 | src/pubsub_publish_options.erl:1937-1943 | src/pubsub_publish_options.erl:2072-2078 | src/pubsub_publish_options.erl:2147-2155 — before extracting anything, compare `src/muc_request.erl` and `src/muc_roomconfig.erl` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 109 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 × 8) src/xep0054.erl:5639— src/xep0054.erl:5639-5647 | src/xep0054.erl:5673-5681 | src/xep0054.erl:5707-5715 | src/xep0054.erl:5741-5749 | src/xep0054.erl:5775-5783 | src/xep0054.erl:5809-5817 | src/xep0054.erl:5843-5851 | src/xep0054.erl:5877-5885 — all 8 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.
Duplicated block (7 lines × 23) src/muc_request.erl:369— src/muc_request.erl:369-375 | src/muc_roomconfig.erl:1689-1695 | src/muc_roomconfig.erl:1741-1748 | src/muc_roomconfig.erl:2244-2250 | src/muc_roominfo.erl:1005-1011 | src/pubsub_meta_data.erl:914-920 | src/pubsub_meta_data.erl:946-952 | src/pubsub_node_config.erl:1545-1551 | src/pubsub_node_config.erl:1604-1611 | src/pubsub_node_config.erl:1814-1820 | src/pubsub_node_config.erl:1900-1906 | src/pubsub_node_config.erl:1933-1939 | src/pubsub_node_config.erl:2068-2074 | src/pubsub_node_config.erl:2143-2150 | src/pubsub_publish_options.erl:1547-1553 | src/pubsub_publish_options.erl:1606-1613 | src/pubsub_publish_options.erl:1816-1822 | src/pubsub_publish_options.erl:1902-1908 | src/pubsub_publish_options.erl:1935-1941 | src/pubsub_publish_options.erl:2070-2076 | src/pubsub_publish_options.erl:2145-2152 | src/pubsub_subscribe_options.erl:683-689 | src/pubsub_subscribe_options.erl:715-721 — before extracting anything, compare `src/muc_request.erl` and `src/muc_roomconfig.erl` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 109 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.
M1 · Documentation (README)· README may be stale · ×1
README may be stale — 44 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
P12 · CI test-gate honesty· Coverage collected but not gated · ×1
Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
Minor — 18 finding(s)
X31 · Test-only surface in a production module· Test-only surface in a production module · ×5
Test-only surface in a production module src/jid.erl:58— `jid:string_to_usr/1` is exported unconditionally, and the comment directly above the `-export` on this line says the exports below it are for testing. Erlang has no visibility below `-export`, so this is part of the module's public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in `-ifdef(TEST). … -endif.` keeps the test's access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build — delete the comment and document the function as part of the module's API.
Test-only surface in a production module src/xmpp_sasl_digest.erl:25— `xmpp_sasl_digest:parse/1` is exported unconditionally, and the comment directly above the `-export` on this line says the exports below it are for testing. Erlang has no visibility below `-export`, so this is part of the module's public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in `-ifdef(TEST). … -endif.` keeps the test's access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build — delete the comment and document the function as part of the module's API.
Test-only surface in a production module src/xmpp_sasl_fast.erl:24— `xmpp_sasl_fast:parse/1` is exported unconditionally, and the comment directly above the `-export` on this line says the exports below it are for testing. Erlang has no visibility below `-export`, so this is part of the module's public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in `-ifdef(TEST). … -endif.` keeps the test's access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build — delete the comment and document the function as part of the module's API.
Test-only surface in a production module src/xmpp_sasl_oauth.erl:24— `xmpp_sasl_oauth:parse/1` is exported unconditionally, and the comment directly above the `-export` on this line says the exports below it are for testing. Erlang has no visibility below `-export`, so this is part of the module's public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in `-ifdef(TEST). … -endif.` keeps the test's access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build — delete the comment and document the function as part of the module's API.
Test-only surface in a production module src/xmpp_sasl_plain.erl:24— `xmpp_sasl_plain:parse/1` is exported unconditionally, and the comment directly above the `-export` on this line says the exports below it are for testing. Erlang has no visibility below `-export`, so this is part of the module's public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in `-ifdef(TEST). … -endif.` keeps the test's access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build — delete the comment and document the function as part of the module's API.
README/code drift — README claims fast_xml library is used but no such project exists — searched for: `fast_xml`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
README/code drift — README advertises Docker containerisation, but no Dockerfile/compose file exists — searched for: `dockerfile`, `docker-compose`, `compose.yaml`, `compose.yml`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
README/code drift — README advertises a RAG / ML engine, but no ML/RAG code or dependency exists — searched for: `rag`, `langchain`, `llamaindex`, `pinecone`, `weaviate`, `qdrant`, `embeddings`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: src/xmpp_stream_in.erl, src/xmpp_socket.erl, src/xmpp_sasl_digest.erl, src/xmpp_sasl.erl. Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: src/muc_roominfo.erl, src/mam_query.erl, src/xep0184.erl. Pair on, review, or document these before any departure.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `(repository root)` (82028 LoC, 6605 public types across 1 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 13 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: src/xep0430.erl, src/xep0033.erl, src/xep0333.erl, src/jid.erl, src/xmpp_util.erl, include/pubsub_node_config.hrl, include/muc_roomconfig.hrl, src/xep0300.erl (and 5 more) (14 orphaned of 117 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 117 of the 149 production source files in this repository met that bar). 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 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.
Dependency hygiene PARTLY measured — rebar3 pinning read, dependency currency not (no rebar.lock-pinned Hex declaration to grade) — This repository's rebar3 dependencies were read for PINNING discipline: 6 declaration(s) (6 of them runtime rather than profile-scoped) across 1 `rebar.config`, against 0 package(s) pinned by a committed `rebar.lock`. 1 pinning defect(s) are reported as separate rows below. That is only PART of dependency hygiene, so this dimension is NOT SCORED: whether any of these packages has a newer release is the dependency-CURRENCY question, and here hex.pm — which is what answers it — could grade none of these declarations, because currency is asked of a package whose resolved version we actually know and this tree offers 0 such Hex declaration(s) pinned by a committed `rebar.lock`. That is not itself a defect: a git or hg dependency is pinned by a revision and has no Hex release to be behind. A clean pinning pass is NOT an all-clear for these dependencies, and it is not a finding that they are all USED. Note also what is deliberately NOT charged here: a `{ref, …}` or `{tag, …}` git dependency names an immutable point and is the tightest binding rebar3 has, and a `{profiles, [{test, …}]}` dependency is a tool that does not ship. Known CVEs in the same dependency graph are a separate question, reported under D30 wherever the manifest is OSV-readable.
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.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a rebar.config / erlang.mk DEPS (Hex) — not scanned yet).
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a rebar.config / erlang.mk DEPS (Hex) — not scanned yet).
0
—
Run 01a0fb07-a584-7e30-bf84-ffadbf70020f · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 7 · Warnings: 574 · Recommendations: 18 · Info: 1 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 02-10-2026 @ 05:12 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.