Public report of CommunityVB/Community.VisualBasic, published 26 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 26 October 2026, 17:22 UTC · Survey ID cd_8767994ddd4540dd8469d1087a711f43
CommunityVB/Community.VisualBasic
Measured 26 October 2026, 17:19 UTC, at code version 20d2a51
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
Code coverage is not measured: Suite not runnable in-image and no committed report.
Boundary Type-Coupling is not measured: Bounded contexts not declared.
CAI scoreWeak
CriticalWeakAdequateStrongExemplary
Down 4 since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A medium codebase: 46,270 lines of product code in 6 projects, tests not counted · Estimated rebuild effort: about 0.4 person-years · Weakest lens: Production Readiness, 26
Findings by how serious they are
7 critical440 serious44 minor
41 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
26 October 2026, 17:19 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
33of 33 dimensions measured by tools.
481of 491 findings point to an exact file and line, so you can open each one in the code. The other 10 concern the repository as a whole, such as missing documentation.
33dimensions across 5 lenses, read from 46,270 lines of product code in 6 projects.
CommunityVB/Community.VisualBasic falls short of our standard for production because we found no working pipeline that builds or tests changes to the code and no automated security scanning of the code, its secrets or its dependencies. It scores 44 out of 100 and is rated Weak, and none of its seven critical findings concern security.
Production Readiness, at 26, is the weakest lens and counts most in the score. The best first step for the work it takes is recording design decisions, worth about 9 points. Adding an automated build and test pipeline would lift Production Readiness itself, worth about 10 points. Raising Production Readiness to 70 would lift the score to about 60.
Seven errors are caught and ignored, so failures can go unnoticed. Handling or logging the ignored errors would close this risk.
The product code is 46,270 lines, about €61,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Production Readiness rose from 26 to 70, the lowest score rated Strong, the score would rise from 44 to about 60.
Code composition: what the lines of code are
Product code 70%Tests 30%
Fixed since the last survey: 1 finding
This critical or serious finding was in the previous survey, on 12 October 2026, and is gone from this one.
Coupling · Off the main sequence: Community.VisualBasic
Rebuild cost: about €61,000 · Estimate
Cost to rebuild
€20,000 to €100,000, for 335 to 1,064 hours of work, about 0.4 person-years for one engineer
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 44. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Medium: 46,270 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 9 points · Low effort · ADR Quality
2
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 10 points · Medium effort · CI/CD gates
3
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €61,000 to build again, about 0.4 person-years of work. Its weakest lens is Production Readiness, at 26 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 1 No ADRs found finding(s) in ADR Quality. Of all the actions in this report, it raises the score most for the work it takes: about 9 points for low effort, because it clears the 1 ADR Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 5.6 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 6% to 14% on every change.
How this is estimated: It rests on an assumption of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4)
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
18 modules, with 14 dependencies between them. One loop runs through 2 of the modules, marked above the diagonal.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
Community.VisualBasic.ApplicationServices uses Community.VisualBasic.Logging, so a change to Community.VisualBasic.Logging can break Community.VisualBasic.ApplicationServices, while a change to Community.VisualBasic.ApplicationServices can't break Community.VisualBasic.Logging.
Position
Below the diagonal: Community.VisualBasic.ApplicationServices uses a module listed above it, which is the healthy direction.
13→15 Community.VisualBasic.CompilerServices uses Community.VisualBasicpart of a loop✕
Connections
21 pairs of types, where a type in Community.VisualBasic.CompilerServices uses a type in Community.VisualBasic.
Community.VisualBasic.CompilerServices uses Community.VisualBasic, so a change to Community.VisualBasic can break Community.VisualBasic.CompilerServices, while a change to Community.VisualBasic.CompilerServices can't break Community.VisualBasic.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
Community.VisualBasic uses Community.VisualBasic.CompilerServices, so a change to Community.VisualBasic.CompilerServices can break Community.VisualBasic, while a change to Community.VisualBasic can't break Community.VisualBasic.CompilerServices.
Position
Below the diagonal: Community.VisualBasic uses a module listed above it, which is the healthy direction.
Community.VisualBasic.FileIO uses Community.VisualBasic.CompilerServices, so a change to Community.VisualBasic.CompilerServices can break Community.VisualBasic.FileIO, while a change to Community.VisualBasic.FileIO can't break Community.VisualBasic.CompilerServices.
Position
Below the diagonal: Community.VisualBasic.FileIO uses a module listed above it, which is the healthy direction.
Community.VisualBasic.MyServices uses Drawing, so a change to Drawing can break Community.VisualBasic.MyServices, while a change to Community.VisualBasic.MyServices can't break Drawing.
Position
Below the diagonal: Community.VisualBasic.MyServices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.MyServices uses Windows.Forms, so a change to Windows.Forms can break Community.VisualBasic.MyServices, while a change to Community.VisualBasic.MyServices can't break Windows.Forms.
Position
Below the diagonal: Community.VisualBasic.MyServices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.MyServices uses Community.VisualBasic.FileIO, so a change to Community.VisualBasic.FileIO can break Community.VisualBasic.MyServices, while a change to Community.VisualBasic.MyServices can't break Community.VisualBasic.FileIO.
Position
Below the diagonal: Community.VisualBasic.MyServices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.Devices uses Community.Media, so a change to Community.Media can break Community.VisualBasic.Devices, while a change to Community.VisualBasic.Devices can't break Community.Media.
Position
Below the diagonal: Community.VisualBasic.Devices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.Devices uses Community.VisualBasic.CompilerServices, so a change to Community.VisualBasic.CompilerServices can break Community.VisualBasic.Devices, while a change to Community.VisualBasic.Devices can't break Community.VisualBasic.CompilerServices.
Position
Below the diagonal: Community.VisualBasic.Devices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.Devices uses Windows.Forms, so a change to Windows.Forms can break Community.VisualBasic.Devices, while a change to Community.VisualBasic.Devices can't break Windows.Forms.
Position
Below the diagonal: Community.VisualBasic.Devices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.Devices uses Community.VisualBasic, so a change to Community.VisualBasic can break Community.VisualBasic.Devices, while a change to Community.VisualBasic.Devices can't break Community.VisualBasic.
Position
Below the diagonal: Community.VisualBasic.Devices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.Devices uses Community.VisualBasic.FileIO, so a change to Community.VisualBasic.FileIO can break Community.VisualBasic.Devices, while a change to Community.VisualBasic.Devices can't break Community.VisualBasic.FileIO.
Position
Below the diagonal: Community.VisualBasic.Devices uses a module listed above it, which is the healthy direction.
Community.VisualBasic.Devices uses Community.VisualBasic.MyServices, so a change to Community.VisualBasic.MyServices can break Community.VisualBasic.Devices, while a change to Community.VisualBasic.Devices can't break Community.VisualBasic.MyServices.
Position
Below the diagonal: Community.VisualBasic.Devices uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 73% · Adequate · gated by D1, D2 ·
Establish a CI workflow to automatically build and test every push, while simultaneously resolving the 31 redundant comments in Utils, Network, and AssemblyInfo to improve code clarity. Document significant design decisions in a dedicated ADR folder and maintain a changelog to track release history, ensuring architectural choices and shipping features are clearly recorded for future reference.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
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 — 440
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 — 44
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 41
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. 33 of 33 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. 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 — 33 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, 481 of 491 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.
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. The test suite couldn't be built/run in-image and no coverage report is committed, so line coverage was not measured — and it is EXCLUDED from the score rather than scored on a LoC-ratio proxy. No coverage collector was found in your CI either, so there is no existing report to hand us. You can widen what we reach: optional: add a coverage collector to your test run and commit (or publish) its Cobertura/OpenCover/lcov output anywhere in the repo, or make the suite runnable in-image, and real coverage will be measured.
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 reliability not scored — the test tier(s) built and ran but no tests were discovered, so reliability couldn't be exercised.
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. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: `dotnet list package` exited 1 with no output.
D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (2 contributor(s) across 32 commit(s) sampled, automation and bot accounts excluded). One of them holds 97% of the history; the other 1 hold 3% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
D21 Naming Consistency — not measured this run — 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. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
D22 Internal API Consistency — 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. The loaded project set declares no packable project and no `.Contracts` project, so there is no intentionally-exposed surface for API consistency to be judged over.
D23 Boundary Type-Coupling — 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. Large codebase (46,270 production LoC in the .NET projects) with no declared bounded contexts — cross-boundary type coupling is unassessed Bounded contexts cannot be inferred from a codebase that is not physically organised by them (D-321), so with none declared there are no boundaries for the coupling pass to measure across. You can widen what we reach: name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can 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"]`.
D34 Knowledge Freshness — 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. Too few commits to judge knowledge freshness (32 commit(s) sampled).
D39 IL Efficiency — 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. IL NOT MEASURED: the analyzer's own build of this repository failed for an ENVIRONMENT reason (exit 1) — MSBuild's engine or the CLR gave up, or our image does not carry the SDK band/targeting pack this repository needs. This is OUR limitation, not a defect in the repo, and it is not a statement that this repository fails to build. D18 owns the question of whether this repository builds; it was not answered here.
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.
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.
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.
PF3 Async & latency 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. No function of a language this check models was read, so there was no async code to examine. That is a limit of the analyzer on this repository, not a finding about it.
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.
X10 Duplicated predicate — 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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
X32 Type resolved by simple name across every loaded assembly — 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.
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, Rust, Swift, Erlang, Elixir and Dart 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, Kotlin, Scala, PHP, Ruby, Swift and Dart syntax only, and no C#, Python, TypeScript/JavaScript, Rust, Go, Java, Kotlin, Scala, PHP, Ruby, Swift or Dart 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.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
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").
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.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
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.
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
114 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was VBBinder.BindToMethod at 239. A further 34 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being Operators.SubtractObject at 205 — 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 methods was excluded, so the exclusion is disclosed nowhere in the file itself: Community.VisualBasic/CompilerServices/ExceptionUtils.vb (ExceptionUtils.BuildException at 42), Community.VisualBasic/CompilerServices/Versioned.vb (Versioned.IsNumeric at 22), Community.VisualBasic/CompilerServices/IDOBinder.vb (IDOUtils.LinqOperator at 21). 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.
+ 109 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 5 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with VBBinder.BindToMethod (cyclomatic 239), Operators.AddObject (cyclomatic 221), Operators.CompareObject2 (cyclomatic 219). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 5 together lifts Cyclomatic Complexity from 2.0 to about 3.2/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Stand up a CI pipeline, then gate Cyclomatic Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. 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.
+ 129 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 3 bodies over 120 down to 120 or less in Cognitive Complexity — start with VBBinder.BindToMethod (cognitive 621), StringType.StrLikeText (cognitive 144), VBBinder.GetMostSpecific (cognitive 136). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cognitive Complexity from 2.0 to about 2.4/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Stand up a CI pipeline, then gate Cognitive Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. 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 Classes7.5 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 38 MethodTooLong finding(s) in God Classes — start with Operators.vb (10), ObjectType.vb (8), OverloadResolution.vb (4). — One of this dimension's main actionable groups (38 warning-level).
Resolve the 18 FileTooLong finding(s) in God Classes — start with FileSystem.vb (2), Operators.vb, ObjectType.vb. — One of this dimension's main actionable groups (18 warning-level).
Resolve the 13 TooManyMethods finding(s) in God Classes — start with FileSystem.vb (2), Operators.Resolution.vb, VB6File.vb. — One of this dimension's main actionable groups (13 warning-level).
Stand up a CI pipeline, then gate God Classes in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. 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.
91 duplicated block group(s) detected. A further 12 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 2 of the 103 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
+ 72 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 4 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with LateBinding.vb, IDOBinder.vb, OperatingSystemEx.vb. — One of this dimension's main actionable groups (4 warning-level).
Resolve the 4 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with Operators.vb, Information.vb, VB6BinaryFile.vb. — One of this dimension's main actionable groups (4 warning-level).
Resolve the 3 Members sharing a duplicated core (6 members, 50+ identical tokens) finding(s) in Code Duplication — start with ObjectType.vb (3). — One of this dimension's main actionable groups (3 warning-level).
Stand up a CI pipeline, then gate Code Duplication in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. 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.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 2 Low cohesion finding(s) in Cohesion (LCOM4) — start with TextFieldParser.vb, FileLogTraceListener.vb. — One of this dimension's main actionable groups (2 warning-level).
Stand up a CI pipeline, then gate Cohesion (LCOM4) in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 152 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 7 direct `PackageReference`(s), and 145 further package(s) were reached beyond them by closing the graph over nuget.org's own nuspec dependency graph — so a banned licence pulled in only by a dependency's OWN dependencies is inside this verdict. A package whose licence nuget.org could not be asked for is not graded, and version ranges are taken at their lower bound, so this is the closure as that graph states it rather than a restored consumer's exact resolution.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
Resolve the 7 EmptyCatchBlock finding(s) in Explicit Debt — start with Utils.LateBinder.vb, Utils.vb, VB6InputFile.vb. — One of this dimension's main actionable groups (7 issue-level).
Resolve the 5 TodoComment finding(s) in Explicit Debt — start with FileSystemTests.vb (2), ConversionsTests.vb, PlatformDetection.vb. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 2 ObsoleteWithoutCallers finding(s) in Explicit Debt — start with Constants.vb, FileSystem.vb. — One of this dimension's main actionable groups (2 recommendation-level).
Stand up a CI pipeline, then gate Explicit Debt in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. 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 solution is laid out in a sensible, conventional structure.
Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.
6 projects, 153 source files, 65813 hand-written lines of code (46270 production / 19543 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), plus 2447 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 5 inter-project edges.
Thin analysable surface across projects: net4-consoleProjectTypeTests/net4-console/net4-console.vbproj
What to do
Resolve the 1 Thin analysable surface across projects finding(s) in Solution Shape — start with net4-console.vbproj. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d18_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).
Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.
doc comments repeat the names · ×2Community.VisualBasic/ApplicationServices/ApplicationBase.vb:21
What to do
Resolve the 31 redundant comment finding(s) in Comment Value — start with Utils.vb (4), Network.vb (4), AssemblyInfo.vb (4). — One of this dimension's main actionable groups (31 recommendation-level).
Detailed fixes: d24_recommendation.md · top locations in Appendix A, every location in findings.md.
1 of 6 projects 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. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
59 % of calls cross a namespace and 4 % go through an interface, but 99 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.
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).
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
2 end-of-life runtime(s) and 0 end-of-life framework(s), read from 5 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Resolve the 2 End-of-life runtime finding(s) in Platform End-of-Life — start with net5-windows.vbproj, Community.VisualBasic.Tests.vbproj. — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d44_recommendation.md · top locations in Appendix A, every location in findings.md.
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 · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 6 of 6 project(s) that lack one — worth up to 2 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
Only 2/6 projects share a common root namespace — the code's module identity is inconsistent.
What to do
Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
Do you agree with this assessment?
P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
Add a CI workflow that builds and runs the test suite on every push/PR.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
No static application security testing detected. For this repository's stack, add a Roslyn security analyzer package referenced from the project (the analyzer packages do analyse VB.NET), plus gitleaks for committed secrets — CodeQL has no VB.NET extractor, so its csharp pack would extract nothing from this tree and then report it clean — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
Run what this repository's stack ships: a Roslyn security analyzer package referenced from the project (the analyzer packages do analyse VB.NET), plus gitleaks for committed secrets — CodeQL has no VB.NET extractor, so its csharp pack would extract nothing from this tree and then report it clean — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
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.
Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Unscored — 1 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.
SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Not evidenced — 5 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.
P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 80 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — no DI registrations detected
AX2 Stateful singletons — no singleton implementations detected
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D10 Test Quality — ~19534 lines of test source are present (.vb) 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 — No tests discovered
D12 Dependency Hygiene — Dependency hygiene not measured
D16 Bus Factor — single-maintainer repository — bus factor is not applicable
D19 Documentation Quality — No runnable or published unit to look for an example in, and no multi-project root README to look for a map in; the other documentation kinds are withheld (see the gaps), so documentation quality is not applicable here.
D21 Naming Consistency — Naming consistency is measured on C# only; Visual Basic not measured.
D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
D23 Boundary Type-Coupling — Cross-context type coupling could not be assessed — this codebase's bounded contexts are neither declared nor inferable.
D25 ADR Conformance — no ADRs to check
D30 Dependency Vulnerabilities — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan
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.
D34 Knowledge Freshness — too few commits to judge knowledge freshness
D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
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 — IL not measured — the analyzer's build of the target did not succeed
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 Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
D8 Code Coverage — Coverage not measured
D9 Test Distribution — Test source is present (.vb) 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 none of the 3 signals this lens looks for
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
M4 Documentation accuracy — Not applicable: the 1 current-state document(s) make no claim of a kind M4 checks.
P12 CI test-gate honesty — no CI workflow found
P2 Observability — This repo is a library, not a deployed service — it has no process to operate, so production observability (structured logging, tracing/metrics, health checks) is N/A. A library may log via an injected ILogger, but the absence of operational telemetry is not a defect here. If it grows a host (web API, worker), the dimension reactivates.
P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
P8 Schema migrations — no EF Core usage detected
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) 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 — Not applicable: no benchmark suite was found. This check searched for a BenchmarkDotNet reference in an .fsproj or .vbproj, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not applicable: allocation awareness is rated where code engineers for it — at least 400 production lines that ship benchmarks or already use allocation-aware idioms (8 or more). This repository's Visual Basic code has 53,763 production line(s), 3 such use(s) and no benchmarks, so there is no allocation work to rate. The card is reward-only: its absence costs nothing.
PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
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 — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X12 Unreachable branch — 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 — 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.
X25 Inert configuration knob — 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.
X26 Unsynchronised callback handoff — 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.
X27 Collection changed while being enumerated — 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.
X29 Per-element action decided by a fixed element — 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.
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 — 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.
X32 Type resolved by simple name across every loaded assembly — 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.
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
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.
EmptyCatchBlock Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:154— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Community.VisualBasic/CompilerServices/Utils.vb:378— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Community.VisualBasic/CompilerServices/VB6InputFile.vb:117— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Community.VisualBasic/Conversion.vb:510— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Community.VisualBasic/Information.vb:187— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Community.VisualBasic/Interaction.vb:409— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Community.VisualBasic/Strings.vb:2030— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
MethodTooLong: VBBinder.BindToMethod Community.VisualBasic/CompilerServices/VBBinder.vb:144— MethodTooLong — BindToMethod runs 699 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 599 over it, 6.99× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.CompareObject2 Community.VisualBasic/CompilerServices/Operators.vb:351— MethodTooLong — CompareObject2 runs 304 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 204 over it, 3.04× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.AddObject Community.VisualBasic/CompilerServices/Operators.vb:2398— MethodTooLong — AddObject runs 297 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 197 over it, 2.97× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.SubtractObject Community.VisualBasic/CompilerServices/Operators.vb:2915— MethodTooLong — SubtractObject runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.ModObject Community.VisualBasic/CompilerServices/Operators.vb:4219— MethodTooLong — ModObject runs 265 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 165 over it, 2.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.XorObject Community.VisualBasic/CompilerServices/Operators.vb:2006— MethodTooLong — XorObject runs 257 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 157 over it, 2.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.MultiplyObject Community.VisualBasic/CompilerServices/Operators.vb:3378— MethodTooLong — MultiplyObject runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.IntDivideObject Community.VisualBasic/CompilerServices/Operators.vb:4631— MethodTooLong — IntDivideObject runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.AndObject Community.VisualBasic/CompilerServices/Operators.vb:1256— MethodTooLong — AndObject runs 248 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 148 over it, 2.48× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.OrObject Community.VisualBasic/CompilerServices/Operators.vb:1635— MethodTooLong — OrObject runs 243 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 143 over it, 2.43× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Operators.DivideObject Community.VisualBasic/CompilerServices/Operators.vb:3832— MethodTooLong — DivideObject runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.ObjTst Community.VisualBasic/CompilerServices/ObjectType.vb:448— MethodTooLong — ObjTst runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: VB6File.PutArrayData Community.VisualBasic/CompilerServices/VB6File.vb:1651— MethodTooLong — PutArrayData runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.AddObj Community.VisualBasic/CompilerServices/ObjectType.vb:1495— MethodTooLong — AddObj runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.ModObj Community.VisualBasic/CompilerServices/ObjectType.vb:2721— MethodTooLong — ModObj runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: StringType.StrLikeText Community.VisualBasic/CompilerServices/StringType.vb:383— MethodTooLong — StrLikeText runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: VBBinder.GetMostSpecific Community.VisualBasic/CompilerServices/VBBinder.vb:1255— MethodTooLong — GetMostSpecific runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: LateBinding.InternalLateSet Community.VisualBasic/CompilerServices/LateBinding.vb:246— MethodTooLong — InternalLateSet runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.MulObj Community.VisualBasic/CompilerServices/ObjectType.vb:2122— MethodTooLong — MulObj runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.IDivObj Community.VisualBasic/CompilerServices/ObjectType.vb:3065— MethodTooLong — IDivObj runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.SubObj Community.VisualBasic/CompilerServices/ObjectType.vb:1825— MethodTooLong — SubObj runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectType.DivObj Community.VisualBasic/CompilerServices/ObjectType.vb:2426— MethodTooLong — DivObj runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: OverloadResolution.CanMatchArguments Community.VisualBasic/CompilerServices/OverloadResolution.vb:1405— MethodTooLong — CanMatchArguments runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Conversion.Val Community.VisualBasic/Conversion.vb:692— MethodTooLong — Val runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: StringType.StrLikeBinary Community.VisualBasic/CompilerServices/StringType.vb:206— MethodTooLong — StrLikeBinary runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FileTooLong: CompilerServices/Operators.vb Community.VisualBasic/CompilerServices/Operators.vb— FileTooLong — 3944 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3444 over it, 7.89× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/ObjectType.vb Community.VisualBasic/CompilerServices/ObjectType.vb— FileTooLong — 2795 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2295 over it, 5.59× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/VB6File.vb Community.VisualBasic/CompilerServices/VB6File.vb— FileTooLong — 2067 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1567 over it, 4.13× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/Conversions.vb Community.VisualBasic/CompilerServices/Conversions.vb— FileTooLong — 1981 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1481 over it, 3.96× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/OverloadResolution.vb Community.VisualBasic/CompilerServices/OverloadResolution.vb— FileTooLong — 1927 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1427 over it, 3.85× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Community.VisualBasic/Strings.vb Community.VisualBasic/Strings.vb— FileTooLong — 1673 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1173 over it, 3.35× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/VBBinder.vb Community.VisualBasic/CompilerServices/VBBinder.vb— FileTooLong — 1469 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 969 over it, 2.94× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Community.VisualBasic/FileSystem.vb Community.VisualBasic/FileSystem.vb— FileTooLong — 1105 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 605 over it, 2.21× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: FileIO/FileSystem.vb Community.VisualBasic/FileIO/FileSystem.vb— FileTooLong — 1092 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 592 over it, 2.18× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/IDOBinder.vb Community.VisualBasic/CompilerServices/IDOBinder.vb— FileTooLong — 1056 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 556 over it, 2.11× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/NewLateBinding.vb Community.VisualBasic/CompilerServices/NewLateBinding.vb— FileTooLong — 1003 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 503 over it, 2.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/LateBinding.vb Community.VisualBasic/CompilerServices/LateBinding.vb— FileTooLong — 874 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 374 over it, 1.75× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: FileIO/TextFieldParser.vb Community.VisualBasic/FileIO/TextFieldParser.vb— FileTooLong — 870 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 370 over it, 1.74× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Community.VisualBasic/Conversion.vb Community.VisualBasic/Conversion.vb— FileTooLong — 811 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 311 over it, 1.62× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Logging/FileLogTraceListener.vb Community.VisualBasic/Logging/FileLogTraceListener.vb— FileTooLong — 764 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 264 over it, 1.53× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/ConversionResolution.vb Community.VisualBasic/CompilerServices/ConversionResolution.vb— FileTooLong — 701 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 201 over it, 1.40× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: CompilerServices/StringType.vb Community.VisualBasic/CompilerServices/StringType.vb— FileTooLong — 574 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 74 over it, 1.15× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Community.VisualBasic/Collection.vb Community.VisualBasic/Collection.vb— FileTooLong — 525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 25 over it, 1.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
TooManyMethods: Operators Community.VisualBasic/CompilerServices/Operators.Resolution.vb— TooManyMethods — 4098 significant lines (blank, comment-only and punctuation-only lines excluded), 159 methods. The bar is 30 methods; this is 129 over it, 5.30× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: VB6File Community.VisualBasic/CompilerServices/VB6File.vb— TooManyMethods — 1798 significant lines (blank, comment-only and punctuation-only lines excluded), 147 methods. The bar is 30 methods; this is 117 over it, 4.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: FileSystem Community.VisualBasic/FileSystem.vb— TooManyMethods — 1092 significant lines (blank, comment-only and punctuation-only lines excluded), 103 methods. The bar is 30 methods; this is 73 over it, 3.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ObjectType Community.VisualBasic/CompilerServices/ObjectType.vb— TooManyMethods — 2790 significant lines (blank, comment-only and punctuation-only lines excluded), 93 methods. The bar is 30 methods; this is 63 over it, 3.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: FileSystem Community.VisualBasic/FileIO/FileSystem.vb— TooManyMethods — 1055 significant lines (blank, comment-only and punctuation-only lines excluded), 88 methods. The bar is 30 methods; this is 58 over it, 2.93× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Conversions Community.VisualBasic/CompilerServices/Conversions.vb— TooManyMethods — 1969 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 30 methods; this is 49 over it, 2.63× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Strings Community.VisualBasic/Strings.vb— TooManyMethods — 1650 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 30 methods; this is 40 over it, 2.33× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: FileSystemProxy Community.VisualBasic/MyServices/FileSystemProxy.vb— TooManyMethods — 194 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 30 methods; this is 24 over it, 1.80× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: OverloadResolution Community.VisualBasic/CompilerServices/OverloadResolution.vb— TooManyMethods — 1915 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: TextFieldParser Community.VisualBasic/FileIO/TextFieldParser.vb— TooManyMethods — 775 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 30 methods; this is 14 over it, 1.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Conversion Community.VisualBasic/Conversion.vb— TooManyMethods — 804 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 30 methods; this is 13 over it, 1.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NewLateBinding Community.VisualBasic/CompilerServices/NewLateBinding.vb— TooManyMethods — 994 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: VB6RandomFile Community.VisualBasic/CompilerServices/VB6RandomFile.vb— TooManyMethods — 482 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: VBBinder Community.VisualBasic/CompilerServices/VBBinder.vb— ClassTooLong — 1459 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 1059 over it, 3.65× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: LateBinding Community.VisualBasic/CompilerServices/LateBinding.vb— ClassTooLong — 866 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 466 over it, 2.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: FileLogTraceListener Community.VisualBasic/Logging/FileLogTraceListener.vb— ClassTooLong — 737 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 337 over it, 1.84× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ConversionResolution Community.VisualBasic/CompilerServices/ConversionResolution.vb— ClassTooLong — 693 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 293 over it, 1.73× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: StringType Community.VisualBasic/CompilerServices/StringType.vb— ClassTooLong — 566 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 166 over it, 1.42× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Collection Community.VisualBasic/Collection.vb— ClassTooLong — 515 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 115 over it, 1.29× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Financial Community.VisualBasic/Financial.vb— ClassTooLong — 439 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 39 over it, 1.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: DateAndTime Community.VisualBasic/DateAndTime.vb— ClassTooLong — 435 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 35 over it, 1.09× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Information Community.VisualBasic/Information.vb— ClassTooLong — 407 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 7 over it, 1.02× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TodoComment Community.VisualBasic.Tests/Community/VisualBasic/FileIO/FileSystemTests.vb:590— ' TODO: Check, VB does not directly support MemberAccess off a Conditional If Expression — 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 Community.VisualBasic.Tests/ConversionsTests.vb:2369— 'TODO: Test when value1 is Nothing and expected is CStr(Nothing). — 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 Community.VisualBasic.Tests/FileSystemTests.vb:187— ' TODO Check: Local function was replaced with Lambda — 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 Community.VisualBasic.Tests/TestUtilities/System/ThreadCultureChange.vb:9— ' TODO: Skipped Null-able Directive enable — 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 (12 lines × 2) Community.VisualBasic/CompilerServices/LateBinding.vb:137— Community.VisualBasic/CompilerServices/LateBinding.vb:137-148 | Community.VisualBasic/CompilerServices/LateBinding.vb:422-433 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Community.VisualBasic/CompilerServices/LateBinding.vb:434` calls `IsMissingMemberException`, `AndAlso` and `Community.VisualBasic/CompilerServices/LateBinding.vb:149` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) Community.VisualBasic/CompilerServices/IDOBinder.vb:819— Community.VisualBasic/CompilerServices/IDOBinder.vb:819-830 | Community.VisualBasic/CompilerServices/IDOBinder.vb:866-879 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) Community.VisualBasic/OperatingSystemEx.vb:267— Community.VisualBasic/OperatingSystemEx.vb:267-278 | ProjectTypeTests/netstandard2_0/OperatingSystemEx.vb:267-278 — before extracting anything, compare `Community.VisualBasic/OperatingSystemEx.vb` and `ProjectTypeTests/netstandard2_0/OperatingSystemEx.vb` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) Community.VisualBasic/FileIO/FileSystem.vb:1586— Community.VisualBasic/FileIO/FileSystem.vb:1586-1597 | Community.VisualBasic/Helpers/FileSystemUtils.vb:138-149 — before extracting anything, compare `Community.VisualBasic/FileIO/FileSystem.vb` and `Community.VisualBasic/Helpers/FileSystemUtils.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) Community.VisualBasic/CompilerServices/Operators.vb:1648— Community.VisualBasic/CompilerServices/Operators.vb:1648-1654 | Community.VisualBasic/CompilerServices/Operators.vb:3845-3851 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) Community.VisualBasic/Information.vb:131— Community.VisualBasic/Information.vb:131-137 | Community.VisualBasic/Information.vb:145-151 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) Community.VisualBasic/CompilerServices/VB6BinaryFile.vb:118— Community.VisualBasic/CompilerServices/VB6BinaryFile.vb:118-124 | Community.VisualBasic/CompilerServices/VB6InputFile.vb:168-174 — 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) Community.VisualBasic/FileIO/FileSystem.vb:1570— Community.VisualBasic/FileIO/FileSystem.vb:1570-1576 | Community.VisualBasic/Helpers/FileSystemUtils.vb:122-128 — before extracting anything, compare `Community.VisualBasic/FileIO/FileSystem.vb` and `Community.VisualBasic/Helpers/FileSystemUtils.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (6 members, 50+ identical tokens) Community.VisualBasic/CompilerServices/ObjectType.vb:826— Community.VisualBasic/CompilerServices/ObjectType.vb:826-844 | Community.VisualBasic/CompilerServices/ObjectType.vb:1720-1738 | Community.VisualBasic/CompilerServices/ObjectType.vb:2019-2037 | Community.VisualBasic/CompilerServices/ObjectType.vb:2321-2339 | Community.VisualBasic/CompilerServices/ObjectType.vb:2615-2633 | Community.VisualBasic/CompilerServices/ObjectType.vb:2966-2984 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) Community.VisualBasic/CompilerServices/ObjectType.vb:1496— Community.VisualBasic/CompilerServices/ObjectType.vb:1496-1715 | Community.VisualBasic/CompilerServices/ObjectType.vb:1826-2014 | Community.VisualBasic/CompilerServices/ObjectType.vb:2123-2316 | Community.VisualBasic/CompilerServices/ObjectType.vb:2428-2610 | Community.VisualBasic/CompilerServices/ObjectType.vb:3067-3266 | Community.VisualBasic/CompilerServices/Operators.vb:5091-5140 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) Community.VisualBasic/CompilerServices/ObjectType.vb:1779— Community.VisualBasic/CompilerServices/ObjectType.vb:1779-1786 | Community.VisualBasic/CompilerServices/ObjectType.vb:2097-2104 | Community.VisualBasic/CompilerServices/ObjectType.vb:2401-2408 | Community.VisualBasic/CompilerServices/Operators.vb:2892-2900 | Community.VisualBasic/CompilerServices/Operators.vb:3359-3367 | Community.VisualBasic/CompilerServices/Operators.vb:3813-3821 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Duplicated block (14–15 lines × 10) Community.VisualBasic/CompilerServices/Operators.vb:579— Community.VisualBasic/CompilerServices/Operators.vb:579-593 | Community.VisualBasic/CompilerServices/Operators.vb:1438-1452 | Community.VisualBasic/CompilerServices/Operators.vb:1808-1822 | Community.VisualBasic/CompilerServices/Operators.vb:2184-2198 | Community.VisualBasic/CompilerServices/Operators.vb:2625-2639 | Community.VisualBasic/CompilerServices/Operators.vb:3113-3127 | Community.VisualBasic/CompilerServices/Operators.vb:3579-3593 | Community.VisualBasic/CompilerServices/Operators.vb:3987-4000 | Community.VisualBasic/CompilerServices/Operators.vb:4419-4433 | Community.VisualBasic/CompilerServices/Operators.vb:4813-4827 — 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–15 lines × 10) Community.VisualBasic/CompilerServices/Operators.vb:593— Community.VisualBasic/CompilerServices/Operators.vb:593-607 | Community.VisualBasic/CompilerServices/Operators.vb:1452-1466 | Community.VisualBasic/CompilerServices/Operators.vb:1822-1836 | Community.VisualBasic/CompilerServices/Operators.vb:2198-2212 | Community.VisualBasic/CompilerServices/Operators.vb:2639-2653 | Community.VisualBasic/CompilerServices/Operators.vb:3127-3141 | Community.VisualBasic/CompilerServices/Operators.vb:3593-3607 | Community.VisualBasic/CompilerServices/Operators.vb:4040-4053 | Community.VisualBasic/CompilerServices/Operators.vb:4433-4447 | Community.VisualBasic/CompilerServices/Operators.vb:4827-4841 — 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–15 lines × 10) Community.VisualBasic/CompilerServices/Operators.vb:721— Community.VisualBasic/CompilerServices/Operators.vb:721-735 | Community.VisualBasic/CompilerServices/Operators.vb:1543-1557 | Community.VisualBasic/CompilerServices/Operators.vb:1914-1928 | Community.VisualBasic/CompilerServices/Operators.vb:2306-2320 | Community.VisualBasic/CompilerServices/Operators.vb:2761-2775 | Community.VisualBasic/CompilerServices/Operators.vb:3226-3240 | Community.VisualBasic/CompilerServices/Operators.vb:3665-3679 | Community.VisualBasic/CompilerServices/Operators.vb:4074-4087 | Community.VisualBasic/CompilerServices/Operators.vb:4539-4553 | Community.VisualBasic/CompilerServices/Operators.vb:4925-4939 — 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 (7 lines × 5) Community.VisualBasic/CompilerServices/ObjectType.vb:591— Community.VisualBasic/CompilerServices/ObjectType.vb:591-597 | Community.VisualBasic/CompilerServices/ObjectType.vb:1561-1567 | Community.VisualBasic/CompilerServices/ObjectType.vb:2479-2485 | Community.VisualBasic/CompilerServices/ObjectType.vb:2767-2773 | Community.VisualBasic/CompilerServices/ObjectType.vb:3104-3110 — 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 × 5) Community.VisualBasic/CompilerServices/Operators.vb:2677— Community.VisualBasic/CompilerServices/Operators.vb:2677-2683 | Community.VisualBasic/CompilerServices/Operators.vb:3166-3172 | Community.VisualBasic/CompilerServices/Operators.vb:3629-3635 | Community.VisualBasic/CompilerServices/Operators.vb:4472-4478 | Community.VisualBasic/CompilerServices/Operators.vb:4867-4873 — 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 × 5) Community.VisualBasic/CompilerServices/ObjectType.vb:679— Community.VisualBasic/CompilerServices/ObjectType.vb:679-685 | Community.VisualBasic/CompilerServices/ObjectType.vb:1677-1683 | Community.VisualBasic/CompilerServices/ObjectType.vb:1976-1982 | Community.VisualBasic/CompilerServices/ObjectType.vb:2278-2284 | Community.VisualBasic/CompilerServices/ObjectType.vb:2916-2924 — 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 (5 lines × 2) Community.VisualBasic/CompilerServices/VB6File.vb:397— Community.VisualBasic/CompilerServices/VB6File.vb:397-401 | Community.VisualBasic/CompilerServices/VB6OutputFile.vb:42-46 — 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 (5 lines × 2) Community.VisualBasic/CompilerServices/ObjectType.vb:2662— Community.VisualBasic/CompilerServices/ObjectType.vb:2662-2666 | Community.VisualBasic/CompilerServices/Operators.vb:4122-4126 — 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 (5 lines × 2) Community.VisualBasic/_Stub.vb:55— Community.VisualBasic/_Stub.vb:55-59 | Community.VisualBasic/_Stub.vb:80-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 (38 lines × 4) Community.VisualBasic/CompilerServices/Operators.vb:1368— Community.VisualBasic/CompilerServices/Operators.vb:1368-1405 | Community.VisualBasic/CompilerServices/Operators.vb:1738-1775 | Community.VisualBasic/CompilerServices/Operators.vb:2114-2151 | Community.VisualBasic/CompilerServices/Operators.vb:4742-4779 — 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 (38 lines × 4) Community.VisualBasic/CompilerServices/Operators.vb:1407— Community.VisualBasic/CompilerServices/Operators.vb:1407-1444 | Community.VisualBasic/CompilerServices/Operators.vb:1777-1814 | Community.VisualBasic/CompilerServices/Operators.vb:2153-2190 | Community.VisualBasic/CompilerServices/Operators.vb:4782-4819 — 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 (31 lines × 2) Community.VisualBasic/Conversion.vb:583— Community.VisualBasic/Conversion.vb:583-613 | Community.VisualBasic/Conversion.vb:654-684 — 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 (31 lines × 2) Community.VisualBasic/FileIO/FileSystem.vb:1509— Community.VisualBasic/FileIO/FileSystem.vb:1509-1539 | Community.VisualBasic/Helpers/FileSystemUtils.vb:76-106 — before extracting anything, compare `Community.VisualBasic/FileIO/FileSystem.vb` and `Community.VisualBasic/Helpers/FileSystemUtils.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (22 lines × 2) Community.VisualBasic/CompilerServices/Conversions.vb:2244— Community.VisualBasic/CompilerServices/Conversions.vb:2244-2265 | Community.VisualBasic/CompilerServices/StringType.vb:95-116 — 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 (22 lines × 2) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:269— Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:269-290 | Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:307-328 — 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 × 2) Community.VisualBasic/CompilerServices/ObjectType.vb:1587— Community.VisualBasic/CompilerServices/ObjectType.vb:1587-1604 | Community.VisualBasic/CompilerServices/ObjectType.vb:1864-1881 — 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 × 2) Community.VisualBasic/CompilerServices/StringType.vb:222— Community.VisualBasic/CompilerServices/StringType.vb:222-241 | Community.VisualBasic/CompilerServices/StringType.vb:401-418 — 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) Community.VisualBasic/CompilerServices/VBBinder.vb:2112— Community.VisualBasic/CompilerServices/VBBinder.vb:2112-2131 | Community.VisualBasic/CompilerServices/VBBinder.vb:2157-2176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Community.VisualBasic/CompilerServices/VBBinder.vb:2111` calls `AndAlso`, `GetBaseDefinition` and `Community.VisualBasic/CompilerServices/VBBinder.vb:2156` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (20 lines × 2) Community.VisualBasic/Conversion.vb:122— Community.VisualBasic/Conversion.vb:122-141 | Community.VisualBasic/Conversion.vb:197-216 — 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) Community.VisualBasic/CompilerServices/BooleanType.vb:102— Community.VisualBasic/CompilerServices/BooleanType.vb:102-116 | Community.VisualBasic/CompilerServices/Conversions.vb:138-152 — before extracting anything, compare `Community.VisualBasic/CompilerServices/BooleanType.vb` and `Community.VisualBasic/CompilerServices/Conversions.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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) Community.VisualBasic/CompilerServices/ConversionResolution.vb:1048— Community.VisualBasic/CompilerServices/ConversionResolution.vb:1048-1062 | Community.VisualBasic/CompilerServices/ConversionResolution.vb:1151-1165 — 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) Community.VisualBasic/CompilerServices/ObjectType.vb:3274— Community.VisualBasic/CompilerServices/ObjectType.vb:3274-3287 | Community.VisualBasic/CompilerServices/ObjectType.vb:3290-3303 — 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) Community.VisualBasic/Strings.vb:1387— Community.VisualBasic/Strings.vb:1387-1404 | Community.VisualBasic/Strings.vb:1828-1841 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) Community.VisualBasic/CompilerServices/Utils.vb:197— Community.VisualBasic/CompilerServices/Utils.vb:197-205 | Community.VisualBasic/CompilerServices/Utils.vb:217-225 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) Community.VisualBasic/CompilerServices/VBBinder.vb:1284— Community.VisualBasic/CompilerServices/VBBinder.vb:1284-1292 | Community.VisualBasic/CompilerServices/VBBinder.vb:1297-1305 — 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) Community.VisualBasic/CompilerServices/ConversionResolution.vb:1033— Community.VisualBasic/CompilerServices/ConversionResolution.vb:1033-1043 | Community.VisualBasic/CompilerServices/ConversionResolution.vb:1136-1146 — 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) Community.VisualBasic/CompilerServices/Conversions.vb:2219— Community.VisualBasic/CompilerServices/Conversions.vb:2219-2230 | Community.VisualBasic/CompilerServices/StringType.vb:71-81 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 7) Community.VisualBasic/CompilerServices/ObjectType.vb:566— Community.VisualBasic/CompilerServices/ObjectType.vb:566-573 | Community.VisualBasic/CompilerServices/ObjectType.vb:1608-1615 | Community.VisualBasic/CompilerServices/ObjectType.vb:1885-1892 | Community.VisualBasic/CompilerServices/ObjectType.vb:2188-2195 | Community.VisualBasic/CompilerServices/ObjectType.vb:2550-2557 | Community.VisualBasic/CompilerServices/ObjectType.vb:2841-2848 | Community.VisualBasic/CompilerServices/ObjectType.vb:3252-3259 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Community.VisualBasic/CompilerServices/ObjectType.vb:1882` calls `InternalNegObj` and `Community.VisualBasic/CompilerServices/ObjectType.vb:3251` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 7) Community.VisualBasic/CompilerServices/ObjectType.vb:648— Community.VisualBasic/CompilerServices/ObjectType.vb:648-655 | Community.VisualBasic/CompilerServices/ObjectType.vb:1646-1653 | Community.VisualBasic/CompilerServices/ObjectType.vb:1945-1952 | Community.VisualBasic/CompilerServices/ObjectType.vb:2247-2254 | Community.VisualBasic/CompilerServices/ObjectType.vb:2563-2570 | Community.VisualBasic/CompilerServices/ObjectType.vb:2883-2890 | Community.VisualBasic/CompilerServices/ObjectType.vb:3234-3241 — 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 (6 lines × 6) Community.VisualBasic/CompilerServices/ObjectType.vb:582— Community.VisualBasic/CompilerServices/ObjectType.vb:582-587 | Community.VisualBasic/CompilerServices/ObjectType.vb:1901-1906 | Community.VisualBasic/CompilerServices/ObjectType.vb:2204-2209 | Community.VisualBasic/CompilerServices/ObjectType.vb:2470-2475 | Community.VisualBasic/CompilerServices/ObjectType.vb:2758-2763 | Community.VisualBasic/CompilerServices/ObjectType.vb:3119-3124 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Community.VisualBasic/CompilerServices/ObjectType.vb:589` calls `ObjTstString` and `Community.VisualBasic/CompilerServices/ObjectType.vb:1907` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 6) Community.VisualBasic/CompilerServices/Operators.vb:473— Community.VisualBasic/CompilerServices/Operators.vb:473-478 | Community.VisualBasic/CompilerServices/Operators.vb:2519-2524 | Community.VisualBasic/CompilerServices/Operators.vb:3007-3012 | Community.VisualBasic/CompilerServices/Operators.vb:3473-3478 | Community.VisualBasic/CompilerServices/Operators.vb:4313-4318 | Community.VisualBasic/CompilerServices/Operators.vb:4716-4721 — 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 × 2) Community.VisualBasic/Information.vb:192— Community.VisualBasic/Information.vb:192-200 | Community.VisualBasic/Information.vb:568-575 — 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) ProjectTypeTests/netstandard2_0/Class1.vb:244— ProjectTypeTests/netstandard2_0/Class1.vb:244-251 | ProjectTypeTests/netstandard2_0/Class1.vb:252-259 — 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.
End-of-life runtime: .NET net5.0 ProjectTypeTests/net5-windows/net5-windows.vbproj:5— ProjectTypeTests/net5-windows/net5-windows.vbproj declares .NET net5.0 as this project's target framework, and .NET 5, support ended 2022-05-10. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2022-05-10 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended.
End-of-life runtime: .NET net7.0 Community.VisualBasic.Tests/Community.VisualBasic.Tests.vbproj:5— Community.VisualBasic.Tests/Community.VisualBasic.Tests.vbproj declares .NET net7.0 as this project's target framework, and .NET 7, support ended 2024-05-14. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2024-05-14 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended.
Low cohesion: TextFieldParser (LCOM4 5) Community.VisualBasic/FileIO/TextFieldParser.vb:22— TextFieldParser's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: FileLogTraceListener (LCOM4 4) Community.VisualBasic/Logging/FileLogTraceListener.vb:55— FileLogTraceListener's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
VBBinder.BindToMethod (cyclomatic 239) Community.VisualBasic/CompilerServices/VBBinder.vb:144— VBBinder.BindToMethod has cyclomatic complexity 239 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Operators.AddObject (cyclomatic 221) Community.VisualBasic/CompilerServices/Operators.vb:2398— Operators.AddObject has cyclomatic complexity 221 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Operators.CompareObject2 (cyclomatic 219) Community.VisualBasic/CompilerServices/Operators.vb:351— Operators.CompareObject2 has cyclomatic complexity 219 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.ObjTst (cyclomatic 127) Community.VisualBasic/CompilerServices/ObjectType.vb:448— ObjectType.ObjTst has cyclomatic complexity 127 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.AddObj (cyclomatic 123) Community.VisualBasic/CompilerServices/ObjectType.vb:1495— ObjectType.AddObj has cyclomatic complexity 123 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.SubObj (cyclomatic 105) Community.VisualBasic/CompilerServices/ObjectType.vb:1825— ObjectType.SubObj has cyclomatic complexity 105 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 3 other methods here (ObjectType.MulObj, ObjectType.DivObj, ObjectType.IDivObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
ObjectType.MulObj (cyclomatic 105) Community.VisualBasic/CompilerServices/ObjectType.vb:2122— ObjectType.MulObj has cyclomatic complexity 105 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 3 other methods here (ObjectType.SubObj, ObjectType.DivObj, ObjectType.IDivObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
ObjectType.DivObj (cyclomatic 105) Community.VisualBasic/CompilerServices/ObjectType.vb:2426— ObjectType.DivObj has cyclomatic complexity 105 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 3 other methods here (ObjectType.SubObj, ObjectType.MulObj, ObjectType.IDivObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
ObjectType.ModObj (cyclomatic 105) Community.VisualBasic/CompilerServices/ObjectType.vb:2721— ObjectType.ModObj has cyclomatic complexity 105 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.IDivObj (cyclomatic 105) Community.VisualBasic/CompilerServices/ObjectType.vb:3065— ObjectType.IDivObj has cyclomatic complexity 105 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 3 other methods here (ObjectType.SubObj, ObjectType.MulObj, ObjectType.DivObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
VBBinder.GetMostSpecific (cyclomatic 69) Community.VisualBasic/CompilerServices/VBBinder.vb:1255— VBBinder.GetMostSpecific has cyclomatic complexity 69 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
StringType.StrLikeText (cyclomatic 66) Community.VisualBasic/CompilerServices/StringType.vb:383— StringType.StrLikeText has cyclomatic complexity 66 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Strings.FormatNamed (cyclomatic 60) Community.VisualBasic/Strings.vb:1102— Strings.FormatNamed has cyclomatic complexity 60 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6File.PutArrayData (cyclomatic 59) Community.VisualBasic/CompilerServices/VB6File.vb:1651— VB6File.PutArrayData has cyclomatic complexity 59 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
StringType.StrLikeBinary (cyclomatic 55) Community.VisualBasic/CompilerServices/StringType.vb:206— StringType.StrLikeBinary has cyclomatic complexity 55 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversion.HexOrOctValue (cyclomatic 52) Community.VisualBasic/Conversion.vb:525— Conversion.HexOrOctValue has cyclomatic complexity 52 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversion.Val (cyclomatic 52) Community.VisualBasic/Conversion.vb:692— Conversion.Val has cyclomatic complexity 52 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.BitAndObj (cyclomatic 45) Community.VisualBasic/CompilerServices/ObjectType.vb:1204— ObjectType.BitAndObj has cyclomatic complexity 45 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 2 other methods here (ObjectType.BitOrObj, ObjectType.BitXorObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
ObjectType.BitOrObj (cyclomatic 45) Community.VisualBasic/CompilerServices/ObjectType.vb:1301— ObjectType.BitOrObj has cyclomatic complexity 45 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 2 other methods here (ObjectType.BitAndObj, ObjectType.BitXorObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
ObjectType.BitXorObj (cyclomatic 45) Community.VisualBasic/CompilerServices/ObjectType.vb:1398— ObjectType.BitXorObj has cyclomatic complexity 45 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 2 other methods here (ObjectType.BitAndObj, ObjectType.BitOrObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
LateBinding.InternalLateSet (cyclomatic 44) Community.VisualBasic/CompilerServices/LateBinding.vb:246— LateBinding.InternalLateSet has cyclomatic complexity 44 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.CanMatchArguments (cyclomatic 44) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1405— OverloadResolution.CanMatchArguments has cyclomatic complexity 44 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VBBinder.GetMethodsByName (cyclomatic 43) Community.VisualBasic/CompilerServices/VBBinder.vb:2048— VBBinder.GetMethodsByName has cyclomatic complexity 43 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.InsertIfMethodAvailable (cyclomatic 42) Community.VisualBasic/CompilerServices/OverloadResolution.vb:479— OverloadResolution.InsertIfMethodAvailable has cyclomatic complexity 42 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Strings.StrConv (cyclomatic 42) Community.VisualBasic/Strings.vb:2035— Strings.StrConv has cyclomatic complexity 42 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.CollectOverloadCandidates (cyclomatic 39) Community.VisualBasic/CompilerServices/OverloadResolution.vb:713— OverloadResolution.CollectOverloadCandidates has cyclomatic complexity 39 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ConversionResolution.ClassifyPredefinedCLRConversion (cyclomatic 38) Community.VisualBasic/CompilerServices/ConversionResolution.vb:206— ConversionResolution.ClassifyPredefinedCLRConversion has cyclomatic complexity 38 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6File.GetArrayData (cyclomatic 38) Community.VisualBasic/CompilerServices/VB6File.vb:1909— VB6File.GetArrayData has cyclomatic complexity 38 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Strings.Format (cyclomatic 38) Community.VisualBasic/Strings.vb:1271— Strings.Format has cyclomatic complexity 38 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversions.GetNormalizedNumberFormat (cyclomatic 37) Community.VisualBasic/CompilerServices/Conversions.vb:1525— Conversions.GetNormalizedNumberFormat has cyclomatic complexity 37 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
DecimalType.GetNormalizedNumberFormat (cyclomatic 37) Community.VisualBasic/CompilerServices/DecimalType.vb:150— DecimalType.GetNormalizedNumberFormat has cyclomatic complexity 37 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ConversionResolution.ResolveConversion (cyclomatic 36) Community.VisualBasic/CompilerServices/ConversionResolution.vb:687— ConversionResolution.ResolveConversion has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6RandomFile.GetObject (cyclomatic 34) Community.VisualBasic/CompilerServices/VB6RandomFile.vb:185— VB6RandomFile.GetObject has cyclomatic complexity 34 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.InternalNegObj (cyclomatic 33) Community.VisualBasic/CompilerServices/ObjectType.vb:952— ObjectType.InternalNegObj has cyclomatic complexity 33 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversions.ToBoolean (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:52— Conversions.ToBoolean has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToByte, Conversions.ToShort, Conversions.ToUShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToByte (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:196— Conversions.ToByte has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToShort, Conversions.ToUShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToSByte (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:340— Conversions.ToSByte has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversions.ToShort (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:487— Conversions.ToShort has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToUShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToUShort (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:631— Conversions.ToUShort has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToInteger (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:776— Conversions.ToInteger has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToUInteger (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:921— Conversions.ToUInteger has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToLong (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:1068— Conversions.ToLong has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToULong (cyclomatic 31) Community.VisualBasic/CompilerServices/Conversions.vb:1215— Conversions.ToULong has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Operators.NegateObject (cyclomatic 31) Community.VisualBasic/CompilerServices/Operators.vb:931— Operators.NegateObject has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: Operators.SubtractObject (cyclomatic 205) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
Strings.GetCurrencyFormatString (cyclomatic 31) Community.VisualBasic/Strings.vb:1609— Strings.GetCurrencyFormatString has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversions.ToSingle (cyclomatic 30) Community.VisualBasic/CompilerServices/Conversions.vb:1617— Conversions.ToSingle has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: one other method here (Conversions.ToDouble) 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.
Conversions.ToDouble (cyclomatic 30) Community.VisualBasic/CompilerServices/Conversions.vb:1761— Conversions.ToDouble has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: one other method here (Conversions.ToSingle) 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.
Conversions.ToDecimal (cyclomatic 29) Community.VisualBasic/CompilerServices/Conversions.vb:1375— Conversions.ToDecimal has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
LateBinding.LateIndexSet (cyclomatic 29) Community.VisualBasic/CompilerServices/LateBinding.vb:738— LateBinding.LateIndexSet has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
LateBinding.LateIndexGet (cyclomatic 28) Community.VisualBasic/CompilerServices/LateBinding.vb:492— LateBinding.LateIndexGet has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NewLateBinding.ResolveCall (cyclomatic 28) Community.VisualBasic/CompilerServices/NewLateBinding.vb:1151— NewLateBinding.ResolveCall has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
PutHandler.Callback (cyclomatic 28) Community.VisualBasic/CompilerServices/VB6File.vb:104— PutHandler.Callback has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.CompareParameterSpecificity (cyclomatic 27) Community.VisualBasic/CompilerServices/OverloadResolution.vb:122— OverloadResolution.CompareParameterSpecificity has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VBBinder.BindingScore (cyclomatic 27) Community.VisualBasic/CompilerServices/VBBinder.vb:1768— VBBinder.BindingScore has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.MoreSpecificProcedure (cyclomatic 26) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2137— OverloadResolution.MoreSpecificProcedure has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Utils.VBFriendlyNameOfType (cyclomatic 26) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:364— Utils.VBFriendlyNameOfType has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
GetHandler.Callback (cyclomatic 26) Community.VisualBasic/CompilerServices/VB6File.vb:224— GetHandler.Callback has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
LateBinding.InternalLateCall (cyclomatic 25) Community.VisualBasic/CompilerServices/LateBinding.vb:947— LateBinding.InternalLateCall has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ReflectionExtensions.IsGenericallyEquivalentTo (cyclomatic 25) Community.VisualBasic/CompilerServices/Utils.vb:267— ReflectionExtensions.IsGenericallyEquivalentTo has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VBBinder.SelectProperty (cyclomatic 25) Community.VisualBasic/CompilerServices/VBBinder.vb:1599— VBBinder.SelectProperty has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
FileSystem.VbIOOpenFile (cyclomatic 25) Community.VisualBasic/FileSystem.vb:1397— FileSystem.VbIOOpenFile has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
LateBinding.LateGet (cyclomatic 24) Community.VisualBasic/CompilerServices/LateBinding.vb:48— LateBinding.LateGet has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.InferTypeArgumentsFromArgument (cyclomatic 24) Community.VisualBasic/CompilerServices/OverloadResolution.vb:982— OverloadResolution.InferTypeArgumentsFromArgument has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6File.Print (cyclomatic 24) Community.VisualBasic/CompilerServices/VB6File.vb:2104— VB6File.Print has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Strings.GetFormatString (cyclomatic 24) Community.VisualBasic/Strings.vb:1499— Strings.GetFormatString has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NewLateBinding.LateSet (cyclomatic 23) Community.VisualBasic/CompilerServices/NewLateBinding.vb:828— NewLateBinding.LateSet has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.InferTypeArguments (cyclomatic 23) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1840— OverloadResolution.InferTypeArguments has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Utils.MethodToString (cyclomatic 23) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:552— Utils.MethodToString has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6File.VTFromComType (cyclomatic 23) Community.VisualBasic/CompilerServices/VB6File.vb:850— VB6File.VTFromComType has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6File.InternalWriteHelper (cyclomatic 23) Community.VisualBasic/CompilerServices/VB6File.vb:2203— VB6File.InternalWriteHelper has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversion.Str (cyclomatic 23) Community.VisualBasic/Conversion.vb:459— Conversion.Str has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Information.VarTypeFromComType (cyclomatic 23) Community.VisualBasic/Information.vb:260— Information.VarTypeFromComType has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Strings.GetNumberFormatString (cyclomatic 23) Community.VisualBasic/Strings.vb:1724— Strings.GetNumberFormatString has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
BooleanType.FromObject (cyclomatic 22) Community.VisualBasic/CompilerServices/BooleanType.vb:48— BooleanType.FromObject has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VB6RandomFile.PutObject (cyclomatic 22) Community.VisualBasic/CompilerServices/VB6RandomFile.vb:421— VB6RandomFile.PutObject has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversion.Hex (cyclomatic 22) Community.VisualBasic/Conversion.vb:280— Conversion.Hex has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: one other method here (Conversion.Oct) 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.
Conversion.Oct (cyclomatic 22) Community.VisualBasic/Conversion.vb:384— Conversion.Oct has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: one other method here (Conversion.Hex) 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.
ErrObject.MapExceptionToNumber (cyclomatic 22) Community.VisualBasic/ErrObject.vb:368— ErrObject.MapExceptionToNumber has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
FileSystem.CopyOrMoveDirectoryNode (cyclomatic 22) Community.VisualBasic/FileIO/FileSystem.vb:1010— FileSystem.CopyOrMoveDirectoryNode has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.InferTypeArgumentsFromArgumentDirectly (cyclomatic 21) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1106— OverloadResolution.InferTypeArgumentsFromArgumentDirectly has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Financial.IRR (cyclomatic 21) Community.VisualBasic/Financial.vb:236— Financial.IRR has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Information.TypeName (cyclomatic 21) Community.VisualBasic/Information.vb:425— Information.TypeName has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ByteType.FromObject (cyclomatic 20) Community.VisualBasic/CompilerServices/ByteType.vb:37— ByteType.FromObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversions.ToDate (cyclomatic 20) Community.VisualBasic/CompilerServices/Conversions.vb:1978— Conversions.ToDate has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: one other method here (Conversions.ToChar) 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.
Conversions.ToChar (cyclomatic 20) Community.VisualBasic/CompilerServices/Conversions.vb:2051— Conversions.ToChar has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This shape REPEATS in the file: one other method here (Conversions.ToDate) 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.
Conversions.ToString (cyclomatic 20) Community.VisualBasic/CompilerServices/Conversions.vb:2242— Conversions.ToString has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
DoubleType.FromObject (cyclomatic 20) Community.VisualBasic/CompilerServices/DoubleType.vb:46— DoubleType.FromObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
IntegerType.FromObject (cyclomatic 20) Community.VisualBasic/CompilerServices/IntegerType.vb:37— IntegerType.FromObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
IOUtils.FindFirstFile (cyclomatic 20) Community.VisualBasic/CompilerServices/IOUtils.vb:18— IOUtils.FindFirstFile has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
LongType.FromObject (cyclomatic 20) Community.VisualBasic/CompilerServices/LongType.vb:40— LongType.FromObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ShortType.FromObject (cyclomatic 20) Community.VisualBasic/CompilerServices/ShortType.vb:38— ShortType.FromObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
SingleType.FromObject (cyclomatic 20) Community.VisualBasic/CompilerServices/SingleType.vb:51— SingleType.FromObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Utils.StdFormat (cyclomatic 20) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:133— Utils.StdFormat has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ReflectionExtensions.IsEquivalentTo (cyclomatic 20) Community.VisualBasic/CompilerServices/Utils.vb:161— ReflectionExtensions.IsEquivalentTo has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversion.ParseInputField (cyclomatic 20) Community.VisualBasic/Conversion.vb:916— Conversion.ParseInputField has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
StringType.AsteriskSkip (cyclomatic 19) Community.VisualBasic/CompilerServices/StringType.vb:622— StringType.AsteriskSkip has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
StructByteLengthHandler.GetFieldSize (cyclomatic 19) Community.VisualBasic/CompilerServices/StructUtils.vb:176— StructByteLengthHandler.GetFieldSize has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.NotObj (cyclomatic 18) Community.VisualBasic/CompilerServices/ObjectType.vb:1117— ObjectType.NotObj has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.RemoveRedundantGenericProcedures (cyclomatic 18) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2359— OverloadResolution.RemoveRedundantGenericProcedures has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Conversions.ChangeType (cyclomatic 17) Community.VisualBasic/CompilerServices/Conversions.vb:2495— Conversions.ChangeType has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: Conversions.ForceValueCopy (cyclomatic 20) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
ObjectType.PlusObj (cyclomatic 17) Community.VisualBasic/CompilerServices/ObjectType.vb:872— ObjectType.PlusObj has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: ObjectType.TypeFromTypeCode (cyclomatic 18) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
OverloadResolution.MatchArguments (cyclomatic 17) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1703— OverloadResolution.MatchArguments has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
OverloadResolution.ResolveOverloadedCall (cyclomatic 17) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2688— OverloadResolution.ResolveOverloadedCall has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
StringType.FromObject (cyclomatic 17) Community.VisualBasic/CompilerServices/StringType.vb:93— StringType.FromObject has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VBBinder.ReorderArgumentArray (cyclomatic 17) Community.VisualBasic/CompilerServices/VBBinder.vb:63— VBBinder.ReorderArgumentArray has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
DateAndTime.DateSerial (cyclomatic 17) Community.VisualBasic/DateAndTime.vb:387— DateAndTime.DateSerial has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
FileLogTraceListener.LogFileName.Get (cyclomatic 17) Community.VisualBasic/Logging/FileLogTraceListener.vb:627— FileLogTraceListener.LogFileName.Get has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Strings.SplitHelper (cyclomatic 17) Community.VisualBasic/Strings.vb:846— Strings.SplitHelper has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: Strings.Len (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
Collection.Add (cyclomatic 16) Community.VisualBasic/Collection.vb:40— Collection.Add has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
ObjectType.GetWidestType (cyclomatic 16) Community.VisualBasic/CompilerServices/ObjectType.vb:375— ObjectType.GetWidestType has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: ObjectType.TypeFromTypeCode (cyclomatic 18) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
OverloadResolution.CompareGenericityBasedOnMethodGenericParams (cyclomatic 16) Community.VisualBasic/CompilerServices/OverloadResolution.vb:220— OverloadResolution.CompareGenericityBasedOnMethodGenericParams has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Symbols.IsOrInheritsFrom (cyclomatic 16) Community.VisualBasic/CompilerServices/Symbols.vb:441— Symbols.IsOrInheritsFrom has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: Symbols.IsBinaryOperator (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
FileSystem.GetLongPath (cyclomatic 16) Community.VisualBasic/FileIO/FileSystem.vb:1497— FileSystem.GetLongPath has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
FileSystemUtils.GetLongPath (cyclomatic 16) Community.VisualBasic/Helpers/FileSystemUtils.vb:64— FileSystemUtils.GetLongPath has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
VBBinder.BindToMethod (cognitive 621) Community.VisualBasic/CompilerServices/VBBinder.vb:144— VBBinder.BindToMethod has cognitive complexity 621 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
StringType.StrLikeText (cognitive 144) Community.VisualBasic/CompilerServices/StringType.vb:383— StringType.StrLikeText has cognitive complexity 144 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VBBinder.GetMostSpecific (cognitive 136) Community.VisualBasic/CompilerServices/VBBinder.vb:1255— VBBinder.GetMostSpecific has cognitive complexity 136 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
VB6File.PutArrayData (cognitive 113) Community.VisualBasic/CompilerServices/VB6File.vb:1651— VB6File.PutArrayData has cognitive complexity 113 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
StringType.StrLikeBinary (cognitive 110) Community.VisualBasic/CompilerServices/StringType.vb:206— StringType.StrLikeBinary has cognitive complexity 110 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VBBinder.SelectProperty (cognitive 103) Community.VisualBasic/CompilerServices/VBBinder.vb:1599— VBBinder.SelectProperty has cognitive complexity 103 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
OverloadResolution.CanMatchArguments (cognitive 97) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1405— OverloadResolution.CanMatchArguments has cognitive complexity 97 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LateBinding.InternalLateSet (cognitive 95) Community.VisualBasic/CompilerServices/LateBinding.vb:246— LateBinding.InternalLateSet has cognitive complexity 95 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.InsertIfMethodAvailable (cognitive 83) Community.VisualBasic/CompilerServices/OverloadResolution.vb:479— OverloadResolution.InsertIfMethodAvailable has cognitive complexity 83 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VBBinder.GetMethodsByName (cognitive 83) Community.VisualBasic/CompilerServices/VBBinder.vb:2048— VBBinder.GetMethodsByName has cognitive complexity 83 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
LateBinding.LateIndexSet (cognitive 74) Community.VisualBasic/CompilerServices/LateBinding.vb:738— LateBinding.LateIndexSet has cognitive complexity 74 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversion.HexOrOctValue (cognitive 74) Community.VisualBasic/Conversion.vb:525— Conversion.HexOrOctValue has cognitive complexity 74 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.FormatNamed (cognitive 73) Community.VisualBasic/Strings.vb:1102— Strings.FormatNamed has cognitive complexity 73 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ConversionResolution.ResolveConversion (cognitive 71) Community.VisualBasic/CompilerServices/ConversionResolution.vb:687— ConversionResolution.ResolveConversion has cognitive complexity 71 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversion.Val (cognitive 71) Community.VisualBasic/Conversion.vb:692— Conversion.Val has cognitive complexity 71 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LateBinding.LateIndexGet (cognitive 70) Community.VisualBasic/CompilerServices/LateBinding.vb:492— LateBinding.LateIndexGet has cognitive complexity 70 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.CollectOverloadCandidates (cognitive 70) Community.VisualBasic/CompilerServices/OverloadResolution.vb:713— OverloadResolution.CollectOverloadCandidates has cognitive complexity 70 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.StrConv (cognitive 70) Community.VisualBasic/Strings.vb:2035— Strings.StrConv has cognitive complexity 70 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.RemoveRedundantGenericProcedures (cognitive 66) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2359— OverloadResolution.RemoveRedundantGenericProcedures has cognitive complexity 66 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ConversionResolution.ClassifyPredefinedCLRConversion (cognitive 64) Community.VisualBasic/CompilerServices/ConversionResolution.vb:206— ConversionResolution.ClassifyPredefinedCLRConversion has cognitive complexity 64 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversions.ToBoolean (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:52— Conversions.ToBoolean has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToByte, Conversions.ToShort, Conversions.ToUShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToByte (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:196— Conversions.ToByte has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToShort, Conversions.ToUShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToShort (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:487— Conversions.ToShort has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToUShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToUShort (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:631— Conversions.ToUShort has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToInteger (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:776— Conversions.ToInteger has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToUInteger (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:921— Conversions.ToUInteger has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToLong (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:1068— Conversions.ToLong has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToULong (cognitive 56) Community.VisualBasic/CompilerServices/Conversions.vb:1215— Conversions.ToULong has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 7 other methods here (Conversions.ToBoolean, Conversions.ToByte, Conversions.ToShort, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 8 times rather than 8 independent problems. Splitting this body alone leaves the other 7 exactly as they are. Where these are variations on one operation, the change that clears all 8 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.
Conversions.ToSingle (cognitive 52) Community.VisualBasic/CompilerServices/Conversions.vb:1617— Conversions.ToSingle has cognitive complexity 52 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: one other method here (Conversions.ToDouble) 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.
Conversions.ToDouble (cognitive 52) Community.VisualBasic/CompilerServices/Conversions.vb:1761— Conversions.ToDouble has cognitive complexity 52 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: one other method here (Conversions.ToSingle) 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.
VBBinder.BindingScore (cognitive 52) Community.VisualBasic/CompilerServices/VBBinder.vb:1768— VBBinder.BindingScore has cognitive complexity 52 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
OverloadResolution.InferTypeArguments (cognitive 51) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1840— OverloadResolution.InferTypeArguments has cognitive complexity 51 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6File.GetArrayData (cognitive 51) Community.VisualBasic/CompilerServices/VB6File.vb:1909— VB6File.GetArrayData has cognitive complexity 51 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VBBinder.ReorderArgumentArray (cognitive 50) Community.VisualBasic/CompilerServices/VBBinder.vb:63— VBBinder.ReorderArgumentArray has cognitive complexity 50 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
LateBinding.LateGet (cognitive 49) Community.VisualBasic/CompilerServices/LateBinding.vb:48— LateBinding.LateGet has cognitive complexity 49 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversions.ToDecimal (cognitive 48) Community.VisualBasic/CompilerServices/Conversions.vb:1375— Conversions.ToDecimal has cognitive complexity 48 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LateBinding.InternalLateCall (cognitive 48) Community.VisualBasic/CompilerServices/LateBinding.vb:947— LateBinding.InternalLateCall has cognitive complexity 48 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NewLateBinding.ResolveCall (cognitive 48) Community.VisualBasic/CompilerServices/NewLateBinding.vb:1151— NewLateBinding.ResolveCall has cognitive complexity 48 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
TextFieldParser.ParseDelimitedLine (cognitive 48) Community.VisualBasic/FileIO/TextFieldParser.vb:871— TextFieldParser.ParseDelimitedLine has cognitive complexity 48 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.InternalNegObj (cognitive 45) Community.VisualBasic/CompilerServices/ObjectType.vb:952— ObjectType.InternalNegObj has cognitive complexity 45 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.InferTypeArgumentsFromArgumentDirectly (cognitive 44) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1106— OverloadResolution.InferTypeArgumentsFromArgumentDirectly has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversions.ToSByte (cognitive 42) Community.VisualBasic/CompilerServices/Conversions.vb:340— Conversions.ToSByte has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
StringType.AsteriskSkip (cognitive 41) Community.VisualBasic/CompilerServices/StringType.vb:622— StringType.AsteriskSkip has cognitive complexity 41 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.BitAndObj (cognitive 40) Community.VisualBasic/CompilerServices/ObjectType.vb:1204— ObjectType.BitAndObj has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 2 other methods here (ObjectType.BitOrObj, ObjectType.BitXorObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
ObjectType.BitOrObj (cognitive 40) Community.VisualBasic/CompilerServices/ObjectType.vb:1301— ObjectType.BitOrObj has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 2 other methods here (ObjectType.BitAndObj, ObjectType.BitXorObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
ObjectType.BitXorObj (cognitive 40) Community.VisualBasic/CompilerServices/ObjectType.vb:1398— ObjectType.BitXorObj has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: 2 other methods here (ObjectType.BitAndObj, ObjectType.BitOrObj) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
Operators.NegateObject (cognitive 40) Community.VisualBasic/CompilerServices/Operators.vb:931— Operators.NegateObject has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.GetFormatString (cognitive 39) Community.VisualBasic/Strings.vb:1499— Strings.GetFormatString has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
PutHandler.Callback (cognitive 38) Community.VisualBasic/CompilerServices/VB6File.vb:104— PutHandler.Callback has cognitive complexity 38 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
TextFieldParser.ReadNextLine (cognitive 38) Community.VisualBasic/FileIO/TextFieldParser.vb:801— TextFieldParser.ReadNextLine has cognitive complexity 38 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversion.ParseInputField (cognitive 37) Community.VisualBasic/Conversion.vb:916— Conversion.ParseInputField has cognitive complexity 37 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
BooleanType.FromObject (cognitive 36) Community.VisualBasic/CompilerServices/BooleanType.vb:48— BooleanType.FromObject has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NewLateBinding.LateSet (cognitive 35) Community.VisualBasic/CompilerServices/NewLateBinding.vb:828— NewLateBinding.LateSet has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Financial.IRR (cognitive 35) Community.VisualBasic/Financial.vb:236— Financial.IRR has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Information.TypeNameOfCOMObject (cognitive 35) Community.VisualBasic/Information.vb:157— Information.TypeNameOfCOMObject has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
IOUtils.FindFirstFile (cognitive 34) Community.VisualBasic/CompilerServices/IOUtils.vb:18— IOUtils.FindFirstFile has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.InferTypeArgumentsFromArgument (cognitive 34) Community.VisualBasic/CompilerServices/OverloadResolution.vb:982— OverloadResolution.InferTypeArgumentsFromArgument has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6File.InternalWriteHelper (cognitive 34) Community.VisualBasic/CompilerServices/VB6File.vb:2203— VB6File.InternalWriteHelper has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Utils.MethodToString (cognitive 33) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:552— Utils.MethodToString has cognitive complexity 33 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.SplitHelper (cognitive 31) Community.VisualBasic/Strings.vb:846— Strings.SplitHelper has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.GetNumberFormatString (cognitive 31) Community.VisualBasic/Strings.vb:1724— Strings.GetNumberFormatString has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.MoreSpecificProcedure (cognitive 30) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2137— OverloadResolution.MoreSpecificProcedure has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ReflectionExtensions.IsGenericallyEquivalentTo (cognitive 30) Community.VisualBasic/CompilerServices/Utils.vb:267— ReflectionExtensions.IsGenericallyEquivalentTo has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
GetHandler.Callback (cognitive 30) Community.VisualBasic/CompilerServices/VB6File.vb:224— GetHandler.Callback has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6RandomFile.GetObject (cognitive 30) Community.VisualBasic/CompilerServices/VB6RandomFile.vb:185— VB6RandomFile.GetObject has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.CompareParameterSpecificity (cognitive 29) Community.VisualBasic/CompilerServices/OverloadResolution.vb:122— OverloadResolution.CompareParameterSpecificity has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileSystem.CopyOrMoveFile (cognitive 29) Community.VisualBasic/FileIO/FileSystem.vb:1091— FileSystem.CopyOrMoveFile has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.Format (cognitive 29) Community.VisualBasic/Strings.vb:1271— Strings.Format has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ErrObject.ParseHelpLink (cognitive 28) Community.VisualBasic/ErrObject.vb:173— ErrObject.ParseHelpLink has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.IsWideningConversion (cognitive 27) Community.VisualBasic/CompilerServices/ObjectType.vb:327— ObjectType.IsWideningConversion has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.ResolveOverloadedCall (cognitive 27) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2688— OverloadResolution.ResolveOverloadedCall has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Strings.GetCurrencyFormatString (cognitive 27) Community.VisualBasic/Strings.vb:1609— Strings.GetCurrencyFormatString has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Collection.Add (cognitive 26) Community.VisualBasic/Collection.vb:40— Collection.Add has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.MostSpecificProcedure (cognitive 26) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2299— OverloadResolution.MostSpecificProcedure has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Utils.VBFriendlyNameOfType (cognitive 26) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:364— Utils.VBFriendlyNameOfType has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6File.Print (cognitive 26) Community.VisualBasic/CompilerServices/VB6File.vb:2104— VB6File.Print has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6RandomFile.OpenFile (cognitive 26) Community.VisualBasic/CompilerServices/VB6RandomFile.vb:55— VB6RandomFile.OpenFile has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileSystem.VbIOOpenFile (cognitive 26) Community.VisualBasic/FileSystem.vb:1397— FileSystem.VbIOOpenFile has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.MatchArguments (cognitive 25) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1703— OverloadResolution.MatchArguments has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.GetWidestType (cognitive 24) Community.VisualBasic/CompilerServices/ObjectType.vb:375— ObjectType.GetWidestType has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Symbols.IsOrInheritsFrom (cognitive 24) Community.VisualBasic/CompilerServices/Symbols.vb:441— Symbols.IsOrInheritsFrom has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ErrObject.MapExceptionToNumber (cognitive 24) Community.VisualBasic/ErrObject.vb:368— ErrObject.MapExceptionToNumber has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileSystem.CopyOrMoveDirectoryNode (cognitive 24) Community.VisualBasic/FileIO/FileSystem.vb:1010— FileSystem.CopyOrMoveDirectoryNode has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
QuoteDelimitedFieldBuilder.BuildField (cognitive 24) Community.VisualBasic/FileIO/TextFieldParser.vb:1611— QuoteDelimitedFieldBuilder.BuildField has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileLogTraceListener.GetStream (cognitive 24) Community.VisualBasic/Logging/FileLogTraceListener.vb:714— FileLogTraceListener.GetStream has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.ReportOverloadResolutionFailure (cognitive 23) Community.VisualBasic/CompilerServices/OverloadResolution.vb:2504— OverloadResolution.ReportOverloadResolutionFailure has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ReflectionExtensions.IsEquivalentTo (cognitive 23) Community.VisualBasic/CompilerServices/Utils.vb:161— ReflectionExtensions.IsEquivalentTo has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
TextFieldParser.ValidateReadyToRead (cognitive 23) Community.VisualBasic/FileIO/TextFieldParser.vb:1206— TextFieldParser.ValidateReadyToRead has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileSystem.CheckFileOpen (cognitive 23) Community.VisualBasic/FileSystem.vb:1358— FileSystem.CheckFileOpen has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NewLateBinding.ObjectLateGet (cognitive 22) Community.VisualBasic/CompilerServices/NewLateBinding.vb:368— NewLateBinding.ObjectLateGet has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.ObjTst (cognitive 22) Community.VisualBasic/CompilerServices/ObjectType.vb:448— ObjectType.ObjTst has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.AddObj (cognitive 22) Community.VisualBasic/CompilerServices/ObjectType.vb:1495— ObjectType.AddObj has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileSystem.Kill (cognitive 22) Community.VisualBasic/FileSystem.vb:418— FileSystem.Kill has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ByteType.FromObject (cognitive 21) Community.VisualBasic/CompilerServices/ByteType.vb:37— ByteType.FromObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
DoubleType.FromObject (cognitive 21) Community.VisualBasic/CompilerServices/DoubleType.vb:46— DoubleType.FromObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
IntegerType.FromObject (cognitive 21) Community.VisualBasic/CompilerServices/IntegerType.vb:37— IntegerType.FromObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LongType.FromObject (cognitive 21) Community.VisualBasic/CompilerServices/LongType.vb:40— LongType.FromObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.CTypeHelper (cognitive 21) Community.VisualBasic/CompilerServices/ObjectType.vb:3516— ObjectType.CTypeHelper has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ShortType.FromObject (cognitive 21) Community.VisualBasic/CompilerServices/ShortType.vb:38— ShortType.FromObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
SingleType.FromObject (cognitive 21) Community.VisualBasic/CompilerServices/SingleType.vb:51— SingleType.FromObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileSystem.ShellCopyOrMove (cognitive 21) Community.VisualBasic/FileIO/FileSystem.vb:1613— FileSystem.ShellCopyOrMove has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Interaction.GetObject (cognitive 21) Community.VisualBasic/Interaction.vb:555— Interaction.GetObject has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversions.ChangeType (cognitive 20) Community.VisualBasic/CompilerServices/Conversions.vb:2495— Conversions.ChangeType has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6InputFile.ParseInputString (cognitive 20) Community.VisualBasic/CompilerServices/VB6InputFile.vb:78— VB6InputFile.ParseInputString has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VBBinder.MethodsDifferOnlyByReturnType (cognitive 20) Community.VisualBasic/CompilerServices/VBBinder.vb:1513— VBBinder.MethodsDifferOnlyByReturnType has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
Conversion.Str (cognitive 20) Community.VisualBasic/Conversion.vb:459— Conversion.Str has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Interaction.Partition (cognitive 20) Community.VisualBasic/Interaction.vb:182— Interaction.Partition has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Operators.ConcatenateObject (cognitive 19) Community.VisualBasic/CompilerServices/Operators.vb:5090— Operators.ConcatenateObject has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.CanPassToParameter (cognitive 19) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1229— OverloadResolution.CanPassToParameter has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Container.FilterInvalidMembers (cognitive 19) Community.VisualBasic/CompilerServices/Symbols.vb:846— Container.FilterInvalidMembers has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6File.PutFixedLengthString (cognitive 19) Community.VisualBasic/CompilerServices/VB6File.vb:987— VB6File.PutFixedLengthString has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6RandomFile.Get (cognitive 19) Community.VisualBasic/CompilerServices/VB6RandomFile.vb:288— VB6RandomFile.Get has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LateBinding.MemberIsField (cognitive 18) Community.VisualBasic/CompilerServices/LateBinding.vb:1126— LateBinding.MemberIsField has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LateBinding.GetNonGenericMembers (cognitive 18) Community.VisualBasic/CompilerServices/LateBinding.vb:1247— LateBinding.GetNonGenericMembers has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ObjectType.IDivideString (cognitive 18) Community.VisualBasic/CompilerServices/ObjectType.vb:3270— ObjectType.IDivideString has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Operators.CompareObject2 (cognitive 18) Community.VisualBasic/CompilerServices/Operators.vb:351— Operators.CompareObject2 has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Operators.AddObject (cognitive 18) Community.VisualBasic/CompilerServices/Operators.vb:2398— Operators.AddObject has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Container.GetMembers (cognitive 18) Community.VisualBasic/CompilerServices/Symbols.vb:1035— Container.GetMembers has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Utils.StdFormat (cognitive 18) Community.VisualBasic/CompilerServices/Utils.LateBinder.vb:133— Utils.StdFormat has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VB6File.SkipTrailingWhiteSpace (cognitive 18) Community.VisualBasic/CompilerServices/VB6File.vb:2564— VB6File.SkipTrailingWhiteSpace has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversion.Hex (cognitive 18) Community.VisualBasic/Conversion.vb:280— Conversion.Hex has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: one other method here (Conversion.Oct) 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.
Conversion.Oct (cognitive 18) Community.VisualBasic/Conversion.vb:384— Conversion.Oct has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: one other method here (Conversion.Hex) 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.
ConversionResolution.ClassifyPredefinedConversion (cognitive 17) Community.VisualBasic/CompilerServices/ConversionResolution.vb:468— ConversionResolution.ClassifyPredefinedConversion has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.CompareGenericityBasedOnMethodGenericParams (cognitive 17) Community.VisualBasic/CompilerServices/OverloadResolution.vb:220— OverloadResolution.CompareGenericityBasedOnMethodGenericParams has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Method.RawParametersFromType.Get (cognitive 17) Community.VisualBasic/CompilerServices/Symbols.vb:1347— Method.RawParametersFromType.Get has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
DateAndTime.DateSerial (cognitive 17) Community.VisualBasic/DateAndTime.vb:387— DateAndTime.DateSerial has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Information.TypeName (cognitive 17) Community.VisualBasic/Information.vb:425— Information.TypeName has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Conversions.GetNormalizedNumberFormat (cognitive 16) Community.VisualBasic/CompilerServices/Conversions.vb:1525— Conversions.GetNormalizedNumberFormat has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
DecimalType.GetNormalizedNumberFormat (cognitive 16) Community.VisualBasic/CompilerServices/DecimalType.vb:150— DecimalType.GetNormalizedNumberFormat has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LateBinding.GetDefaultMembers (cognitive 16) Community.VisualBasic/CompilerServices/LateBinding.vb:660— LateBinding.GetDefaultMembers has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.IsExactSignatureMatch (cognitive 16) Community.VisualBasic/CompilerServices/OverloadResolution.vb:38— OverloadResolution.IsExactSignatureMatch has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
OverloadResolution.ReorderArgumentArray (cognitive 16) Community.VisualBasic/CompilerServices/OverloadResolution.vb:1977— OverloadResolution.ReorderArgumentArray has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
VBBinder.InvokeMember (cognitive 16) Community.VisualBasic/CompilerServices/VBBinder.vb:1931— VBBinder.InvokeMember has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: Community.VisualBasic/CompilerServices/VBBinder.vb holds 8 of the 134 methods over the threshold — including the worst — and 961 of the 3679 points over it (26%), 2.1× the next-largest file (Community.VisualBasic/CompilerServices/Conversions.vb at 468). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
FileSystem.Dir (cognitive 16) Community.VisualBasic/FileSystem.vb:173— FileSystem.Dir has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D4 · Code Duplication· Near-duplicate member family (9 members, 83 shared lines) · ×1
Near-duplicate member family (9 members, 83 shared lines) Community.VisualBasic/CompilerServices/Operators.vb:353— Community.VisualBasic/CompilerServices/Operators.vb:353-746 | Community.VisualBasic/CompilerServices/Operators.vb:1258-1568 | Community.VisualBasic/CompilerServices/Operators.vb:1637-1939 | Community.VisualBasic/CompilerServices/Operators.vb:2008-2331 | Community.VisualBasic/CompilerServices/Operators.vb:2400-2791 | Community.VisualBasic/CompilerServices/Operators.vb:2916-3257 | Community.VisualBasic/CompilerServices/Operators.vb:3380-3692 | Community.VisualBasic/CompilerServices/Operators.vb:4221-4566 | Community.VisualBasic/CompilerServices/Operators.vb:4633-4950 — These 9 members are variants of one another: a block of 83 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 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 80 shared lines) · ×1
Near-duplicate member family (6 members, 80 shared lines) Community.VisualBasic/CompilerServices/Operators.vb:353— Community.VisualBasic/CompilerServices/Operators.vb:353-746 | Community.VisualBasic/CompilerServices/Operators.vb:2400-2791 | Community.VisualBasic/CompilerServices/Operators.vb:2916-3257 | Community.VisualBasic/CompilerServices/Operators.vb:3380-3692 | Community.VisualBasic/CompilerServices/Operators.vb:3834-4100 | Community.VisualBasic/CompilerServices/Operators.vb:4221-4566 — These 6 members are variants of one another: a block of 80 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 55 shared lines) · ×1
Near-duplicate member family (5 members, 55 shared lines) Community.VisualBasic/CompilerServices/ObjectType.vb:449— Community.VisualBasic/CompilerServices/ObjectType.vb:449-720 | Community.VisualBasic/CompilerServices/ObjectType.vb:1496-1715 | Community.VisualBasic/CompilerServices/ObjectType.vb:1826-2014 | Community.VisualBasic/CompilerServices/ObjectType.vb:2123-2316 | Community.VisualBasic/CompilerServices/ObjectType.vb:2722-2961 — These 5 members are variants of one another: a block of 55 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 47 shared lines) · ×1
Near-duplicate member family (5 members, 47 shared lines) Community.VisualBasic/CompilerServices/ObjectType.vb:1496— Community.VisualBasic/CompilerServices/ObjectType.vb:1496-1715 | Community.VisualBasic/CompilerServices/ObjectType.vb:1826-2014 | Community.VisualBasic/CompilerServices/ObjectType.vb:2428-2610 | Community.VisualBasic/CompilerServices/ObjectType.vb:2722-2961 | Community.VisualBasic/CompilerServices/ObjectType.vb:3067-3266 — These 5 members are variants of one another: a block of 47 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Near-duplicate member pair (133 shared lines) Community.VisualBasic/CompilerServices/StringType.vb:208— Community.VisualBasic/CompilerServices/StringType.vb:208-380 | Community.VisualBasic/CompilerServices/StringType.vb:385-591 — These two members are variants of one another: 133 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Edited copy of a member (32 corresponding lines) · ×1
Edited copy of a member (32 corresponding lines) Community.VisualBasic/CompilerServices/ObjectType.vb:3582— Community.VisualBasic/CompilerServices/ObjectType.vb:3582-3613 | Community.VisualBasic/CompilerServices/Operators.vb:90-121 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×1
Edited copy of a member (35 corresponding lines) Community.VisualBasic/CompilerServices/OverloadResolution.vb:233— Community.VisualBasic/CompilerServices/OverloadResolution.vb:233-288 | Community.VisualBasic/CompilerServices/OverloadResolution.vb:305-363 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (5 members, 50+ identical tokens) Community.VisualBasic/CompilerServices/IDOBinder.vb:269— Community.VisualBasic/CompilerServices/IDOBinder.vb:269-299 | Community.VisualBasic/CompilerServices/IDOBinder.vb:334-370 | Community.VisualBasic/CompilerServices/IDOBinder.vb:410-450 | Community.VisualBasic/CompilerServices/IDOBinder.vb:483-518 | Community.VisualBasic/CompilerServices/IDOBinder.vb:551-586 — These 5 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 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (4 members, 50+ identical tokens) Community.VisualBasic/CompilerServices/Conversions.vb:1489— Community.VisualBasic/CompilerServices/Conversions.vb:1489-1521 | Community.VisualBasic/CompilerServices/Conversions.vb:1933-1963 | Community.VisualBasic/CompilerServices/DecimalType.vb:111-143 | Community.VisualBasic/CompilerServices/DoubleType.vb:189-224 — 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 (90–91 lines × 2) Community.VisualBasic/CompilerServices/StringType.vb:248— Community.VisualBasic/CompilerServices/StringType.vb:248-338 | Community.VisualBasic/CompilerServices/StringType.vb:431-520 — 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 (49–52 lines × 3) Community.VisualBasic/CompilerServices/ObjectType.vb:1235— Community.VisualBasic/CompilerServices/ObjectType.vb:1235-1283 | Community.VisualBasic/CompilerServices/ObjectType.vb:1332-1380 | Community.VisualBasic/CompilerServices/ObjectType.vb:1429-1480 — 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 (51–52 lines × 2) Community.VisualBasic/CompilerServices/Conversions.vb:1530— Community.VisualBasic/CompilerServices/Conversions.vb:1530-1580 | Community.VisualBasic/CompilerServices/DecimalType.vb:152-203 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Community.VisualBasic/CompilerServices/DecimalType.vb:150` calls `GetNormalizedNumberFormat` and `Community.VisualBasic/CompilerServices/Conversions.vb:1528` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (43 lines × 5) Community.VisualBasic/CompilerServices/Operators.vb:499— Community.VisualBasic/CompilerServices/Operators.vb:499-541 | Community.VisualBasic/CompilerServices/Operators.vb:2545-2587 | Community.VisualBasic/CompilerServices/Operators.vb:3033-3075 | Community.VisualBasic/CompilerServices/Operators.vb:3499-3541 | Community.VisualBasic/CompilerServices/Operators.vb:4339-4381 — 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 (35–40 lines × 2) Community.VisualBasic/CompilerServices/OverloadResolution.vb:237— Community.VisualBasic/CompilerServices/OverloadResolution.vb:237-271 | Community.VisualBasic/CompilerServices/OverloadResolution.vb:305-344 — 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 (38 lines × 2) Community.VisualBasic/CompilerServices/VBBinder.vb:625— Community.VisualBasic/CompilerServices/VBBinder.vb:625-662 | Community.VisualBasic/CompilerServices/VBBinder.vb:835-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 (37 lines × 2) Community.VisualBasic/CompilerServices/VBBinder.vb:1331— Community.VisualBasic/CompilerServices/VBBinder.vb:1331-1367 | Community.VisualBasic/CompilerServices/VBBinder.vb:1371-1407 — 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 (34–37 lines × 2) Community.VisualBasic/CompilerServices/Operators.vb:2685— Community.VisualBasic/CompilerServices/Operators.vb:2685-2721 | Community.VisualBasic/CompilerServices/Operators.vb:3174-3207 — 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 (33–35 lines × 6) Community.VisualBasic/CompilerServices/Operators.vb:535— Community.VisualBasic/CompilerServices/Operators.vb:535-569 | Community.VisualBasic/CompilerServices/Operators.vb:2581-2615 | Community.VisualBasic/CompilerServices/Operators.vb:3069-3103 | Community.VisualBasic/CompilerServices/Operators.vb:3535-3569 | Community.VisualBasic/CompilerServices/Operators.vb:4008-4040 | Community.VisualBasic/CompilerServices/Operators.vb:4375-4409 — 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 (35 lines × 2) Community.VisualBasic/CompilerServices/IDOBinder.vb:484— Community.VisualBasic/CompilerServices/IDOBinder.vb:484-518 | Community.VisualBasic/CompilerServices/IDOBinder.vb:552-586 — 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 × 2) Community.VisualBasic/CompilerServices/Operators.vb:4148— Community.VisualBasic/CompilerServices/Operators.vb:4148-4177 | Community.VisualBasic/CompilerServices/Operators.vb:4180-4209 — 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–30 lines × 4) Community.VisualBasic/CompilerServices/Conversions.vb:1489— Community.VisualBasic/CompilerServices/Conversions.vb:1489-1515 | Community.VisualBasic/CompilerServices/Conversions.vb:1933-1957 | Community.VisualBasic/CompilerServices/DecimalType.vb:111-137 | Community.VisualBasic/CompilerServices/DoubleType.vb:189-218 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Community.VisualBasic/CompilerServices/DecimalType.vb:107` calls `InvalidCastException`, `Format`, `VBFriendlyName` and `Community.VisualBasic/CompilerServices/DoubleType.vb:184` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (23 lines × 2) Community.VisualBasic/CompilerServices/ObjectType.vb:3589— Community.VisualBasic/CompilerServices/ObjectType.vb:3589-3611 | Community.VisualBasic/CompilerServices/Operators.vb:97-119 — 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 (22–28 lines × 2) Community.VisualBasic/CompilerServices/CharArrayType.vb:28— Community.VisualBasic/CompilerServices/CharArrayType.vb:28-49 | Community.VisualBasic/CompilerServices/Conversions.vb:2121-2148 — 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 (27 lines × 2) Community.VisualBasic/CompilerServices/IDOBinder.vb:910— Community.VisualBasic/CompilerServices/IDOBinder.vb:910-936 | Community.VisualBasic/CompilerServices/IDOBinder.vb:982-1008 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Community.VisualBasic/CompilerServices/IDOBinder.vb:910` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24–27 lines × 6) Community.VisualBasic/CompilerServices/ObjectType.vb:1496— Community.VisualBasic/CompilerServices/ObjectType.vb:1496-1521 | Community.VisualBasic/CompilerServices/ObjectType.vb:1826-1851 | Community.VisualBasic/CompilerServices/ObjectType.vb:2123-2148 | Community.VisualBasic/CompilerServices/ObjectType.vb:2428-2453 | Community.VisualBasic/CompilerServices/ObjectType.vb:3067-3093 | Community.VisualBasic/CompilerServices/Operators.vb:5091-5114 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (24–25 lines × 2) Community.VisualBasic/CompilerServices/Conversions.vb:1883— Community.VisualBasic/CompilerServices/Conversions.vb:1883-1906 | Community.VisualBasic/CompilerServices/DoubleType.vb:138-162 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (24 lines × 2) Community.VisualBasic/CompilerServices/Conversions.vb:1982— Community.VisualBasic/CompilerServices/Conversions.vb:1982-2005 | Community.VisualBasic/CompilerServices/Conversions.vb:2055-2078 — 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 × 2) Community.VisualBasic/CompilerServices/StringType.vb:356— Community.VisualBasic/CompilerServices/StringType.vb:356-380 | Community.VisualBasic/CompilerServices/StringType.vb:567-591 — 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 (23 lines × 3) Community.VisualBasic/CompilerServices/ObjectType.vb:1206— Community.VisualBasic/CompilerServices/ObjectType.vb:1206-1228 | Community.VisualBasic/CompilerServices/ObjectType.vb:1303-1325 | Community.VisualBasic/CompilerServices/ObjectType.vb:1400-1422 — 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 (21 lines × 2) Community.VisualBasic/CompilerServices/BooleanType.vb:50— Community.VisualBasic/CompilerServices/BooleanType.vb:50-70 | Community.VisualBasic/CompilerServices/Conversions.vb:54-74 — before extracting anything, compare `Community.VisualBasic/CompilerServices/BooleanType.vb` and `Community.VisualBasic/CompilerServices/Conversions.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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–22 lines × 3) Community.VisualBasic/CompilerServices/NewLateBinding.vb:1252— Community.VisualBasic/CompilerServices/NewLateBinding.vb:1252-1273 | Community.VisualBasic/CompilerServices/NewLateBinding.vb:1329-1349 | Community.VisualBasic/CompilerServices/Operators.Resolution.vb:199-217 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `Community.VisualBasic/CompilerServices/NewLateBinding.vb:1329` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20–21 lines × 2) Community.VisualBasic/CompilerServices/ObjectType.vb:477— Community.VisualBasic/CompilerServices/ObjectType.vb:477-496 | Community.VisualBasic/CompilerServices/ObjectType.vb:1524-1544 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (18–20 lines × 2) Community.VisualBasic/CompilerServices/BooleanType.vb:69— Community.VisualBasic/CompilerServices/BooleanType.vb:69-88 | Community.VisualBasic/CompilerServices/Conversions.vb:80-97 — before extracting anything, compare `Community.VisualBasic/CompilerServices/BooleanType.vb` and `Community.VisualBasic/CompilerServices/Conversions.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 × 6) Community.VisualBasic/CompilerServices/ObjectType.vb:826— Community.VisualBasic/CompilerServices/ObjectType.vb:826-842 | Community.VisualBasic/CompilerServices/ObjectType.vb:1720-1736 | Community.VisualBasic/CompilerServices/ObjectType.vb:2019-2035 | Community.VisualBasic/CompilerServices/ObjectType.vb:2321-2337 | Community.VisualBasic/CompilerServices/ObjectType.vb:2615-2631 | Community.VisualBasic/CompilerServices/ObjectType.vb:2966-2982 — 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 (18–19 lines × 2) Community.VisualBasic/CompilerServices/ConversionResolution.vb:581— Community.VisualBasic/CompilerServices/ConversionResolution.vb:581-598 | Community.VisualBasic/CompilerServices/ConversionResolution.vb:607-625 — 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) Community.VisualBasic/CompilerServices/ObjectType.vb:1901— Community.VisualBasic/CompilerServices/ObjectType.vb:1901-1916 | Community.VisualBasic/CompilerServices/ObjectType.vb:2204-2219 — 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 × 3) Community.VisualBasic/CompilerServices/VBBinder.vb:2111— Community.VisualBasic/CompilerServices/VBBinder.vb:2111-2129 | Community.VisualBasic/CompilerServices/VBBinder.vb:2156-2174 | Community.VisualBasic/CompilerServices/VBBinder.vb:2194-2211 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Community.VisualBasic/CompilerServices/VBBinder.vb:2111` calls `AndAlso`, `GetBaseDefinition` and `Community.VisualBasic/CompilerServices/VBBinder.vb:2156` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15–17 lines × 6) Community.VisualBasic/CompilerServices/ObjectType.vb:624— Community.VisualBasic/CompilerServices/ObjectType.vb:624-638 | Community.VisualBasic/CompilerServices/ObjectType.vb:1622-1636 | Community.VisualBasic/CompilerServices/ObjectType.vb:1921-1935 | Community.VisualBasic/CompilerServices/ObjectType.vb:2572-2587 | Community.VisualBasic/CompilerServices/ObjectType.vb:2855-2871 | Community.VisualBasic/CompilerServices/ObjectType.vb:3217-3232 — 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14–16 lines × 5) Community.VisualBasic/CompilerServices/ObjectType.vb:645— Community.VisualBasic/CompilerServices/ObjectType.vb:645-658 | Community.VisualBasic/CompilerServices/ObjectType.vb:1643-1656 | Community.VisualBasic/CompilerServices/ObjectType.vb:1942-1955 | Community.VisualBasic/CompilerServices/ObjectType.vb:2244-2257 | Community.VisualBasic/CompilerServices/ObjectType.vb:2878-2893 — 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 (11 lines × 9) Community.VisualBasic/CompilerServices/Operators.vb:483— Community.VisualBasic/CompilerServices/Operators.vb:483-493 | Community.VisualBasic/CompilerServices/Operators.vb:1353-1363 | Community.VisualBasic/CompilerServices/Operators.vb:1723-1733 | Community.VisualBasic/CompilerServices/Operators.vb:2099-2109 | Community.VisualBasic/CompilerServices/Operators.vb:2529-2539 | Community.VisualBasic/CompilerServices/Operators.vb:3017-3027 | Community.VisualBasic/CompilerServices/Operators.vb:3483-3493 | Community.VisualBasic/CompilerServices/Operators.vb:4323-4333 | Community.VisualBasic/CompilerServices/Operators.vb:4726-4736 — 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 (10–12 lines × 4) Community.VisualBasic/CompilerServices/ObjectType.vb:1662— Community.VisualBasic/CompilerServices/ObjectType.vb:1662-1671 | Community.VisualBasic/CompilerServices/ObjectType.vb:1961-1970 | Community.VisualBasic/CompilerServices/ObjectType.vb:2263-2272 | Community.VisualBasic/CompilerServices/ObjectType.vb:2899-2910 — 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 (4–12 lines × 3) Community.VisualBasic/CompilerServices/StructUtils.vb:244— Community.VisualBasic/CompilerServices/StructUtils.vb:244-247 | Community.VisualBasic/CompilerServices/VB6File.vb:198-209 | Community.VisualBasic/CompilerServices/VB6File.vb:300-311 — 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 10) Community.VisualBasic/CompilerServices/Operators.vb:558— Community.VisualBasic/CompilerServices/Operators.vb:558-566 | Community.VisualBasic/CompilerServices/Operators.vb:1429-1437 | Community.VisualBasic/CompilerServices/Operators.vb:1799-1807 | Community.VisualBasic/CompilerServices/Operators.vb:2175-2183 | Community.VisualBasic/CompilerServices/Operators.vb:2604-2612 | Community.VisualBasic/CompilerServices/Operators.vb:3092-3100 | Community.VisualBasic/CompilerServices/Operators.vb:3558-3566 | Community.VisualBasic/CompilerServices/Operators.vb:4030-4038 | Community.VisualBasic/CompilerServices/Operators.vb:4398-4406 | Community.VisualBasic/CompilerServices/Operators.vb:4804-4812 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Community.VisualBasic/CompilerServices/Operators.vb:569` calls `CompareSingle`, `ToSingle` and `Community.VisualBasic/CompilerServices/Operators.vb:1438` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10–11 lines × 4) Community.VisualBasic/CompilerServices/Operators.vb:1510— Community.VisualBasic/CompilerServices/Operators.vb:1510-1519 | Community.VisualBasic/CompilerServices/Operators.vb:1880-1890 | Community.VisualBasic/CompilerServices/Operators.vb:2269-2278 | Community.VisualBasic/CompilerServices/Operators.vb:4895-4904 — 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–11 lines × 2) Community.VisualBasic/CompilerServices/Operators.vb:1695— Community.VisualBasic/CompilerServices/Operators.vb:1695-1704 | Community.VisualBasic/CompilerServices/Operators.vb:3890-3900 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 10) Community.VisualBasic/CompilerServices/Operators.vb:537— Community.VisualBasic/CompilerServices/Operators.vb:537-544 | Community.VisualBasic/CompilerServices/Operators.vb:1418-1425 | Community.VisualBasic/CompilerServices/Operators.vb:1788-1795 | Community.VisualBasic/CompilerServices/Operators.vb:2164-2171 | Community.VisualBasic/CompilerServices/Operators.vb:2583-2590 | Community.VisualBasic/CompilerServices/Operators.vb:3071-3078 | Community.VisualBasic/CompilerServices/Operators.vb:3537-3544 | Community.VisualBasic/CompilerServices/Operators.vb:4010-4017 | Community.VisualBasic/CompilerServices/Operators.vb:4377-4384 | Community.VisualBasic/CompilerServices/Operators.vb:4793-4800 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Community.VisualBasic/CompilerServices/Operators.vb:547` calls `CompareDecimal` and `Community.VisualBasic/CompilerServices/Operators.vb:1426` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 5) Community.VisualBasic/CompilerServices/IDOBinder.vb:269— Community.VisualBasic/CompilerServices/IDOBinder.vb:269-278 | Community.VisualBasic/CompilerServices/IDOBinder.vb:334-343 | Community.VisualBasic/CompilerServices/IDOBinder.vb:410-424 | Community.VisualBasic/CompilerServices/IDOBinder.vb:483-492 | Community.VisualBasic/CompilerServices/IDOBinder.vb:551-560 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6 lines × 4) Community.VisualBasic/CompilerServices/Operators.vb:1326— Community.VisualBasic/CompilerServices/Operators.vb:1326-1331 | Community.VisualBasic/CompilerServices/Operators.vb:1685-1690 | Community.VisualBasic/CompilerServices/Operators.vb:2069-2074 | Community.VisualBasic/CompilerServices/Operators.vb:4694-4699 — 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 (7 lines × 7) Community.VisualBasic/CompilerServices/ObjectType.vb:630— Community.VisualBasic/CompilerServices/ObjectType.vb:630-636 | Community.VisualBasic/CompilerServices/ObjectType.vb:1628-1634 | Community.VisualBasic/CompilerServices/ObjectType.vb:1927-1933 | Community.VisualBasic/CompilerServices/ObjectType.vb:2230-2236 | Community.VisualBasic/CompilerServices/ObjectType.vb:2579-2585 | Community.VisualBasic/CompilerServices/ObjectType.vb:2863-2869 | Community.VisualBasic/CompilerServices/ObjectType.vb:3224-3230 — 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 (6 lines × 10) Community.VisualBasic/CompilerServices/Operators.vb:511— Community.VisualBasic/CompilerServices/Operators.vb:511-516 | Community.VisualBasic/CompilerServices/Operators.vb:1401-1406 | Community.VisualBasic/CompilerServices/Operators.vb:1771-1776 | Community.VisualBasic/CompilerServices/Operators.vb:2147-2152 | Community.VisualBasic/CompilerServices/Operators.vb:2557-2562 | Community.VisualBasic/CompilerServices/Operators.vb:3045-3050 | Community.VisualBasic/CompilerServices/Operators.vb:3511-3516 | Community.VisualBasic/CompilerServices/Operators.vb:3969-3974 | Community.VisualBasic/CompilerServices/Operators.vb:4351-4356 | Community.VisualBasic/CompilerServices/Operators.vb:4775-4780 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Community.VisualBasic/CompilerServices/Operators.vb:519` calls `CompareInt64`, `ToInt64` and `Community.VisualBasic/CompilerServices/Operators.vb:1407` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 9) Community.VisualBasic/CompilerServices/Operators.vb:632— Community.VisualBasic/CompilerServices/Operators.vb:632-636 | Community.VisualBasic/CompilerServices/Operators.vb:1487-1491 | Community.VisualBasic/CompilerServices/Operators.vb:1857-1861 | Community.VisualBasic/CompilerServices/Operators.vb:2236-2240 | Community.VisualBasic/CompilerServices/Operators.vb:2677-2681 | Community.VisualBasic/CompilerServices/Operators.vb:3166-3170 | Community.VisualBasic/CompilerServices/Operators.vb:3629-3633 | Community.VisualBasic/CompilerServices/Operators.vb:4472-4476 | Community.VisualBasic/CompilerServices/Operators.vb:4867-4871 — 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 (5 lines × 8) Community.VisualBasic/CompilerServices/Operators.vb:1344— Community.VisualBasic/CompilerServices/Operators.vb:1344-1348 | Community.VisualBasic/CompilerServices/Operators.vb:1714-1718 | Community.VisualBasic/CompilerServices/Operators.vb:2090-2094 | Community.VisualBasic/CompilerServices/Operators.vb:2519-2523 | Community.VisualBasic/CompilerServices/Operators.vb:3007-3011 | Community.VisualBasic/CompilerServices/Operators.vb:3473-3477 | Community.VisualBasic/CompilerServices/Operators.vb:4313-4317 | Community.VisualBasic/CompilerServices/Operators.vb:4716-4720 — 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 (8 lines × 6) Community.VisualBasic/CompilerServices/ObjectType.vb:1779— Community.VisualBasic/CompilerServices/ObjectType.vb:1779-1786 | Community.VisualBasic/CompilerServices/ObjectType.vb:2097-2104 | Community.VisualBasic/CompilerServices/ObjectType.vb:2401-2408 | Community.VisualBasic/CompilerServices/Operators.vb:2892-2900 | Community.VisualBasic/CompilerServices/Operators.vb:3359-3367 | Community.VisualBasic/CompilerServices/Operators.vb:3813-3821 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (8 lines × 5) Community.VisualBasic/CompilerServices/ObjectType.vb:664— Community.VisualBasic/CompilerServices/ObjectType.vb:664-671 | Community.VisualBasic/CompilerServices/ObjectType.vb:1662-1669 | Community.VisualBasic/CompilerServices/ObjectType.vb:1961-1968 | Community.VisualBasic/CompilerServices/ObjectType.vb:2263-2270 | Community.VisualBasic/CompilerServices/ObjectType.vb:2899-2908 — 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 (8 lines × 4) Community.VisualBasic/CompilerServices/ObjectType.vb:1677— Community.VisualBasic/CompilerServices/ObjectType.vb:1677-1684 | Community.VisualBasic/CompilerServices/ObjectType.vb:1976-1983 | Community.VisualBasic/CompilerServices/ObjectType.vb:2278-2285 | Community.VisualBasic/CompilerServices/ObjectType.vb:2916-2925 — 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 (6 lines × 7) Community.VisualBasic/CompilerServices/ObjectType.vb:582— Community.VisualBasic/CompilerServices/ObjectType.vb:582-587 | Community.VisualBasic/CompilerServices/ObjectType.vb:1552-1557 | Community.VisualBasic/CompilerServices/ObjectType.vb:1901-1906 | Community.VisualBasic/CompilerServices/ObjectType.vb:2204-2209 | Community.VisualBasic/CompilerServices/ObjectType.vb:2470-2475 | Community.VisualBasic/CompilerServices/ObjectType.vb:2758-2763 | Community.VisualBasic/CompilerServices/ObjectType.vb:3119-3124 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Community.VisualBasic/CompilerServices/ObjectType.vb:589` calls `ObjTstString` and `Community.VisualBasic/CompilerServices/ObjectType.vb:1907` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 7) Community.VisualBasic/CompilerServices/ObjectType.vb:592— Community.VisualBasic/CompilerServices/ObjectType.vb:592-596 | Community.VisualBasic/CompilerServices/ObjectType.vb:1562-1566 | Community.VisualBasic/CompilerServices/ObjectType.vb:1909-1913 | Community.VisualBasic/CompilerServices/ObjectType.vb:2212-2216 | Community.VisualBasic/CompilerServices/ObjectType.vb:2480-2484 | Community.VisualBasic/CompilerServices/ObjectType.vb:2768-2772 | Community.VisualBasic/CompilerServices/ObjectType.vb:3105-3109 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Community.VisualBasic/CompilerServices/ObjectType.vb:589` calls `ObjTstString` and `Community.VisualBasic/CompilerServices/ObjectType.vb:1908` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 6) Community.VisualBasic/CompilerServices/ObjectType.vb:1665— Community.VisualBasic/CompilerServices/ObjectType.vb:1665-1669 | Community.VisualBasic/CompilerServices/ObjectType.vb:1964-1968 | Community.VisualBasic/CompilerServices/ObjectType.vb:2266-2270 | Community.VisualBasic/CompilerServices/ObjectType.vb:2593-2597 | Community.VisualBasic/CompilerServices/ObjectType.vb:2904-2908 | Community.VisualBasic/CompilerServices/ObjectType.vb:3245-3249 — 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 (69 lines × 2) ProjectTypeTests/net5-console/My.vb:31— ProjectTypeTests/net5-console/My.vb:31-99 | ProjectTypeTests/netstandard2_0/My.vb:81-149 — `ProjectTypeTests/net5-console/My.vb` and `ProjectTypeTests/netstandard2_0/My.vb` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 69 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
No CI pipeline — No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
SC1 · Supply-chain hygiene· NuGet dependencies are not locked · ×1
NuGet dependencies are not locked — No packages.lock.json and no central package management — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
redundant comment Community.VisualBasic.Tests/OperatorsTests.vb:1170— "DBNull.Value." repeats the code it sits on: 3 of its 3 words (db, null, value) are already in `Yield New Object() {DBNull.Value, CByte(2), "2"}`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Collection.vb:47— 7 comments in this file only repeat the code they sit on (lines 47, 60, 281, 297, 461, 538, 729), for example "Create a new node". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Conversions.vb:2564— "FallbackUserDefinedConversion" only labels `End Function`, the end of the Function FallbackUserDefinedConversion. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Conversions.vb:2662— "UserDefinedConversion" only labels `End Function`, the end of the Function ObjectUserDefinedConversion. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Conversions.vb:2682— "CanUserDefinedConvert" only labels `End Function`, the end of the Function CanUserDefinedConvert. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/IDOBinder.vb:1089— "Convert from VB's UserDefinedOperator to Linq operator type" repeats the code it sits on: 6 of its 7 words (vb, user, defined, operator, linq, type) are already in `Friend Shared Function LinqOperator(vbOperator As UserDefinedOperator) As ExpressionType?`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/IDOBinder.vb:1310— "Call Site Delegate" repeats the code it sits on: 3 of its 3 words (call, site, delegate) are already in `Dim CallSiteDelegate As Type = Expression.GetDelegateType(CallSiteSignature)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/NewLateBinding.vb:537— "Determines if the member is a zero argument method or property" repeats the code it sits on: 5 of its 6 words (member, zero, argument, method, property) are already in `Friend Shared Function IsZeroArgumentCall(member As MemberInfo) As Boolean`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/ObjectType.vb:52— "' t_bad , t_bool, t_ui1 , t_i2 , t_i4 , t_i8 , t_dec , t_r4 , t_r8 , t_char, t_str , t_date" repeats the code it sits on: 7 of its 7 words (bad, bool, ui, dec, char, str, date) are already in `Private Shared ReadOnly WiderType(,) As VType = {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/OverloadResolution.vb:1359— "A Missing argument loads the parameter's optional value." repeats the code it sits on: 5 of its 6 words (missing, argument, parameter, optional, value) are already in `If argument Is System.Reflection.Missing.Value AndAlso parameter.IsOptional Then`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/OverloadResolution.vb:2197— "Compare ParameterSpecificity" repeats the code it sits on: 3 of its 3 words (compare, parameter, specificity) are already in `CompareParameterSpecificity(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/OverloadResolution.vb:2268— "Compare ParameterSpecificity" repeats the code it sits on: 3 of its 3 words (compare, parameter, specificity) are already in `CompareParameterSpecificity(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Symbols.vb:519— "Returns the interface constraints for the type parameter." repeats the code it sits on: 4 of its 5 words (interface, constraints, type, parameter) are already in `Debug.Assert(IsGenericParameter(genericParameter), "expected type parameter")`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Utils.vb:139— "BindingFlags.InvokeMethod" repeats the code it sits on: 4 of its 4 words (binding, flags, invoke, method) are already in `Return CType(256, BindingFlags) ' BindingFlags.InvokeMethod`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Utils.vb:145— "BindingFlags.GetProperty" repeats the code it sits on: 4 of its 4 words (binding, flags, get, property) are already in `Return CType(4096, BindingFlags) ' BindingFlags.GetProperty`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Utils.vb:151— "BindingFlags.SetProperty" repeats the code it sits on: 4 of its 4 words (binding, flags, set, property) are already in `Return CType(8192, BindingFlags) ' BindingFlags.SetProperty`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/CompilerServices/Utils.vb:157— "BindingFlags.IgnoreReturn" repeats the code it sits on: 4 of its 4 words (binding, flags, ignore, return) are already in `Return CType(16777216, BindingFlags) ' BindingFlags.IgnoreReturn`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Constants.vb:22— 6 comments in this file only repeat the code they sit on (lines 22, 47, 66, 72, 84, 107), for example "AppWinStyle". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Devices/Computer/Network.vb:263— "Get network credentials" repeats the code it sits on: 3 of its 3 words (get, network, credentials) are already in `Dim networkCredentials As ICredentials = GetNetworkCredentials(userName, password)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Devices/Computer/Network.vb:310— "Get network credentials" repeats the code it sits on: 3 of its 3 words (get, network, credentials) are already in `Dim networkCredentials As ICredentials = GetNetworkCredentials(userName, password)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Devices/Computer/Network.vb:557— "Get network credentials" repeats the code it sits on: 3 of its 3 words (get, network, credentials) are already in `Dim networkCredentials As ICredentials = GetNetworkCredentials(userName, password)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Devices/Computer/Network.vb:732— "Default timeout for Ping" repeats the code it sits on: 3 of its 3 words (default, timeout, ping) are already in `Private Const DEFAULT_PING_TIMEOUT As Integer = 1000`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/FileIO/FileSystem.vb:123— 10 comments in this file only repeat the code they sit on (lines 123, 662, 704, 903, 917, 1108, 1200, 1240, 1655, 1783), for example "Find the files with matching name.". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/FileIO/TextFieldParser.vb:1222— "Check Comment Tokens" repeats the code it sits on: 3 of its 3 words (check, comment, tokens) are already in `If m_CommentTokens IsNot Nothing Then`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Community.VisualBasic/Logging/FileLogTraceListener.vb:484— "LogicalOperationStack" repeats the code it sits on: 3 of its 3 words (logical, operation, stack) are already in `If (Me.TraceOutputOptions And TraceOptions.LogicalOperationStack) = TraceOptions.LogicalOperationStack Then`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
Thin analysable surface across projects: net4-console ProjectTypeTests/net4-console/net4-console.vbproj— 1 project(s) carry only a thin slice of real code; `net4-console` has 17 significant line(s). The mean analysable-surface weight is 59 %; this project lowers Solution Shape by about 3.3 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 1 of 6 project(s) overshoot their size bounds, lowering Project Cohesion to 6.7/10. The most over is `Community.VisualBasic` (45412 LoC, 108 public types across 11 namespaces). Review these for cohesion — split a project that spans unrelated responsibilities.
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 src/ separation — Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
No SAST — No static application security testing detected. For this repository's stack, add a Roslyn security analyzer package referenced from the project (the analyzer packages do analyse VB.NET), plus gitleaks for committed secrets — CodeQL has no VB.NET extractor, so its csharp pack would extract nothing from this tree and then report it clean — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
doc comments repeat the names Community.VisualBasic/ApplicationServices/ApplicationBase.vb:21— 8 of 563 documented parameters and 6 of 530 summaries in `Community.VisualBasic` only repeat the member or parameter name (e.g. "Returns the value of the specified environment variable." for `GetEnvironmentVariable`). 50 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
doc comments repeat the names Community.VisualBasic.Tests/TestUtilities/System/AssertExtensions.vb:311— 0 of 29 documented parameters and 0 of 22 summaries in `Community.VisualBasic.Tests` only repeat the member or parameter name (e.g. "" for `actual`). 1 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
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.
nuget: not applicable — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan
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.
provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
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 (no readable dependency manifest): 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 Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
0
—
Run 01a17939-9dcc-7de3-ba72-e15541e4ebb8 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 7 · Warnings: 440 · Recommendations: 42 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 26-10-2026 @ 17:19 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.