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

DualBrain/qbasic

Measured 15 November 2026, 03:20 UTC, at code version 40a2e64

Code coverage is not measured: The repo's test suite did not build.

Test reliability is not measured: No test run produced results.

Boundary Type-Coupling is not measured: Bounded contexts not declared.

CAI score 43out of 100 Weak
CriticalWeakAdequateStrongExemplary
Up 1 since the last survey

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

A medium codebase: 84,754 lines of product code in 5 projects, tests not counted · Estimated rebuild effort: about 0.6 person-years · Weakest lens: Production Readiness, 28

Findings by how serious they are

11 critical 958 serious 166 minor

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

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
15 November 2026, 03:20 UTC

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

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

34of 34 dimensions measured by tools.
1127of 1135 findings point to an exact file and line, so you can open each one in the code. The other 8 concern the repository as a whole, such as missing documentation.
34dimensions across 5 lenses, read from 84,754 lines of product code in 5 projects.
Chapters

Executive summary

DualBrain/qbasic 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 43 out of 100 and is rated Weak, and none of its 11 critical findings concern security.

Production Readiness, at 28, is the weakest lens and counts most in the score. The best first steps are recording design decisions and having someone learn and document the 127 files no active contributor knows, each worth about 12 points. Raising Production Readiness to 70 would lift the score to about 54.

Eleven errors are caught and ignored, so failures can go unnoticed. Handling or logging the ignored errors would close this risk.

The product code is 84,754 lines, about €87,000 to rebuild.

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

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

If Production Readiness rose from 28 to 70, the lowest score rated Strong, the score would rise from 43 to about 54.

Code composition: what the lines of code are
Product code 89%Tests 11%
New since the last survey: 77 findings

These 77 critical or serious findings weren't in the previous survey, on 29 October 2026.

  • Code Duplication · Edited copies of one member (3 members, 195+ corresponding lines) src/qbasic.compatibility/Video.vb
  • Code Duplication · Edited copy of a member (89 corresponding lines) src/qbasic/QBLib/Video.vb
  • Code Duplication · Edited copy of a member (47 corresponding lines) src/qbasic/Basic/VisualBasic/Conversion.vb
  • Code Duplication · Edited copies of one member (6 members, 63+ corresponding lines) src/qbasic.compatibility/Devices.vb
  • Code Duplication · Edited copy of a member (72 corresponding lines) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb
  • Code Duplication · Edited copy of a member (40 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copy of a member (54 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copies of one member (6 members, 49+ corresponding lines) src/qbasic.compatibility/Devices.vb
  • Code Duplication · Edited copy of a member (49 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (58 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (37 corresponding lines) src/qbasic/ChangeDialog.vb
  • Code Duplication · Edited copy of a member (63 corresponding lines) src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb
  • Code Duplication · Edited copy of a member (32 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (29 corresponding lines) src/qbasic/QBLib/Audio/WindowsAudio.vb
  • Code Duplication · Edited copy of a member (57 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb
  • Code Duplication · Edited copy of a member (37 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (23 corresponding lines) src/qbasic/Basic/VisualBasic/Conversion.vb
  • Code Duplication · Edited copy of a member (34 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb
  • Code Duplication · Edited copy of a member (50 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (30 corresponding lines) src/qbasic/Basic/VisualBasic/MKI.vb
  • Code Duplication · Edited copy of a member (39 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (32 corresponding lines) src/qbasic/Basic/VisualBasic/MKI.vb
  • Code Duplication · Edited copy of a member (15 corresponding lines) src/qbasic/AboutDialog.vb
  • Code Duplication · Edited copy of a member (38 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (41 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb
  • Code Duplication · Edited copy of a member (76 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (24 corresponding lines) src/qbasic/Basic/Display/Display.vb
  • Code Duplication · Edited copy of a member (29 corresponding lines) src/qbasic/Basic/Display/Display.vb
  • Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (22 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (19 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (18 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic/Common.vb
  • Code Duplication · Edited copies of one member (3 members, 25+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (27 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (13 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (14 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copies of one member (4 members, 14+ corresponding lines) src/qbasic/Common.vb
  • Code Duplication · Edited copy of a member (11 corresponding lines) src/qbasic/DocumentPanel.vb
  • Code Duplication · Edited copy of a member (12 corresponding lines) src/qbasic/Components/CheckboxControl.vb
  • Code Duplication · Edited copy of a member (11 corresponding lines) src/qbasic/Basic/Audio/SoundGenerator.vb
  • Code Duplication · Edited copy of a member (22 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (20 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb
  • Code Duplication · Edited copy of a member (18 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copy of a member (16 corresponding lines) src/qbasic/Common.vb
  • Code Duplication · Edited copy of a member (28 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copies of one member (5 members, 4+ corresponding lines) src/qbasic/FindDialog.vb
  • Code Duplication · Edited copy of a member (10 corresponding lines) src/qbasic/Components/Control.vb
  • Code Duplication · Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copy of a member (15 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (14 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/CircleStatementSyntax.vb
  • Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/GetStatementSyntax.vb
  • Code Duplication · Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (17 corresponding lines) src/qbasic/QBLib/Video.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (3 corresponding lines) src/qbasic/QB/Interpreter.vb
  • Code Duplication · Edited copy of a member (6 corresponding lines) src/qbasic/QBLib/Video.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic.compatibility/Console.vb
  • Code Duplication · Edited copy of a member (4 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb
  • Code Duplication · Edited copy of a member (16 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb
  • Code Duplication · Edited copy of a member (11 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb
  • Code Duplication · Edited copy of a member (26 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic/Basic/Extensions.vb
  • Code Duplication · Edited copy of a member (10 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/PresetStatementSyntax.vb
  • Code Duplication · Edited copies of one member (3 members, 10+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/FunctionDeclarationSyntax.vb
  • Code Duplication · Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/BoundNodePrinter.vb
  • Code Duplication · Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/GetStatementSyntax.vb
  • Code Duplication · Edited copy of a member (9 corresponding lines) src/qbasic/QBLib/Audio/LinuxAudio.vb
  • Code Duplication · Edited copy of a member (8 corresponding lines) src/qbasic/QBLib/Video.vb
  • Code Duplication · Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/BoundGetStatement.vb
  • Code Duplication · Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/ComStatementSyntax.vb
  • Code Duplication · Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/KeyStatementSyntax.vb
  • Code Duplication · Edited copies of one member (4 members, 6+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/LockRangeStatementSyntax.vb
  • Code Duplication · Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/OnStrigGosubStatementSyntax.vb
  • Churn × Complexity Hotspots · Repeated repair: src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb

We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 1 finding

This critical or serious finding was in the previous survey, on 29 October 2026, and is gone from this one.

  • Churn × Complexity Hotspots · Hotspot: src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb
Rebuild cost: about €87,000 · Estimate
Cost to rebuild€29,000 to €150,000, for 482 to 1,528 hours of work, about 0.6 person-years for 1 to 2 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 43. 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.
SizeMedium: 84,754 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. 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 — start with QBasic.vbproj.
Raises the score by about 12 points · Low effort · ADR Quality
2
Resolve the 127 Orphaned file finding(s) in Knowledge Freshness — start with Parser.vb (2), Display.vb (2), SyntaxKind.vb (2).
Raises the score by about 12 points · High effort · Knowledge Freshness
3
Resolve the 15 Hotspot finding(s) in Churn × Complexity Hotspots — start with Evaluator.vb, Program.vb, Parser.vb.
Raises the score by about 10 points · High effort · Churn × Complexity Hotspots

Diagnosis: what the measurements show together

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

Where the investment is most exposed · Value at risk
This code would cost about €87,000 to build again, about 0.6 person-years of work. Its weakest lens is Production Readiness, at 28 (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 12 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.0 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 7% to 17% on every change. The history of the code shows how much it changes: about 58,074 lines over the last 90 days, which is about 235,522 lines a year. At that pace, the extra work comes to an estimated 44.1 to 264.7 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture — 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.

arch Basic Basic QB.Compatibility Compatibility QBasic QBasic vbcompare vbcompare vbcompare->QBasic

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.

35 modules, with 37 dependencies between them. One loop runs through 5 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.
uses →1 (global)2 Basic.Audio3 Basic.CodeAnalysis.QBasic4 Basic.CodeAnalysis.QBasic.Syntax.InternalSyntax5 Basic.Drawing6 Basic.Environment7 Basic.IO8 Basic.My9 Basic.Parser10 Basic.Printer11 Basic.Timers12 Basic.Tokenizer13 Basic.Utils14 Basic.VisualBasic15 Microsoft.VisualBasic16 QB.CodeAnalysis.Text17 QB.Compatibility.My18 QBLib19 QBLib.Audio20 QBasic.My21 vbcompare.My22 Basic.Display23 Basic.Input24 Basic.Parser.Dialects25 QB.CodeAnalysis.Syntax26 Basic27 QB.CodeAnalysis.Symbols28 QBasic29 vbcompare30 QB.CodeAnalysis.Binding31 QB.CodeAnalysis.Emit32 QB.CodeAnalysis.Lowering33 QB.CodeAnalysis34 QB35 QB.IO
1 (global)
2 Basic.Audio
3 Basic.CodeAnalysis.QBasic
4 Basic.CodeAnalysis.QBasic.Syntax.InternalSyntax
5 Basic.Drawing
6 Basic.Environment
7 Basic.IO
8 Basic.My
9 Basic.Parser
10 Basic.Printer
11 Basic.Timers
12 Basic.Tokenizer
13 Basic.Utils
14 Basic.VisualBasic
15 Microsoft.VisualBasic
16 QB.CodeAnalysis.Text
17 QB.Compatibility.My
18 QBLib
19 QBLib.Audio
20 QBasic.My
21 vbcompare.My
22 Basic.Display2
23 Basic.Input1
24 Basic.Parser.Dialects5
25 QB.CodeAnalysis.Syntax74
26 Basic11112216
27 QB.CodeAnalysis.Symbols46
28 QBasic111
29 vbcompare1
30 QB.CodeAnalysis.Binding1338423
31 QB.CodeAnalysis.Emit5597
32 QB.CodeAnalysis.Lowering110
33 QB.CodeAnalysis279791
34 QB14
35 QB.IO11
Uses a module listed above itPart of a loopThe module itself
1 (global)2 Basic.Audio3 Basic.CodeAnalysis.QBasic4 Basic.CodeAnalysis.QBasic.Syntax.InternalSyntax5 Basic.Drawing6 Basic.Environment7 Basic.IO8 Basic.My9 Basic.Parser10 Basic.Printer11 Basic.Timers12 Basic.Tokenizer13 Basic.Utils14 Basic.VisualBasic15 Microsoft.VisualBasic16 QB.CodeAnalysis.Text17 QB.Compatibility.My18 QBLib19 QBLib.Audio20 QBasic.My21 vbcompare.My22 Basic.Display23 Basic.Input24 Basic.Parser.Dialects25 QB.CodeAnalysis.Syntax26 Basic27 QB.CodeAnalysis.Symbols28 QBasic29 vbcompare30 QB.CodeAnalysis.Binding31 QB.CodeAnalysis.Emit32 QB.CodeAnalysis.Lowering33 QB.CodeAnalysis34 QB35 QB.IO(global)1Basic.Audio2Basic.CodeAnalysis.QBasic3Basic.CodeAnalysis.QBasic.Syntax.InternalSyntax4Basic.Drawing5Basic.Environment6Basic.IO7Basic.My8Basic.Parser9Basic.Printer10Basic.Timers11Basic.Tokenizer12Basic.Utils13Basic.VisualBasic14Microsoft.VisualBasic15QB.CodeAnalysis.Text16QB.Compatibility.My17QBLib18QBLib.Audio19QBasic.My20vbcompare.My21Basic.Display22Basic.Input23Basic.Parser.Dialects24QB.CodeAnalysis.Syntax25Basic26QB.CodeAnalysis.Symbols27QBasic28vbcompare29QB.CodeAnalysis.Binding30QB.CodeAnalysis.Emit31QB.CodeAnalysis.Lowering32QB.CodeAnalysis33QB34QB.IO352157411112216461111133842355971102797911411

At a glance — Code Health · 73% · Adequate · gated by D1, D2 ·

At a glance — Architecture · 96% · Exemplary ·

At a glance — Maturity · 29% · Weak · gated by D15, D34, M2 ·

At a glance — Readiness · 28% · Weak · gated by P1, P3 ·

At a glance — Security · 100% · Checked 3 of 9 ·

Roadmap

Top priorities: Resolve the 1 No ADRs found finding(s) in ADR Quality — start with QBasic.vbproj; Resolve the 127 Orphaned file finding(s) in Knowledge Freshness — start with Parser.vb (2), Display.vb (2), SyntaxKind.vb (2); Resolve the 15 Hotspot finding(s) in Churn × Complexity Hotspots — start with Evaluator.vb, Program.vb, Parser.vb.

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

Do thisHelpsEffortDimension
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with QBasic.vbproj.+12.3 ptsLowADR Quality
Resolve the 127 Orphaned file finding(s) in Knowledge Freshness — start with Parser.vb (2), Display.vb (2), SyntaxKind.vb (2).+12.1 ptsHighKnowledge Freshness
Resolve the 15 Hotspot finding(s) in Churn × Complexity Hotspots — start with Evaluator.vb, Program.vb, Parser.vb.+10.5 ptsHighChurn × Complexity Hotspots
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.+6.5 ptsMediumArchitecture documentation
Resolve the 11 EmptyCatchBlock finding(s) in Explicit Debt — start with LinuxAudio.vb (4), Evaluator.vb (3), Program.vb.+2.9 ptsMediumExplicit Debt
Add a CI workflow that builds and runs the test suite on every push/PR.+5.4 ptsMediumCI/CD gates
Resolve the 27 redundant comment finding(s) in Comment Value — start with FileIoTests.vb (4), QBasicToVbNetRewriter.vb (4), Video.vb (3).+2.0 ptsMediumComment Value
Resolve the 2 Repeated repair finding(s) in Churn × Complexity Hotspots — start with Lowerer.vb, DiagnosticBag.vb.+1.4 ptsLowChurn × Complexity Hotspots

File quality

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

FileScoreBandWorst signal
src/qbasic/Program.vb1.0SlopExplicit Debt: EmptyCatchBlock
src/qbasic/QB/CodeAnalysis/Evaluator.vb1.0SlopExplicit Debt: EmptyCatchBlock
src/qbasic/QBLib/Video.vb1.0SlopExplicit Debt: EmptyCatchBlock
src/qbasic/QBLib/Audio/WindowsAudio.vb3.9SlopExplicit Debt: EmptyCatchBlock
src/qbasic/QBLib/Audio/LinuxAudio.vb4.0MixedExplicit Debt: EmptyCatchBlock
src/qbasic/QB/CodeAnalysis/Syntax/GwBasicToQBasicRewriter.vb4.9MixedExplicit Debt: EmptyCatchBlock
src/qbasic/Basic/Interactive/Interactive.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/Basic/Display/Display.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/Basic/Parser/Parser.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/DocumentPanel.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb6.0MixedExplicit Debt: TodoComment
src/qbasic.compatibility/Console.vb6.0MixedExplicit Debt: TodoComment
src/qbasic.compatibility/Video.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/QB/CodeAnalysis/Binding/Binder.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/SaveAsDialog.vb6.0MixedExplicit Debt: TodoComment
src/qbasic/Basic/Extensions.vb6.0MixedExplicit Debt: HackComment
src/qbasic/Basic/VisualBasic/Conversion.vb6.0MixedExplicit Debt: FixmeComment

How the grades work

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

Critical — 11

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 — 958

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 — 166

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

This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 34 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, the weighted average across measured dimensions.

Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.

What we checked — 34 dimensions across the health lenses
D1D2D3D4D5D6D13D14D15D17D18D20D24D26D27D28D29D34D35D43D44AX10AX3AX4AX5AX8GD1M1M2M3P1P2P3P6

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1127 of 1135 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

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

Every finding is locatable in findings.md. Run 01a1dd38-1fae-76aa-b174-8c759ce97d9b.

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

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT MEASURED: the test run produced no results for any test tier, so no test ever ran and flakiness could not be exercised. The cause could not be attributed, so it is excluded from the score rather than read as an absence of tests.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `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-contributor repository — bus factor is not applicable (1 contributor(s) across 328 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
  • D17 Explicit Debt — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The C# workspace loaded this repository's projects but reported a load failure, and the dead-code reference search is unreliable over a graph that did not load cleanly, so it was skipped. The other debt markers on this row were read; dead symbols were not, and their absence from the score is not a finding that the code has none. First load diagnostic: Failure: Project file not found: '/tmp/vbPixelGameEngine/src/vbPixelGameEngine/vbPixelGameEngine.vbproj'.
  • D18 Solution Shape — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The build did not finish within its budget on this run; structural metrics are reported, build/warning status is unknown.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Large codebase (84,754 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"]`.
  • AX6 Interface segregation — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
  • C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • C4 Data Retention — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • X1 Async correctness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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.
  • X28 Index access outside its own emptiness guard — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
  • X29 Per-element action decided by a fixed element — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C#, 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

We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • 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 checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • 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").
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • 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.

Dimensions

D1 · Cyclomatic Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

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

166 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was QBasic.OnUserUpdate at 379. A further 23 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 SyntaxFacts.GetText at 195 — they are counted neither in the figure above nor in this dimension's score. 9 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: src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb (SyntaxFacts.GetText at 195), src/qbasic.compatibility/Core.vb (Core.QBAsc at 164), src/qbasic/QBLib/Core.vb (Core.QBChr at 163), src/qbasic/Basic/Input/KeyEventArgs.vb (KeyEventArgs.ToKeyScanCode at 105), src/qbasic/QB/CodeAnalysis/Common.vb (Common.GetErrorMessage at 53), and 4 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

Video.InputAsync (cyclomatic 24) · ×2src/qbasic/QBLib/Video.vb:1815
Evaluator.Assign (cyclomatic 20) · ×2src/qbasic/QB/CodeAnalysis/Evaluator.vb:4909
QBasic.OnUserUpdate (cyclomatic 379)src/qbasic/Program.vb:1176
Interactive.InteractiveProcessKey (cyclomatic 289)src/qbasic/Basic/Interactive/Interactive.vb:1119
Evaluator.EvaluateBinaryExpression (cyclomatic 276)src/qbasic/QB/CodeAnalysis/Evaluator.vb:3872

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

What to do

  1. Bring the 32 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with QBasic.OnUserUpdate (cyclomatic 379), Interactive.InteractiveProcessKey (cyclomatic 289), Evaluator.EvaluateBinaryExpression (cyclomatic 276). — 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 32 together lifts Cyclomatic Complexity from 2.0 to about 4.6/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

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

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

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

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

272 method(s) exceeded the cognitive complexity threshold of 15; the worst was QBasic.OnUserUpdate at 931.

QBasic.OnUserUpdate (cognitive 931)src/qbasic/Program.vb:1176
Interactive.ExecutePrimary (cognitive 662)src/qbasic/Basic/Interactive/Interactive.vb:3199
Interactive.ProcessKeyInternal (cognitive 524)src/qbasic/Basic/Interactive/Interactive.vb:863
Evaluator.EvaluateStatement (cognitive 464)src/qbasic/QB/CodeAnalysis/Evaluator.vb:510
Interactive.InteractiveProcessKey (cognitive 423)src/qbasic/Basic/Interactive/Interactive.vb:1119

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

What to do

  1. Bring the 272 bodies over 15 down to 15 or less in Cognitive Complexity — start with QBasic.OnUserUpdate (cognitive 931), Interactive.ExecutePrimary (cognitive 662), Interactive.ProcessKeyInternal (cognitive 524). — 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 272 together lifts Cognitive Complexity from 2.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.

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

D3 · God Classes8.2 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

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

106 god class(es) detected.

MethodTooLong: QBasic.OnUserUpdate · ×62src/qbasic/Program.vb:1176
TooManyMethods: Interactive · ×18src/qbasic/Basic/Interactive/Interactive.vb
FileTooLong: Interactive/Interactive.vb · ×17src/qbasic/Basic/Interactive/Interactive.vb
ClassTooLong: Display.InternalPage · ×9src/qbasic/Basic/Display/Display.vb

What to do

  1. Resolve the 62 MethodTooLong finding(s) in God Classes — start with Interactive.vb (21), Display.vb (6), Evaluator.vb (5). — One of this dimension's main actionable groups (62 warning-level).
  2. Resolve the 18 TooManyMethods finding(s) in God Classes — start with Video.vb (2), Interactive.vb, Parser.vb. — One of this dimension's main actionable groups (18 warning-level).
  3. Resolve the 17 FileTooLong finding(s) in God Classes — start with Parser.vb (2), Video.vb (2), Interactive.vb. — One of this dimension's main actionable groups (17 warning-level).

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

D4 · Code Duplication6.0 / 10Adequate✓ Tool-verified

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

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

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

165 duplicated block group(s) detected. 10.0 % of the production lines (8,450 of 84,754) are in a reported copy. A further 86 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.

Duplicated block (17 lines × 2) · ×8src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:580
Duplicated block (7 lines × 2) · ×8src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1840
Edited copy of a member (9 corresponding lines) · ×7src/qbasic/Common.vb:716
Duplicated block (15 lines × 2) · ×7src/qbasic/Basic/Interactive/Interactive.vb:7785
Duplicated block (13 lines × 2) · ×7src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2974

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

What to do

  1. Resolve the 8 Duplicated block (17 lines × 2) finding(s) in Code Duplication — start with Parser.vb (2), Interactive.vb (2), WindowsFileSystem.vb. — One of this dimension's main actionable groups (8 warning-level).
  2. Resolve the 8 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with Interactive.vb (3), Parser.vb, Form.vb. — One of this dimension's main actionable groups (8 warning-level).
  3. Resolve the 7 Edited copy of a member (9 corresponding lines) finding(s) in Code Duplication — start with Common.vb, Binder.vb, Interactive.vb. — One of this dimension's main actionable groups (7 warning-level).

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

D5 · Coupling8.4 / 10Strong✓ 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.

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

5 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).

Off the main sequence: QBasicsrc/qbasic/QBasic.vbproj:1

What to do

  1. Resolve the 1 Off the main sequence finding(s) in Coupling — start with QBasic.vbproj. — One of this dimension's main actionable groups (1 warning-level).

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

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

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

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

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

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

0 of 70 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md.

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

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

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.

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

0 of 108 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 5 direct `PackageReference`(s), and 103 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.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots0.9 / 10Critical✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

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

Top hotspots: src/qbasic/QB/CodeAnalysis/Evaluator.vb (122×276=33672); src/qbasic/Program.vb (42×379=15918); src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb (38×126=4788) Repeated repair below the complexity floor: src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb (3 of 5 changes were fixes); src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb (3 of 5 changes were fixes)

Hotspot: src/qbasic/QB/CodeAnalysis/Evaluator.vb · ×15src/qbasic/QB/CodeAnalysis/Evaluator.vb:3872
Repeated repair: src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb · ×2src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:77

What to do

  1. Resolve the 15 Hotspot finding(s) in Churn × Complexity Hotspots — start with Evaluator.vb, Program.vb, Parser.vb. — One of this dimension's main actionable groups (15 warning-level).
  2. Resolve the 2 Repeated repair finding(s) in Churn × Complexity Hotspots — start with Lowerer.vb, DiagnosticBag.vb. — One of this dimension's main actionable groups (2 warning-level).

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

D17 · Explicit Debt9.4 / 10Adequategated by 11 critical findings✓ Tool-verified

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

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

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

152 deducted debt markers + unmeasured dead symbols across 84754 LoC in the .NET projects (0.3/KLoC) → score 9.4. Dead code not measured: the solution did not load cleanly, so the reference search was skipped.

EmptyCatchBlock · ×11src/qbasic/Program.vb:959
TodoComment · ×139src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:933
HackCommentsrc/qbasic/Basic/Extensions.vb:409
FixmeCommentsrc/qbasic/Basic/VisualBasic/Conversion.vb:22

What to do

  1. Resolve the 11 EmptyCatchBlock finding(s) in Explicit Debt — start with LinuxAudio.vb (4), Evaluator.vb (3), Program.vb. — One of this dimension's main actionable groups (11 issue-level).
  2. Resolve the 139 TodoComment finding(s) in Explicit Debt — start with Parser.vb (37), Interactive.vb (21), Evaluator.vb (11). — One of this dimension's main actionable groups (139 warning-level).
  3. Resolve the 1 HackComment finding(s) in Explicit Debt — start with Extensions.vb. — One of this dimension's main actionable groups (1 warning-level).

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

D18 · Solution Shape10.0 / 10Stronggated by 1 serious finding✓ Tool-verified

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.

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

5 projects, 493 source files, 95490 hand-written lines of code (84754 production / 10736 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 185 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 2 inter-project edges (build status unknown — did not finish).

Solution references a project that does not existsrc/QBasic.sln

What to do

  1. Resolve the 1 Solution references a project that does not exist finding(s) in Solution Shape — start with QBasic.sln. — One of this dimension's main actionable groups (1 warning-level).

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

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

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

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

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

No architecture decision records were found.

No ADRs foundsrc/qbasic/QBasic.vbproj:4

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with QBasic.vbproj. — One of this dimension's main actionable groups (1 recommendation-level).

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

D24 · Comment Value8.3 7.7 / 10Strong✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 7.7 / 10 · rule-coverage 92% · ceiling Documented

45 of 2712 judged comments only repeat the code they sit on (1.7 %). 503 comment(s) in another language or script were not judged.

redundant comment · ×27src/Tests/QBasic.CodeAnalysis.Tests/ErrorTests.vb:123
doc comments repeat the namessrc/qbasic/Program.vb:57

What to do

  1. Resolve the 27 redundant comment finding(s) in Comment Value — start with FileIoTests.vb (4), QBasicToVbNetRewriter.vb (4), Video.vb (3). — One of this dimension's main actionable groups (27 recommendation-level).

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

D26 · Project Cohesion6.0 / 10Adequate✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic.

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

1 of 5 projects flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesionsrc/qbasic/QBasic.vbproj:1

What to do

  1. Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with QBasic.vbproj. — 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.

D27 · Navigability9.9 / 10Exemplary✓ Tool-verified

What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.

Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.

Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.

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

52 % of calls cross a namespace and 0 % go through an interface, but 99 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)10.0 / 10Exemplary○ Nothing flagged

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

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

semgrep found no security issues.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D34 · Knowledge Freshness0.0 / 10Critical✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

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

130 of 130 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/qbasic/Basic/Interactive/Interactive.vb. Counted over 130 of the 472 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×127src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1
Most significant orphaned file · ×3src/qbasic/Basic/Interactive/Interactive.vb:1
Dormant codebase

What to do

  1. Resolve the 127 Orphaned file finding(s) in Knowledge Freshness — start with Parser.vb (2), Display.vb (2), SyntaxKind.vb (2). — One of this dimension's main actionable groups (127 recommendation-level).
  2. Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with Interactive.vb, Evaluator.vb, Parser.vb. — One of this dimension's main actionable groups (3 recommendation-level).
  3. Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

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

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

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

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

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

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.

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

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

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

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

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

AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

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.

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

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

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

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

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

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

M1 · Documentation (README)6.0 / 10Adequate✓ Tool-verified

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

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • 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.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

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

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

  • 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.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

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

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

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.
P2 · Observability6.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

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

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add 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.
  • `src/Tests/QBasic.CodeAnalysis.Tests/QBasic.CodeAnalysis.Tests.vbproj` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — src/Tests/QBasic.CodeAnalysis.Tests/QBasic.CodeAnalysis.Tests.vbproj:14

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.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

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

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health73%Adequate — gated by D1, D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture96%ExemplarySolid.
Maturity29%Weak — gated by D15, D34, M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness28%Weak — gated by P1, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security100%Checked 3 of 9Strongest area.
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 — 76 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — no DI registrations detected
  • AX2 Stateful singletons — no singleton implementations detected
  • AX6 Interface segregation — AX6 reached only 0% of this repository's production lines — vbnet (84,754 lines), vba (7,068 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • 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 — ~10727 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 — Test reliability not measured — no test run produced results
  • D12 Dependency Hygiene — Dependency hygiene not measured
  • D16 Bus Factor — single-contributor 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 does not read Visual Basic yet; 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.
  • 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.
  • 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.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
  • 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 200 current-state document(s) make no claim of a kind M4 checks.
  • P12 CI test-gate honesty — no CI workflow found
  • 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 — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for 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 scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • PF3 Async & latency hygiene — 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.
  • X28 Index access outside its own emptiness guard — X28 reached only 0% of this repository's production lines — vbnet (84,754 lines), vba (7,068 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • 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.

Critical — 11 finding(s)
D17 · Explicit Debt · EmptyCatchBlock · ×11
  • EmptyCatchBlock src/qbasic/Program.vb:959 — 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 src/qbasic/QB/CodeAnalysis/Evaluator.vb:1311 — 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 src/qbasic/QB/CodeAnalysis/Evaluator.vb:1315 — 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 src/qbasic/QB/CodeAnalysis/Evaluator.vb:5137 — 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 src/qbasic/QB/CodeAnalysis/Syntax/GwBasicToQBasicRewriter.vb:84 — 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 src/qbasic/QBLib/Audio/LinuxAudio.vb:63 — 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 src/qbasic/QBLib/Audio/LinuxAudio.vb:84 — 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 src/qbasic/QBLib/Audio/LinuxAudio.vb:101 — 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 src/qbasic/QBLib/Audio/LinuxAudio.vb:191 — 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 src/qbasic/QBLib/Audio/WindowsAudio.vb:501 — 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 src/qbasic/QBLib/Video.vb:939 — 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.
Serious — 958 finding(s)
D17 · Explicit Debt · TodoComment · ×139
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:933 — ' 'TODO - davidsch - In C++ code there is a call to GreedilyParseColonSeparatedStatements. Why? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1076 — ' 'TODO Move all of this code to ParseIdentifier — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1188 — ' 'TODO - Move the check below ExecutableStatementContext.ProcessStatement — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1232 — ' 'TODO - Remove when select is fully implemented — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1715 — ' 'TODO - Consider moving the error to the Declaration context — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1833 — ' 'TODO - Compare this method with IsDeclarationStatement. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1916 — ' 'TODO - davidsch - The error checking here looks like parser doing semantics. The grammar allows — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:2137 — ' 'TODO - For better error recovery consider adding a resync here for — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:2276 — ' ' TODO - Consider improving the handling of implicit line continuations. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:2463 — ' 'TODO - davidsch - This used to call ParseInitializer which checked for DotToken before calling ParseAssignmentInitializer — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:2560 — ' 'TODO - davidsch - Dev10 error is on .Name? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:2611 — ' ' TODO - In Dev 10 error is on the xmlName — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3031 — ' 'TODO - — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3455 — ' 'TODO - davidsch — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3813 — ' 'TODO - davidsch Can ParseFunctionOrDelegateDeclaration and — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3827 — ' ' TODO - davidsch - Why do ParseFunctionDeclaration and ParseSubDeclaration have — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3907 — ' 'TODO - davidsch — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3943 — ' 'TODO - davidsch - What should be created here? For now use + as a canonical operator — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:3970 — ' 'TODO - davidsch - Why does operator resync here with different condition than Sub and Function? Seems like these should be consistent. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:4226 — ' ' TODO - Which keyword SUB or FUNCTION? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:4228 — ' ' TODO - Consider adding this as another case of VerifyExpectedToken — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:4486 — ' ' TODO - Bug 889301 - Dev10 does a resync here when there is an error. That prevents ERRID_InvalidParameterSyntax below from — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:4555 — ' 'TODO - Move these checks to Binder_Utils.DecodeParameterModifiers — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:4653 — ' ' TODO - Move these errors (ERRID.ERR_DefaultValueForNonOptionalParamout, ERRID.ERR_ObsoleteOptionalWithoutValue) of the parser. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `' REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:5117 — ' 'todo - davidsch - if sub/function keyword is missing. Use the existence of AS to infer Function — 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.
  • + 114 more in this group — see findings.md.
D3 · God Classes · MethodTooLong · ×62
  • MethodTooLong: QBasic.OnUserUpdate src/qbasic/Program.vb:1176 — MethodTooLong — OnUserUpdate runs 771 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 671 over it, 7.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: Evaluator.EvaluateStatement src/qbasic/QB/CodeAnalysis/Evaluator.vb:510 — MethodTooLong — EvaluateStatement runs 703 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 603 over it, 7.03× 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: Evaluator.EvaluateCallExpression src/qbasic/QB/CodeAnalysis/Evaluator.vb:4192 — MethodTooLong — EvaluateCallExpression runs 587 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 487 over it, 5.87× 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: Interactive.ExecutePrimary src/qbasic/Basic/Interactive/Interactive.vb:3199 — MethodTooLong — ExecutePrimary runs 549 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 449 over it, 5.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: Interactive.ExecutePut src/qbasic/Basic/Interactive/Interactive.vb:13632 — MethodTooLong — ExecutePut runs 360 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 260 over it, 3.60× 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: Parser.PeekToken src/qbasic/Basic/Parser/Parser.vb:398 — MethodTooLong — PeekToken runs 342 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 242 over it, 3.42× 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: Interactive.ExecuteGet src/qbasic/Basic/Interactive/Interactive.vb:8515 — MethodTooLong — ExecuteGet runs 335 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 235 over it, 3.35× 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: Interactive.ExecuteStringPrimary src/qbasic/Basic/Interactive/Interactive.vb:2308 — MethodTooLong — ExecuteStringPrimary runs 322 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 222 over it, 3.22× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Interactive.ExecutePrintUsing src/qbasic/Basic/Interactive/Interactive.vb:12698 — MethodTooLong — ExecutePrintUsing runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Interactive.ExecutePrint src/qbasic/Basic/Interactive/Interactive.vb:12312 — MethodTooLong — ExecutePrint runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.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: Evaluator.EvaluateBinaryExpression src/qbasic/QB/CodeAnalysis/Evaluator.vb:3872 — MethodTooLong — EvaluateBinaryExpression runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.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: Display.InternalPage.InitializeVgaPalette src/qbasic/Basic/Display/Display.vb:830 — MethodTooLong — InitializeVgaPalette runs 258 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 158 over it, 2.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: ConstantFolding.Fold src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb:44 — MethodTooLong — Fold runs 256 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 156 over it, 2.56× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Interactive.InteractiveProcessKey src/qbasic/Basic/Interactive/Interactive.vb:1119 — MethodTooLong — InteractiveProcessKey runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.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: Display.InternalPage.SetPalette src/qbasic/Basic/Display/Display.vb:543 — MethodTooLong — SetPalette 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: JsEmitter.Emit src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:31 — MethodTooLong — Emit runs 238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 138 over it, 2.38× 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: Interactive.ProcessKeyInternal src/qbasic/Basic/Interactive/Interactive.vb:863 — MethodTooLong — ProcessKeyInternal runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07× 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: Interactive.ExecuteDraw src/qbasic/Basic/Interactive/Interactive.vb:18064 — MethodTooLong — ExecuteDraw 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: SyntaxFacts.GetText src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb:287 — MethodTooLong — GetText runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00× 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: Interactive.InternalProcessText src/qbasic/Basic/Interactive/Interactive.vb:18676 — MethodTooLong — InternalProcessText runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.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: Evaluator.PlayCommand src/qbasic/QB/CodeAnalysis/Evaluator.vb:5804 — MethodTooLong — PlayCommand runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.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: Display.Screen src/qbasic/Basic/Display/Display.vb:2752 — MethodTooLong — Screen runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× 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: Display.InternalPage.SetPalette src/qbasic/Basic/Display/Display.vb:275 — MethodTooLong — SetPalette runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93× 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: BoundBinaryOperator.Initialize src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb:226 — MethodTooLong — Initialize runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87× 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: SyntaxFacts.GetKeywordKind src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb:81 — MethodTooLong — GetKeywordKind runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× 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.
  • + 37 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×18
  • TooManyMethods: Interactive src/qbasic/Basic/Interactive/Interactive.vb — TooManyMethods — 10675 significant lines (blank, comment-only and punctuation-only lines excluded), 212 methods. The bar is 30 methods; this is 182 over it, 7.07× 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: Parser src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb — TooManyMethods — 3172 significant lines (blank, comment-only and punctuation-only lines excluded), 178 methods. The bar is 30 methods; this is 148 over it, 5.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: Binder src/qbasic/QB/CodeAnalysis/Binding/Binder.vb — TooManyMethods — 2637 significant lines (blank, comment-only and punctuation-only lines excluded), 154 methods. The bar is 30 methods; this is 124 over it, 5.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Evaluator src/qbasic/QB/CodeAnalysis/Evaluator.vb — TooManyMethods — 4820 significant lines (blank, comment-only and punctuation-only lines excluded), 136 methods. The bar is 30 methods; this is 106 over it, 4.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: QBasic src/qbasic/Program.vb — TooManyMethods — 1868 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: Display src/qbasic/Basic/Display/Display.vb — TooManyMethods — 3073 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods. The bar is 30 methods; this is 45 over it, 2.50× 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: DiagnosticBag src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb — TooManyMethods — 223 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 30 methods; this is 28 over it, 1.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: Common src/qbasic/Common.vb — TooManyMethods — 535 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. 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: Video src/qbasic.compatibility/Video.vb — TooManyMethods — 1456 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 30 methods; this is 18 over it, 1.60× the bar. 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: DocumentPanel src/qbasic/DocumentPanel.vb — TooManyMethods — 988 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: Video src/qbasic/QBLib/Video.vb — TooManyMethods — 1866 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: QBasicToVbNetRewriter src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb — TooManyMethods — 413 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 30 methods; this is 7 over it, 1.23× 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: WindowsAudio src/qbasic/QBLib/Audio/WindowsAudio.vb — TooManyMethods — 472 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 30 methods; this is 6 over it, 1.20× 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: BoundNodePrinter src/qbasic/QB/CodeAnalysis/Binding/BoundNodePrinter.vb — TooManyMethods — 372 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 30 methods; this is 6 over it, 1.20× 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: AudioDevice src/qbasic/QBLib/Audio/AudioDevice.vb — TooManyMethods — 351 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: MsilEmitter src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb — TooManyMethods — 535 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 30 methods; this is 3 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.
  • TooManyMethods: Core src/qbasic/QBLib/Core.vb — TooManyMethods — 537 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 30 methods; this is 1 over it, 1.03× 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: Console src/qbasic.compatibility/Console.vb — TooManyMethods — 258 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 30 methods; this is 1 over it, 1.03× 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.
D3 · God Classes · FileTooLong · ×17
  • FileTooLong: Interactive/Interactive.vb src/qbasic/Basic/Interactive/Interactive.vb — FileTooLong — 10678 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10178 over it, 21.36× 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: CodeAnalysis/Evaluator.vb src/qbasic/QB/CodeAnalysis/Evaluator.vb — FileTooLong — 4845 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4345 over it, 9.69× 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: Syntax/Parser.vb src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb — FileTooLong — 3177 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2677 over it, 6.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: Display/Display.vb src/qbasic/Basic/Display/Display.vb — FileTooLong — 3075 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2575 over it, 6.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: Binding/Binder.vb src/qbasic/QB/CodeAnalysis/Binding/Binder.vb — FileTooLong — 2646 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2146 over it, 5.29× 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: qbasic/Program.vb src/qbasic/Program.vb — FileTooLong — 2381 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1881 over it, 4.76× 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: QBLib/Video.vb src/qbasic/QBLib/Video.vb — FileTooLong — 1880 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1380 over it, 3.76× 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: qbasic.compatibility/Video.vb src/qbasic.compatibility/Video.vb — FileTooLong — 1470 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 970 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: qbasic/DocumentPanel.vb src/qbasic/DocumentPanel.vb — FileTooLong — 991 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 491 over it, 1.98× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Display/CharMap.vb src/qbasic/Basic/Display/CharMap.vb — FileTooLong — 784 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 284 over it, 1.57× 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: Syntax/SyntaxKind.vb src/Compilers/Qbx/CodeAnalysis/QBasic/Syntax/SyntaxKind.vb — FileTooLong — 651 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 151 over it, 1.30× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Parser/Parser.vb src/qbasic/Basic/Parser/Parser.vb — FileTooLong — 597 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 97 over it, 1.19× 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: Syntax/Lexer.vb src/qbasic/QB/CodeAnalysis/Syntax/Lexer.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: qbasic/Common.vb src/qbasic/Common.vb — FileTooLong — 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09× 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: Emit/MsilEmitter.vb src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb — FileTooLong — 546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 46 over it, 1.09× 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: QBLib/Core.vb src/qbasic/QBLib/Core.vb — FileTooLong — 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08× 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: Emit/JsEmitter.vb src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.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.
D15 · Churn × Complexity Hotspots · Hotspot · ×15
  • Hotspot: src/qbasic/QB/CodeAnalysis/Evaluator.vb src/qbasic/QB/CodeAnalysis/Evaluator.vb:3872 — src/qbasic/QB/CodeAnalysis/Evaluator.vb changed 122 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 276 in Evaluator.EvaluateBinaryExpression at line 3872. 24 of those changes were fix/bug commits, and the other 98 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Evaluator.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/Program.vb src/qbasic/Program.vb:1176 — src/qbasic/Program.vb changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 379 in QBasic.OnUserUpdate at line 1176. 5 of those changes were fix/bug commits, and the other 37 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/Program.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:127 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 126 in Parser.ParseStatement at line 127. 8 of those changes were fix/bug commits, and the other 30 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Binding/Binder.vb src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:900 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb changed 78 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in Binder.BindCallExpression at line 900. 19 of those changes were fix/bug commits, and the other 59 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Binding/Binder.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb:44 — src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 257 in ConstantFolding.Fold at line 44. 4 of those changes were fix/bug commits, and the other 4 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QBLib/Video.vb src/qbasic/QBLib/Video.vb:2095 — src/qbasic/QBLib/Video.vb changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in Video.INKEY at line 2095. 4 of those changes were fix/bug commits, and the other 11 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QBLib/Video.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:551 — src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in Lexer.ReadIdentifierOrKeyword at line 551. 2 of those changes were fix/bug commits, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/Common.vb src/qbasic/Common.vb:66 — src/qbasic/Common.vb changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in Common.GetChar at line 66. 2 of those changes were fix/bug commits, and the other 4 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/Common.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QBLib/Audio/WindowsAudio.vb src/qbasic/QBLib/Audio/WindowsAudio.vb:294 — src/qbasic/QBLib/Audio/WindowsAudio.vb changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in WindowsAudio.StreamingLoop at line 294. 1 of those changes was a fix/bug commit, and the other 19 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QBLib/Audio/WindowsAudio.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QBLib/Audio/AudioDevice.vb src/qbasic/QBLib/Audio/AudioDevice.vb:460 — src/qbasic/QBLib/Audio/AudioDevice.vb changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AudioDevice.EmitTone at line 460. 1 of those changes was a fix/bug commit, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QBLib/Audio/AudioDevice.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb:226 — src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in BoundBinaryOperator.Initialize at line 226. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:588 — src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax at line 588. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb:163 — src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in GraphBuilder.Build at line 163. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb:177 — src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in BoundTreeRewriter.RewritePrintStatement at line 177. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:419 — src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SyntaxNode.WriteNodeWithTrivia at line 419. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D3 · God Classes · ClassTooLong · ×9
  • ClassTooLong: Display.InternalPage src/qbasic/Basic/Display/Display.vb — ClassTooLong — 954 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 554 over it, 2.39× 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: CharMap src/qbasic/Basic/Display/CharMap.vb — ClassTooLong — 782 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 382 over it, 1.96× 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: Parser src/qbasic/Basic/Parser/Parser.vb — ClassTooLong — 595 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 195 over it, 1.49× 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: Lexer src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb — ClassTooLong — 568 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 168 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: JsEmitter src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb — ClassTooLong — 518 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 118 over it, 1.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.
  • ClassTooLong: Program src/qbasic/Program.vb — ClassTooLong — 499 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 99 over it, 1.25× 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: SyntaxFacts src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb — ClassTooLong — 456 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 56 over it, 1.14× 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: KeyEventArgs src/qbasic/Basic/Input/KeyEventArgs.vb — ClassTooLong — 450 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 50 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: Core src/qbasic.compatibility/Core.vb — ClassTooLong — 423 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 23 over it, 1.06× 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.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×8
  • Duplicated block (17 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:580 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:580-596 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3298-3314 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:949 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:949-965 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3264-3280 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:15496 — src/qbasic/Basic/Interactive/Interactive.vb:15496-15512 | src/qbasic/Basic/Interactive/Interactive.vb:15528-15544 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/qbasic/Implementation/WindowsFileSystem.vb:145 — src/qbasic/Implementation/WindowsFileSystem.vb:145-161 | src/qbasic/Implementation/WindowsFileSystem.vb:167-183 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/qbasic.compatibility/Devices.vb:54 — src/qbasic.compatibility/Devices.vb:54-70 | src/qbasic/Basic/VisualBasic/MKI.vb:48-64 — before extracting anything, compare `src/qbasic.compatibility/Devices.vb` and `src/qbasic/Basic/VisualBasic/MKI.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (17 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:11522 — src/qbasic/Basic/Interactive/Interactive.vb:11522-11538 | src/qbasic/Basic/Interactive/Interactive.vb:11565-11581 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/qbasic/Basic/VisualBasic/MKI.vb:322 — src/qbasic/Basic/VisualBasic/MKI.vb:322-338 | src/qbasic/QBLib/Core.vb:827-844 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (17 lines × 2) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2550 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:2550-2566 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:2580-2596 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×8
  • Duplicated block (7 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1840 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1840-1846 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3130-3136 — 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) src/qbasic/Components/Form.vb:124 — src/qbasic/Components/Form.vb:124-130 | src/qbasic/Components/Form.vb:147-153 — 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) src/qbasic/Basic/Interactive/Interactive.vb:8701 — src/qbasic/Basic/Interactive/Interactive.vb:8701-8707 | src/qbasic/Basic/Interactive/Interactive.vb:8754-8760 — 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) src/qbasic/Components/TextBoxControl.vb:147 — src/qbasic/Components/TextBoxControl.vb:147-153 | src/qbasic/DocumentPanel.vb:310-316 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2198 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2198-2204 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2220-2226 — 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) src/qbasic/Basic/Interactive/Interactive.vb:8538 — src/qbasic/Basic/Interactive/Interactive.vb:8538-8544 | src/qbasic/Basic/Interactive/Interactive.vb:10464-10471 — 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 (7 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:16586 — src/qbasic/Basic/Interactive/Interactive.vb:16586-16594 | src/qbasic/Basic/Interactive/Interactive.vb:16706-16712 — 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, `src/qbasic/Basic/Interactive/Interactive.vb:16704` calls `m_numericVariableList` and `src/qbasic/Basic/Interactive/Interactive.vb:16584` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) src/qbasic/Components/ButtonControl.vb:42 — src/qbasic/Components/ButtonControl.vb:42-48 | src/qbasic/Components/RadioButtonControl.vb:33-39 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×7
  • Edited copy of a member (9 corresponding lines) src/qbasic/Common.vb:716 — src/qbasic/Common.vb:716-724 | src/qbasic/Common.vb:728-736 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2709 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2709-2717 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2725-2733 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:14402 — src/qbasic/Basic/Interactive/Interactive.vb:14402-14410 | src/qbasic/Basic/Interactive/Interactive.vb:14416-14425 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:742 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:742-750 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1298-1310 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) src/qbasic.compatibility/Console.vb:232 — src/qbasic.compatibility/Console.vb:232-240 | src/qbasic.compatibility/Video.vb:1032-1042 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) src/qbasic/Basic/Extensions.vb:230 — src/qbasic/Basic/Extensions.vb:230-244 | src/qbasic/Basic/Extensions.vb:249-257 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) src/qbasic/QBLib/Audio/LinuxAudio.vb:110 — src/qbasic/QBLib/Audio/LinuxAudio.vb:110-118 | src/qbasic/QBLib/Audio/WindowsAudio.vb:661-669 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×7
  • Duplicated block (15 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:7785 — src/qbasic/Basic/Interactive/Interactive.vb:7785-7799 | src/qbasic/Basic/Interactive/Interactive.vb:7809-7823 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:12936 — src/qbasic/Basic/Interactive/Interactive.vb:12936-12950 | src/qbasic/Basic/Interactive/Interactive.vb:12952-12966 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:15893 — src/qbasic/Basic/Interactive/Interactive.vb:15893-15907 | src/qbasic/Basic/Interactive/Interactive.vb:16452-16466 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/qbasic.compatibility/Devices.vb:322 — src/qbasic.compatibility/Devices.vb:322-336 | src/qbasic/Basic/VisualBasic/MKI.vb:315-329 — before extracting anything, compare `src/qbasic.compatibility/Devices.vb` and `src/qbasic/Basic/VisualBasic/MKI.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:463 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:463-477 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:360-374 — before extracting anything, compare `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/qbasic/Basic/Display/Display.vb:573 — src/qbasic/Basic/Display/Display.vb:573-587 | src/qbasic/Basic/Display/Display.vb:614-628 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:506 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:506-520 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:414-428 — before extracting anything, compare `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:501` calls `EmitExpression` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:409` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×7
  • Duplicated block (13 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2974 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2974-2986 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3096-3108 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:3009 — src/qbasic/Basic/Interactive/Interactive.vb:3009-3021 | src/qbasic/Basic/Interactive/Interactive.vb:3051-3063 — 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, `src/qbasic/Basic/Interactive/Interactive.vb:3024` calls `ThrowBasicError` and `src/qbasic/Basic/Interactive/Interactive.vb:3065` 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 (13 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:5800 — src/qbasic/Basic/Interactive/Interactive.vb:5800-5812 | src/qbasic/Basic/Interactive/Interactive.vb:16843-16855 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:16972 — src/qbasic/Basic/Interactive/Interactive.vb:16972-16984 | src/qbasic/Basic/Interactive/Interactive.vb:16994-17006 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:4052 — src/qbasic/Basic/Interactive/Interactive.vb:4052-4064 | src/qbasic/Basic/Interactive/Interactive.vb:4070-4082 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:468 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:468-480 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:521-533 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/qbasic/Program.vb:719 — src/qbasic/Program.vb:719-731 | src/qbasic/Program.vb:1346-1358 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×6
  • Duplicated block (23 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:10731 — src/qbasic/Basic/Interactive/Interactive.vb:10731-10753 | src/qbasic/Basic/Interactive/Interactive.vb:14118-14140 — 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 × 2) src/qbasic/Basic/Interactive/Interactive.vb:11002 — src/qbasic/Basic/Interactive/Interactive.vb:11002-11024 | src/qbasic/Basic/Interactive/Interactive.vb:14743-14765 — 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 × 2) src/qbasic/Basic/Interactive/Interactive.vb:6494 — src/qbasic/Basic/Interactive/Interactive.vb:6494-6519 | src/qbasic/Basic/Interactive/Interactive.vb:15059-15081 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/qbasic/Basic/Interactive/Interactive.vb:6519` calls `PeekToken` and `src/qbasic/Basic/Interactive/Interactive.vb:15081` 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) src/qbasic/Program.vb:2730 — src/qbasic/Program.vb:2730-2752 | src/qbasic/Program.vb:2758-2780 — 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 × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2627 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2627-2649 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2674-2696 — 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 × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:669 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:669-691 | src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:538-560 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×6
  • Duplicated block (11 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1875 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1875-1885 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3165-3175 — 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 `src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1875` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:6700 — src/qbasic/Basic/Interactive/Interactive.vb:6700-6710 | src/qbasic/Basic/Interactive/Interactive.vb:10312-10322 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/qbasic/Components/Form.vb:73 — src/qbasic/Components/Form.vb:73-83 | src/qbasic/Components/Form.vb:88-98 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2041 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2041-2051 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2062-2072 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/qbasic/Basic/Parser/Parser.vb:482 — src/qbasic/Basic/Parser/Parser.vb:482-492 | src/qbasic/Basic/Parser/Parser.vb:603-614 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:274 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:274-285 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:4265-4275 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×6
  • Duplicated block (10 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:486 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:486-495 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:528-537 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:4271 — src/qbasic/Basic/Interactive/Interactive.vb:4271-4280 | src/qbasic/Basic/Interactive/Interactive.vb:4461-4470 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:11367 — src/qbasic/Basic/Interactive/Interactive.vb:11367-11376 | src/qbasic/Basic/Interactive/Interactive.vb:11395-11404 — 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, `src/qbasic/Basic/Interactive/Interactive.vb:11363` calls `ExecuteExpression` and `src/qbasic/Basic/Interactive/Interactive.vb:11391` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) src/qbasic/Basic/Parser/Parser.vb:542 — src/qbasic/Basic/Parser/Parser.vb:542-551 | src/qbasic/Basic/Parser/Parser.vb:646-655 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/qbasic/Common.vb:520 — src/qbasic/Common.vb:520-531 | src/qbasic/Common.vb:546-555 — 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 (10 lines × 2) src/qbasic/MainMenu.vb:86 — src/qbasic/MainMenu.vb:86-95 | src/qbasic/MainMenu.vb:158-167 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×6
  • Duplicated block (9 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:2340 — src/qbasic/Basic/Interactive/Interactive.vb:2340-2348 | src/qbasic/Basic/Interactive/Interactive.vb:2362-2370 — 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) src/qbasic/ChangeDialog.vb:31 — src/qbasic/ChangeDialog.vb:31-39 | src/qbasic/FindDialog.vb:29-37 — before extracting anything, compare `src/qbasic/ChangeDialog.vb` and `src/qbasic/FindDialog.vb` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/qbasic/DocumentPanel.vb:927 — src/qbasic/DocumentPanel.vb:927-935 | src/qbasic/DocumentPanel.vb:1035-1043 — 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, `src/qbasic/DocumentPanel.vb:1044` calls `Enter` and `src/qbasic/DocumentPanel.vb:936` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:770 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:770-778 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1849-1857 — 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) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2848 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2848-2856 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3955-3964 — 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) src/qbasic.compatibility/Video.vb:2042 — src/qbasic.compatibility/Video.vb:2042-2050 | src/qbasic/QBLib/Video.vb:2219-2227 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×6
  • Duplicated block (5 lines × 2) src/qbasic/Common.vb:719 — src/qbasic/Common.vb:719-723 | src/qbasic/Common.vb:731-735 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/qbasic/QBLib/Audio/WindowsAudio.vb:615 — src/qbasic/QBLib/Audio/WindowsAudio.vb:615-619 | src/qbasic/QBLib/Audio/WindowsAudio.vb:644-648 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/qbasic/Components/HorizontalListBoxControl.vb:105 — src/qbasic/Components/HorizontalListBoxControl.vb:105-109 | src/qbasic/Components/ListBoxControl.vb:93-98 — 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 (5 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/BoundScope.vb:161 — src/qbasic/QB/CodeAnalysis/Binding/BoundScope.vb:161-165 | src/qbasic/QB/CodeAnalysis/Binding/BoundScope.vb:176-180 — 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 (5 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:531 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:531-535 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:439-443 — before extracting anything, compare `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:571 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:571-575 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:488-492 — before extracting anything, compare `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×6
  • Duplicated block (6 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:6295 — src/qbasic/Basic/Interactive/Interactive.vb:6295-6300 | src/qbasic/Basic/Interactive/Interactive.vb:8539-8544 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/qbasic/Basic/Display/Display.vb:2066 — src/qbasic/Basic/Display/Display.vb:2066-2071 | src/qbasic/Basic/Display/Display.vb:2112-2117 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/qbasic/QBLib/Video.vb:1498 — src/qbasic/QBLib/Video.vb:1498-1503 | src/qbasic/QBLib/Video.vb:1544-1549 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/qbasic.compatibility/Video.vb:1226 — src/qbasic.compatibility/Video.vb:1226-1231 | src/qbasic.compatibility/Video.vb:1272-1277 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/qbasic/Components/CheckboxControl.vb:9 — src/qbasic/Components/CheckboxControl.vb:9-14 | src/qbasic/Components/RadioButtonControl.vb:9-14 — before extracting anything, compare `src/qbasic/Components/CheckboxControl.vb` and `src/qbasic/Components/RadioButtonControl.vb` as WHOLE FILES: 91% 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:755 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:755-763 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:676-681 — before extracting anything, compare `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×5
  • Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2198 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2198-2205 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2220-2227 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:700 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:700-707 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3722-3729 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/GetStatementSyntax.vb:50 — src/qbasic/QB/CodeAnalysis/Syntax/GetStatementSyntax.vb:50-57 | src/qbasic/QB/CodeAnalysis/Syntax/PutStatementSyntax.vb:39-46 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) src/qbasic/QBLib/Video.vb:2266 — src/qbasic/QBLib/Video.vb:2266-2273 | src/qbasic.compatibility/Video.vb:2099-2106 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/BoundGetStatement.vb:18 — src/qbasic/QB/CodeAnalysis/Binding/BoundGetStatement.vb:18-25 | src/qbasic/QB/CodeAnalysis/Binding/BoundLineStatement.vb:39-48 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×5
  • Edited copy of a member (6 corresponding lines) src/qbasic/QBLib/Video.vb:1293 — src/qbasic/QBLib/Video.vb:1293-1298 | src/qbasic/QBLib/Video.vb:1311-1316 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/BoundNodePrinter.vb:195 — src/qbasic/QB/CodeAnalysis/Binding/BoundNodePrinter.vb:195-202 | src/qbasic/QB/CodeAnalysis/Symbols/SymbolPrinter.vb:72-77 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/ComStatementSyntax.vb:7 — src/qbasic/QB/CodeAnalysis/Syntax/ComStatementSyntax.vb:7-12 | src/qbasic/QB/CodeAnalysis/Syntax/OnComGosubStatementSyntax.vb:9-16 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/KeyStatementSyntax.vb:23 — src/qbasic/QB/CodeAnalysis/Syntax/KeyStatementSyntax.vb:23-28 | src/qbasic/QB/CodeAnalysis/Syntax/OnKeyGosubStatementSyntax.vb:9-16 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/OnStrigGosubStatementSyntax.vb:9 — src/qbasic/QB/CodeAnalysis/Syntax/OnStrigGosubStatementSyntax.vb:9-16 | src/qbasic/QB/CodeAnalysis/Syntax/StrigStatementSyntax.vb:7-12 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×4
  • Duplicated block (12 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1516 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1516-1527 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1533-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.
  • Duplicated block (12 lines × 2) src/qbasic/AboutDialog.vb:76 — src/qbasic/AboutDialog.vb:76-87 | src/qbasic/WelcomeDialog.vb:81-92 — before extracting anything, compare `src/qbasic/AboutDialog.vb` and `src/qbasic/WelcomeDialog.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/qbasic/DocumentPanel.vb:164 — src/qbasic/DocumentPanel.vb:164-176 | src/qbasic/HelpPanel.vb:67-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3538 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:3538-3549 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:3562-3576 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×4
  • Duplicated block (8 lines × 2) src/qbasic/OpenDialog.vb:70 — src/qbasic/OpenDialog.vb:70-77 | src/qbasic/SaveAsDialog.vb:65-72 — before extracting anything, compare `src/qbasic/OpenDialog.vb` and `src/qbasic/SaveAsDialog.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2404 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2404-2411 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3904-3911 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/qbasic.compatibility/Devices.vb:229 — src/qbasic.compatibility/Devices.vb:229-236 | src/qbasic/Basic/VisualBasic/MKI.vb:222-229 — before extracting anything, compare `src/qbasic.compatibility/Devices.vb` and `src/qbasic/Basic/VisualBasic/MKI.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (8 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:388 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:388-395 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:495-502 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×3
  • Edited copy of a member (16 corresponding lines) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:463 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:463-481 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:360-384 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) src/qbasic/Common.vb:520 — src/qbasic/Common.vb:520-535 | src/qbasic/Common.vb:546-561 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:17521 — src/qbasic/Basic/Interactive/Interactive.vb:17521-17536 | src/qbasic/Basic/Interactive/Interactive.vb:17542-17557 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×3
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/qbasic/Basic/Display/Display.vb:1864 — src/qbasic/Basic/Display/Display.vb:1864-1881 | src/qbasic/Basic/Display/Display.vb:2233-2282 | src/qbasic/Basic/Display/Display.vb:2318-2343 | src/qbasic/Basic/Display/Display.vb:2349-2373 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/qbasic/Basic/Interactive/Interactive.vb:5665 — src/qbasic/Basic/Interactive/Interactive.vb:5665-5701 | src/qbasic/Basic/Interactive/Interactive.vb:10235-10280 | src/qbasic/Basic/Interactive/Interactive.vb:11186-11220 | src/qbasic/Basic/Interactive/Interactive.vb:14694-14731 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/qbasic/Basic/Interactive/Interactive.vb:6256 — src/qbasic/Basic/Interactive/Interactive.vb:6256-6344 | src/qbasic/Basic/Interactive/Interactive.vb:8520-9163 | src/qbasic/Basic/Interactive/Interactive.vb:10429-10526 | src/qbasic/Basic/Interactive/Interactive.vb:11988-12094 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×3
  • Edited copy of a member (11 corresponding lines) src/qbasic/DocumentPanel.vb:927 — src/qbasic/DocumentPanel.vb:927-937 | src/qbasic/DocumentPanel.vb:1035-1047 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) src/qbasic/Basic/Audio/SoundGenerator.vb:563 — src/qbasic/Basic/Audio/SoundGenerator.vb:563-573 | src/qbasic/Basic/Audio/SoundGenerator.vb:579-603 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1147 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1147-1157 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1486-1499 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×3
  • Duplicated block (32 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1724 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1724-1755 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1761-1792 — 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 (32 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:12260 — src/qbasic/Basic/Interactive/Interactive.vb:12260-12291 | src/qbasic/Basic/Interactive/Interactive.vb:13580-13611 — 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 (32 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:349 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:349-380 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:244-275 — before extracting anything, compare `src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb` and `src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×3
  • Duplicated block (22 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:10257 — src/qbasic/Basic/Interactive/Interactive.vb:10257-10278 | src/qbasic/Basic/Interactive/Interactive.vb:16913-16934 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (22 lines × 2) src/qbasic/Basic/Display/Display.vb:678 — src/qbasic/Basic/Display/Display.vb:678-699 | src/qbasic/Basic/Display/Display.vb:712-733 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (22 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:12003 — src/qbasic/Basic/Interactive/Interactive.vb:12003-12024 | src/qbasic/Basic/Interactive/Interactive.vb:12025-12046 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×3
  • Duplicated block (20 lines × 2) src/qbasic/Basic/Tokenizer/Decode.vb:392 — src/qbasic/Basic/Tokenizer/Decode.vb:392-411 | src/qbasic/Basic/Tokenizer/Decode.vb:443-462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (20 lines × 2) src/qbasic.compatibility/Devices.vb:349 — src/qbasic.compatibility/Devices.vb:349-368 | src/qbasic/Basic/VisualBasic/MKI.vb:342-361 — before extracting anything, compare `src/qbasic.compatibility/Devices.vb` and `src/qbasic/Basic/VisualBasic/MKI.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (20 lines × 2) src/qbasic/QB/CodeAnalysis/Symbols/GlobalVariableSymbol.vb:9 — src/qbasic/QB/CodeAnalysis/Symbols/GlobalVariableSymbol.vb:9-28 | src/qbasic/QB/CodeAnalysis/Symbols/LocalVariableSymbol.vb:9-33 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×3
  • Duplicated block (19 lines × 2) src/qbasic/Basic/Display/Display.vb:744 — src/qbasic/Basic/Display/Display.vb:744-762 | src/qbasic/Basic/Display/Display.vb:767-785 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:6812 — src/qbasic/Basic/Interactive/Interactive.vb:6812-6830 | src/qbasic/Basic/Interactive/Interactive.vb:15714-15732 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19 lines × 2) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3635 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:3635-3653 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:3745-3763 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×3
  • Duplicated block (15 lines × 3) src/qbasic/Basic/Interactive/Interactive.vb:5665 — src/qbasic/Basic/Interactive/Interactive.vb:5665-5679 | src/qbasic/Basic/Interactive/Interactive.vb:11190-11204 | src/qbasic/Basic/Interactive/Interactive.vb:14698-14712 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/qbasic/Basic/Interactive/Interactive.vb:5665` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/qbasic/Basic/Interactive/Interactive.vb:5660` calls `ExecuteChDir` and `src/qbasic/Basic/Interactive/Interactive.vb:11188` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 3) src/qbasic/DisplayDialog.vb:76 — src/qbasic/DisplayDialog.vb:76-90 | src/qbasic/FindDialog.vb:49-63 | src/qbasic/HelpPathDialog.vb:36-50 — before extracting anything, compare `src/qbasic/DisplayDialog.vb` and `src/qbasic/FindDialog.vb` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 × 3) src/qbasic/Basic/Interactive/Interactive.vb:10235 — src/qbasic/Basic/Interactive/Interactive.vb:10235-10249 | src/qbasic/Basic/Interactive/Interactive.vb:11186-11200 | src/qbasic/Basic/Interactive/Interactive.vb:14694-14708 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×3
  • Duplicated block (14 lines × 2) src/qbasic/Basic/Display/Display.vb:5163 — src/qbasic/Basic/Display/Display.vb:5163-5176 | src/qbasic/Basic/Display/Display.vb:5201-5214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/qbasic/Basic/Input/KeyEventArgs.vb:186 — src/qbasic/Basic/Input/KeyEventArgs.vb:186-200 | src/qbasic/Basic/Input/KeyEventArgs.vb:274-287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:17614 — src/qbasic/Basic/Interactive/Interactive.vb:17614-17627 | src/qbasic/Basic/Interactive/Interactive.vb:17633-17646 — 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.
D1 · Cyclomatic Complexity · Video.InputAsync (cyclomatic 24) · ×2
  • Video.InputAsync (cyclomatic 24) src/qbasic/QBLib/Video.vb:1815 — Video.InputAsync 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. This is NOT this file's highest cyclomatic complexity: Video.PALETTE (cyclomatic 69) 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.
  • Video.InputAsync (cyclomatic 24) src/qbasic.compatibility/Video.vb:1616 — Video.InputAsync 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. This shape REPEATS in the file: one other method here (Video.LineInputAsync) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Evaluator.Assign (cyclomatic 20) · ×2
  • Evaluator.Assign (cyclomatic 20) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4909 — Evaluator.Assign 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.
  • Evaluator.Assign (cyclomatic 20) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4994 — Evaluator.Assign 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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×2
  • Repeated repair: src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:77 — src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is Lowerer.RewriteIfStatement at line 77), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “More file io stuff; fixed some issues found in the process.”; “Fixed FOR issue.”; “Fixed stepper in FOR not working”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb:161 — src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is DiagnosticBag.ReportNextWithoutFor at line 161), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “More file io stuff; fixed some issues found in the process.”; “Fixed out-of-scope GOTO (in FOR); `DOTNET FORMAT`”; “Fixed duplicate label due to adding separate `NEXT` bound statement; improved NEXT without FOR; modified several tests - mostly focused around floating-point shenanigans”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-01-17..2026-04-17, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-17 12:29:34 -05:00' --until='2026-04-17 12:29:34 -05:00' --full-history --no-merges -- src/qbasic/QB/CodeAnalysis/DiagnosticBag.vb`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D4 · Code Duplication · Edited copy of a member (37 corresponding lines) · ×2
  • Edited copy of a member (37 corresponding lines) src/qbasic/ChangeDialog.vb:29 — src/qbasic/ChangeDialog.vb:29-77 | src/qbasic/FindDialog.vb:27-63 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (37 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:577 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:577-613 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3295-3331 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (32 corresponding lines) · ×2
  • Edited copy of a member (32 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2364 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2364-2395 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3495-3543 — 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.
  • Edited copy of a member (32 corresponding lines) src/qbasic/Basic/VisualBasic/MKI.vb:7 — src/qbasic/Basic/VisualBasic/MKI.vb:7-42 | src/qbasic.compatibility/Devices.vb:17-48 — 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 (29 corresponding lines) · ×2
  • Edited copy of a member (29 corresponding lines) src/qbasic/QBLib/Audio/WindowsAudio.vb:382 — src/qbasic/QBLib/Audio/WindowsAudio.vb:382-424 | src/qbasic/QBLib/Audio/WindowsAudio.vb:629-657 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) src/qbasic/Basic/Display/Display.vb:5142 — src/qbasic/Basic/Display/Display.vb:5142-5180 | src/qbasic/Basic/Display/Display.vb:5186-5214 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×2
  • Edited copy of a member (15 corresponding lines) src/qbasic/AboutDialog.vb:38 — src/qbasic/AboutDialog.vb:38-53 | src/qbasic/WelcomeDialog.vb:44-58 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2263 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:2263-2277 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:2281-2302 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×2
  • Edited copy of a member (22 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:16580 — src/qbasic/Basic/Interactive/Interactive.vb:16580-16601 | src/qbasic/Basic/Interactive/Interactive.vb:16699-16725 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:946 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:946-967 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3260-3286 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×2
  • Edited copy of a member (18 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:16972 — src/qbasic/Basic/Interactive/Interactive.vb:16972-16989 | src/qbasic/Basic/Interactive/Interactive.vb:16994-17016 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2034 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2034-2051 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2055-2072 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×2
  • Edited copy of a member (14 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1516 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1516-1529 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1533-1546 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/CircleStatementSyntax.vb:7 — src/qbasic/QB/CodeAnalysis/Syntax/CircleStatementSyntax.vb:7-24 | src/qbasic/QB/CodeAnalysis/Syntax/PaintStatementSyntax.vb:7-20 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×2
  • Edited copy of a member (10 corresponding lines) src/qbasic/Components/Control.vb:122 — src/qbasic/Components/Control.vb:122-131 | src/qbasic/Components/Control.vb:153-163 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/PresetStatementSyntax.vb:16 — src/qbasic/QB/CodeAnalysis/Syntax/PresetStatementSyntax.vb:16-25 | src/qbasic/QB/CodeAnalysis/Syntax/PsetStatementSyntax.vb:16-25 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (42 lines × 2) · ×2
  • Duplicated block (42 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:10615 — src/qbasic/Basic/Interactive/Interactive.vb:10615-10656 | src/qbasic/Basic/Interactive/Interactive.vb:15792-15833 — 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 (42 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:7974 — src/qbasic/Basic/Interactive/Interactive.vb:7974-8015 | src/qbasic/Basic/Interactive/Interactive.vb:8075-8116 — 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, `src/qbasic/Basic/Interactive/Interactive.vb:8074` calls `m_interpreter`, `Statements` and `src/qbasic/Basic/Interactive/Interactive.vb:7973` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×2
  • Duplicated block (31 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:16154 — src/qbasic/Basic/Interactive/Interactive.vb:16154-16184 | src/qbasic/Basic/Interactive/Interactive.vb:16217-16247 — 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) src/qbasic/Program.vb:479 — src/qbasic/Program.vb:479-509 | src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:420-450 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×2
  • Duplicated block (25 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:12402 — src/qbasic/Basic/Interactive/Interactive.vb:12402-12426 | src/qbasic/Basic/Interactive/Interactive.vb:12460-12484 — 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) src/qbasic/Basic/Display/Display.vb:2650 — src/qbasic/Basic/Display/Display.vb:2650-2674 | src/qbasic/Basic/Display/Display.vb:2690-2714 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19–26 lines × 2) · ×2
  • Duplicated block (19–26 lines × 2) src/qbasic/Basic/VisualBasic/MKI.vb:69 — src/qbasic/Basic/VisualBasic/MKI.vb:69-94 | src/qbasic/QBLib/Core.vb:585-603 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (19–26 lines × 2) src/qbasic/Basic/VisualBasic/MKI.vb:146 — src/qbasic/Basic/VisualBasic/MKI.vb:146-171 | src/qbasic/QBLib/Core.vb:773-791 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×2
  • Duplicated block (24 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:16127 — src/qbasic/Basic/Interactive/Interactive.vb:16127-16150 | src/qbasic/Basic/Interactive/Interactive.vb:16190-16213 — 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 (24 lines × 2) src/qbasic/QBLib/Video.vb:1673 — src/qbasic/QBLib/Video.vb:1673-1696 | src/qbasic/QBLib/Video.vb:1700-1723 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×2
  • Duplicated block (18 lines × 2) src/qbasic/OpenDialog.vb:91 — src/qbasic/OpenDialog.vb:91-108 | src/qbasic/SaveAsDialog.vb:76-93 — before extracting anything, compare `src/qbasic/OpenDialog.vb` and `src/qbasic/SaveAsDialog.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (18 lines × 2) src/qbasic.compatibility/Devices.vb:130 — src/qbasic.compatibility/Devices.vb:130-147 | src/qbasic/Basic/VisualBasic/MKI.vb:124-141 — before extracting anything, compare `src/qbasic.compatibility/Devices.vb` and `src/qbasic/Basic/VisualBasic/MKI.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 · Duplicated block (18 lines × 5) · ×2
  • Duplicated block (18 lines × 5) src/qbasic/NewFunctionDialog.vb:36 — src/qbasic/NewFunctionDialog.vb:36-53 | src/qbasic/NewSubDialog.vb:36-53 | src/qbasic/OpenDialog.vb:99-116 | src/qbasic/PrintDialog.vb:48-65 | src/qbasic/SaveAsDialog.vb:84-101 — before extracting anything, compare `src/qbasic/NewFunctionDialog.vb` and `src/qbasic/NewSubDialog.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (18 lines × 5) src/qbasic/Basic/Parser/Dialect/Parser.Dialect.AmigaBasic.vb:110 — src/qbasic/Basic/Parser/Dialect/Parser.Dialect.AmigaBasic.vb:110-127 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.GwBasic.vb:211-228 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.Hybrid.vb:133-150 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.Qbasic.vb:117-134 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.TinyBasic.vb:111-128 — before extracting anything, compare `src/qbasic/Basic/Parser/Dialect/Parser.Dialect.AmigaBasic.vb` and `src/qbasic/Basic/Parser/Dialect/Parser.Dialect.GwBasic.vb` as WHOLE FILES: 85% 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×2
  • Duplicated block (16 lines × 2) src/qbasic/AboutDialog.vb:67 — src/qbasic/AboutDialog.vb:67-82 | src/qbasic/MessageDialog.vb:63-78 — before extracting anything, compare `src/qbasic/AboutDialog.vb` and `src/qbasic/MessageDialog.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:7955 — src/qbasic/Basic/Interactive/Interactive.vb:7955-7970 | src/qbasic/Basic/Interactive/Interactive.vb:8055-8070 — 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, `src/qbasic/Basic/Interactive/Interactive.vb:8054` calls `m_interpreter`, `Statements` and `src/qbasic/Basic/Interactive/Interactive.vb:7954` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) src/qbasic/AboutDialog.vb:66 — src/qbasic/AboutDialog.vb:66-74 | src/qbasic/MessageDialog.vb:62-70 | src/qbasic/WelcomeDialog.vb:71-79 — before extracting anything, compare `src/qbasic/AboutDialog.vb` and `src/qbasic/MessageDialog.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:362 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:362-370 | src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:238-246 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:257-265 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×2
  • Duplicated block (9–10 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:10464 — src/qbasic/Basic/Interactive/Interactive.vb:10464-10472 | src/qbasic/Basic/Interactive/Interactive.vb:11994-12003 — 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–10 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1012 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1012-1021 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1032-1040 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (7–9 lines × 2) · ×2
  • Duplicated block (7–9 lines × 2) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3656 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:3656-3664 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:3701-3707 — 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–9 lines × 2) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3766 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:3766-3774 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:3809-3815 — 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.
D1 · Cyclomatic Complexity · QBasic.OnUserUpdate (cyclomatic 379) · ×1
  • QBasic.OnUserUpdate (cyclomatic 379) src/qbasic/Program.vb:1176 — QBasic.OnUserUpdate has cyclomatic complexity 379 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.InteractiveProcessKey (cyclomatic 289) · ×1
  • Interactive.InteractiveProcessKey (cyclomatic 289) src/qbasic/Basic/Interactive/Interactive.vb:1119 — Interactive.InteractiveProcessKey has cyclomatic complexity 289 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Evaluator.EvaluateBinaryExpression (cyclomatic 276) · ×1
  • Evaluator.EvaluateBinaryExpression (cyclomatic 276) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3872 — Evaluator.EvaluateBinaryExpression has cyclomatic complexity 276 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Evaluator.EvaluateStatement (cyclomatic 275) · ×1
  • Evaluator.EvaluateStatement (cyclomatic 275) src/qbasic/QB/CodeAnalysis/Evaluator.vb:510 — Evaluator.EvaluateStatement has cyclomatic complexity 275 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecutePrimary (cyclomatic 259) · ×1
  • Interactive.ExecutePrimary (cyclomatic 259) src/qbasic/Basic/Interactive/Interactive.vb:3199 — Interactive.ExecutePrimary has cyclomatic complexity 259 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · ConstantFolding.Fold (cyclomatic 257) · ×1
  • ConstantFolding.Fold (cyclomatic 257) src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb:44 — ConstantFolding.Fold has cyclomatic complexity 257 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Decode.ProcessInternal (cyclomatic 247) · ×1
  • Decode.ProcessInternal (cyclomatic 247) src/qbasic/Basic/Tokenizer/Decode.vb:12 — Decode.ProcessInternal has cyclomatic complexity 247 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ProcessKeyInternal (cyclomatic 221) · ×1
  • Interactive.ProcessKeyInternal (cyclomatic 221) src/qbasic/Basic/Interactive/Interactive.vb:863 — Interactive.ProcessKeyInternal 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.
D1 · Cyclomatic Complexity · Evaluator.EvaluateCallExpression (cyclomatic 204) · ×1
  • Evaluator.EvaluateCallExpression (cyclomatic 204) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4192 — Evaluator.EvaluateCallExpression has cyclomatic complexity 204 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · InternalPage.SetPalette (cyclomatic 180) · ×1
  • InternalPage.SetPalette (cyclomatic 180) src/qbasic/Basic/Display/Display.vb:543 — InternalPage.SetPalette has cyclomatic complexity 180 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteStringPrimary (cyclomatic 140) · ×1
  • Interactive.ExecuteStringPrimary (cyclomatic 140) src/qbasic/Basic/Interactive/Interactive.vb:2308 — Interactive.ExecuteStringPrimary has cyclomatic complexity 140 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Parser.ParseStatement (cyclomatic 126) · ×1
  • Parser.ParseStatement (cyclomatic 126) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:127 — Parser.ParseStatement has cyclomatic complexity 126 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecutePut (cyclomatic 117) · ×1
  • Interactive.ExecutePut (cyclomatic 117) src/qbasic/Basic/Interactive/Interactive.vb:13632 — Interactive.ExecutePut has cyclomatic complexity 117 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Parser.PeekToken (cyclomatic 117) · ×1
  • Parser.PeekToken (cyclomatic 117) src/qbasic/Basic/Parser/Parser.vb:398 — Parser.PeekToken has cyclomatic complexity 117 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Conversion.Classify (cyclomatic 106) · ×1
  • Conversion.Classify (cyclomatic 106) src/qbasic/QB/CodeAnalysis/Binding/Conversion.vb:27 — Conversion.Classify has cyclomatic complexity 106 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteGet (cyclomatic 104) · ×1
  • Interactive.ExecuteGet (cyclomatic 104) src/qbasic/Basic/Interactive/Interactive.vb:8515 — Interactive.ExecuteGet has cyclomatic complexity 104 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteStatement (cyclomatic 103) · ×1
  • Interactive.ExecuteStatement (cyclomatic 103) src/qbasic/Basic/Interactive/Interactive.vb:5173 — Interactive.ExecuteStatement has cyclomatic complexity 103 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Program.HandleCommandLineArguments (cyclomatic 90) · ×1
  • Program.HandleCommandLineArguments (cyclomatic 90) src/qbasic/Program.vb:121 — Program.HandleCommandLineArguments has cyclomatic complexity 90 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecutePrint (cyclomatic 86) · ×1
  • Interactive.ExecutePrint (cyclomatic 86) src/qbasic/Basic/Interactive/Interactive.vb:12312 — Interactive.ExecutePrint has cyclomatic complexity 86 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · QBasic.GetPressed (cyclomatic 82) · ×1
  • QBasic.GetPressed (cyclomatic 82) src/qbasic/Program.vb:2160 — QBasic.GetPressed has cyclomatic complexity 82 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Evaluator.PlayCommand (cyclomatic 81) · ×1
  • Evaluator.PlayCommand (cyclomatic 81) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5804 — Evaluator.PlayCommand has cyclomatic complexity 81 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecutePrintUsing (cyclomatic 80) · ×1
  • Interactive.ExecutePrintUsing (cyclomatic 80) src/qbasic/Basic/Interactive/Interactive.vb:12698 — Interactive.ExecutePrintUsing has cyclomatic complexity 80 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Common.GetChar (cyclomatic 78) · ×1
  • Common.GetChar (cyclomatic 78) src/qbasic/Common.vb:66 — Common.GetChar has cyclomatic complexity 78 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · DocumentPanel.ProcessKeys (cyclomatic 78) · ×1
  • DocumentPanel.ProcessKeys (cyclomatic 78) src/qbasic/DocumentPanel.vb:258 — DocumentPanel.ProcessKeys has cyclomatic complexity 78 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · TextboxControl.OnKeyPress (cyclomatic 75) · ×1
  • TextboxControl.OnKeyPress (cyclomatic 75) src/qbasic/Components/TextBoxControl.vb:37 — TextboxControl.OnKeyPress has cyclomatic complexity 75 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteDraw (cyclomatic 72) · ×1
  • Interactive.ExecuteDraw (cyclomatic 72) src/qbasic/Basic/Interactive/Interactive.vb:18064 — Interactive.ExecuteDraw has cyclomatic complexity 72 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Lexer.ReadIdentifierOrKeyword (cyclomatic 66) · ×1
  • Lexer.ReadIdentifierOrKeyword (cyclomatic 66) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:551 — Lexer.ReadIdentifierOrKeyword 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.
D1 · Cyclomatic Complexity · Video.INKEY (cyclomatic 66) · ×1
  • Video.INKEY (cyclomatic 66) src/qbasic/QBLib/Video.vb:2095 — Video.INKEY 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. This is NOT this file's highest cyclomatic complexity: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Interactive.InternalInputCompletedProcess (cyclomatic 65) · ×1
  • Interactive.InternalInputCompletedProcess (cyclomatic 65) src/qbasic/Basic/Interactive/Interactive.vb:17020 — Interactive.InternalInputCompletedProcess has cyclomatic complexity 65 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Console.INKEY (cyclomatic 62) · ×1
  • Console.INKEY (cyclomatic 62) src/qbasic.compatibility/Console.vb:93 — Console.INKEY has cyclomatic complexity 62 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteWidth (cyclomatic 61) · ×1
  • Interactive.ExecuteWidth (cyclomatic 61) src/qbasic/Basic/Interactive/Interactive.vb:16251 — Interactive.ExecuteWidth has cyclomatic complexity 61 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.InternalProcessText (cyclomatic 61) · ×1
  • Interactive.InternalProcessText (cyclomatic 61) src/qbasic/Basic/Interactive/Interactive.vb:18676 — Interactive.InternalProcessText has cyclomatic complexity 61 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · WindowsFileSystem.Input (cyclomatic 59) · ×1
  • WindowsFileSystem.Input (cyclomatic 59) src/qbasic/Implementation/WindowsFileSystem.vb:195 — WindowsFileSystem.Input 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.
D1 · Cyclomatic Complexity · DocumentPanel.WordRightAction (cyclomatic 54) · ×1
  • DocumentPanel.WordRightAction (cyclomatic 54) src/qbasic/DocumentPanel.vb:814 — DocumentPanel.WordRightAction has cyclomatic complexity 54 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Video.CIRCLE (cyclomatic 54) · ×1
  • Video.CIRCLE (cyclomatic 54) src/qbasic/QBLib/Video.vb:1341 — Video.CIRCLE has cyclomatic complexity 54 (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: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Video.CIRCLE (cyclomatic 51) · ×1
  • Video.CIRCLE (cyclomatic 51) src/qbasic.compatibility/Video.vb:1080 — Video.CIRCLE has cyclomatic complexity 51 (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: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Display.Circle (cyclomatic 50) · ×1
  • Display.Circle (cyclomatic 50) src/qbasic/Basic/Display/Display.vb:1919 — Display.Circle has cyclomatic complexity 50 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Display.RowCount.Set (cyclomatic 48) · ×1
  • Display.RowCount.Set (cyclomatic 48) src/qbasic/Basic/Display/Display.vb:2487 — Display.RowCount.Set has cyclomatic complexity 48 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ProcessInterpreter (cyclomatic 47) · ×1
  • Interactive.ProcessInterpreter (cyclomatic 47) src/qbasic/Basic/Interactive/Interactive.vb:1415 — Interactive.ProcessInterpreter has cyclomatic complexity 47 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteOpen (cyclomatic 47) · ×1
  • Interactive.ExecuteOpen (cyclomatic 47) src/qbasic/Basic/Interactive/Interactive.vb:11697 — Interactive.ExecuteOpen has cyclomatic complexity 47 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Video.LINE (cyclomatic 47) · ×1
  • Video.LINE (cyclomatic 47) src/qbasic/QBLib/Video.vb:1611 — Video.LINE has cyclomatic complexity 47 (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: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Interactive.ExecuteComparison (cyclomatic 46) · ×1
  • Interactive.ExecuteComparison (cyclomatic 46) src/qbasic/Basic/Interactive/Interactive.vb:2981 — Interactive.ExecuteComparison has cyclomatic complexity 46 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Display.ColumnCount.Set (cyclomatic 45) · ×1
  • Display.ColumnCount.Set (cyclomatic 45) src/qbasic/Basic/Display/Display.vb:2629 — Display.ColumnCount.Set 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.
D1 · Cyclomatic Complexity · Form.OnKeyPress (cyclomatic 45) · ×1
  • Form.OnKeyPress (cyclomatic 45) src/qbasic/Components/Form.vb:51 — Form.OnKeyPress 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.
D1 · Cyclomatic Complexity · Evaluator.ParseNumericFormat (cyclomatic 45) · ×1
  • Evaluator.ParseNumericFormat (cyclomatic 45) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2710 — Evaluator.ParseNumericFormat 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.
D1 · Cyclomatic Complexity · Evaluator.FormatNumericWithSpec (cyclomatic 45) · ×1
  • Evaluator.FormatNumericWithSpec (cyclomatic 45) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2833 — Evaluator.FormatNumericWithSpec 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.
D1 · Cyclomatic Complexity · BoundBinaryOperator.Initialize (cyclomatic 44) · ×1
  • BoundBinaryOperator.Initialize (cyclomatic 44) src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb:226 — BoundBinaryOperator.Initialize 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteCircle (cyclomatic 43) · ×1
  • Interactive.ExecuteCircle (cyclomatic 43) src/qbasic/Basic/Interactive/Interactive.vb:6254 — Interactive.ExecuteCircle 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.
D1 · Cyclomatic Complexity · Binder.BindCallExpression (cyclomatic 43) · ×1
  • Binder.BindCallExpression (cyclomatic 43) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:900 — Binder.BindCallExpression 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. This is NOT this file's highest cyclomatic complexity: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · MainMenu.ProcessKeys (cyclomatic 42) · ×1
  • MainMenu.ProcessKeys (cyclomatic 42) src/qbasic/MainMenu.vb:195 — MainMenu.ProcessKeys 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.
D1 · Cyclomatic Complexity · DocumentPanel.WordLeftAction (cyclomatic 41) · ×1
  • DocumentPanel.WordLeftAction (cyclomatic 41) src/qbasic/DocumentPanel.vb:746 — DocumentPanel.WordLeftAction has cyclomatic complexity 41 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · SyntaxNode.PrettyPrint2 (cyclomatic 40) · ×1
  • SyntaxNode.PrettyPrint2 (cyclomatic 40) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:290 — SyntaxNode.PrettyPrint2 has cyclomatic complexity 40 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Display.Color (cyclomatic 39) · ×1
  • Display.Color (cyclomatic 39) src/qbasic/Basic/Display/Display.vb:3982 — Display.Color 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.
D1 · Cyclomatic Complexity · Evaluator.EvaluateOpenStatement (cyclomatic 38) · ×1
  • Evaluator.EvaluateOpenStatement (cyclomatic 38) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5067 — Evaluator.EvaluateOpenStatement 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteInput (cyclomatic 37) · ×1
  • Interactive.ExecuteInput (cyclomatic 37) src/qbasic/Basic/Interactive/Interactive.vb:9910 — Interactive.ExecuteInput 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteScreen (cyclomatic 37) · ×1
  • Interactive.ExecuteScreen (cyclomatic 37) src/qbasic/Basic/Interactive/Interactive.vb:15053 — Interactive.ExecuteScreen 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.
D1 · Cyclomatic Complexity · Interactive.CalculatePosition (cyclomatic 37) · ×1
  • Interactive.CalculatePosition (cyclomatic 37) src/qbasic/Basic/Interactive/Interactive.vb:18457 — Interactive.CalculatePosition 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteLet (cyclomatic 36) · ×1
  • Interactive.ExecuteLet (cyclomatic 36) src/qbasic/Basic/Interactive/Interactive.vb:10284 — Interactive.ExecuteLet 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.
D1 · Cyclomatic Complexity · Interactive.InternalLoadCompleted (cyclomatic 35) · ×1
  • Interactive.InternalLoadCompleted (cyclomatic 35) src/qbasic/Basic/Interactive/Interactive.vb:6024 — Interactive.InternalLoadCompleted has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Display.Pset (cyclomatic 34) · ×1
  • Display.Pset (cyclomatic 34) src/qbasic/Basic/Display/Display.vb:2231 — Display.Pset 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.
D1 · Cyclomatic Complexity · Display.Paint (cyclomatic 33) · ×1
  • Display.Paint (cyclomatic 33) src/qbasic/Basic/Display/Display.vb:1601 — Display.Paint 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.
D1 · Cyclomatic Complexity · OpenDialog.ProcessKeys (cyclomatic 33) · ×1
  • OpenDialog.ProcessKeys (cyclomatic 33) src/qbasic/OpenDialog.vb:143 — OpenDialog.ProcessKeys 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.
D1 · Cyclomatic Complexity · Binder.BindGlobalScope (cyclomatic 33) · ×1
  • Binder.BindGlobalScope (cyclomatic 33) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:43 — Binder.BindGlobalScope 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. This is NOT this file's highest cyclomatic complexity: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Lexer.ReadToken (cyclomatic 33) · ×1
  • Lexer.ReadToken (cyclomatic 33) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:180 — Lexer.ReadToken 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteClear (cyclomatic 32) · ×1
  • Interactive.ExecuteClear (cyclomatic 32) src/qbasic/Basic/Interactive/Interactive.vb:6373 — Interactive.ExecuteClear has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · DocumentPanel.HandleSelection (cyclomatic 32) · ×1
  • DocumentPanel.HandleSelection (cyclomatic 32) src/qbasic/DocumentPanel.vb:444 — DocumentPanel.HandleSelection has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Binder.BindIdentifierExpression (cyclomatic 31) · ×1
  • Binder.BindIdentifierExpression (cyclomatic 31) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1920 — Binder.BindIdentifierExpression 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: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Interactive.ExecuteLineInput (cyclomatic 30) · ×1
  • Interactive.ExecuteLineInput (cyclomatic 30) src/qbasic/Basic/Interactive/Interactive.vb:10668 — Interactive.ExecuteLineInput 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.
D1 · Cyclomatic Complexity · Interactive.ExecutePaint (cyclomatic 30) · ×1
  • Interactive.ExecutePaint (cyclomatic 30) src/qbasic/Basic/Interactive/Interactive.vb:11986 — Interactive.ExecutePaint 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.
D1 · Cyclomatic Complexity · JsEmitter.EmitBinaryExpression (cyclomatic 30) · ×1
  • JsEmitter.EmitBinaryExpression (cyclomatic 30) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:334 — JsEmitter.EmitBinaryExpression 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.
D1 · Cyclomatic Complexity · VbEmitter.EmitBinaryExpression (cyclomatic 30) · ×1
  • VbEmitter.EmitBinaryExpression (cyclomatic 30) src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:237 — VbEmitter.EmitBinaryExpression 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.
D1 · Cyclomatic Complexity · Evaluator.EvaluateArrayAccessExpressionForAssignment (cyclomatic 30) · ×1
  • Evaluator.EvaluateArrayAccessExpressionForAssignment (cyclomatic 30) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3732 — Evaluator.EvaluateArrayAccessExpressionForAssignment 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.
D1 · Cyclomatic Complexity · Display.Screen (cyclomatic 29) · ×1
  • Display.Screen (cyclomatic 29) src/qbasic/Basic/Display/Display.vb:2752 — Display.Screen 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteLine (cyclomatic 29) · ×1
  • Interactive.ExecuteLine (cyclomatic 29) src/qbasic/Basic/Interactive/Interactive.vb:10427 — Interactive.ExecuteLine 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteLocate (cyclomatic 29) · ×1
  • Interactive.ExecuteLocate (cyclomatic 29) src/qbasic/Basic/Interactive/Interactive.vb:10530 — Interactive.ExecuteLocate 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.
D1 · Cyclomatic Complexity · Interactive.FormatNumber (cyclomatic 29) · ×1
  • Interactive.FormatNumber (cyclomatic 29) src/qbasic/Basic/Interactive/Interactive.vb:13076 — Interactive.FormatNumber 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.
D1 · Cyclomatic Complexity · MsilEmitter.EmitBinaryExpression (cyclomatic 29) · ×1
  • MsilEmitter.EmitBinaryExpression (cyclomatic 29) src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:219 — MsilEmitter.EmitBinaryExpression 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.
D1 · Cyclomatic Complexity · GraphBuilder.Build (cyclomatic 27) · ×1
  • GraphBuilder.Build (cyclomatic 27) src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb:163 — GraphBuilder.Build 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.
D1 · Cyclomatic Complexity · Evaluator.EvaluateArrayAccessExpression (cyclomatic 27) · ×1
  • Evaluator.EvaluateArrayAccessExpression (cyclomatic 27) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3632 — Evaluator.EvaluateArrayAccessExpression 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.
D1 · Cyclomatic Complexity · Evaluator.EvaluateConversionExpression (cyclomatic 27) · ×1
  • Evaluator.EvaluateConversionExpression (cyclomatic 27) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4866 — Evaluator.EvaluateConversionExpression 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.
D1 · Cyclomatic Complexity · Parser.ParseForStatement (cyclomatic 27) · ×1
  • Parser.ParseForStatement (cyclomatic 27) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1537 — Parser.ParseForStatement 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteColor (cyclomatic 26) · ×1
  • Interactive.ExecuteColor (cyclomatic 26) src/qbasic/Basic/Interactive/Interactive.vb:6480 — Interactive.ExecuteColor 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.
D1 · Cyclomatic Complexity · DocumentPanel.Render (cyclomatic 26) · ×1
  • DocumentPanel.Render (cyclomatic 26) src/qbasic/DocumentPanel.vb:145 — DocumentPanel.Render 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteKey (cyclomatic 25) · ×1
  • Interactive.ExecuteKey (cyclomatic 25) src/qbasic/Basic/Interactive/Interactive.vb:10121 — Interactive.ExecuteKey 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.
D1 · Cyclomatic Complexity · Lexer.ReadNumberToken (cyclomatic 25) · ×1
  • Lexer.ReadNumberToken (cyclomatic 25) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:306 — Lexer.ReadNumberToken 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.
D1 · Cyclomatic Complexity · Parser.ParseNameOrCallExpression (cyclomatic 25) · ×1
  • Parser.ParseNameOrCallExpression (cyclomatic 25) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:4237 — Parser.ParseNameOrCallExpression 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.
D1 · Cyclomatic Complexity · SyntaxNode.PrettyPrint (cyclomatic 25) · ×1
  • SyntaxNode.PrettyPrint (cyclomatic 25) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:202 — SyntaxNode.PrettyPrint 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.
D1 · Cyclomatic Complexity · SaveAsDialog.ProcessKeys (cyclomatic 25) · ×1
  • SaveAsDialog.ProcessKeys (cyclomatic 25) src/qbasic/SaveAsDialog.vb:130 — SaveAsDialog.ProcessKeys 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.
D1 · Cyclomatic Complexity · SavePrompt.ProcessKeys (cyclomatic 25) · ×1
  • SavePrompt.ProcessKeys (cyclomatic 25) src/qbasic/SavePrompt.vb:64 — SavePrompt.ProcessKeys 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteView (cyclomatic 24) · ×1
  • Interactive.ExecuteView (cyclomatic 24) src/qbasic/Basic/Interactive/Interactive.vb:15857 — Interactive.ExecuteView 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.
D1 · Cyclomatic Complexity · Binder.BindMemberAccessExpression (cyclomatic 24) · ×1
  • Binder.BindMemberAccessExpression (cyclomatic 24) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1068 — Binder.BindMemberAccessExpression 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. This is NOT this file's highest cyclomatic complexity: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Video.LineInputAsync (cyclomatic 24) · ×1
  • Video.LineInputAsync (cyclomatic 24) src/qbasic.compatibility/Video.vb:1470 — Video.LineInputAsync 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. This shape REPEATS in the file: one other method here (Video.InputAsync) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file's highest cyclomatic complexity: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · HorizontalListboxControl.OnKeyPress (cyclomatic 23) · ×1
  • HorizontalListboxControl.OnKeyPress (cyclomatic 23) src/qbasic/Components/HorizontalListBoxControl.vb:38 — HorizontalListboxControl.OnKeyPress 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.
D1 · Cyclomatic Complexity · MainMenu.Render (cyclomatic 23) · ×1
  • MainMenu.Render (cyclomatic 23) src/qbasic/MainMenu.vb:54 — MainMenu.Render 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.
D1 · Cyclomatic Complexity · Binder.BindInputStatement (cyclomatic 23) · ×1
  • Binder.BindInputStatement (cyclomatic 23) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1575 — Binder.BindInputStatement 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. This is NOT this file's highest cyclomatic complexity: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Interactive.ExecuteMid (cyclomatic 22) · ×1
  • Interactive.ExecuteMid (cyclomatic 22) src/qbasic/Basic/Interactive/Interactive.vb:11078 — Interactive.ExecuteMid 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.
D1 · Cyclomatic Complexity · Evaluator.CheckKeyPressed (cyclomatic 22) · ×1
  • Evaluator.CheckKeyPressed (cyclomatic 22) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1970 — Evaluator.CheckKeyPressed 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.
D1 · Cyclomatic Complexity · IndentedSyntaxWriter.RewriteGotoGosubUsingSyntaxTree (cyclomatic 22) · ×1
  • IndentedSyntaxWriter.RewriteGotoGosubUsingSyntaxTree (cyclomatic 22) src/qbasic/QB/CodeAnalysis/Syntax/GwBasicToQBasicRewriter.vb:229 — IndentedSyntaxWriter.RewriteGotoGosubUsingSyntaxTree 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.
D1 · Cyclomatic Complexity · Display.SetPalette (cyclomatic 21) · ×1
  • Display.SetPalette (cyclomatic 21) src/qbasic/Basic/Display/Display.vb:4409 — Display.SetPalette 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.
D1 · Cyclomatic Complexity · Interactive.InternalOpen (cyclomatic 21) · ×1
  • Interactive.InternalOpen (cyclomatic 21) src/qbasic/Basic/Interactive/Interactive.vb:16762 — Interactive.InternalOpen 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.
D1 · Cyclomatic Complexity · Display.Paint (cyclomatic 21) · ×1
  • Display.Paint (cyclomatic 21) src/qbasic/Implementation/Display.vb:33 — Display.Paint 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.
D1 · Cyclomatic Complexity · Binder.BindPrintStatement (cyclomatic 21) · ×1
  • Binder.BindPrintStatement (cyclomatic 21) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2095 — Binder.BindPrintStatement 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. This is NOT this file's highest cyclomatic complexity: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Binder.BindVariableReference (cyclomatic 21) · ×1
  • Binder.BindVariableReference (cyclomatic 21) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:3156 — Binder.BindVariableReference 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. This is NOT this file's highest cyclomatic complexity: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Evaluator.EvaluateKeyStatement (cyclomatic 21) · ×1
  • Evaluator.EvaluateKeyStatement (cyclomatic 21) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1739 — Evaluator.EvaluateKeyStatement 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.
D1 · Cyclomatic Complexity · TypeSymbol.TypeSymbolToType (cyclomatic 21) · ×1
  • TypeSymbol.TypeSymbolToType (cyclomatic 21) src/qbasic/QB/CodeAnalysis/Symbols/TypeSymbol.vb:29 — TypeSymbol.TypeSymbolToType 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.
D1 · Cyclomatic Complexity · InternalPage.New.ctor (cyclomatic 20) · ×1
  • InternalPage.New.ctor (cyclomatic 20) src/qbasic/Basic/Display/Display.vb:143 — InternalPage.New.ctor has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · InternalPage.SetPalette (cyclomatic 20) · ×1
  • InternalPage.SetPalette (cyclomatic 20) src/qbasic/Basic/Display/Display.vb:275 — InternalPage.SetPalette has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Display.Line (cyclomatic 20) · ×1
  • Display.Line (cyclomatic 20) src/qbasic/Basic/Display/Display.vb:2123 — Display.Line has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteOn (cyclomatic 20) · ×1
  • Interactive.ExecuteOn (cyclomatic 20) src/qbasic/Basic/Interactive/Interactive.vb:11312 — Interactive.ExecuteOn has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Parser.ScanParse (cyclomatic 20) · ×1
  • Parser.ScanParse (cyclomatic 20) src/qbasic/Basic/Parser/Parser.vb:82 — Parser.ScanParse has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Parser.FindEndOfStatement (cyclomatic 20) · ×1
  • Parser.FindEndOfStatement (cyclomatic 20) src/qbasic/Basic/Parser/Parser.vb:970 — Parser.FindEndOfStatement has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · ListboxControl.OnKeyPress (cyclomatic 20) · ×1
  • ListboxControl.OnKeyPress (cyclomatic 20) src/qbasic/Components/ListBoxControl.vb:35 — ListboxControl.OnKeyPress has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · BoundLiteralExpression.New.ctor (cyclomatic 20) · ×1
  • BoundLiteralExpression.New.ctor (cyclomatic 20) src/qbasic/QB/CodeAnalysis/Binding/BoundLiteralExpression.vb:8 — BoundLiteralExpression.New.ctor has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteChain (cyclomatic 19) · ×1
  • Interactive.ExecuteChain (cyclomatic 19) src/qbasic/Basic/Interactive/Interactive.vb:5837 — Interactive.ExecuteChain 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteDef (cyclomatic 19) · ×1
  • Interactive.ExecuteDef (cyclomatic 19) src/qbasic/Basic/Interactive/Interactive.vb:6834 — Interactive.ExecuteDef 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteDefInt (cyclomatic 19) · ×1
  • Interactive.ExecuteDefInt (cyclomatic 19) src/qbasic/Basic/Interactive/Interactive.vb:6945 — Interactive.ExecuteDefInt 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. This shape REPEATS in the file: 2 other methods here (Interactive.ExecuteDefSng, Interactive.ExecuteDefDbl) 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteDefSng (cyclomatic 19) · ×1
  • Interactive.ExecuteDefSng (cyclomatic 19) src/qbasic/Basic/Interactive/Interactive.vb:7026 — Interactive.ExecuteDefSng 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. This shape REPEATS in the file: 2 other methods here (Interactive.ExecuteDefInt, Interactive.ExecuteDefDbl) 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteDefDbl (cyclomatic 19) · ×1
  • Interactive.ExecuteDefDbl (cyclomatic 19) src/qbasic/Basic/Interactive/Interactive.vb:7107 — Interactive.ExecuteDefDbl 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. This shape REPEATS in the file: 2 other methods here (Interactive.ExecuteDefInt, Interactive.ExecuteDefSng) 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteFilesParseResult (cyclomatic 19) · ×1
  • Interactive.ExecuteFilesParseResult (cyclomatic 19) src/qbasic/Basic/Interactive/Interactive.vb:7730 — Interactive.ExecuteFilesParseResult 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.
D1 · Cyclomatic Complexity · QBasic.OnUserCreate (cyclomatic 19) · ×1
  • QBasic.OnUserCreate (cyclomatic 19) src/qbasic/Program.vb:933 — QBasic.OnUserCreate 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. This is NOT this file's highest cyclomatic complexity: QBasic.Menu_OnClick (cyclomatic 40) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Evaluator.EvaluateVariableExpression (cyclomatic 19) · ×1
  • Evaluator.EvaluateVariableExpression (cyclomatic 19) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3517 — Evaluator.EvaluateVariableExpression 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.
D1 · Cyclomatic Complexity · WindowsAudio.StreamingLoop (cyclomatic 19) · ×1
  • WindowsAudio.StreamingLoop (cyclomatic 19) src/qbasic/QBLib/Audio/WindowsAudio.vb:294 — WindowsAudio.StreamingLoop 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.
D1 · Cyclomatic Complexity · Extensions.IsNumeric (cyclomatic 18) · ×1
  • Extensions.IsNumeric (cyclomatic 18) src/qbasic/Basic/Extensions.vb:98 — Extensions.IsNumeric 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteCommon (cyclomatic 18) · ×1
  • Interactive.ExecuteCommon (cyclomatic 18) src/qbasic/Basic/Interactive/Interactive.vb:6646 — Interactive.ExecuteCommon 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteDim (cyclomatic 18) · ×1
  • Interactive.ExecuteDim (cyclomatic 18) src/qbasic/Basic/Interactive/Interactive.vb:7328 — Interactive.ExecuteDim 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.
D1 · Cyclomatic Complexity · Interactive.ExecuteFor (cyclomatic 18) · ×1
  • Interactive.ExecuteFor (cyclomatic 18) src/qbasic/Basic/Interactive/Interactive.vb:7850 — Interactive.ExecuteFor 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.
D1 · Cyclomatic Complexity · Conversion.Hex (cyclomatic 18) · ×1
  • Conversion.Hex (cyclomatic 18) src/qbasic/Basic/VisualBasic/Conversion.vb:136 — Conversion.Hex 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. 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.
D1 · Cyclomatic Complexity · Conversion.Oct (cyclomatic 18) · ×1
  • Conversion.Oct (cyclomatic 18) src/qbasic/Basic/VisualBasic/Conversion.vb:203 — Conversion.Oct 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. 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.
D1 · Cyclomatic Complexity · WindowsFileSystem.Files (cyclomatic 18) · ×1
  • WindowsFileSystem.Files (cyclomatic 18) src/qbasic/Implementation/WindowsFileSystem.vb:108 — WindowsFileSystem.Files 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.
D1 · Cyclomatic Complexity · MessageDialog.ProcessKeys (cyclomatic 18) · ×1
  • MessageDialog.ProcessKeys (cyclomatic 18) src/qbasic/MessageDialog.vb:53 — MessageDialog.ProcessKeys 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.
D1 · Cyclomatic Complexity · QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax (cyclomatic 18) · ×1
  • QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax (cyclomatic 18) src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:588 — QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax 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.
D1 · Cyclomatic Complexity · Video.WriteCharacter (cyclomatic 18) · ×1
  • Video.WriteCharacter (cyclomatic 18) src/qbasic/QBLib/Video.vb:2276 — Video.WriteCharacter 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. This is NOT this file's highest cyclomatic complexity: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Interactive.RealPath (cyclomatic 17) · ×1
  • Interactive.RealPath (cyclomatic 17) src/qbasic/Basic/Interactive/Interactive.vb:2152 — Interactive.RealPath has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteMultiplyDivide (cyclomatic 17) · ×1
  • Interactive.ExecuteMultiplyDivide (cyclomatic 17) src/qbasic/Basic/Interactive/Interactive.vb:3098 — Interactive.ExecuteMultiplyDivide has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteDefStr (cyclomatic 17) · ×1
  • Interactive.ExecuteDefStr (cyclomatic 17) src/qbasic/Basic/Interactive/Interactive.vb:7188 — Interactive.ExecuteDefStr has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteNextDecision (cyclomatic 17) · ×1
  • Interactive.ExecuteNextDecision (cyclomatic 17) src/qbasic/Basic/Interactive/Interactive.vb:8418 — Interactive.ExecuteNextDecision has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Interactive.ExecuteOnErrorGoto (cyclomatic 17) · ×1
  • Interactive.ExecuteOnErrorGoto (cyclomatic 17) src/qbasic/Basic/Interactive/Interactive.vb:11431 — Interactive.ExecuteOnErrorGoto has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · MainMenu.ProcessMouse (cyclomatic 17) · ×1
  • MainMenu.ProcessMouse (cyclomatic 17) src/qbasic/MainMenu.vb:136 — MainMenu.ProcessMouse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Binder.BindSubDeclaration (cyclomatic 17) · ×1
  • Binder.BindSubDeclaration (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:399 — Binder.BindSubDeclaration 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: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Binder.BindRedimStatement (cyclomatic 17) · ×1
  • Binder.BindRedimStatement (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2826 — Binder.BindRedimStatement 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: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Evaluator.EvaluateSelectCaseStatement (cyclomatic 17) · ×1
  • Evaluator.EvaluateSelectCaseStatement (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2194 — Evaluator.EvaluateSelectCaseStatement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Evaluator.FormatUsingOutput (cyclomatic 17) · ×1
  • Evaluator.FormatUsingOutput (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2461 — Evaluator.FormatUsingOutput has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Evaluator.EvaluateWriteStatement (cyclomatic 17) · ×1
  • Evaluator.EvaluateWriteStatement (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2543 — Evaluator.EvaluateWriteStatement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Parser.ParsePrintStatement (cyclomatic 17) · ×1
  • Parser.ParsePrintStatement (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3001 — Parser.ParsePrintStatement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · SyntaxNode.WriteNodeWithTrivia (cyclomatic 17) · ×1
  • SyntaxNode.WriteNodeWithTrivia (cyclomatic 17) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:419 — SyntaxNode.WriteNodeWithTrivia has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Video.PRINT (cyclomatic 17) · ×1
  • Video.PRINT (cyclomatic 17) src/qbasic/QBLib/Video.vb:1192 — Video.PRINT 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: Video.PALETTE (cyclomatic 69) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Display.InternalPrint (cyclomatic 16) · ×1
  • Display.InternalPrint (cyclomatic 16) src/qbasic/Basic/Display/Display.vb:4534 — Display.InternalPrint 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.
D1 · Cyclomatic Complexity · Interactive.ThrowBasicError (cyclomatic 16) · ×1
  • Interactive.ThrowBasicError (cyclomatic 16) src/qbasic/Basic/Interactive/Interactive.vb:2012 — Interactive.ThrowBasicError 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.
D1 · Cyclomatic Complexity · Interactive.FoundMatchingNext (cyclomatic 16) · ×1
  • Interactive.FoundMatchingNext (cyclomatic 16) src/qbasic/Basic/Interactive/Interactive.vb:7920 — Interactive.FoundMatchingNext 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 shape REPEATS in the file: one other method here (Interactive.JumpToNext) 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.
D1 · Cyclomatic Complexity · Interactive.JumpToNext (cyclomatic 16) · ×1
  • Interactive.JumpToNext (cyclomatic 16) src/qbasic/Basic/Interactive/Interactive.vb:8019 — Interactive.JumpToNext 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 shape REPEATS in the file: one other method here (Interactive.FoundMatchingNext) 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.
D1 · Cyclomatic Complexity · Parser.ParseStatement (cyclomatic 16) · ×1
  • Parser.ParseStatement (cyclomatic 16) src/qbasic/Basic/Parser/Parser.vb:207 — Parser.ParseStatement 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.
D1 · Cyclomatic Complexity · DocumentPanel.TabAction (cyclomatic 16) · ×1
  • DocumentPanel.TabAction (cyclomatic 16) src/qbasic/DocumentPanel.vb:1089 — DocumentPanel.TabAction 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.
D1 · Cyclomatic Complexity · WindowsFileSystem.EnforceActualPath (cyclomatic 16) · ×1
  • WindowsFileSystem.EnforceActualPath (cyclomatic 16) src/qbasic/Implementation/WindowsFileSystem.vb:876 — WindowsFileSystem.EnforceActualPath 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.
D1 · Cyclomatic Complexity · QBasic.NewWndProc (cyclomatic 16) · ×1
  • QBasic.NewWndProc (cyclomatic 16) src/qbasic/Program.vb:1104 — QBasic.NewWndProc 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: QBasic.Menu_OnClick (cyclomatic 40) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Binder.BindConversion (cyclomatic 16) · ×1
  • Binder.BindConversion (cyclomatic 16) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1264 — Binder.BindConversion 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: Binder.BindStatementInternal (cyclomatic 115) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · BoundTreeRewriter.RewritePrintStatement (cyclomatic 16) · ×1
  • BoundTreeRewriter.RewritePrintStatement (cyclomatic 16) src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb:177 — BoundTreeRewriter.RewritePrintStatement 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.
D1 · Cyclomatic Complexity · ControlFlowGraph.CountFunctionNameAssignments (cyclomatic 16) · ×1
  • ControlFlowGraph.CountFunctionNameAssignments (cyclomatic 16) src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb:403 — ControlFlowGraph.CountFunctionNameAssignments 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.
D1 · Cyclomatic Complexity · Evaluator.EvaluateDimStatement (cyclomatic 16) · ×1
  • Evaluator.EvaluateDimStatement (cyclomatic 16) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3261 — Evaluator.EvaluateDimStatement 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.
D1 · Cyclomatic Complexity · Parser.ParseOnStatement (cyclomatic 16) · ×1
  • Parser.ParseOnStatement (cyclomatic 16) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2548 — Parser.ParseOnStatement 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.
D1 · Cyclomatic Complexity · Parser.ParseOpenStatement (cyclomatic 16) · ×1
  • Parser.ParseOpenStatement (cyclomatic 16) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2703 — Parser.ParseOpenStatement 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.
D1 · Cyclomatic Complexity · AudioDevice.EmitTone (cyclomatic 16) · ×1
  • AudioDevice.EmitTone (cyclomatic 16) src/qbasic/QBLib/Audio/AudioDevice.vb:460 — AudioDevice.EmitTone 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.
D1 · Cyclomatic Complexity · Video.POINT (cyclomatic 16) · ×1
  • Video.POINT (cyclomatic 16) src/qbasic/QBLib/Video.vb:2335 — Video.POINT 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: Video.PALETTE (cyclomatic 69) 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.
D17 · Explicit Debt · HackComment · ×1
  • HackComment src/qbasic/Basic/Extensions.vb:409 — 'HACK: to get same behavior as GW-BASIC, need to "confuse" things. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
D17 · Explicit Debt · FixmeComment · ×1
  • FixmeComment src/qbasic/Basic/VisualBasic/Conversion.vb:22 — 'FIXME:ArgumentException 5 Number is not a numeric type. — 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.
D18 · Solution Shape · Solution references a project that does not exist · ×1
  • Solution references a project that does not exist src/QBasic.sln — `src/QBasic.sln` declares 1 project file(s) that are missing from the tree (`vbPixelGameEngine.vbproj`). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D2 · Cognitive Complexity · QBasic.OnUserUpdate (cognitive 931) · ×1
  • QBasic.OnUserUpdate (cognitive 931) src/qbasic/Program.vb:1176 — QBasic.OnUserUpdate has cognitive complexity 931 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePrimary (cognitive 662) · ×1
  • Interactive.ExecutePrimary (cognitive 662) src/qbasic/Basic/Interactive/Interactive.vb:3199 — Interactive.ExecutePrimary has cognitive complexity 662 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ProcessKeyInternal (cognitive 524) · ×1
  • Interactive.ProcessKeyInternal (cognitive 524) src/qbasic/Basic/Interactive/Interactive.vb:863 — Interactive.ProcessKeyInternal has cognitive complexity 524 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateStatement (cognitive 464) · ×1
  • Evaluator.EvaluateStatement (cognitive 464) src/qbasic/QB/CodeAnalysis/Evaluator.vb:510 — Evaluator.EvaluateStatement has cognitive complexity 464 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.InteractiveProcessKey (cognitive 423) · ×1
  • Interactive.InteractiveProcessKey (cognitive 423) src/qbasic/Basic/Interactive/Interactive.vb:1119 — Interactive.InteractiveProcessKey has cognitive complexity 423 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteGet (cognitive 376) · ×1
  • Interactive.ExecuteGet (cognitive 376) src/qbasic/Basic/Interactive/Interactive.vb:8515 — Interactive.ExecuteGet has cognitive complexity 376 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Parser.PeekToken (cognitive 357) · ×1
  • Parser.PeekToken (cognitive 357) src/qbasic/Basic/Parser/Parser.vb:398 — Parser.PeekToken has cognitive complexity 357 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateCallExpression (cognitive 307) · ×1
  • Evaluator.EvaluateCallExpression (cognitive 307) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4192 — Evaluator.EvaluateCallExpression has cognitive complexity 307 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePrint (cognitive 282) · ×1
  • Interactive.ExecutePrint (cognitive 282) src/qbasic/Basic/Interactive/Interactive.vb:12312 — Interactive.ExecutePrint has cognitive complexity 282 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteStringPrimary (cognitive 281) · ×1
  • Interactive.ExecuteStringPrimary (cognitive 281) src/qbasic/Basic/Interactive/Interactive.vb:2308 — Interactive.ExecuteStringPrimary has cognitive complexity 281 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePrintUsing (cognitive 280) · ×1
  • Interactive.ExecutePrintUsing (cognitive 280) src/qbasic/Basic/Interactive/Interactive.vb:12698 — Interactive.ExecutePrintUsing has cognitive complexity 280 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateBinaryExpression (cognitive 258) · ×1
  • Evaluator.EvaluateBinaryExpression (cognitive 258) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3872 — Evaluator.EvaluateBinaryExpression has cognitive complexity 258 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePut (cognitive 230) · ×1
  • Interactive.ExecutePut (cognitive 230) src/qbasic/Basic/Interactive/Interactive.vb:13632 — Interactive.ExecutePut has cognitive complexity 230 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ConstantFolding.Fold (cognitive 216) · ×1
  • ConstantFolding.Fold (cognitive 216) src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb:44 — ConstantFolding.Fold has cognitive complexity 216 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.PlayCommand (cognitive 182) · ×1
  • Evaluator.PlayCommand (cognitive 182) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5804 — Evaluator.PlayCommand has cognitive complexity 182 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.InternalInputCompletedProcess (cognitive 176) · ×1
  • Interactive.InternalInputCompletedProcess (cognitive 176) src/qbasic/Basic/Interactive/Interactive.vb:17020 — Interactive.InternalInputCompletedProcess has cognitive complexity 176 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TextboxControl.OnKeyPress (cognitive 169) · ×1
  • TextboxControl.OnKeyPress (cognitive 169) src/qbasic/Components/TextBoxControl.vb:37 — TextboxControl.OnKeyPress has cognitive complexity 169 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MainMenu.ProcessKeys (cognitive 159) · ×1
  • MainMenu.ProcessKeys (cognitive 159) src/qbasic/MainMenu.vb:195 — MainMenu.ProcessKeys has cognitive complexity 159 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · OpenDialog.ProcessKeys (cognitive 156) · ×1
  • OpenDialog.ProcessKeys (cognitive 156) src/qbasic/OpenDialog.vb:143 — OpenDialog.ProcessKeys has cognitive complexity 156 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Form.OnKeyPress (cognitive 138) · ×1
  • Form.OnKeyPress (cognitive 138) src/qbasic/Components/Form.vb:51 — Form.OnKeyPress has cognitive complexity 138 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WindowsFileSystem.Input (cognitive 138) · ×1
  • WindowsFileSystem.Input (cognitive 138) src/qbasic/Implementation/WindowsFileSystem.vb:195 — WindowsFileSystem.Input has cognitive complexity 138 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteOpen (cognitive 134) · ×1
  • Interactive.ExecuteOpen (cognitive 134) src/qbasic/Basic/Interactive/Interactive.vb:11697 — Interactive.ExecuteOpen has cognitive complexity 134 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteInput (cognitive 133) · ×1
  • Interactive.ExecuteInput (cognitive 133) src/qbasic/Basic/Interactive/Interactive.vb:9910 — Interactive.ExecuteInput has cognitive complexity 133 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · BoundBinaryOperator.Initialize (cognitive 130) · ×1
  • BoundBinaryOperator.Initialize (cognitive 130) src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb:226 — BoundBinaryOperator.Initialize has cognitive complexity 130 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteDraw (cognitive 120) · ×1
  • Interactive.ExecuteDraw (cognitive 120) src/qbasic/Basic/Interactive/Interactive.vb:18064 — Interactive.ExecuteDraw has cognitive complexity 120 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.RowCount.Set (cognitive 117) · ×1
  • Display.RowCount.Set (cognitive 117) src/qbasic/Basic/Display/Display.vb:2487 — Display.RowCount.Set has cognitive complexity 117 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteWidth (cognitive 115) · ×1
  • Interactive.ExecuteWidth (cognitive 115) src/qbasic/Basic/Interactive/Interactive.vb:16251 — Interactive.ExecuteWidth has cognitive complexity 115 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.LINE (cognitive 112) · ×1
  • Video.LINE (cognitive 112) src/qbasic/QBLib/Video.vb:1611 — Video.LINE has cognitive complexity 112 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.InternalLoadCompleted (cognitive 111) · ×1
  • Interactive.InternalLoadCompleted (cognitive 111) src/qbasic/Basic/Interactive/Interactive.vb:6024 — Interactive.InternalLoadCompleted has cognitive complexity 111 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.FormatNumericWithSpec (cognitive 107) · ×1
  • Evaluator.FormatNumericWithSpec (cognitive 107) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2833 — Evaluator.FormatNumericWithSpec has cognitive complexity 107 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteComparison (cognitive 106) · ×1
  • Interactive.ExecuteComparison (cognitive 106) src/qbasic/Basic/Interactive/Interactive.vb:2981 — Interactive.ExecuteComparison has cognitive complexity 106 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ProcessInterpreter (cognitive 101) · ×1
  • Interactive.ProcessInterpreter (cognitive 101) src/qbasic/Basic/Interactive/Interactive.vb:1415 — Interactive.ProcessInterpreter has cognitive complexity 101 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteLet (cognitive 101) · ×1
  • Interactive.ExecuteLet (cognitive 101) src/qbasic/Basic/Interactive/Interactive.vb:10284 — Interactive.ExecuteLet has cognitive complexity 101 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SaveAsDialog.ProcessKeys (cognitive 100) · ×1
  • SaveAsDialog.ProcessKeys (cognitive 100) src/qbasic/SaveAsDialog.vb:130 — SaveAsDialog.ProcessKeys has cognitive complexity 100 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteLineInput (cognitive 98) · ×1
  • Interactive.ExecuteLineInput (cognitive 98) src/qbasic/Basic/Interactive/Interactive.vb:10668 — Interactive.ExecuteLineInput has cognitive complexity 98 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Conversion.Classify (cognitive 98) · ×1
  • Conversion.Classify (cognitive 98) src/qbasic/QB/CodeAnalysis/Binding/Conversion.vb:27 — Conversion.Classify has cognitive complexity 98 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Decode.ProcessInternal (cognitive 97) · ×1
  • Decode.ProcessInternal (cognitive 97) src/qbasic/Basic/Tokenizer/Decode.vb:12 — Decode.ProcessInternal 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.
D2 · Cognitive Complexity · Lexer.ReadIdentifierOrKeyword (cognitive 93) · ×1
  • Lexer.ReadIdentifierOrKeyword (cognitive 93) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:551 — Lexer.ReadIdentifierOrKeyword has cognitive complexity 93 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.Paint (cognitive 90) · ×1
  • Display.Paint (cognitive 90) src/qbasic/Basic/Display/Display.vb:1601 — Display.Paint has cognitive complexity 90 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · QBasic.GetPressed (cognitive 82) · ×1
  • QBasic.GetPressed (cognitive 82) src/qbasic/Program.vb:2160 — QBasic.GetPressed has cognitive complexity 82 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.INKEY (cognitive 81) · ×1
  • Video.INKEY (cognitive 81) src/qbasic/QBLib/Video.vb:2095 — Video.INKEY has cognitive complexity 81 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.CIRCLE (cognitive 80) · ×1
  • Video.CIRCLE (cognitive 80) src/qbasic/QBLib/Video.vb:1341 — Video.CIRCLE has cognitive complexity 80 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteView (cognitive 78) · ×1
  • Interactive.ExecuteView (cognitive 78) src/qbasic/Basic/Interactive/Interactive.vb:15857 — Interactive.ExecuteView has cognitive complexity 78 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.Circle (cognitive 77) · ×1
  • Display.Circle (cognitive 77) src/qbasic/Basic/Display/Display.vb:1919 — Display.Circle has cognitive complexity 77 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.Line (cognitive 77) · ×1
  • Display.Line (cognitive 77) src/qbasic/Basic/Display/Display.vb:2123 — Display.Line has cognitive complexity 77 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.CIRCLE (cognitive 77) · ×1
  • Video.CIRCLE (cognitive 77) src/qbasic.compatibility/Video.vb:1080 — Video.CIRCLE has cognitive complexity 77 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Program.HandleCommandLineArguments (cognitive 75) · ×1
  • Program.HandleCommandLineArguments (cognitive 75) src/qbasic/Program.vb:121 — Program.HandleCommandLineArguments has cognitive complexity 75 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Common.GetChar (cognitive 73) · ×1
  • Common.GetChar (cognitive 73) src/qbasic/Common.vb:66 — Common.GetChar 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.
D2 · Cognitive Complexity · Binder.BindCallExpression (cognitive 73) · ×1
  • Binder.BindCallExpression (cognitive 73) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:900 — Binder.BindCallExpression 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.
D2 · Cognitive Complexity · DocumentPanel.ProcessKeys (cognitive 72) · ×1
  • DocumentPanel.ProcessKeys (cognitive 72) src/qbasic/DocumentPanel.vb:258 — DocumentPanel.ProcessKeys has cognitive complexity 72 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Parser.ParseForStatement (cognitive 72) · ×1
  • Parser.ParseForStatement (cognitive 72) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1537 — Parser.ParseForStatement has cognitive complexity 72 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindMemberAccessExpression (cognitive 71) · ×1
  • Binder.BindMemberAccessExpression (cognitive 71) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1068 — Binder.BindMemberAccessExpression has cognitive complexity 71 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.InputAsync (cognitive 71) · ×1
  • Video.InputAsync (cognitive 71) src/qbasic/QBLib/Video.vb:1815 — Video.InputAsync has cognitive complexity 71 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DocumentPanel.HandleSelection (cognitive 70) · ×1
  • DocumentPanel.HandleSelection (cognitive 70) src/qbasic/DocumentPanel.vb:444 — DocumentPanel.HandleSelection has cognitive complexity 70 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.LineInputAsync (cognitive 70) · ×1
  • Video.LineInputAsync (cognitive 70) src/qbasic.compatibility/Video.vb:1470 — Video.LineInputAsync 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. This shape REPEATS in the file: one other method here (Video.InputAsync) 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.
D2 · Cognitive Complexity · Video.InputAsync (cognitive 70) · ×1
  • Video.InputAsync (cognitive 70) src/qbasic.compatibility/Video.vb:1616 — Video.InputAsync 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. This shape REPEATS in the file: one other method here (Video.LineInputAsync) 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.
D2 · Cognitive Complexity · Interactive.ExecuteKey (cognitive 68) · ×1
  • Interactive.ExecuteKey (cognitive 68) src/qbasic/Basic/Interactive/Interactive.vb:10121 — Interactive.ExecuteKey has cognitive complexity 68 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SavePrompt.ProcessKeys (cognitive 67) · ×1
  • SavePrompt.ProcessKeys (cognitive 67) src/qbasic/SavePrompt.vb:64 — SavePrompt.ProcessKeys has cognitive complexity 67 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DocumentPanel.WordRightAction (cognitive 65) · ×1
  • DocumentPanel.WordRightAction (cognitive 65) src/qbasic/DocumentPanel.vb:814 — DocumentPanel.WordRightAction has cognitive complexity 65 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · GraphBuilder.Build (cognitive 65) · ×1
  • GraphBuilder.Build (cognitive 65) src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb:163 — GraphBuilder.Build has cognitive complexity 65 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteDim (cognitive 64) · ×1
  • Interactive.ExecuteDim (cognitive 64) src/qbasic/Basic/Interactive/Interactive.vb:7328 — Interactive.ExecuteDim has cognitive complexity 64 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteDefInt (cognitive 63) · ×1
  • Interactive.ExecuteDefInt (cognitive 63) src/qbasic/Basic/Interactive/Interactive.vb:6945 — Interactive.ExecuteDefInt has cognitive complexity 63 (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 (Interactive.ExecuteDefSng, Interactive.ExecuteDefDbl) 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.
D2 · Cognitive Complexity · Interactive.ExecuteDefSng (cognitive 63) · ×1
  • Interactive.ExecuteDefSng (cognitive 63) src/qbasic/Basic/Interactive/Interactive.vb:7026 — Interactive.ExecuteDefSng has cognitive complexity 63 (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 (Interactive.ExecuteDefInt, Interactive.ExecuteDefDbl) 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.
D2 · Cognitive Complexity · Interactive.ExecuteDefDbl (cognitive 63) · ×1
  • Interactive.ExecuteDefDbl (cognitive 63) src/qbasic/Basic/Interactive/Interactive.vb:7107 — Interactive.ExecuteDefDbl has cognitive complexity 63 (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 (Interactive.ExecuteDefInt, Interactive.ExecuteDefSng) 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.
D2 · Cognitive Complexity · Binder.BindGlobalScope (cognitive 63) · ×1
  • Binder.BindGlobalScope (cognitive 63) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:43 — Binder.BindGlobalScope has cognitive complexity 63 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteCommon (cognitive 62) · ×1
  • Interactive.ExecuteCommon (cognitive 62) src/qbasic/Basic/Interactive/Interactive.vb:6646 — Interactive.ExecuteCommon has cognitive complexity 62 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteOnErrorGoto (cognitive 61) · ×1
  • Interactive.ExecuteOnErrorGoto (cognitive 61) src/qbasic/Basic/Interactive/Interactive.vb:11431 — Interactive.ExecuteOnErrorGoto has cognitive complexity 61 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Console.INKEY (cognitive 60) · ×1
  • Console.INKEY (cognitive 60) src/qbasic.compatibility/Console.vb:93 — Console.INKEY has cognitive complexity 60 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.ColumnCount.Set (cognitive 58) · ×1
  • Display.ColumnCount.Set (cognitive 58) src/qbasic/Basic/Display/Display.vb:2629 — Display.ColumnCount.Set has cognitive complexity 58 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteDef (cognitive 58) · ×1
  • Interactive.ExecuteDef (cognitive 58) src/qbasic/Basic/Interactive/Interactive.vb:6834 — Interactive.ExecuteDef has cognitive complexity 58 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteChain (cognitive 55) · ×1
  • Interactive.ExecuteChain (cognitive 55) src/qbasic/Basic/Interactive/Interactive.vb:5837 — Interactive.ExecuteChain has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DocumentPanel.Render (cognitive 55) · ×1
  • DocumentPanel.Render (cognitive 55) src/qbasic/DocumentPanel.vb:145 — DocumentPanel.Render has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.Paint (cognitive 55) · ×1
  • Display.Paint (cognitive 55) src/qbasic/Implementation/Display.vb:33 — Display.Paint has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateArrayAccessExpressionForAssignment (cognitive 54) · ×1
  • Evaluator.EvaluateArrayAccessExpressionForAssignment (cognitive 54) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3732 — Evaluator.EvaluateArrayAccessExpressionForAssignment has cognitive complexity 54 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePaint (cognitive 53) · ×1
  • Interactive.ExecutePaint (cognitive 53) src/qbasic/Basic/Interactive/Interactive.vb:11986 — Interactive.ExecutePaint has cognitive complexity 53 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteDefStr (cognitive 52) · ×1
  • Interactive.ExecuteDefStr (cognitive 52) src/qbasic/Basic/Interactive/Interactive.vb:7188 — Interactive.ExecuteDefStr 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.
D2 · Cognitive Complexity · Interactive.ExecuteOn (cognitive 52) · ×1
  • Interactive.ExecuteOn (cognitive 52) src/qbasic/Basic/Interactive/Interactive.vb:11312 — Interactive.ExecuteOn 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.
D2 · Cognitive Complexity · SyntaxNode.PrettyPrint2 (cognitive 52) · ×1
  • SyntaxNode.PrettyPrint2 (cognitive 52) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:290 — SyntaxNode.PrettyPrint2 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.
D2 · Cognitive Complexity · WindowsAudio.StreamingLoop (cognitive 52) · ×1
  • WindowsAudio.StreamingLoop (cognitive 52) src/qbasic/QBLib/Audio/WindowsAudio.vb:294 — WindowsAudio.StreamingLoop 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.
D2 · Cognitive Complexity · Interactive.FoundMatchingNext (cognitive 51) · ×1
  • Interactive.FoundMatchingNext (cognitive 51) src/qbasic/Basic/Interactive/Interactive.vb:7920 — Interactive.FoundMatchingNext 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. This shape REPEATS in the file: one other method here (Interactive.JumpToNext) 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.
D2 · Cognitive Complexity · Interactive.JumpToNext (cognitive 51) · ×1
  • Interactive.JumpToNext (cognitive 51) src/qbasic/Basic/Interactive/Interactive.vb:8019 — Interactive.JumpToNext 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. This shape REPEATS in the file: one other method here (Interactive.FoundMatchingNext) 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.
D2 · Cognitive Complexity · Binder.BindIdentifierExpression (cognitive 51) · ×1
  • Binder.BindIdentifierExpression (cognitive 51) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1920 — Binder.BindIdentifierExpression 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.
D2 · Cognitive Complexity · Evaluator.EvaluateArrayAccessExpression (cognitive 50) · ×1
  • Evaluator.EvaluateArrayAccessExpression (cognitive 50) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3632 — Evaluator.EvaluateArrayAccessExpression 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.
D2 · Cognitive Complexity · Interactive.ExecuteFor (cognitive 48) · ×1
  • Interactive.ExecuteFor (cognitive 48) src/qbasic/Basic/Interactive/Interactive.vb:7850 — Interactive.ExecuteFor 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.
D2 · Cognitive Complexity · Interactive.ExecuteLine (cognitive 48) · ×1
  • Interactive.ExecuteLine (cognitive 48) src/qbasic/Basic/Interactive/Interactive.vb:10427 — Interactive.ExecuteLine 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.
D2 · Cognitive Complexity · SyntaxNode.WriteNodeWithTrivia (cognitive 48) · ×1
  • SyntaxNode.WriteNodeWithTrivia (cognitive 48) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:419 — SyntaxNode.WriteNodeWithTrivia 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.
D2 · Cognitive Complexity · Display.Pset (cognitive 47) · ×1
  • Display.Pset (cognitive 47) src/qbasic/Basic/Display/Display.vb:2231 — Display.Pset has cognitive complexity 47 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.Color (cognitive 47) · ×1
  • Display.Color (cognitive 47) src/qbasic/Basic/Display/Display.vb:3982 — Display.Color has cognitive complexity 47 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteMid (cognitive 47) · ×1
  • Interactive.ExecuteMid (cognitive 47) src/qbasic/Basic/Interactive/Interactive.vb:11078 — Interactive.ExecuteMid has cognitive complexity 47 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DocumentPanel.TabAction (cognitive 47) · ×1
  • DocumentPanel.TabAction (cognitive 47) src/qbasic/DocumentPanel.vb:1089 — DocumentPanel.TabAction has cognitive complexity 47 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.Assign (cognitive 47) · ×1
  • Evaluator.Assign (cognitive 47) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4909 — Evaluator.Assign has cognitive complexity 47 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MainMenu.Render (cognitive 46) · ×1
  • MainMenu.Render (cognitive 46) src/qbasic/MainMenu.vb:54 — MainMenu.Render has cognitive complexity 46 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindInputStatement (cognitive 46) · ×1
  • Binder.BindInputStatement (cognitive 46) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1575 — Binder.BindInputStatement has cognitive complexity 46 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · InternalPage.SetPalette (cognitive 45) · ×1
  • InternalPage.SetPalette (cognitive 45) src/qbasic/Basic/Display/Display.vb:543 — InternalPage.SetPalette 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.
D2 · Cognitive Complexity · Interactive.FormatNumber (cognitive 45) · ×1
  • Interactive.FormatNumber (cognitive 45) src/qbasic/Basic/Interactive/Interactive.vb:13076 — Interactive.FormatNumber 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.
D2 · Cognitive Complexity · Binder.BindTypeStatement (cognitive 45) · ×1
  • Binder.BindTypeStatement (cognitive 45) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2345 — Binder.BindTypeStatement 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.
D2 · Cognitive Complexity · Video.WriteCharacter (cognitive 45) · ×1
  • Video.WriteCharacter (cognitive 45) src/qbasic/QBLib/Video.vb:2276 — Video.WriteCharacter 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.
D2 · Cognitive Complexity · Interactive.ExecuteFunction (cognitive 44) · ×1
  • Interactive.ExecuteFunction (cognitive 44) src/qbasic/Basic/Interactive/Interactive.vb:4198 — Interactive.ExecuteFunction 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. This shape REPEATS in the file: one other method here (Interactive.ExecuteStringFunction) 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.
D2 · Cognitive Complexity · Interactive.ExecuteStringFunction (cognitive 44) · ×1
  • Interactive.ExecuteStringFunction (cognitive 44) src/qbasic/Basic/Interactive/Interactive.vb:4386 — Interactive.ExecuteStringFunction 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. This shape REPEATS in the file: one other method here (Interactive.ExecuteFunction) 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.
D2 · Cognitive Complexity · Interactive.ExecutePoke (cognitive 44) · ×1
  • Interactive.ExecutePoke (cognitive 44) src/qbasic/Basic/Interactive/Interactive.vb:12190 — Interactive.ExecutePoke 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.
D2 · Cognitive Complexity · Parser.ScanParse (cognitive 44) · ×1
  • Parser.ScanParse (cognitive 44) src/qbasic/Basic/Parser/Parser.vb:82 — Parser.ScanParse 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.
D2 · Cognitive Complexity · SyntaxNode.PrettyPrint (cognitive 44) · ×1
  • SyntaxNode.PrettyPrint (cognitive 44) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:202 — SyntaxNode.PrettyPrint 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.
D2 · Cognitive Complexity · Interactive.ExecuteIf (cognitive 42) · ×1
  • Interactive.ExecuteIf (cognitive 42) src/qbasic/Basic/Interactive/Interactive.vb:9584 — Interactive.ExecuteIf has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteRandomize (cognitive 42) · ×1
  • Interactive.ExecuteRandomize (cognitive 42) src/qbasic/Basic/Interactive/Interactive.vb:14092 — Interactive.ExecuteRandomize has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteWindow (cognitive 42) · ×1
  • Interactive.ExecuteWindow (cognitive 42) src/qbasic/Basic/Interactive/Interactive.vb:16431 — Interactive.ExecuteWindow has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindVariableReference (cognitive 42) · ×1
  • Binder.BindVariableReference (cognitive 42) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:3156 — Binder.BindVariableReference has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateVariableExpression (cognitive 42) · ×1
  • Evaluator.EvaluateVariableExpression (cognitive 42) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3517 — Evaluator.EvaluateVariableExpression has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteClear (cognitive 41) · ×1
  • Interactive.ExecuteClear (cognitive 41) src/qbasic/Basic/Interactive/Interactive.vb:6373 — Interactive.ExecuteClear 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.
D2 · Cognitive Complexity · MainMenu.ProcessMouse (cognitive 41) · ×1
  • MainMenu.ProcessMouse (cognitive 41) src/qbasic/MainMenu.vb:136 — MainMenu.ProcessMouse 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.
D2 · Cognitive Complexity · Evaluator.EvaluateEraseStatement (cognitive 41) · ×1
  • Evaluator.EvaluateEraseStatement (cognitive 41) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3384 — Evaluator.EvaluateEraseStatement 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.
D2 · Cognitive Complexity · IndentedSyntaxWriter.RewriteGotoGosubUsingSyntaxTree (cognitive 41) · ×1
  • IndentedSyntaxWriter.RewriteGotoGosubUsingSyntaxTree (cognitive 41) src/qbasic/QB/CodeAnalysis/Syntax/GwBasicToQBasicRewriter.vb:229 — IndentedSyntaxWriter.RewriteGotoGosubUsingSyntaxTree 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.
D2 · Cognitive Complexity · WelcomeDialog.ProcessKeys (cognitive 40) · ×1
  • WelcomeDialog.ProcessKeys (cognitive 40) src/qbasic/WelcomeDialog.vb:62 — WelcomeDialog.ProcessKeys has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WindowsFileSystem.Files (cognitive 39) · ×1
  • WindowsFileSystem.Files (cognitive 39) src/qbasic/Implementation/WindowsFileSystem.vb:108 — WindowsFileSystem.Files has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateWriteStatement (cognitive 39) · ×1
  • Evaluator.EvaluateWriteStatement (cognitive 39) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2543 — Evaluator.EvaluateWriteStatement has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.ParseNumericFormat (cognitive 39) · ×1
  • Evaluator.ParseNumericFormat (cognitive 39) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2710 — Evaluator.ParseNumericFormat has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Lexer.ReadNumberToken (cognitive 39) · ×1
  • Lexer.ReadNumberToken (cognitive 39) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:306 — Lexer.ReadNumberToken has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.InternalPrint (cognitive 38) · ×1
  • Display.InternalPrint (cognitive 38) src/qbasic/Basic/Display/Display.vb:4534 — Display.InternalPrint 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.
D2 · Cognitive Complexity · Interactive.ExecuteLocate (cognitive 38) · ×1
  • Interactive.ExecuteLocate (cognitive 38) src/qbasic/Basic/Interactive/Interactive.vb:10530 — Interactive.ExecuteLocate 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.
D2 · Cognitive Complexity · DocumentPanel.WordLeftAction (cognitive 38) · ×1
  • DocumentPanel.WordLeftAction (cognitive 38) src/qbasic/DocumentPanel.vb:746 — DocumentPanel.WordLeftAction 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.
D2 · Cognitive Complexity · Binder.BindSubDeclaration (cognitive 38) · ×1
  • Binder.BindSubDeclaration (cognitive 38) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:399 — Binder.BindSubDeclaration 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.
D2 · Cognitive Complexity · Binder.BindRedimStatement (cognitive 38) · ×1
  • Binder.BindRedimStatement (cognitive 38) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2826 — Binder.BindRedimStatement 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.
D2 · Cognitive Complexity · Evaluator.EvaluateDimStatement (cognitive 38) · ×1
  • Evaluator.EvaluateDimStatement (cognitive 38) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3261 — Evaluator.EvaluateDimStatement 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.
D2 · Cognitive Complexity · Interactive.ExecuteCircle (cognitive 37) · ×1
  • Interactive.ExecuteCircle (cognitive 37) src/qbasic/Basic/Interactive/Interactive.vb:6254 — Interactive.ExecuteCircle 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.
D2 · Cognitive Complexity · Interactive.ExecuteNext (cognitive 37) · ×1
  • Interactive.ExecuteNext (cognitive 37) src/qbasic/Basic/Interactive/Interactive.vb:8185 — Interactive.ExecuteNext 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.
D2 · Cognitive Complexity · Evaluator.Assign (cognitive 36) · ×1
  • Evaluator.Assign (cognitive 36) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4994 — Evaluator.Assign has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteErase (cognitive 34) · ×1
  • Interactive.ExecuteErase (cognitive 34) src/qbasic/Basic/Interactive/Interactive.vb:7567 — Interactive.ExecuteErase 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.
D2 · Cognitive Complexity · Interactive.ExecuteNextDecision (cognitive 34) · ×1
  • Interactive.ExecuteNextDecision (cognitive 34) src/qbasic/Basic/Interactive/Interactive.vb:8418 — Interactive.ExecuteNextDecision 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.
D2 · Cognitive Complexity · Interactive.GotoLabelOrLineNumber (cognitive 34) · ×1
  • Interactive.GotoLabelOrLineNumber (cognitive 34) src/qbasic/Basic/Interactive/Interactive.vb:9282 — Interactive.GotoLabelOrLineNumber 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.
D2 · Cognitive Complexity · HorizontalListboxControl.OnKeyPress (cognitive 34) · ×1
  • HorizontalListboxControl.OnKeyPress (cognitive 34) src/qbasic/Components/HorizontalListBoxControl.vb:38 — HorizontalListboxControl.OnKeyPress 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.
D2 · Cognitive Complexity · Evaluator.EvaluateKeyStatement (cognitive 34) · ×1
  • Evaluator.EvaluateKeyStatement (cognitive 34) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1739 — Evaluator.EvaluateKeyStatement 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.
D2 · Cognitive Complexity · Evaluator.EvaluateConversionExpression (cognitive 34) · ×1
  • Evaluator.EvaluateConversionExpression (cognitive 34) src/qbasic/QB/CodeAnalysis/Evaluator.vb:4866 — Evaluator.EvaluateConversionExpression 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.
D2 · Cognitive Complexity · Interactive.ExecuteMultiplyDivide (cognitive 33) · ×1
  • Interactive.ExecuteMultiplyDivide (cognitive 33) src/qbasic/Basic/Interactive/Interactive.vb:3098 — Interactive.ExecuteMultiplyDivide 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.
D2 · Cognitive Complexity · Interactive.ExecuteRead (cognitive 33) · ×1
  • Interactive.ExecuteRead (cognitive 33) src/qbasic/Basic/Interactive/Interactive.vb:14199 — Interactive.ExecuteRead 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.
D2 · Cognitive Complexity · Interactive.ExecuteScreen (cognitive 33) · ×1
  • Interactive.ExecuteScreen (cognitive 33) src/qbasic/Basic/Interactive/Interactive.vb:15053 — Interactive.ExecuteScreen 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.
D2 · Cognitive Complexity · Interactive.InternalReadCompletedProcess (cognitive 33) · ×1
  • Interactive.InternalReadCompletedProcess (cognitive 33) src/qbasic/Basic/Interactive/Interactive.vb:17397 — Interactive.InternalReadCompletedProcess 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.
D2 · Cognitive Complexity · Evaluator.EvaluateOpenStatement (cognitive 33) · ×1
  • Evaluator.EvaluateOpenStatement (cognitive 33) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5067 — Evaluator.EvaluateOpenStatement 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.
D2 · Cognitive Complexity · Interactive.ThrowBasicError (cognitive 32) · ×1
  • Interactive.ThrowBasicError (cognitive 32) src/qbasic/Basic/Interactive/Interactive.vb:2012 — Interactive.ThrowBasicError has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.RealPath (cognitive 32) · ×1
  • Interactive.RealPath (cognitive 32) src/qbasic/Basic/Interactive/Interactive.vb:2152 — Interactive.RealPath has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.FormatUsingOutput (cognitive 32) · ×1
  • Evaluator.FormatUsingOutput (cognitive 32) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2461 — Evaluator.FormatUsingOutput has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AboutDialog.ProcessKeys (cognitive 31) · ×1
  • AboutDialog.ProcessKeys (cognitive 31) src/qbasic/AboutDialog.vb:57 — AboutDialog.ProcessKeys 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.
D2 · Cognitive Complexity · Interactive.FoundMatchingWend (cognitive 31) · ×1
  • Interactive.FoundMatchingWend (cognitive 31) src/qbasic/Basic/Interactive/Interactive.vb:16125 — Interactive.FoundMatchingWend 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. This shape REPEATS in the file: one other method here (Interactive.JumpToWend) 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.
D2 · Cognitive Complexity · Interactive.JumpToWend (cognitive 31) · ×1
  • Interactive.JumpToWend (cognitive 31) src/qbasic/Basic/Interactive/Interactive.vb:16188 — Interactive.JumpToWend 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. This shape REPEATS in the file: one other method here (Interactive.FoundMatchingWend) 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.
D2 · Cognitive Complexity · Interactive.InternalOpen (cognitive 31) · ×1
  • Interactive.InternalOpen (cognitive 31) src/qbasic/Basic/Interactive/Interactive.vb:16762 — Interactive.InternalOpen 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.
D2 · Cognitive Complexity · CsvSplit.CsvSplit (cognitive 31) · ×1
  • CsvSplit.CsvSplit (cognitive 31) src/qbasic/Basic/Utils/CsvSplit.vb:184 — CsvSplit.CsvSplit 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.
D2 · Cognitive Complexity · ChangeDialog.ProcessKeys (cognitive 31) · ×1
  • ChangeDialog.ProcessKeys (cognitive 31) src/qbasic/ChangeDialog.vb:90 — ChangeDialog.ProcessKeys 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.
D2 · Cognitive Complexity · DisplayDialog.ProcessKeys (cognitive 31) · ×1
  • DisplayDialog.ProcessKeys (cognitive 31) src/qbasic/DisplayDialog.vb:143 — DisplayDialog.ProcessKeys 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.
D2 · Cognitive Complexity · FindDialog.ProcessKeys (cognitive 31) · ×1
  • FindDialog.ProcessKeys (cognitive 31) src/qbasic/FindDialog.vb:74 — FindDialog.ProcessKeys 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.
D2 · Cognitive Complexity · HelpPathDialog.ProcessKeys (cognitive 31) · ×1
  • HelpPathDialog.ProcessKeys (cognitive 31) src/qbasic/HelpPathDialog.vb:61 — HelpPathDialog.ProcessKeys 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.
D2 · Cognitive Complexity · NewFunctionDialog.ProcessKeys (cognitive 31) · ×1
  • NewFunctionDialog.ProcessKeys (cognitive 31) src/qbasic/NewFunctionDialog.vb:69 — NewFunctionDialog.ProcessKeys 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.
D2 · Cognitive Complexity · NewSubDialog.ProcessKeys (cognitive 31) · ×1
  • NewSubDialog.ProcessKeys (cognitive 31) src/qbasic/NewSubDialog.vb:69 — NewSubDialog.ProcessKeys 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.
D2 · Cognitive Complexity · PrintDialog.ProcessKeys (cognitive 31) · ×1
  • PrintDialog.ProcessKeys (cognitive 31) src/qbasic/PrintDialog.vb:79 — PrintDialog.ProcessKeys 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.
D2 · Cognitive Complexity · Parser.ParseSelectCaseStatement (cognitive 31) · ×1
  • Parser.ParseSelectCaseStatement (cognitive 31) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3562 — Parser.ParseSelectCaseStatement 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.
D2 · Cognitive Complexity · Video.PRINT (cognitive 31) · ×1
  • Video.PRINT (cognitive 31) src/qbasic/QBLib/Video.vb:1192 — Video.PRINT 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.
D2 · Cognitive Complexity · SubsDialog.ProcessKeys (cognitive 31) · ×1
  • SubsDialog.ProcessKeys (cognitive 31) src/qbasic/SubsDialog.vb:91 — SubsDialog.ProcessKeys 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.
D2 · Cognitive Complexity · SyntaxTreeForm.PopulateTreeview (cognitive 31) · ×1
  • SyntaxTreeForm.PopulateTreeview (cognitive 31) src/vbcompare/SyntaxTreeForm.vb:101 — SyntaxTreeForm.PopulateTreeview 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.
D2 · Cognitive Complexity · Display.EditKeyPress (cognitive 30) · ×1
  • Display.EditKeyPress (cognitive 30) src/qbasic/Basic/Display/Display.vb:4999 — Display.EditKeyPress 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.
D2 · Cognitive Complexity · Interactive.ParseValue (cognitive 30) · ×1
  • Interactive.ParseValue (cognitive 30) src/qbasic/Basic/Interactive/Interactive.vb:18390 — Interactive.ParseValue 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.
D2 · Cognitive Complexity · Display.WriteCharacter (cognitive 29) · ×1
  • Display.WriteCharacter (cognitive 29) src/qbasic/Basic/Display/Display.vb:3435 — Display.WriteCharacter 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.
D2 · Cognitive Complexity · Interactive.InitArray (cognitive 29) · ×1
  • Interactive.InitArray (cognitive 29) src/qbasic/Basic/Interactive/Interactive.vb:7452 — Interactive.InitArray 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.
D2 · Cognitive Complexity · WindowsFileSystem.CsvSplit (cognitive 29) · ×1
  • WindowsFileSystem.CsvSplit (cognitive 29) src/qbasic/Implementation/WindowsFileSystem.vb:416 — WindowsFileSystem.CsvSplit 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.
D2 · Cognitive Complexity · Binder.BindPrintStatement (cognitive 29) · ×1
  • Binder.BindPrintStatement (cognitive 29) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2095 — Binder.BindPrintStatement 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.
D2 · Cognitive Complexity · Display.SetPalette (cognitive 28) · ×1
  • Display.SetPalette (cognitive 28) src/qbasic/Basic/Display/Display.vb:4409 — Display.SetPalette 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.
D2 · Cognitive Complexity · Interactive.InternalClose (cognitive 27) · ×1
  • Interactive.InternalClose (cognitive 27) src/qbasic/Basic/Interactive/Interactive.vb:5770 — Interactive.InternalClose 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.
D2 · Cognitive Complexity · Interactive.ExecuteFilesParseResult (cognitive 27) · ×1
  • Interactive.ExecuteFilesParseResult (cognitive 27) src/qbasic/Basic/Interactive/Interactive.vb:7730 — Interactive.ExecuteFilesParseResult 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.
D2 · Cognitive Complexity · Interactive.ExecuteOnKey (cognitive 27) · ×1
  • Interactive.ExecuteOnKey (cognitive 27) src/qbasic/Basic/Interactive/Interactive.vb:11520 — Interactive.ExecuteOnKey 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. This shape REPEATS in the file: one other method here (Interactive.ExecuteOnTimer) 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.
D2 · Cognitive Complexity · Interactive.ExecuteOnTimer (cognitive 27) · ×1
  • Interactive.ExecuteOnTimer (cognitive 27) src/qbasic/Basic/Interactive/Interactive.vb:11563 — Interactive.ExecuteOnTimer 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. This shape REPEATS in the file: one other method here (Interactive.ExecuteOnKey) 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.
D2 · Cognitive Complexity · Interactive.ExecuteOption (cognitive 27) · ×1
  • Interactive.ExecuteOption (cognitive 27) src/qbasic/Basic/Interactive/Interactive.vb:11923 — Interactive.ExecuteOption 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.
D2 · Cognitive Complexity · MessageDialog.ProcessKeys (cognitive 27) · ×1
  • MessageDialog.ProcessKeys (cognitive 27) src/qbasic/MessageDialog.vb:53 — MessageDialog.ProcessKeys 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.
D2 · Cognitive Complexity · Evaluator.EvaluateIfStatement (cognitive 27) · ×1
  • Evaluator.EvaluateIfStatement (cognitive 27) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3165 — Evaluator.EvaluateIfStatement 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.
D2 · Cognitive Complexity · Parser.ParseOnStatement (cognitive 27) · ×1
  • Parser.ParseOnStatement (cognitive 27) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2548 — Parser.ParseOnStatement 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.
D2 · Cognitive Complexity · SyntaxNode.GetChildren (cognitive 27) · ×1
  • SyntaxNode.GetChildren (cognitive 27) src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:135 — SyntaxNode.GetChildren 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.
D2 · Cognitive Complexity · Display.Screen (cognitive 26) · ×1
  • Display.Screen (cognitive 26) src/qbasic/Basic/Display/Display.vb:2752 — Display.Screen 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.
D2 · Cognitive Complexity · ListboxControl.OnKeyPress (cognitive 26) · ×1
  • ListboxControl.OnKeyPress (cognitive 26) src/qbasic/Components/ListBoxControl.vb:35 — ListboxControl.OnKeyPress 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.
D2 · Cognitive Complexity · Binder.BindDimStatement (cognitive 25) · ×1
  • Binder.BindDimStatement (cognitive 25) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2736 — Binder.BindDimStatement has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.CheckKeyPressed (cognitive 25) · ×1
  • Evaluator.CheckKeyPressed (cognitive 25) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1970 — Evaluator.CheckKeyPressed has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateSelectCaseStatement (cognitive 25) · ×1
  • Evaluator.EvaluateSelectCaseStatement (cognitive 25) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2194 — Evaluator.EvaluateSelectCaseStatement has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax (cognitive 25) · ×1
  • QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax (cognitive 25) src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:588 — QBasicToVbNetRewriter.ConvertPrintStatementUsingSyntax has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteResume (cognitive 24) · ×1
  • Interactive.ExecuteResume (cognitive 24) src/qbasic/Basic/Interactive/Interactive.vb:14610 — Interactive.ExecuteResume has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · BoundLiteralExpression.New.ctor (cognitive 24) · ×1
  • BoundLiteralExpression.New.ctor (cognitive 24) src/qbasic/QB/CodeAnalysis/Binding/BoundLiteralExpression.vb:8 — BoundLiteralExpression.New.ctor has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.InternalGetBounds (cognitive 23) · ×1
  • Interactive.InternalGetBounds (cognitive 23) src/qbasic/Basic/Interactive/Interactive.vb:4536 — Interactive.InternalGetBounds 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.
D2 · Cognitive Complexity · Interactive.ExecuteOnPen (cognitive 23) · ×1
  • Interactive.ExecuteOnPen (cognitive 23) src/qbasic/Basic/Interactive/Interactive.vb:11607 — Interactive.ExecuteOnPen 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.
D2 · Cognitive Complexity · DocumentPanel.InsertAction (cognitive 23) · ×1
  • DocumentPanel.InsertAction (cognitive 23) src/qbasic/DocumentPanel.vb:1009 — DocumentPanel.InsertAction 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.
D2 · Cognitive Complexity · Program.Main (cognitive 23) · ×1
  • Program.Main (cognitive 23) src/qbasic/Program.vb:67 — Program.Main 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.
D2 · Cognitive Complexity · QBasic.OnUserCreate (cognitive 23) · ×1
  • QBasic.OnUserCreate (cognitive 23) src/qbasic/Program.vb:933 — QBasic.OnUserCreate 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.
D2 · Cognitive Complexity · Binder.BindFieldStatement (cognitive 23) · ×1
  • Binder.BindFieldStatement (cognitive 23) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1406 — Binder.BindFieldStatement 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.
D2 · Cognitive Complexity · Parser.ParseLineStatement (cognitive 23) · ×1
  • Parser.ParseLineStatement (cognitive 23) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2246 — Parser.ParseLineStatement 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.
D2 · Cognitive Complexity · AudioDevice.EmitTone (cognitive 23) · ×1
  • AudioDevice.EmitTone (cognitive 23) src/qbasic/QBLib/Audio/AudioDevice.vb:460 — AudioDevice.EmitTone 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.
D2 · Cognitive Complexity · Interactive.ExecuteClose (cognitive 22) · ×1
  • Interactive.ExecuteClose (cognitive 22) src/qbasic/Basic/Interactive/Interactive.vb:5705 — Interactive.ExecuteClose 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.
D2 · Cognitive Complexity · Interactive.ExecuteField (cognitive 22) · ×1
  • Interactive.ExecuteField (cognitive 22) src/qbasic/Basic/Interactive/Interactive.vb:7649 — Interactive.ExecuteField 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.
D2 · Cognitive Complexity · Interactive.ExecuteShell (cognitive 22) · ×1
  • Interactive.ExecuteShell (cognitive 22) src/qbasic/Basic/Interactive/Interactive.vb:15458 — Interactive.ExecuteShell 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.
D2 · Cognitive Complexity · Interactive.ExecuteSwap (cognitive 22) · ×1
  • Interactive.ExecuteSwap (cognitive 22) src/qbasic/Basic/Interactive/Interactive.vb:15633 — Interactive.ExecuteSwap 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.
D2 · Cognitive Complexity · Program.WriteNodeWithTrivia (cognitive 22) · ×1
  • Program.WriteNodeWithTrivia (cognitive 22) src/qbasic/Program.vb:478 — Program.WriteNodeWithTrivia 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.
D2 · Cognitive Complexity · QBasic.NewWndProc (cognitive 22) · ×1
  • QBasic.NewWndProc (cognitive 22) src/qbasic/Program.vb:1104 — QBasic.NewWndProc 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.
D2 · Cognitive Complexity · Binder.BindDefTypeStatement (cognitive 22) · ×1
  • Binder.BindDefTypeStatement (cognitive 22) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2292 — Binder.BindDefTypeStatement 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.
D2 · Cognitive Complexity · BoundConversionExpression.New.ctor (cognitive 22) · ×1
  • BoundConversionExpression.New.ctor (cognitive 22) src/qbasic/QB/CodeAnalysis/Binding/BoundConversionExpression.vb:10 — BoundConversionExpression.New.ctor 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.
D2 · Cognitive Complexity · BoundTreeRewriter.RewritePrintStatement (cognitive 22) · ×1
  • BoundTreeRewriter.RewritePrintStatement (cognitive 22) src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb:177 — BoundTreeRewriter.RewritePrintStatement 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.
D2 · Cognitive Complexity · Evaluator.EmitPlayNote (cognitive 22) · ×1
  • Evaluator.EmitPlayNote (cognitive 22) src/qbasic/QB/CodeAnalysis/Evaluator.vb:6081 — Evaluator.EmitPlayNote 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.
D2 · Cognitive Complexity · Parser.ParseStatement (cognitive 22) · ×1
  • Parser.ParseStatement (cognitive 22) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:127 — Parser.ParseStatement 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.
D2 · Cognitive Complexity · Interactive.ProcessCommand (cognitive 21) · ×1
  • Interactive.ProcessCommand (cognitive 21) src/qbasic/Basic/Interactive/Interactive.vb:1673 — Interactive.ProcessCommand has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteColor (cognitive 21) · ×1
  • Interactive.ExecuteColor (cognitive 21) src/qbasic/Basic/Interactive/Interactive.vb:6480 — Interactive.ExecuteColor has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePreset (cognitive 21) · ×1
  • Interactive.ExecutePreset (cognitive 21) src/qbasic/Basic/Interactive/Interactive.vb:12258 — Interactive.ExecutePreset 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. This shape REPEATS in the file: one other method here (Interactive.ExecutePset) 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.
D2 · Cognitive Complexity · Interactive.ExecutePset (cognitive 21) · ×1
  • Interactive.ExecutePset (cognitive 21) src/qbasic/Basic/Interactive/Interactive.vb:13578 — Interactive.ExecutePset 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. This shape REPEATS in the file: one other method here (Interactive.ExecutePreset) 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.
D2 · Cognitive Complexity · Interactive.SetNumericVariable (cognitive 21) · ×1
  • Interactive.SetNumericVariable (cognitive 21) src/qbasic/Basic/Interactive/Interactive.vb:16605 — Interactive.SetNumericVariable has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Parser.FindEndOfStatement (cognitive 21) · ×1
  • Parser.FindEndOfStatement (cognitive 21) src/qbasic/Basic/Parser/Parser.vb:970 — Parser.FindEndOfStatement has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DocumentPanel.DeleteRestOfWordAction (cognitive 21) · ×1
  • DocumentPanel.DeleteRestOfWordAction (cognitive 21) src/qbasic/DocumentPanel.vb:982 — DocumentPanel.DeleteRestOfWordAction has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · HelpDialog.ProcessKeys (cognitive 21) · ×1
  • HelpDialog.ProcessKeys (cognitive 21) src/qbasic/HelpDialog.vb:84 — HelpDialog.ProcessKeys has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · QBasic.MakeExeFileFbcAction (cognitive 21) · ×1
  • QBasic.MakeExeFileFbcAction (cognitive 21) src/qbasic/Program.vb:2674 — QBasic.MakeExeFileFbcAction has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindSingleLineIfStatement (cognitive 21) · ×1
  • Binder.BindSingleLineIfStatement (cognitive 21) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2552 — Binder.BindSingleLineIfStatement has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.ParsePrintUsingFormat (cognitive 21) · ×1
  • Evaluator.ParsePrintUsingFormat (cognitive 21) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2631 — Evaluator.ParsePrintUsingFormat has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Parser.New.ctor (cognitive 21) · ×1
  • Parser.New.ctor (cognitive 21) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:19 — Parser.New.ctor has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Video.POINT (cognitive 21) · ×1
  • Video.POINT (cognitive 21) src/qbasic/QBLib/Video.vb:2335 — Video.POINT has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteKill (cognitive 20) · ×1
  • Interactive.ExecuteKill (cognitive 20) src/qbasic/Basic/Interactive/Interactive.vb:10233 — Interactive.ExecuteKill 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.
D2 · Cognitive Complexity · Interactive.PullNumericFormat (cognitive 20) · ×1
  • Interactive.PullNumericFormat (cognitive 20) src/qbasic/Basic/Interactive/Interactive.vb:12647 — Interactive.PullNumericFormat 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.
D2 · Cognitive Complexity · Interactive.ExecuteSound (cognitive 20) · ×1
  • Interactive.ExecuteSound (cognitive 20) src/qbasic/Basic/Interactive/Interactive.vb:15556 — Interactive.ExecuteSound 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.
D2 · Cognitive Complexity · Binder.BindConstStatement (cognitive 20) · ×1
  • Binder.BindConstStatement (cognitive 20) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2774 — Binder.BindConstStatement 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.
D2 · Cognitive Complexity · BoundScope.TryLookupFunctionByNameAndArityPreferSpecific (cognitive 20) · ×1
  • BoundScope.TryLookupFunctionByNameAndArityPreferSpecific (cognitive 20) src/qbasic/QB/CodeAnalysis/Binding/BoundScope.vb:159 — BoundScope.TryLookupFunctionByNameAndArityPreferSpecific 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.
D2 · Cognitive Complexity · ConstantFolding.ComputeConstant (cognitive 20) · ×1
  • ConstantFolding.ComputeConstant (cognitive 20) src/qbasic/QB/CodeAnalysis/Binding/ConstantFolding.vb:7 — ConstantFolding.ComputeConstant 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.
D2 · Cognitive Complexity · TypeSymbol.TypeSymbolToType (cognitive 20) · ×1
  • TypeSymbol.TypeSymbolToType (cognitive 20) src/qbasic/QB/CodeAnalysis/Symbols/TypeSymbol.vb:29 — TypeSymbol.TypeSymbolToType 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.
D2 · Cognitive Complexity · Video.WriteCharacter (cognitive 20) · ×1
  • Video.WriteCharacter (cognitive 20) src/qbasic.compatibility/Video.vb:2109 — Video.WriteCharacter 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.
D2 · Cognitive Complexity · SoundGenerator.InternalNew (cognitive 19) · ×1
  • SoundGenerator.InternalNew (cognitive 19) src/qbasic/Basic/Audio/SoundGenerator.vb:33 — SoundGenerator.InternalNew has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.InsertUpdateSourceLine (cognitive 19) · ×1
  • Interactive.InsertUpdateSourceLine (cognitive 19) src/qbasic/Basic/Interactive/Interactive.vb:1836 — Interactive.InsertUpdateSourceLine has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecuteLock (cognitive 19) · ×1
  • Interactive.ExecuteLock (cognitive 19) src/qbasic/Basic/Interactive/Interactive.vb:10613 — Interactive.ExecuteLock 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. This shape REPEATS in the file: one other method here (Interactive.ExecuteUnlock) 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.
D2 · Cognitive Complexity · Interactive.ExecuteUnlock (cognitive 19) · ×1
  • Interactive.ExecuteUnlock (cognitive 19) src/qbasic/Basic/Interactive/Interactive.vb:15790 — Interactive.ExecuteUnlock 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. This shape REPEATS in the file: one other method here (Interactive.ExecuteLock) 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.
D2 · Cognitive Complexity · Interactive.ExecuteWrite (cognitive 19) · ×1
  • Interactive.ExecuteWrite (cognitive 19) src/qbasic/Basic/Interactive/Interactive.vb:16500 — Interactive.ExecuteWrite has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MkCv.CVS (cognitive 19) · ×1
  • MkCv.CVS (cognitive 19) src/qbasic/Basic/VisualBasic/MKI.vb:46 — MkCv.CVS 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. This shape REPEATS in the file: one other method here (MkCv.CVD) 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.
D2 · Cognitive Complexity · MkCv.CVD (cognitive 19) · ×1
  • MkCv.CVD (cognitive 19) src/qbasic/Basic/VisualBasic/MKI.vb:122 — MkCv.CVD 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. This shape REPEATS in the file: one other method here (MkCv.CVS) 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.
D2 · Cognitive Complexity · Binder.BindLetStatement (cognitive 19) · ×1
  • Binder.BindLetStatement (cognitive 19) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1674 — Binder.BindLetStatement has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindReturnStatement (cognitive 19) · ×1
  • Binder.BindReturnStatement (cognitive 19) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2483 — Binder.BindReturnStatement has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateRestoreStatement (cognitive 19) · ×1
  • Evaluator.EvaluateRestoreStatement (cognitive 19) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1446 — Evaluator.EvaluateRestoreStatement has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateHandlePrintStatement (cognitive 19) · ×1
  • Evaluator.EvaluateHandlePrintStatement (cognitive 19) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3098 — Evaluator.EvaluateHandlePrintStatement has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Parser.ParseOpenStatement (cognitive 19) · ×1
  • Parser.ParseOpenStatement (cognitive 19) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2703 — Parser.ParseOpenStatement has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Core.CVDMBF (cognitive 19) · ×1
  • Core.CVDMBF (cognitive 19) src/qbasic/QBLib/Core.vb:750 — Core.CVDMBF has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Devices.CVS (cognitive 19) · ×1
  • Devices.CVS (cognitive 19) src/qbasic.compatibility/Devices.vb:52 — Devices.CVS 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. This shape REPEATS in the file: one other method here (Devices.CVD) 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.
D2 · Cognitive Complexity · Devices.CVD (cognitive 19) · ×1
  • Devices.CVD (cognitive 19) src/qbasic.compatibility/Devices.vb:128 — Devices.CVD 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. This shape REPEATS in the file: one other method here (Devices.CVS) 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.
D2 · Cognitive Complexity · Interactive.ExecuteExponentation (cognitive 18) · ×1
  • Interactive.ExecuteExponentation (cognitive 18) src/qbasic/Basic/Interactive/Interactive.vb:3166 — Interactive.ExecuteExponentation has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.InternalPut (cognitive 18) · ×1
  • Interactive.InternalPut (cognitive 18) src/qbasic/Basic/Interactive/Interactive.vb:17468 — Interactive.InternalPut has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Form.OnDraw (cognitive 18) · ×1
  • Form.OnDraw (cognitive 18) src/qbasic/Components/Form.vb:162 — Form.OnDraw has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · HorizontalListboxControl.OnDraw (cognitive 18) · ×1
  • HorizontalListboxControl.OnDraw (cognitive 18) src/qbasic/Components/HorizontalListBoxControl.vb:103 — HorizontalListboxControl.OnDraw has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WindowsFileSystem.EnforceActualPath (cognitive 18) · ×1
  • WindowsFileSystem.EnforceActualPath (cognitive 18) src/qbasic/Implementation/WindowsFileSystem.vb:876 — WindowsFileSystem.EnforceActualPath has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindEraseStatement (cognitive 18) · ×1
  • Binder.BindEraseStatement (cognitive 18) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2905 — Binder.BindEraseStatement has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · JsEmitter.EmitBinaryExpression (cognitive 18) · ×1
  • JsEmitter.EmitBinaryExpression (cognitive 18) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:334 — JsEmitter.EmitBinaryExpression has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MsilEmitter.Emit_ResolveMethod (cognitive 18) · ×1
  • MsilEmitter.Emit_ResolveMethod (cognitive 18) src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:651 — MsilEmitter.Emit_ResolveMethod has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.Evaluate (cognitive 18) · ×1
  • Evaluator.Evaluate (cognitive 18) src/qbasic/QB/CodeAnalysis/Evaluator.vb:471 — Evaluator.Evaluate has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateRedimStatement (cognitive 18) · ×1
  • Evaluator.EvaluateRedimStatement (cognitive 18) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3347 — Evaluator.EvaluateRedimStatement has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluatePrintFileStatement (cognitive 18) · ×1
  • Evaluator.EvaluatePrintFileStatement (cognitive 18) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5377 — Evaluator.EvaluatePrintFileStatement has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Core.CVSMBF (cognitive 18) · ×1
  • Core.CVSMBF (cognitive 18) src/qbasic/QBLib/Core.vb:560 — Core.CVSMBF has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Display.CheckPointBoundary (cognitive 17) · ×1
  • Display.CheckPointBoundary (cognitive 17) src/qbasic/Basic/Display/Display.vb:1795 — Display.CheckPointBoundary 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.
D2 · Cognitive Complexity · Interactive.PrepareData (cognitive 17) · ×1
  • Interactive.PrepareData (cognitive 17) src/qbasic/Basic/Interactive/Interactive.vb:14912 — Interactive.PrepareData 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.
D2 · Cognitive Complexity · Interactive.ExecuteViewPrint (cognitive 17) · ×1
  • Interactive.ExecuteViewPrint (cognitive 17) src/qbasic/Basic/Interactive/Interactive.vb:15967 — Interactive.ExecuteViewPrint 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.
D2 · Cognitive Complexity · Interactive.InternalProcessText (cognitive 17) · ×1
  • Interactive.InternalProcessText (cognitive 17) src/qbasic/Basic/Interactive/Interactive.vb:18676 — Interactive.InternalProcessText 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.
D2 · Cognitive Complexity · Common.QInstrB (cognitive 17) · ×1
  • Common.QInstrB (cognitive 17) src/qbasic/Common.vb:467 — Common.QInstrB 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.
D2 · Cognitive Complexity · DocumentPanel.RemoveBlock (cognitive 17) · ×1
  • DocumentPanel.RemoveBlock (cognitive 17) src/qbasic/DocumentPanel.vb:418 — DocumentPanel.RemoveBlock 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.
D2 · Cognitive Complexity · MsilEmitter.EmitBinaryExpression (cognitive 17) · ×1
  • MsilEmitter.EmitBinaryExpression (cognitive 17) src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:219 — MsilEmitter.EmitBinaryExpression 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.
D2 · Cognitive Complexity · VbEmitter.EmitBinaryExpression (cognitive 17) · ×1
  • VbEmitter.EmitBinaryExpression (cognitive 17) src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:237 — VbEmitter.EmitBinaryExpression 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.
D2 · Cognitive Complexity · Evaluator.EvaluateGetFileStatement (cognitive 17) · ×1
  • Evaluator.EvaluateGetFileStatement (cognitive 17) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5474 — Evaluator.EvaluateGetFileStatement 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.
D2 · Cognitive Complexity · Lowerer.RewriteIfStatement (cognitive 17) · ×1
  • Lowerer.RewriteIfStatement (cognitive 17) src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:77 — Lowerer.RewriteIfStatement 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.
D2 · Cognitive Complexity · Lexer.ReadTrivia (cognitive 17) · ×1
  • Lexer.ReadTrivia (cognitive 17) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:83 — Lexer.ReadTrivia 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.
D2 · Cognitive Complexity · Parser.ParseInputStatement (cognitive 17) · ×1
  • Parser.ParseInputStatement (cognitive 17) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2067 — Parser.ParseInputStatement 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.
D2 · Cognitive Complexity · QBasicToVbNetRewriter.AnalyzeCompilationUnit (cognitive 17) · ×1
  • QBasicToVbNetRewriter.AnalyzeCompilationUnit (cognitive 17) src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:75 — QBasicToVbNetRewriter.AnalyzeCompilationUnit 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.
D2 · Cognitive Complexity · QBasicToVbNetRewriter.ConvertPrintNodesToConsoleCalls (cognitive 17) · ×1
  • QBasicToVbNetRewriter.ConvertPrintNodesToConsoleCalls (cognitive 17) src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:246 — QBasicToVbNetRewriter.ConvertPrintNodesToConsoleCalls 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.
D2 · Cognitive Complexity · Interactive.CheckLoopStacksBeforeReturn (cognitive 16) · ×1
  • Interactive.CheckLoopStacksBeforeReturn (cognitive 16) src/qbasic/Basic/Interactive/Interactive.vb:9413 — Interactive.CheckLoopStacksBeforeReturn has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.GetLabelList (cognitive 16) · ×1
  • Interactive.GetLabelList (cognitive 16) src/qbasic/Basic/Interactive/Interactive.vb:11665 — Interactive.GetLabelList has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interactive.ExecutePalette (cognitive 16) · ×1
  • Interactive.ExecutePalette (cognitive 16) src/qbasic/Basic/Interactive/Interactive.vb:12098 — Interactive.ExecutePalette has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WindowsFileSystem.Write (cognitive 16) · ×1
  • WindowsFileSystem.Write (cognitive 16) src/qbasic/Implementation/WindowsFileSystem.vb:814 — WindowsFileSystem.Write has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Program.HandleRoundtripMode (cognitive 16) · ×1
  • Program.HandleRoundtripMode (cognitive 16) src/qbasic/Program.vb:423 — Program.HandleRoundtripMode has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Binder.BindDefDeclaration (cognitive 16) · ×1
  • Binder.BindDefDeclaration (cognitive 16) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:506 — Binder.BindDefDeclaration has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ControlFlowGraph.CountFunctionNameAssignments (cognitive 16) · ×1
  • ControlFlowGraph.CountFunctionNameAssignments (cognitive 16) src/qbasic/QB/CodeAnalysis/Binding/ControlFlowGraph.vb:403 — ControlFlowGraph.CountFunctionNameAssignments has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Compilation.GetSymbols (cognitive 16) · ×1
  • Compilation.GetSymbols (cognitive 16) src/qbasic/QB/CodeAnalysis/Compilation.vb:119 — Compilation.GetSymbols has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Evaluator.EvaluateForStatement (cognitive 16) · ×1
  • Evaluator.EvaluateForStatement (cognitive 16) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1352 — Evaluator.EvaluateForStatement has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Parser.ParseIfStatement (cognitive 16) · ×1
  • Parser.ParseIfStatement (cognitive 16) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1937 — Parser.ParseIfStatement has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Interpreter.Run (cognitive 16) · ×1
  • Interpreter.Run (cognitive 16) src/qbasic/QB/Interpreter.vb:119 — Interpreter.Run has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WindowsAudio.GenerateBuffer (cognitive 16) · ×1
  • WindowsAudio.GenerateBuffer (cognitive 16) src/qbasic/QBLib/Audio/WindowsAudio.vb:380 — WindowsAudio.GenerateBuffer 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 pair (88 shared lines) · ×1
  • Near-duplicate member pair (88 shared lines) src/qbasic/Basic/Interactive/Interactive.vb:7922 — src/qbasic/Basic/Interactive/Interactive.vb:7922-8015 | src/qbasic/Basic/Interactive/Interactive.vb:8021-8116 — These two members are variants of one another: 88 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 (92 corresponding lines) · ×1
  • Edited copy of a member (92 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:3633 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:3633-3729 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:3733-3836 — These two members are one piece of code written twice and then edited apart: 92 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) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:468 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:468-502 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:508-544 — 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 (14 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (14 members, 50+ identical tokens) src/qbasic/AboutDialog.vb:66 — src/qbasic/AboutDialog.vb:66-96 | src/qbasic/ChangeDialog.vb:99-129 | src/qbasic/DisplayDialog.vb:152-182 | src/qbasic/FindDialog.vb:83-113 | src/qbasic/HelpPathDialog.vb:70-100 | src/qbasic/MessageDialog.vb:62-90 | src/qbasic/NewFunctionDialog.vb:78-108 | src/qbasic/NewSubDialog.vb:78-108 | src/qbasic/OpenDialog.vb:152-251 | src/qbasic/PrintDialog.vb:88-118 | src/qbasic/SaveAsDialog.vb:139-212 | src/qbasic/SavePrompt.vb:73-114 | src/qbasic/SubsDialog.vb:100-130 | src/qbasic/WelcomeDialog.vb:71-101 — These 14 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 14 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 14 times.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (6 members, 50+ identical tokens) src/qbasic/NewFunctionDialog.vb:24 — src/qbasic/NewFunctionDialog.vb:24-58 | src/qbasic/NewSubDialog.vb:24-58 | src/qbasic/OpenDialog.vb:40-121 | src/qbasic/PrintDialog.vb:26-70 | src/qbasic/SaveAsDialog.vb:39-106 | src/qbasic/SubsDialog.vb:26-77 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/qbasic/Basic/Parser/Dialect/Parser.Dialect.AmigaBasic.vb:110 — src/qbasic/Basic/Parser/Dialect/Parser.Dialect.AmigaBasic.vb:110-127 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.GwBasic.vb:211-228 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.Hybrid.vb:133-150 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.Qbasic.vb:117-134 | src/qbasic/Basic/Parser/Dialect/Parser.Dialect.TinyBasic.vb:111-128 — 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 · Edited copies of one member (3 members, 195+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 195+ corresponding lines) src/qbasic.compatibility/Video.vb:1082 — src/qbasic.compatibility/Video.vb:1082-1279 | src/qbasic/Basic/Display/Display.vb:1925-2119 | src/qbasic/QBLib/Video.vb:1343-1551 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 195 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (89 corresponding lines) · ×1
  • Edited copy of a member (89 corresponding lines) src/qbasic/QBLib/Video.vb:2096 — src/qbasic/QBLib/Video.vb:2096-2203 | src/qbasic.compatibility/Console.vb:94-182 — These two members are one piece of code written twice and then edited apart: 89 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 (47 corresponding lines) · ×1
  • Edited copy of a member (47 corresponding lines) src/qbasic/Basic/VisualBasic/Conversion.vb:142 — src/qbasic/Basic/VisualBasic/Conversion.vb:142-188 | src/qbasic/Basic/VisualBasic/Conversion.vb:209-255 — These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 63+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 63+ corresponding lines) src/qbasic.compatibility/Devices.vb:54 — src/qbasic.compatibility/Devices.vb:54-124 | src/qbasic.compatibility/Devices.vb:130-201 | src/qbasic/Basic/VisualBasic/MKI.vb:48-118 | src/qbasic/Basic/VisualBasic/MKI.vb:124-195 | src/qbasic/QBLib/Core.vb:564-627 | src/qbasic/QBLib/Core.vb:753-815 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 63 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (72 corresponding lines) · ×1
  • Edited copy of a member (72 corresponding lines) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:336 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:336-416 | src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:240-311 — These two members are one piece of code written twice and then edited apart: 72 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 (40 corresponding lines) · ×1
  • Edited copy of a member (40 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2623 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2623-2662 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:2666-2705 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (54 corresponding lines) · ×1
  • Edited copy of a member (54 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1838 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1838-1891 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3128-3181 — These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 49+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 49+ corresponding lines) src/qbasic.compatibility/Devices.vb:264 — src/qbasic.compatibility/Devices.vb:264-316 | src/qbasic.compatibility/Devices.vb:322-381 | src/qbasic/Basic/VisualBasic/MKI.vb:257-309 | src/qbasic/Basic/VisualBasic/MKI.vb:315-374 | src/qbasic/QBLib/Core.vb:653-701 | src/qbasic/QBLib/Core.vb:821-870 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 49 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (49 corresponding lines) · ×1
  • Edited copy of a member (49 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:12260 — src/qbasic/Basic/Interactive/Interactive.vb:12260-12308 | src/qbasic/Basic/Interactive/Interactive.vb:13580-13628 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (58 corresponding lines) · ×1
  • Edited copy of a member (58 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:16127 — src/qbasic/Basic/Interactive/Interactive.vb:16127-16184 | src/qbasic/Basic/Interactive/Interactive.vb:16190-16247 — These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (63 corresponding lines) · ×1
  • Edited copy of a member (63 corresponding lines) src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:211 — src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:211-273 | src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:278-341 — These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (57 corresponding lines) · ×1
  • Edited copy of a member (57 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5475 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:5475-5536 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:5540-5596 — These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (23 corresponding lines) · ×1
  • Edited copy of a member (23 corresponding lines) src/qbasic/Basic/VisualBasic/Conversion.vb:27 — src/qbasic/Basic/VisualBasic/Conversion.vb:27-52 | src/qbasic/Basic/VisualBasic/Conversion.vb:86-108 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (34 corresponding lines) · ×1
  • Edited copy of a member (34 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2334 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:2334-2367 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:2371-2404 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (50 corresponding lines) · ×1
  • Edited copy of a member (50 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:10615 — src/qbasic/Basic/Interactive/Interactive.vb:10615-10664 | src/qbasic/Basic/Interactive/Interactive.vb:15792-15841 — These two members are one piece of code written twice and then edited apart: 50 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 (30 corresponding lines) · ×1
  • Edited copy of a member (30 corresponding lines) src/qbasic/Basic/VisualBasic/MKI.vb:222 — src/qbasic/Basic/VisualBasic/MKI.vb:222-251 | src/qbasic.compatibility/Devices.vb:229-258 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (39 corresponding lines) · ×1
  • Edited copy of a member (39 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:10996 — src/qbasic/Basic/Interactive/Interactive.vb:10996-11034 | src/qbasic/Basic/Interactive/Interactive.vb:14737-14775 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (38 corresponding lines) · ×1
  • Edited copy of a member (38 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:11522 — src/qbasic/Basic/Interactive/Interactive.vb:11522-11559 | src/qbasic/Basic/Interactive/Interactive.vb:11565-11603 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (41 corresponding lines) · ×1
  • Edited copy of a member (41 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:5601 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:5601-5641 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:5646-5689 — These two members are one piece of code written twice and then edited apart: 41 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 (76 corresponding lines) · ×1
  • Edited copy of a member (76 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:4210 — src/qbasic/Basic/Interactive/Interactive.vb:4210-4382 | src/qbasic/Basic/Interactive/Interactive.vb:4400-4475 — These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×1
  • Edited copy of a member (24 corresponding lines) src/qbasic/Basic/Display/Display.vb:3688 — src/qbasic/Basic/Display/Display.vb:3688-3711 | src/qbasic/Basic/Display/Display.vb:3719-3742 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 18+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1762 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1762-1779 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1797-1829 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3795-3814 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×1
  • Edited copy of a member (19 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:825 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:825-843 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:902-921 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 25+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 25+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:343 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:343-368 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2973-2997 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3095-3119 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×1
  • Edited copy of a member (27 corresponding lines) src/qbasic/Basic/Interactive/Interactive.vb:15494 — src/qbasic/Basic/Interactive/Interactive.vb:15494-15520 | src/qbasic/Basic/Interactive/Interactive.vb:15526-15552 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (13 corresponding lines) · ×1
  • Edited copy of a member (13 corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2403 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:2403-2415 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3903-3915 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 14+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 14+ corresponding lines) src/qbasic/Common.vb:572 — src/qbasic/Common.vb:572-585 | src/qbasic/Common.vb:592-605 | src/qbasic/Common.vb:612-625 | src/qbasic/Common.vb:632-645 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×1
  • Edited copy of a member (12 corresponding lines) src/qbasic/Components/CheckboxControl.vb:51 — src/qbasic/Components/CheckboxControl.vb:51-62 | src/qbasic/Components/RadioButtonControl.vb:45-56 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×1
  • Edited copy of a member (20 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:366 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:366-385 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:389-411 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×1
  • Edited copy of a member (28 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:368 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:368-395 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:401-462 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 4+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 4+ corresponding lines) src/qbasic/FindDialog.vb:68 — src/qbasic/FindDialog.vb:68-71 | src/qbasic/HelpPathDialog.vb:55-58 | src/qbasic/NewFunctionDialog.vb:63-66 | src/qbasic/NewSubDialog.vb:63-66 | src/qbasic/SubsDialog.vb:83-87 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 14+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/GetStatementSyntax.vb:7 — src/qbasic/QB/CodeAnalysis/Syntax/GetStatementSyntax.vb:7-23 | src/qbasic/QB/CodeAnalysis/Syntax/ViewStatementSyntax.vb:6-23 | src/qbasic/QB/CodeAnalysis/Syntax/WindowStatementSyntax.vb:7-20 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×1
  • Edited copy of a member (17 corresponding lines) src/qbasic/QBLib/Video.vb:2246 — src/qbasic/QBLib/Video.vb:2246-2262 | src/qbasic.compatibility/Video.vb:2079-2095 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (3 corresponding lines) · ×1
  • Edited copy of a member (3 corresponding lines) src/qbasic/QB/Interpreter.vb:80 — src/qbasic/QB/Interpreter.vb:80-82 | src/qbasic/QB/Interpreter.vb:111-116 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (4 corresponding lines) · ×1
  • Edited copy of a member (4 corresponding lines) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1465 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1465-1468 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1483-1486 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×1
  • Edited copy of a member (26 corresponding lines) src/qbasic/QB/CodeAnalysis/Evaluator.vb:1820 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:1820-1845 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:1850-1876 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 10+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 10+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/FunctionDeclarationSyntax.vb:15 — src/qbasic/QB/CodeAnalysis/Syntax/FunctionDeclarationSyntax.vb:15-24 | src/qbasic/QB/CodeAnalysis/Syntax/FunctionStatementSyntax.vb:7-17 | src/qbasic/QB/CodeAnalysis/Syntax/SubStatementSyntax.vb:7-16 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 6+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 6+ corresponding lines) src/qbasic/QB/CodeAnalysis/Syntax/LockRangeStatementSyntax.vb:7 — src/qbasic/QB/CodeAnalysis/Syntax/LockRangeStatementSyntax.vb:7-14 | src/qbasic/QB/CodeAnalysis/Syntax/LockStatementSyntax.vb:7-12 | src/qbasic/QB/CodeAnalysis/Syntax/UnlockRangeStatementSyntax.vb:7-14 | src/qbasic/QB/CodeAnalysis/Syntax/UnlockStatementSyntax.vb:7-12 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (175 lines × 2) · ×1
  • Duplicated block (175 lines × 2) src/qbasic.compatibility/Core.vb:241 — src/qbasic.compatibility/Core.vb:241-415 | src/qbasic/QBLib/Core.vb:236-410 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (103 lines × 2) · ×1
  • Duplicated block (103 lines × 2) src/qbasic.compatibility/Video.vb:1471 — src/qbasic.compatibility/Video.vb:1471-1573 | src/qbasic.compatibility/Video.vb:1617-1719 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (27–54 lines × 2) · ×1
  • Duplicated block (27–54 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:8865 — src/qbasic/Basic/Interactive/Interactive.vb:8865-8918 | src/qbasic/Basic/Interactive/Interactive.vb:8939-8965 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (52–53 lines × 2) · ×1
  • Duplicated block (52–53 lines × 2) src/qbasic.compatibility/Console.vb:130 — src/qbasic.compatibility/Console.vb:130-182 | src/qbasic/QBLib/Video.vb:2138-2189 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (29–43 lines × 2) · ×1
  • Duplicated block (29–43 lines × 2) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1580 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1580-1608 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1617-1659 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (38–40 lines × 2) · ×1
  • Duplicated block (38–40 lines × 2) src/qbasic.compatibility/Core.vb:55 — src/qbasic.compatibility/Core.vb:55-94 | src/qbasic/QBLib/Core.vb:49-86 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (37 lines × 2) · ×1
  • Duplicated block (37 lines × 2) src/qbasic.compatibility/Console.vb:94 — src/qbasic.compatibility/Console.vb:94-130 | src/qbasic/QBLib/Video.vb:2099-2135 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×1
  • Duplicated block (36 lines × 2) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:467 — src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:467-502 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:512-547 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (35–36 lines × 2) · ×1
  • Duplicated block (35–36 lines × 2) src/qbasic/Program.vb:2310 — src/qbasic/Program.vb:2310-2344 | src/qbasic/Program.vb:2372-2407 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:232 — src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:232-260 | src/qbasic/QB/CodeAnalysis/Lowering/Lowerer.vb:300-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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (28 lines × 3) · ×1
  • Duplicated block (28 lines × 3) src/qbasic/Basic/Interactive/Interactive.vb:12809 — src/qbasic/Basic/Interactive/Interactive.vb:12809-12836 | src/qbasic/Basic/Interactive/Interactive.vb:12843-12870 | src/qbasic/Basic/Interactive/Interactive.vb:12874-12901 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×1
  • Duplicated block (30 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:7922 — src/qbasic/Basic/Interactive/Interactive.vb:7922-7951 | src/qbasic/Basic/Interactive/Interactive.vb:8021-8050 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (29 lines × 8) · ×1
  • Duplicated block (29 lines × 8) src/qbasic/ChangeDialog.vb:101 — src/qbasic/ChangeDialog.vb:101-129 | src/qbasic/DisplayDialog.vb:154-182 | src/qbasic/FindDialog.vb:85-113 | src/qbasic/HelpPathDialog.vb:72-100 | src/qbasic/NewFunctionDialog.vb:80-108 | src/qbasic/NewSubDialog.vb:80-108 | src/qbasic/PrintDialog.vb:90-118 | src/qbasic/SubsDialog.vb:102-130 — before extracting anything, compare `src/qbasic/ChangeDialog.vb` and `src/qbasic/DisplayDialog.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (27–29 lines × 4) · ×1
  • Duplicated block (27–29 lines × 4) src/qbasic/Basic/Interactive/Interactive.vb:12808 — src/qbasic/Basic/Interactive/Interactive.vb:12808-12836 | src/qbasic/Basic/Interactive/Interactive.vb:12842-12870 | src/qbasic/Basic/Interactive/Interactive.vb:12873-12901 | src/qbasic/Basic/Interactive/Interactive.vb:12904-12930 — 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (25–29 lines × 3) · ×1
  • Duplicated block (25–29 lines × 3) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1681 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1681-1709 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1727-1751 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1764-1788 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:697 — src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:697-724 | src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:566-593 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (25 lines × 3) · ×1
  • Duplicated block (25 lines × 3) src/qbasic/Basic/Interactive/Interactive.vb:8865 — src/qbasic/Basic/Interactive/Interactive.vb:8865-8889 | src/qbasic/Basic/Interactive/Interactive.vb:8939-8963 | src/qbasic/Basic/Interactive/Interactive.vb:9028-9052 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (23–26 lines × 2) · ×1
  • Duplicated block (23–26 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:18136 — src/qbasic/Basic/Interactive/Interactive.vb:18136-18161 | src/qbasic/Basic/Interactive/Interactive.vb:18176-18198 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×1
  • Duplicated block (26 lines × 2) src/qbasic/QB/CodeAnalysis/Evaluator.vb:2334 — src/qbasic/QB/CodeAnalysis/Evaluator.vb:2334-2359 | src/qbasic/QB/CodeAnalysis/Evaluator.vb:2371-2396 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (22–25 lines × 3) · ×1
  • Duplicated block (22–25 lines × 3) src/qbasic/Basic/Display/Display.vb:303 — src/qbasic/Basic/Display/Display.vb:303-327 | src/qbasic/Basic/Display/Display.vb:353-374 | src/qbasic/Basic/Display/Display.vb:394-415 — 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, `src/qbasic/Basic/Display/Display.vb:391` calls `m_attributeEgaPalette` and `src/qbasic/Basic/Display/Display.vb:351` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (23 lines × 3) · ×1
  • Duplicated block (23 lines × 3) src/qbasic/NewFunctionDialog.vb:36 — src/qbasic/NewFunctionDialog.vb:36-58 | src/qbasic/NewSubDialog.vb:36-58 | src/qbasic/PrintDialog.vb:48-70 — before extracting anything, compare `src/qbasic/NewFunctionDialog.vb` and `src/qbasic/NewSubDialog.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (16–23 lines × 3) · ×1
  • Duplicated block (16–23 lines × 3) src/qbasic/Basic/Display/Display.vb:2678 — src/qbasic/Basic/Display/Display.vb:2678-2700 | src/qbasic/Basic/Display/Display.vb:2706-2721 | src/qbasic/Basic/Display/Display.vb:2726-2741 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×1
  • Duplicated block (19 lines × 3) src/qbasic/Basic/Display/Display.vb:421 — src/qbasic/Basic/Display/Display.vb:421-439 | src/qbasic/Basic/Display/Display.vb:446-464 | src/qbasic/Basic/Display/Display.vb:471-489 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8–22 lines × 2) · ×1
  • Duplicated block (8–22 lines × 2) src/qbasic/Basic/Audio/SoundGenerator.vb:563 — src/qbasic/Basic/Audio/SoundGenerator.vb:563-570 | src/qbasic/Basic/Audio/SoundGenerator.vb:579-600 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (21–22 lines × 2) · ×1
  • Duplicated block (21–22 lines × 2) src/qbasic/Basic/VisualBasic/MKI.vb:259 — src/qbasic/Basic/VisualBasic/MKI.vb:259-279 | src/qbasic/QBLib/Core.vb:655-676 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (21 lines × 3) · ×1
  • Duplicated block (21 lines × 3) src/qbasic/Basic/Interactive/Interactive.vb:6497 — src/qbasic/Basic/Interactive/Interactive.vb:6497-6519 | src/qbasic/Basic/Interactive/Interactive.vb:15061-15081 | src/qbasic/Basic/Interactive/Interactive.vb:15085-15105 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/qbasic/Basic/Interactive/Interactive.vb:6519` calls `PeekToken` and `src/qbasic/Basic/Interactive/Interactive.vb:15081` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18–21 lines × 2) · ×1
  • Duplicated block (18–21 lines × 2) src/qbasic/Basic/Display/Display.vb:322 — src/qbasic/Basic/Display/Display.vb:322-342 | src/qbasic/Basic/Display/Display.vb:494-511 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (17 lines × 6) · ×1
  • Duplicated block (17 lines × 6) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:596 — src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:596-612 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:624-640 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:652-668 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:680-696 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:708-724 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:736-752 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (16–20 lines × 4) · ×1
  • Duplicated block (16–20 lines × 4) src/qbasic/Basic/Display/Display.vb:326 — src/qbasic/Basic/Display/Display.vb:326-344 | src/qbasic/Basic/Display/Display.vb:428-447 | src/qbasic/Basic/Display/Display.vb:453-472 | src/qbasic/Basic/Display/Display.vb:498-513 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/qbasic/Basic/Display/Display.vb:496` calls `m_attributeEgaPalette` and `src/qbasic/Basic/Display/Display.vb:427` 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.
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:424 — src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:424-444 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:465-484 | src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:510-529 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:424` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 6) · ×1
  • Duplicated block (14 lines × 6) src/qbasic/Basic/Interactive/Interactive.vb:18746 — src/qbasic/Basic/Interactive/Interactive.vb:18746-18759 | src/qbasic/Basic/Interactive/Interactive.vb:18867-18880 | src/qbasic/Basic/Interactive/Interactive.vb:18889-18902 | src/qbasic/Basic/Interactive/Interactive.vb:18911-18924 | src/qbasic/Basic/Interactive/Interactive.vb:18933-18946 | src/qbasic/Basic/Interactive/Interactive.vb:18955-18968 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (15 lines × 6) · ×1
  • Duplicated block (15 lines × 6) src/qbasic/NewFunctionDialog.vb:44 — src/qbasic/NewFunctionDialog.vb:44-58 | src/qbasic/NewSubDialog.vb:44-58 | src/qbasic/OpenDialog.vb:107-121 | src/qbasic/PrintDialog.vb:56-70 | src/qbasic/SaveAsDialog.vb:92-106 | src/qbasic/SubsDialog.vb:57-71 — before extracting anything, compare `src/qbasic/NewFunctionDialog.vb` and `src/qbasic/NewSubDialog.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (13–17 lines × 2) · ×1
  • Duplicated block (13–17 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:865 — src/qbasic/Basic/Interactive/Interactive.vb:865-877 | src/qbasic/Basic/Interactive/Interactive.vb:1121-1137 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (15–16 lines × 3) · ×1
  • Duplicated block (15–16 lines × 3) src/qbasic.compatibility/Devices.vb:264 — src/qbasic.compatibility/Devices.vb:264-278 | src/qbasic/Basic/VisualBasic/MKI.vb:257-271 | src/qbasic/QBLib/Core.vb:653-668 — before extracting anything, compare `src/qbasic.compatibility/Devices.vb` and `src/qbasic/Basic/VisualBasic/MKI.vb` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (15 lines × 10) · ×1
  • Duplicated block (15 lines × 10) src/qbasic/ChangeDialog.vb:99 — src/qbasic/ChangeDialog.vb:99-113 | src/qbasic/DisplayDialog.vb:152-166 | src/qbasic/FindDialog.vb:83-97 | src/qbasic/HelpPathDialog.vb:70-84 | src/qbasic/NewFunctionDialog.vb:78-92 | src/qbasic/NewSubDialog.vb:78-92 | src/qbasic/OpenDialog.vb:152-166 | src/qbasic/PrintDialog.vb:88-102 | src/qbasic/SaveAsDialog.vb:139-153 | src/qbasic/SubsDialog.vb:100-114 — before extracting anything, compare `src/qbasic/ChangeDialog.vb` and `src/qbasic/DisplayDialog.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 7) · ×1
  • Duplicated block (8 lines × 7) src/qbasic/Basic/Display/Display.vb:282 — src/qbasic/Basic/Display/Display.vb:282-289 | src/qbasic/Basic/Display/Display.vb:336-343 | src/qbasic/Basic/Display/Display.vb:373-380 | src/qbasic/Basic/Display/Display.vb:414-421 | src/qbasic/Basic/Display/Display.vb:439-446 | src/qbasic/Basic/Display/Display.vb:464-471 | src/qbasic/Basic/Display/Display.vb:505-512 — 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.
D4 · Code Duplication · Duplicated block (13 lines × 6) · ×1
  • Duplicated block (13 lines × 6) src/qbasic/Basic/Display/Display.vb:552 — src/qbasic/Basic/Display/Display.vb:552-564 | src/qbasic/Basic/Display/Display.vb:665-677 | src/qbasic/Basic/Display/Display.vb:699-711 | src/qbasic/Basic/Display/Display.vb:733-745 | src/qbasic/Basic/Display/Display.vb:756-768 | src/qbasic/Basic/Display/Display.vb:779-791 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (13–14 lines × 3) · ×1
  • Duplicated block (13–14 lines × 3) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1762 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1762-1775 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1797-1809 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3795-3807 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1812` calls `ParseOptionalAsClause` and `src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3809` 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.
D4 · Code Duplication · Duplicated block (13 lines × 9) · ×1
  • Duplicated block (13 lines × 9) src/qbasic/Basic/Display/Display.vb:553 — src/qbasic/Basic/Display/Display.vb:553-565 | src/qbasic/Basic/Display/Display.vb:566-578 | src/qbasic/Basic/Display/Display.vb:594-606 | src/qbasic/Basic/Display/Display.vb:607-619 | src/qbasic/Basic/Display/Display.vb:666-678 | src/qbasic/Basic/Display/Display.vb:700-712 | src/qbasic/Basic/Display/Display.vb:734-746 | src/qbasic/Basic/Display/Display.vb:757-769 | src/qbasic/Basic/Display/Display.vb:780-792 — 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.
D4 · Code Duplication · Duplicated block (13 lines × 5) · ×1
  • Duplicated block (13 lines × 5) src/qbasic/Basic/Input/KeyEventArgs.vb:187 — src/qbasic/Basic/Input/KeyEventArgs.vb:187-200 | src/qbasic/Basic/Input/KeyEventArgs.vb:201-214 | src/qbasic/Basic/Input/KeyEventArgs.vb:215-228 | src/qbasic/Basic/Input/KeyEventArgs.vb:229-242 | src/qbasic/Basic/Input/KeyEventArgs.vb:275-287 — 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.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×1
  • Duplicated block (11 lines × 3) src/qbasic/Basic/Display/Display.vb:2167 — src/qbasic/Basic/Display/Display.vb:2167-2177 | src/qbasic/Basic/Display/Display.vb:2186-2196 | src/qbasic/Basic/Display/Display.vb:2210-2220 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) src/qbasic/Basic/Interactive/Interactive.vb:865 — src/qbasic/Basic/Interactive/Interactive.vb:865-877 | src/qbasic/Basic/Interactive/Interactive.vb:1121-1133 | src/qbasic/Basic/Interactive/Interactive.vb:18680-18692 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10–12 lines × 2) · ×1
  • Duplicated block (10–12 lines × 2) src/qbasic/DocumentPanel.vb:219 — src/qbasic/DocumentPanel.vb:219-228 | src/qbasic/HelpPanel.vb:95-106 — 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.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) src/qbasic/Basic/Display/Display.vb:1864 — src/qbasic/Basic/Display/Display.vb:1864-1874 | src/qbasic/Basic/Display/Display.vb:2233-2243 | src/qbasic/Basic/Display/Display.vb:2318-2328 | src/qbasic/Basic/Display/Display.vb:2349-2359 — 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.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×1
  • Duplicated block (9–11 lines × 2) src/qbasic/Basic/Interactive/Interactive.vb:2735 — src/qbasic/Basic/Interactive/Interactive.vb:2735-2745 | src/qbasic/Basic/Interactive/Interactive.vb:3393-3401 — 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, `src/qbasic/Basic/Interactive/Interactive.vb:2733` calls `PopToken` and `src/qbasic/Basic/Interactive/Interactive.vb:3392` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1091 — src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1091-1101 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1108-1117 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1145-1157 | src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1160-1169 — 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.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×1
  • Duplicated block (10 lines × 3) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:469 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:469-478 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:493-502 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:522-531 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 14) · ×1
  • Duplicated block (9 lines × 14) src/qbasic/AboutDialog.vb:66 — src/qbasic/AboutDialog.vb:66-74 | src/qbasic/ChangeDialog.vb:99-107 | src/qbasic/DisplayDialog.vb:152-160 | src/qbasic/FindDialog.vb:83-91 | src/qbasic/HelpPathDialog.vb:70-78 | src/qbasic/MessageDialog.vb:62-70 | src/qbasic/NewFunctionDialog.vb:78-86 | src/qbasic/NewSubDialog.vb:78-86 | src/qbasic/OpenDialog.vb:152-160 | src/qbasic/PrintDialog.vb:88-96 | src/qbasic/SaveAsDialog.vb:139-147 | src/qbasic/SavePrompt.vb:73-81 | src/qbasic/SubsDialog.vb:100-108 | src/qbasic/WelcomeDialog.vb:71-79 — before extracting anything, compare `src/qbasic/AboutDialog.vb` and `src/qbasic/MessageDialog.vb` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:771 — src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:771-778 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1850-1857 | src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:3133-3140 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×1
  • Duplicated block (7 lines × 5) src/qbasic/Basic/Interactive/Interactive.vb:8701 — src/qbasic/Basic/Interactive/Interactive.vb:8701-8707 | src/qbasic/Basic/Interactive/Interactive.vb:8754-8760 | src/qbasic/Basic/Interactive/Interactive.vb:8835-8850 | src/qbasic/Basic/Interactive/Interactive.vb:8909-8924 | src/qbasic/Basic/Interactive/Interactive.vb:8998-9013 — 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.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×1
  • Duplicated block (6 lines × 3) src/qbasic/Basic/Display/Display.vb:2247 — src/qbasic/Basic/Display/Display.vb:2247-2252 | src/qbasic/Basic/Display/Display.vb:2253-2258 | src/qbasic/Basic/Display/Display.vb:2259-2265 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: QBasic src/qbasic/QBasic.vbproj:1 — QBasic: abstractness 0.05, instability 0.00, distance 0.95 — an application entry point, so it is concrete by design — the distance is expected; what is worth checking is that other projects depend on it at all, since a host should be a leaf of the graph.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — test suite did not build — Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
P1 · CI/CD gates · No CI pipeline · ×1
  • 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.
Minor — 165 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×127
  • Orphaned file src/qbasic/QB/CodeAnalysis/Syntax/Parser.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Basic/Display/Display.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Compilers/Qbx/CodeAnalysis/QBasic/Syntax/SyntaxKind.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QBLib/Video.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Basic/Display/CharMap.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic.compatibility/Video.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Program.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Compilers/Qbx/CodeAnalysis/QBasic/Scanner/Scanner.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Implementation/IsolatedStorageFileSystem.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/DocumentPanel.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Binding/BoundBinaryOperator.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Basic/Parser/Parser.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Emit/VbEmitter.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Emit/MsilEmitter.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Basic/Tokenizer/Decode.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Emit/JsEmitter.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Implementation/WindowsFileSystem.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/Common.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QBLib/Core.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Syntax/SyntaxFacts.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Binding/BoundTreeRewriter.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QBLib/Audio/WindowsAudio.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/qbasic/QB/CodeAnalysis/Syntax/Lexer.vb:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • + 102 more in this group — see findings.md.
D24 · Comment Value · redundant comment · ×27
  • redundant comment src/Tests/QBasic.CodeAnalysis.Tests/ErrorTests.vb:123 — "Test RESUME NEXT with error handling" repeats the code it sits on: 4 of its 5 words (test, resume, next, error) are already in `Dim resumeNextTest = "`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Tests/QBasic.CodeAnalysis.Tests/EvaluatorTests.vb:737 — 5 comments in this file only repeat the code they sit on (lines 737, 832, 909, 954, 1053), for example "Test CHR$ function". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Tests/QBasic.CodeAnalysis.Tests/FileIoTests.vb:22 — "Test FREEFILE returns a valid file number" repeats the code it sits on: 6 of its 6 words (test, freefile, returns, valid, file, number) are already in `Dim test = "LET f = FREEFILE"`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Tests/QBasic.CodeAnalysis.Tests/FileIoTests.vb:329 — "Test that BINARY OPEN with LEN and SEEK statement parse correctly" repeats the code it sits on: 7 of its 8 words (test, binary, open, len, seek, statement, parse) are already in `Dim test = "OPEN ""test.bin"" FOR BINARY AS #1 LEN = 512 : SEEK 1, 100"`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Tests/QBasic.CodeAnalysis.Tests/FileIoTests.vb:351 — "Test SEEK statement with complex expressions" repeats the code it sits on: 4 of its 5 words (test, seek, statement, expressions) are already in `Dim test = "SEEK file_num%, record% * 10 + offset%"`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Tests/QBasic.CodeAnalysis.Tests/FileIoTests.vb:362 — "Test POS function (cursor column position)" repeats the code it sits on: 5 of its 6 words (test, pos, function, cursor, position) are already in `Dim test = "LET result = POS(0)"`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic.compatibility/Video.vb:1569 — "Redraw the input line" repeats the code it sits on: 3 of its 3 words (redraw, input, line) are already in `RedrawInputLine(result, cursorPos, startCol, startRow)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic.compatibility/Video.vb:1715 — "Redraw the input line" repeats the code it sits on: 3 of its 3 words (redraw, input, line) are already in `RedrawInputLine(result, cursorPos, startCol, startRow)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/Basic/Display/Display.vb:4550 — "New line? m_segments.Add(New Segment() With {.Begin = beginOfLine, .End = beginOfLine})" repeats the code it sits on: 6 of its 7 words (new, line, segments, add, segment, begin) are already in `m_page(m_activePage).Segments.Add(New Segment(beginOfLine, beginOfLine + m_columnCount(m_screenMode) - 1S, m_columnCount …`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/Basic/Interactive/Interactive.vb:1732 — 5 comments in this file only repeat the code they sit on (lines 1732, 6013, 7508, 7523, 11296), for example "If parse.Lines(0).LineNumber Is 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 src/qbasic/Basic/VisualBasic/DoubleType.vb:9 — "FromObject(Value) -> FromObject(Value, Nothing)" repeats the code it sits on: 3 of its 3 words (object, value, nothing) are already in `Friend Shared Function FromObject(Value As Object) As Double`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/Program.vb:487 — "Write token text" repeats the code it sits on: 3 of its 3 words (write, token, text) are already in `writer.Write(token.Text)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/Program.vb:529 — "Set stdout mode" repeats the code it sits on: 3 of its 3 words (set, stdout, mode) are already in `QBLib.Video.StdoutMode = stdoutMode`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1135 — "Get the nested UDT type from the parent field's UdtTypeName" repeats the code it sits on: 6 of its 7 words (nested, udt, type, parent, field, name) are already in `nestedUdtType = m_scope.TryLookupType(parentField.UdtTypeName)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Binding/Binder.vb:1149 — "Return a member access expression with the field type and fixed length" repeats the code it sits on: 8 of its 8 words (return, member, access, expression, field, type, fixed, length) are already in `Return New BoundMemberAccessExpression(baseExpr, memberName, field.FieldType, syntax, field.FixedLength)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Evaluator.vb:72 — 11 comments in this file only repeat the code they sit on (lines 72, 570, 2094, 2148, 3305, 3361, 3909, 3946, 3966, 4630, 4927), for example "Next trigger time". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Syntax/GwBasicToQBasicRewriter.vb:206 — "Check if line starts with line number pattern" repeats the code it sits on: 5 of its 5 words (check, line, starts, number, pattern) are already in `If StartsWithLineNumberPattern(trimmedLine) Then`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:144 — "Check for PRINT statements" repeats the code it sits on: 3 of its 3 words (check, print, statements) are already in `If node.Kind = SyntaxKind.PrintStatement AndAlso Options.ModernizePrint Then Analysis.RequiredImports.Add("System.Consol …`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:153 — "Check for GOTO statements" repeats the code it sits on: 3 of its 3 words (check, goto, statements) are already in `If node.Kind = SyntaxKind.GotoStatement Then Analysis.GotoStatementsFound += 1`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:156 — "Check for GOSUB statements" repeats the code it sits on: 3 of its 3 words (check, gosub, statements) are already in `If node.Kind = SyntaxKind.GosubStatement Then`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Syntax/QBasicToVbNetRewriter.vb:418 — "Write token text" repeats the code it sits on: 3 of its 3 words (write, token, text) are already in `writer.Write(token.Text)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QB/CodeAnalysis/Syntax/SyntaxNode.vb:428 — "Write token text" repeats the code it sits on: 3 of its 3 words (write, token, text) are already in `writer.Write(token.Text)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QBLib/Audio/WindowsAudio.vb:453 — "write audio data to debug stream" repeats the code it sits on: 5 of its 5 words (write, audio, data, debug, stream) are already in `Private Shared Sub WriteAudioToDebug(data() As Byte, offset As Integer, length As Integer)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QBLib/Audio/WindowsAudio.vb:461 — "write silence to debug stream" repeats the code it sits on: 4 of its 4 words (write, silence, debug, stream) are already in `Private Shared Sub WriteSilenceToDebug(numBytes As Integer)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/qbasic/QBLib/Video.vb:1921 — "Redraw the input line" repeats the code it sits on: 3 of its 3 words (redraw, input, line) are already in `RedrawInputLine(result, cursorPos, startCol, startRow)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 2 more in this group — see findings.md.
D34 · Knowledge Freshness · Most significant orphaned file · ×3
  • Most significant orphaned file src/qbasic/Basic/Interactive/Interactive.vb:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file src/qbasic/QB/CodeAnalysis/Evaluator.vb:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file src/Compilers/Qbx/CodeAnalysis/QBasic/Parser/Parser.vb:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found src/qbasic/QBasic.vbproj:4 — 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/`. ADRs are expected here because `src/qbasic/QBasic.vbproj` makes this repository a deployable product (line 4).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion src/qbasic/QBasic.vbproj:1 — `QBasic` overshoots its size bounds (70677 LoC, 202 public types across 22 namespaces). 1 of 5 project(s) overshoot their size bounds, lowering Project Cohesion to 6.0/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 130 of 130 significant files have no living knowledge — the codebase as a whole is dormant, not 130 separate risks. Counted over 130 of the 472 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change.
M2 · Architecture documentation · No ADRs · ×1
  • 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.
P3 · Security & performance tooling · No SAST · ×1
  • 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.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation src/Tests/QBasic.CodeAnalysis.Tests/QBasic.CodeAnalysis.Tests.vbproj:14 — `src/Tests/QBasic.CodeAnalysis.Tests/QBasic.CodeAnalysis.Tests.vbproj` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P6 · Release Hygiene · No changelog · ×1
  • 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.)
Minor — 1 finding(s)
D24 · Comment Value · doc comments repeat the names · ×1
  • doc comments repeat the names src/qbasic/Program.vb:57 — 1 of 23 documented parameters and 4 of 155 summaries in `QBasic` only repeat the member or parameter name (e.g. "Frees the allocated console if one was allocated." for `FreeAllocatedConsole`). 6 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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-9c09c230ed18488fba53c7be1b3d7486/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-9c09c230ed18488fba53c7be1b3d7486/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .0artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnuget—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 scan0—
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D36 · Supply-chain Provenance & Signingprovenance—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.0—
D37 · Vulnerability-disclosure Policydisclosure—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.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-21ae16d1caac46c7bffc9cf3f37b46800artifacts/raw/osv-scanner.json

Run 01a1dd38-1fae-76aa-b174-8c759ce97d9b · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

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