Public report of nfdi4plants/Swate, 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 reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 15 November 2026, 11:01 UTC · Survey ID cd_71c8172362274d84ad9e76d0f4f1a142
nfdi4plants/Swate
Measured 15 November 2026, 11:00 UTC, at code version 7cbe098
Code coverage is not measured: .NET and JavaScript/TypeScript suite (CouldNotMeasureRepoBuildError, CouldNotMeasureNoCollector).
Test reliability is not measured: The JavaScript/TypeScript half of a polyglot suite was not re-run.
CAI scoreWeak
CriticalWeakAdequateStrongExemplary
No change 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 large codebase: 123,691 lines of product code in 21 projects, tests not counted · Estimated rebuild effort: about 1.2 person-years · Weakest lens: Production Readiness, 29
Findings by how serious they are
128 critical624 serious58 minor
34 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
15 November 2026, 11:00 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 ▸
62of 62 dimensions measured by tools.
771of 810 findings point to an exact file and line, so you can open each one in the code. The other 39 concern the repository as a whole, such as missing documentation.
62dimensions across 7 lenses, read from 123,691 lines of product code in 21 projects.
nfdi4plants/Swate falls short of our standard for production because five passwords or keys sit in the current code and we found no automated security scanning of the code, its secrets or its dependencies. It scores 46 out of 100 and is rated Weak, and 57 of its 128 critical findings are security problems.
Production Readiness, at 29, is the weakest lens and counts most in the score. The best first step is replacing the five exposed passwords or keys and switching the old ones off, worth about 14 points. Adding automated security scanning comes next, worth about 5 points. Raising Production Readiness to 70 would lift the score to about 59.
Twenty-nine pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Twelve known security holes in the packages the code depends on can be used by attackers, and twenty-five form fields can't be read by a screen reader. Pinning each tool to an exact version, updating the vulnerable packages and labelling the form fields would close these risks. The five passwords or keys in the code and the five passwords or keys in the code's history need replacing, with the old ones switched off. The five unsafe settings in infrastructure or container files need changing to safe values. The 20 controls that only work with a mouse need to work with the keyboard, or to become a real button.
The product code is 123,691 lines, about €180,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Production Readiness rose from 29 to 70, the lowest score rated Strong, the score would rise from 46 to about 59.
Code composition: what the lines of code are
Product code 61%Tests 39%
New since the last survey: 476 findings
These 476 critical or serious findings weren't in the previous survey, on 31 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.
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: 123 findings
These 123 critical or serious findings were in the previous survey, on 31 October 2026, and are gone from this one. The first 100 are listed here.
God Classes · FileTooLong: ArcVault/ArcVaultFileWatcher.fs src/Electron/src/Main/ArcVault/ArcVaultFileWatcher.fs
Large Files · src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx: 954 lines of code src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx
Large Files · src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx: 945 lines of code src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx
Large Files · src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx: 800 lines of code src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx
Large Files · src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx: 647 lines of code src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx
Forms & labels · <select> without a programmatic label src/Components/src/Composite/AnnotationTable/Modals.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/AnnotationTable/Modals.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/AnnotationTable/Modals.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/AnnotationTable/Modals.fs
Forms & labels · <button> with no accessible text src/Components/src/Composite/ArcSelector/ArcSelector.fs
Forms & labels · <fieldset> without a <legend> src/Components/src/Composite/Authentication/Authentication.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/Authentication/Authentication.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Authentication/Authentication.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/MarkdownText/Plugins/MarkdownPluginPromptModal.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/MarkdownText/Plugins/MarkdownPluginPromptModal.fs
Forms & labels · <textarea> without a programmatic label src/Components/src/Composite/MarkdownText/TextInputWithMarkdown.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Notes/Editor/NoteFormFields.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Notes/Editor/NoteFormFields.fs
Forms & labels · <select> without a programmatic label src/Components/src/Composite/Notes/Editor/TargetSelector.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Notes/NoteSearch/NoteSearch.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Table/TableCell.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/TermSearch/ConfigSetter.fs
Forms & labels · <fieldset> without a <legend> src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <fieldset> without a <legend> src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <label> that labels no control src/Components/src/Composite/TermSearch/TermSearch.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs
Forms & labels · <button> with no accessible text src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs
Forms & labels · <select> without a programmatic label src/Components/src/Composite/Widgets/JsonFormatSelect.fs
Forms & labels · <input> without a programmatic label src/Components/src/Composite/Widgets/JsonImport/JsonImport.fs
Forms & labels · <button> with no accessible text src/Components/src/Composite/Widgets/Widgets.fs
Forms & labels · <input> without a programmatic label src/Components/src/Page/ArcFileEditor/ArcFileFooterTabs.fs
Forms & labels · <input> without a programmatic label src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs
Forms & labels · <select> without a programmatic label src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs
Forms & labels · <select> without a programmatic label src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs
Forms & labels · <input> without a programmatic label src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs
Forms & labels · <input> without a programmatic label src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs
Forms & labels · <textarea> without a programmatic label src/Components/src/Page/GitComparison/GitMergeConflictViewer.fs
Forms & labels · <label> that labels no control src/Components/src/Page/Metadata/FormComponents/CommentsInput.fs
Forms & labels · <input> without a programmatic label src/Components/src/Page/Metadata/FormComponents/DateTimeInput.fs
Forms & labels · <textarea> without a programmatic label src/Components/src/Page/Metadata/FormComponents/TextInput.fs
Forms & labels · <input> without a programmatic label src/Components/src/Page/Metadata/FormComponents/TextInput.fs
Forms & labels · <label> that labels no control src/Components/src/Page/ProvenanceGrouping/Controls.fs
Forms & labels · <label> that labels no control src/Components/src/Page/ProvenanceGrouping/Controls.fs
Forms & labels · <label> that labels no control src/Components/src/Page/ProvenanceGrouping/Controls.fs
Forms & labels · <label> that labels no control src/Components/src/Page/ProvenanceGrouping/Controls.fs
Forms & labels · <label> that labels no control src/Components/src/Page/ProvenanceGrouping/Controls.fs
Rebuild cost: about €180,000 · Estimate
Cost to rebuild
€60,000 to €300,000, for 996 to 3,159 hours of work, about 1.2 person-years for 1 to 3 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 46. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 123,691 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2), REDACTED.
Raises the score by about 14 points · Low effort · REDACTED Scanning
2
Add a SAST step to CI running what this repository's stack ships: `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) — so a security regression fails the build instead of landing.
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €180,000 to build again, about 1.2 person-years of work. Its weakest lens is Production Readiness, at 29 (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 5 Leaked secret finding(s) in REDACTED Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 14 points for low effort, because it clears the 5 REDACTED Scanning findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
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 6.8 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 3% to 7% on every change. The history of the code shows how much it changes: about 238,778 lines over the last 90 days, which is about 968,377 lines a year. At that pace, the extra work comes to an estimated 71.3 to 428 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 — bounded-context dependency graph
Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.
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.
951 modules, with 970 dependencies between them. 3 loops run through 6 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 911 more are left out to keep it readable.
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.
Main.ArcVaultState uses Swate.Components.Shared, so a change to Swate.Components.Shared can break Main.ArcVaultState, while a change to Main.ArcVaultState can't break Swate.Components.Shared.
Position
Below the diagonal: Main.ArcVaultState uses a module listed above it, which is the healthy direction.
Renderer.Context.FileTreeStore uses Swate.Components.Shared, so a change to Swate.Components.Shared can break Renderer.Context.FileTreeStore, while a change to Renderer.Context.FileTreeStore can't break Swate.Components.Shared.
Position
Below the diagonal: Renderer.Context.FileTreeStore uses a module listed above it, which is the healthy direction.
Renderer.Context.FileTreeStore uses Swate.Electron.Shared.FileIOTypes, so a change to Swate.Electron.Shared.FileIOTypes can break Renderer.Context.FileTreeStore, while a change to Renderer.Context.FileTreeStore can't break Swate.Electron.Shared.FileIOTypes.
Position
Below the diagonal: Renderer.Context.FileTreeStore uses a module listed above it, which is the healthy direction.
Renderer.Context.LfsActivityContext uses Swate.Electron.Shared.FileIOTypes, so a change to Swate.Electron.Shared.FileIOTypes can break Renderer.Context.LfsActivityContext, while a change to Renderer.Context.LfsActivityContext can't break Swate.Electron.Shared.FileIOTypes.
Position
Below the diagonal: Renderer.Context.LfsActivityContext uses a module listed above it, which is the healthy direction.
Swate.Components.Composite.TableImport.Types uses Swate.Components.Shared.ARCtrlHelper, so a change to Swate.Components.Shared.ARCtrlHelper can break Swate.Components.Composite.TableImport.Types, while a change to Swate.Components.Composite.TableImport.Types can't break Swate.Components.Shared.ARCtrlHelper.
Position
Below the diagonal: Swate.Components.Composite.TableImport.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ArcFileEditor.Types uses Swate.Components.Composite.Widgets.Types, so a change to Swate.Components.Composite.Widgets.Types can break Swate.Components.Page.ArcFileEditor.Types, while a change to Swate.Components.Page.ArcFileEditor.Types can't break Swate.Components.Composite.Widgets.Types.
Position
Below the diagonal: Swate.Components.Page.ArcFileEditor.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ArcFileEditor.Types uses Swate.Components.Shared.ARCtrlHelper, so a change to Swate.Components.Shared.ARCtrlHelper can break Swate.Components.Page.ArcFileEditor.Types, while a change to Swate.Components.Page.ArcFileEditor.Types can't break Swate.Components.Shared.ARCtrlHelper.
Position
Below the diagonal: Swate.Components.Page.ArcFileEditor.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.Landing uses Swate.Components.Shared.ARCtrlHelper, so a change to Swate.Components.Shared.ARCtrlHelper can break Swate.Components.Page.Landing, while a change to Swate.Components.Page.Landing can't break Swate.Components.Shared.ARCtrlHelper.
Position
Below the diagonal: Swate.Components.Page.Landing uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGraph.Types uses Swate.Components.Composite.GraphCanvas.Types, so a change to Swate.Components.Composite.GraphCanvas.Types can break Swate.Components.Page.ProvenanceGraph.Types, while a change to Swate.Components.Page.ProvenanceGraph.Types can't break Swate.Components.Composite.GraphCanvas.Types.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGraph.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGraph.Types uses Swate.Components.Shared.ProvenanceGraph.Types, so a change to Swate.Components.Shared.ProvenanceGraph.Types can break Swate.Components.Page.ProvenanceGraph.Types, while a change to Swate.Components.Page.ProvenanceGraph.Types can't break Swate.Components.Shared.ProvenanceGraph.Types.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGraph.Types uses a module listed above it, which is the healthy direction.
10 pairs of types, where a type in Swate.Components.Shared.ProvenanceGrouping.ARCtrlConverter uses a type in Swate.Components.Shared.ProvenanceGrouping.Types.
Swate.Components.Shared.ProvenanceGrouping.ARCtrlConverter uses Swate.Components.Shared.ProvenanceGrouping.Types, so a change to Swate.Components.Shared.ProvenanceGrouping.Types can break Swate.Components.Shared.ProvenanceGrouping.ARCtrlConverter, while a change to Swate.Components.Shared.ProvenanceGrouping.ARCtrlConverter can't break Swate.Components.Shared.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Shared.ProvenanceGrouping.ARCtrlConverter uses a module listed above it, which is the healthy direction.
Swate.Components.Shared.ProvenanceGrouping.Edit uses Swate.Components.Shared.ProvenanceGrouping.Types, so a change to Swate.Components.Shared.ProvenanceGrouping.Types can break Swate.Components.Shared.ProvenanceGrouping.Edit, while a change to Swate.Components.Shared.ProvenanceGrouping.Edit can't break Swate.Components.Shared.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Shared.ProvenanceGrouping.Edit uses a module listed above it, which is the healthy direction.
13 pairs of types, where a type in Swate.Components.Shared.ProvenanceGrouping.Grouping uses a type in Swate.Components.Shared.ProvenanceGrouping.Types.
Swate.Components.Shared.ProvenanceGrouping.Grouping uses Swate.Components.Shared.ProvenanceGrouping.Types, so a change to Swate.Components.Shared.ProvenanceGrouping.Types can break Swate.Components.Shared.ProvenanceGrouping.Grouping, while a change to Swate.Components.Shared.ProvenanceGrouping.Grouping can't break Swate.Components.Shared.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Shared.ProvenanceGrouping.Grouping uses a module listed above it, which is the healthy direction.
Renderer.Components.LeftSidebar.FileExplorer.Types uses Swate.Components.Page.FileExplorer.Types, so a change to Swate.Components.Page.FileExplorer.Types can break Renderer.Components.LeftSidebar.FileExplorer.Types, while a change to Renderer.Components.LeftSidebar.FileExplorer.Types can't break Swate.Components.Page.FileExplorer.Types.
Position
Below the diagonal: Renderer.Components.LeftSidebar.FileExplorer.Types uses a module listed above it, which is the healthy direction.
Renderer.Components.LeftSidebar.FileExplorer.Types uses Swate.Components.Shared.ARCtrlHelper, so a change to Swate.Components.Shared.ARCtrlHelper can break Renderer.Components.LeftSidebar.FileExplorer.Types, while a change to Renderer.Components.LeftSidebar.FileExplorer.Types can't break Swate.Components.Shared.ARCtrlHelper.
Position
Below the diagonal: Renderer.Components.LeftSidebar.FileExplorer.Types uses a module listed above it, which is the healthy direction.
Renderer.Components.LeftSidebar.FileExplorer.Types uses Swate.Electron.Shared.FileIOTypes, so a change to Swate.Electron.Shared.FileIOTypes can break Renderer.Components.LeftSidebar.FileExplorer.Types, while a change to Renderer.Components.LeftSidebar.FileExplorer.Types can't break Swate.Electron.Shared.FileIOTypes.
Position
Below the diagonal: Renderer.Components.LeftSidebar.FileExplorer.Types uses a module listed above it, which is the healthy direction.
Renderer.Components.LeftSidebar.FileExplorer.Types uses Renderer.Context.LfsActivityContext, so a change to Renderer.Context.LfsActivityContext can break Renderer.Components.LeftSidebar.FileExplorer.Types, while a change to Renderer.Components.LeftSidebar.FileExplorer.Types can't break Renderer.Context.LfsActivityContext.
Position
Below the diagonal: Renderer.Components.LeftSidebar.FileExplorer.Types uses a module listed above it, which is the healthy direction.
Renderer.Types uses Swate.Components.Shared.ARCtrlHelper, so a change to Swate.Components.Shared.ARCtrlHelper can break Renderer.Types, while a change to Renderer.Types can't break Swate.Components.Shared.ARCtrlHelper.
Position
Below the diagonal: Renderer.Types uses a module listed above it, which is the healthy direction.
Renderer.Types uses Swate.Electron.Shared.FileIOTypes, so a change to Swate.Electron.Shared.FileIOTypes can break Renderer.Types, while a change to Renderer.Types can't break Swate.Electron.Shared.FileIOTypes.
Position
Below the diagonal: Renderer.Types uses a module listed above it, which is the healthy direction.
Renderer.Types uses Swate.Electron.Shared.VersionControlTypes, so a change to Swate.Electron.Shared.VersionControlTypes can break Renderer.Types, while a change to Renderer.Types can't break Swate.Electron.Shared.VersionControlTypes.
Position
Below the diagonal: Renderer.Types uses a module listed above it, which is the healthy direction.
Renderer.Types uses Swate.Components.Page.ArcFileEditor.Types, so a change to Swate.Components.Page.ArcFileEditor.Types can break Renderer.Types, while a change to Renderer.Types can't break Swate.Components.Page.ArcFileEditor.Types.
Position
Below the diagonal: Renderer.Types uses a module listed above it, which is the healthy direction.
Spreadsheet uses Swate.Components.Composite.TermSearch.Types, so a change to Swate.Components.Composite.TermSearch.Types can break Spreadsheet, while a change to Spreadsheet can't break Swate.Components.Composite.TermSearch.Types.
Position
Below the diagonal: Spreadsheet uses a module listed above it, which is the healthy direction.
Spreadsheet uses Swate.Components.Shared.ARCtrlHelper, so a change to Swate.Components.Shared.ARCtrlHelper can break Spreadsheet, while a change to Spreadsheet can't break Swate.Components.Shared.ARCtrlHelper.
Position
Below the diagonal: Spreadsheet uses a module listed above it, which is the healthy direction.
Spreadsheet uses Swate.Components.Page.ArcFileEditor.Types, so a change to Swate.Components.Page.ArcFileEditor.Types can break Spreadsheet, while a change to Spreadsheet can't break Swate.Components.Page.ArcFileEditor.Types.
Position
Below the diagonal: Spreadsheet uses a module listed above it, which is the healthy direction.
Swate.Components.Shared.ProvenanceGrouping.Session uses Swate.Components.Shared.ProvenanceGrouping.Types, so a change to Swate.Components.Shared.ProvenanceGrouping.Types can break Swate.Components.Shared.ProvenanceGrouping.Session, while a change to Swate.Components.Shared.ProvenanceGrouping.Session can't break Swate.Components.Shared.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Shared.ProvenanceGrouping.Session uses a module listed above it, which is the healthy direction.
Swate.Components.Shared.ProvenanceGrouping.Session uses Swate.Components.Shared.ProvenanceGrouping.Edit, so a change to Swate.Components.Shared.ProvenanceGrouping.Edit can break Swate.Components.Shared.ProvenanceGrouping.Session, while a change to Swate.Components.Shared.ProvenanceGrouping.Session can't break Swate.Components.Shared.ProvenanceGrouping.Edit.
Position
Below the diagonal: Swate.Components.Shared.ProvenanceGrouping.Session uses a module listed above it, which is the healthy direction.
Renderer.Context.GitWorkflow uses Swate.Components.Api.GitLabApi, so a change to Swate.Components.Api.GitLabApi can break Renderer.Context.GitWorkflow, while a change to Renderer.Context.GitWorkflow can't break Swate.Components.Api.GitLabApi.
Position
Below the diagonal: Renderer.Context.GitWorkflow uses a module listed above it, which is the healthy direction.
Renderer.Context.GitWorkflow uses Swate.Components.Page.GitSidebarTypes, so a change to Swate.Components.Page.GitSidebarTypes can break Renderer.Context.GitWorkflow, while a change to Renderer.Context.GitWorkflow can't break Swate.Components.Page.GitSidebarTypes.
Position
Below the diagonal: Renderer.Context.GitWorkflow uses a module listed above it, which is the healthy direction.
Renderer.Context.GitWorkflow uses Swate.Electron.Shared.IPCTypes, so a change to Swate.Electron.Shared.IPCTypes can break Renderer.Context.GitWorkflow, while a change to Renderer.Context.GitWorkflow can't break Swate.Electron.Shared.IPCTypes.
Position
Below the diagonal: Renderer.Context.GitWorkflow uses a module listed above it, which is the healthy direction.
49 pairs of types, where a type in Renderer.Context.GitWorkflow uses a type in Swate.Electron.Shared.VersionControlTypes. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
Renderer.Context.GitWorkflow uses Swate.Electron.Shared.VersionControlTypes, so a change to Swate.Electron.Shared.VersionControlTypes can break Renderer.Context.GitWorkflow, while a change to Renderer.Context.GitWorkflow can't break Swate.Electron.Shared.VersionControlTypes.
Position
Below the diagonal: Renderer.Context.GitWorkflow uses a module listed above it, which is the healthy direction.
Renderer.Context.GitWorkflow uses Renderer.Types, so a change to Renderer.Types can break Renderer.Context.GitWorkflow, while a change to Renderer.Context.GitWorkflow can't break Renderer.Types.
Position
Below the diagonal: Renderer.Context.GitWorkflow uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping.Types uses Swate.Components.Shared.ProvenanceGrouping.Types, so a change to Swate.Components.Shared.ProvenanceGrouping.Types can break Swate.Components.Page.ProvenanceGrouping.Types, while a change to Swate.Components.Page.ProvenanceGrouping.Types can't break Swate.Components.Shared.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping.Types uses Swate.Components.Shared.ProvenanceGrouping.Edit, so a change to Swate.Components.Shared.ProvenanceGrouping.Edit can break Swate.Components.Page.ProvenanceGrouping.Types, while a change to Swate.Components.Page.ProvenanceGrouping.Types can't break Swate.Components.Shared.ProvenanceGrouping.Edit.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping.Types uses Swate.Components.Shared.ProvenanceGrouping.Grouping, so a change to Swate.Components.Shared.ProvenanceGrouping.Grouping can break Swate.Components.Page.ProvenanceGrouping.Types, while a change to Swate.Components.Page.ProvenanceGrouping.Types can't break Swate.Components.Shared.ProvenanceGrouping.Grouping.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping.Types uses Swate.Components.Shared.ProvenanceGrouping.Session, so a change to Swate.Components.Shared.ProvenanceGrouping.Session can break Swate.Components.Page.ProvenanceGrouping.Types, while a change to Swate.Components.Page.ProvenanceGrouping.Types can't break Swate.Components.Shared.ProvenanceGrouping.Session.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping.Types uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping uses Swate.Components.Shared.ProvenanceGrouping.Types, so a change to Swate.Components.Shared.ProvenanceGrouping.Types can break Swate.Components.Page.ProvenanceGrouping, while a change to Swate.Components.Page.ProvenanceGrouping can't break Swate.Components.Shared.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping uses Swate.Components.Shared.ProvenanceGrouping.Grouping, so a change to Swate.Components.Shared.ProvenanceGrouping.Grouping can break Swate.Components.Page.ProvenanceGrouping, while a change to Swate.Components.Page.ProvenanceGrouping can't break Swate.Components.Shared.ProvenanceGrouping.Grouping.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping uses Swate.Components.Shared.ProvenanceGrouping.Session, so a change to Swate.Components.Shared.ProvenanceGrouping.Session can break Swate.Components.Page.ProvenanceGrouping, while a change to Swate.Components.Page.ProvenanceGrouping can't break Swate.Components.Shared.ProvenanceGrouping.Session.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping uses a module listed above it, which is the healthy direction.
Swate.Components.Page.ProvenanceGrouping uses Swate.Components.Page.ProvenanceGrouping.Types, so a change to Swate.Components.Page.ProvenanceGrouping.Types can break Swate.Components.Page.ProvenanceGrouping, while a change to Swate.Components.Page.ProvenanceGrouping can't break Swate.Components.Page.ProvenanceGrouping.Types.
Position
Below the diagonal: Swate.Components.Page.ProvenanceGrouping uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A03:2025 — Software Supply Chain Failures
34
High / Critical
A05:2025 — Injection
31
High / Critical
A07:2025 — Authentication Failures
11
High / Critical
A02:2025 — Security Misconfiguration
11
High / Critical
Roadmap
Top priorities: Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2), REDACTED; Add a SAST step to CI running what this repository's stack ships: `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) — so a security regression fails the build instead of landing; Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2), REDACTED.
Add a SAST step to CI running what this repository's stack ships: `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) — so a security regression fails the build instead of landing.
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
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 — 128
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 — 624
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 — 58
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 34
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 62 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 62 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 771 of 810 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D10 Test Quality — 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 30 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 186 test source file(s) (.fs) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
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.
D14 License Compliance — 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. This repository declares REDACTED, but the licence verdict published here was taken over its NuGet package dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
D15 Churn × Complexity Hotspots — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. A hotspot's complexity is meant to be the worst body its churn actually touched. For src/Components/src/Composite/AnnotationTable/AnnotationTable.fs, src/Components/src/Composite/AnnotationTable/ContextMenu.fs, src/Components/src/Composite/DataMapTable/DataMapTable.fs, src/Components/src/Composite/Table/KeyboardNavigation.fs, src/Components/src/Composite/Table/Table.fs, … that could not be established — the complexity reader for the file reports no body extents, or the history carries no per-line attribution — so the row quotes the file's worst body, which the counted changes may never have touched. The churn count is unaffected.
D19 Documentation Quality — 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. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D21 Naming Consistency — 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. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D21 Naming Consistency — 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. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (REDACTED), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
D31 IaC & Container Security — 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. Build/Dockerfile.publish.dockerignore carries no `FROM` instruction, so it declares no build stage and every Dockerfile rule this engine owns — the runtime-hardening, key-material, mutable-clone, no-op-shim, build-context, trust-anchor, install-guard, setuid and world-writable-path rules — is outside its own premise there and returned nothing. That silence is deliberate and correct: with no base image there is no image to reason about. It is reported here because it is NOT the same fact as a clean file, and coverage is stated as 2 of 3 Infrastructure-as-Code manifest(s) fully judged rather than as 100%. The vendor scanners (trivy, checkov) do read these files and their findings above stand; only this engine's own stage-keyed rules are absent. No owner action: a build file with no FROM is a legitimate include fragment.
D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `src/Components/src/Composite/Actionbar/Actionbar.stories.tsx`, `src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx`, `src/Components/src/Composite/AnnotationTable/ResetTableConfirmationModal.stories.tsx`, `src/Components/src/Composite/ArcSelector/ArcSelector.stories.tsx`, `src/Components/src/Composite/ArcVaultActions/ArcVaultActions.stories.tsx`, … (+45 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AC1 Text alternatives — 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. This repository renders user interface from a TEMPLATE LANGUAGE or a host-language HTML BUILDER — 17 Feliz (F#) template file(s) carrying 96 markup element(s) (e.g. tests/Electron.Renderer/FileStateContextReload.test.fs, tests/Electron.Renderer/FileTreeRenameWorkflow.test.fs, tests/Electron.Renderer/GitDiffPageWorkflow.test.fs) — and the accessibility cards on this run were measured over the 222 parsed markup document(s) ONLY. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; 17 of the file(s) above import an HTML builder DSL whose element calls it did not project — a builder it has no reader for, or calls in a shape its reader does not know — so those views were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC2 Forms & labels — 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. This repository renders user interface from a TEMPLATE LANGUAGE or a host-language HTML BUILDER — 17 Feliz (F#) template file(s) carrying 96 markup element(s) (e.g. tests/Electron.Renderer/FileStateContextReload.test.fs, tests/Electron.Renderer/FileTreeRenameWorkflow.test.fs, tests/Electron.Renderer/GitDiffPageWorkflow.test.fs) — and the accessibility cards on this run were measured over the 222 parsed markup document(s) ONLY. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; 17 of the file(s) above import an HTML builder DSL whose element calls it did not project — a builder it has no reader for, or calls in a shape its reader does not know — so those views were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC2 Forms & labels — 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. 72 further occurrence(s) are not listed individually; the score already reflects all 112.
AC3 Page structure — 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. This repository renders user interface from a TEMPLATE LANGUAGE or a host-language HTML BUILDER — 17 Feliz (F#) template file(s) carrying 96 markup element(s) (e.g. tests/Electron.Renderer/FileStateContextReload.test.fs, tests/Electron.Renderer/FileTreeRenameWorkflow.test.fs, tests/Electron.Renderer/GitDiffPageWorkflow.test.fs) — and the accessibility cards on this run were measured over the 222 parsed markup document(s) ONLY. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; 17 of the file(s) above import an HTML builder DSL whose element calls it did not project — a builder it has no reader for, or calls in a shape its reader does not know — so those views were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC4 Keyboard semantics — 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. This repository renders user interface from a TEMPLATE LANGUAGE or a host-language HTML BUILDER — 17 Feliz (F#) template file(s) carrying 96 markup element(s) (e.g. tests/Electron.Renderer/FileStateContextReload.test.fs, tests/Electron.Renderer/FileTreeRenameWorkflow.test.fs, tests/Electron.Renderer/GitDiffPageWorkflow.test.fs) — and the accessibility cards on this run were measured over the 222 parsed markup document(s) ONLY. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; 17 of the file(s) above import an HTML builder DSL whose element calls it did not project — a builder it has no reader for, or calls in a shape its reader does not know — so those views were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC5 ARIA correctness — 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. This repository renders user interface from a TEMPLATE LANGUAGE or a host-language HTML BUILDER — 17 Feliz (F#) template file(s) carrying 96 markup element(s) (e.g. tests/Electron.Renderer/FileStateContextReload.test.fs, tests/Electron.Renderer/FileTreeRenameWorkflow.test.fs, tests/Electron.Renderer/GitDiffPageWorkflow.test.fs) — and the accessibility cards on this run were measured over the 222 parsed markup document(s) ONLY. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; 17 of the file(s) above import an HTML builder DSL whose element calls it did not project — a builder it has no reader for, or calls in a shape its reader does not know — so those views were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AC6 Visual & motion safety — 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. This repository renders user interface from a TEMPLATE LANGUAGE or a host-language HTML BUILDER — 17 Feliz (F#) template file(s) carrying 96 markup element(s) (e.g. tests/Electron.Renderer/FileStateContextReload.test.fs, tests/Electron.Renderer/FileTreeRenameWorkflow.test.fs, tests/Electron.Renderer/GitDiffPageWorkflow.test.fs) — and the accessibility cards on this run were measured over the 222 parsed markup document(s) ONLY. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; 17 of the file(s) above import an HTML builder DSL whose element calls it did not project — a builder it has no reader for, or calls in a shape its reader does not know — so those views were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
AX1 Captive dependencies — 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 Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository's container is Microsoft.Extensions.DependencyInjection registered from F#, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
AXR1 Runtime accessibility — 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. User interface: 222 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. Boot: crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:7474: page.goto: net::ERR_SOCKET_NOT_CONNECTED at http://127.0.0.1:7474/
Call log:
- navigating to "http://127.0.0.1:7474/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:7687: page.goto: net::ERR_SOCKET_NOT_CONNECTED at http://127.0.0.1:7687/
Call log:
- navigating to "http://127.0.0.1:7687/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:6379: page.goto: net::ERR_EMPTY_RESPONSE at http://127.0.0.1:6379/
Call log:
- navigating to "http://127.0.0.1:6379/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:1111: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:1111/
Call log:
- navigating to "http://127.0.0.1:1111/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:8000: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:8000/
Call log:
- navigating to "http://127.0.0.1:8000/", waiting until "load"
.
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.
M4 Documentation accuracy — 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. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
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.
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.
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.
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.
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.
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.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
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.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
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.
D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
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").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
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.
AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
119 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was GitWorkflow.updateCore at 237. A further 19 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 Export.parseToJsonString at 26 — they are counted neither in the figure above nor in this dimension's score. 13 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/Components/src/ARCtrl/Json.fs (Export.parseToJsonString at 26), src/Client/Update.fs (Update.update at 23), src/Electron/src/Renderer/Components/MainContent/Main.fs (Main.Main at 22), src/Client/Update/OfficeInteropUpdate.fs (OfficeInterop.update at 20), src/Electron/src/Main/ArcMerge/ArcMergeLibraryExtensions.fs (ArcMergeHelper.applyEntityEvent at 20), and 8 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.
+ 114 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 4 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with GitWorkflow.updateCore (cyclomatic 237), ProvenanceGrouping.Main (cyclomatic 180), ArcVaultsApi.api (cyclomatic 171). — 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 4 together lifts Cyclomatic Complexity from 5.0 to about 5.7/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 159 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 5 bodies over 120 down to 120 or less in Cognitive Complexity — start with GitPagedDiffViewer.Grid (cognitive 208), ProvenanceGrouping.Main (cognitive 192), ArcVaultsApi.api (cognitive 191). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 5 together lifts Cognitive Complexity from 4.1 to about 4.9/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.4 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 34 FileTooLong finding(s) in God Classes — start with GitWorkflow.fs, GitSidebar.fs, GitPagedDiffViewer.fs. — One of this dimension's main actionable groups (34 warning-level).
Resolve the 6 TooManyFunctions finding(s) in God Classes — start with GitWorkflow.fs (2), Session.fs, VersionControlApiClient.fs. — One of this dimension's main actionable groups (6 warning-level).
Resolve the 1 TooManyMethods finding(s) in God Classes — start with Icons.fs. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
130 duplicated block group(s) detected. 4.4 % of the production lines (5,486 of 123,691) are in a reported copy. A further 15 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.
+ 71 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 7 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with Controls.fs (2), ExcelHelper.fs, OfficeInterop.fs. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 7 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with FilePickerView.fs, CompositeCell.fs, Blankslate.fs. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 6 Duplicated block (15 lines × 2) finding(s) in Code Duplication — start with ExcelHelper.fs (2), FilePickerView.fs, Forms.fs. — One of this dimension's main actionable groups (6 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
D10 · Test Quality10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 30 tests. Measured on the JavaScript/TypeScript suite only — at least 186 test source file(s) (.fs) went unread, so its test quality is unmeasured and is not in these counts.
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.
3 secret(s) detected. 1 detection(s) were excluded as holding no minted credential in material that runs: a name, reference or comparison rather than a value, a readable phrase or pattern, a value that declares itself fake, or development, test, example, mock or demo material.
REDACTED
What to do
Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (5 issue-level).
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 89 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 36 direct `PackageReference`(s), and 85 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. ★ COVERAGE OF THIS VERDICT: it grades this repository's NuGet package dependencies and nothing else. The repository also declares REDACTED, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
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.
Top hotspots: src/Electron/src/Renderer/Context/GitWorkflow.fs (115×237=27255); src/Electron/src/Main/IPC/IArcVaultsApi.fs (98×171=16758); src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs (28×166=4648) Repeated repair below the complexity floor: src/Components/src/Composite/TemplateBrowser/Helper.fs (4 of 6 changes were fixes); src/Electron/src/Main/Notes/NoteScaffolding.fs (3 of 5 changes were fixes); src/Components/src/ClipboardContract/Contract.fs (3 of 5 changes were fixes)
Resolve the 47 Hotspot finding(s) in Churn × Complexity Hotspots — start with ContextMenu.fs (2), GitWorkflow.fs, IArcVaultsApi.fs. — One of this dimension's main actionable groups (47 warning-level).
Resolve the 3 Repeated repair finding(s) in Churn × Complexity Hotspots — start with Helper.fs, NoteScaffolding.fs, Contract.fs. — One of this dimension's main actionable groups (3 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor4.6 / 10Weak✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
220 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/Electron/src/Renderer/Context/GitWorkflow.fs. Counted over 409 of the 660 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Off-boarding risk: anonymized user #1 · ×2
Further sole-owners (lower concentration)
What to do
Resolve the 2 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (2 recommendation-level).
Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
2 of 2 documentation facets pass in full. 12 document(s) read across 4 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: 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.
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with REDACTED. — 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.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.
10 naming inconsistencies among 902 declarations measured against a convention their peers follow.
`TermSourceREF` spells `REF` where 113 names in the project spell it `Ref` · ×2src/Components/src/Page/ValidationPackageBrowser/Types.fs:38
`updateComponentsPackageJSONVersion` spells `JSON` where 60 names in the project spell it `Json`build/IO/VersionIO.fs:100
`updateElectronPackageJSONVersion` spells `JSON` where 60 names in the project spell it `Json`build/IO/VersionIO.fs:113
`requestByPubMedID` spells `ID` where 722 names in the project spell it `Id`src/Client/SharedComponents/Metadata/Forms.fs:91
`PubMedIDInput` spells `ID` where 722 names in the project spell it `Id`src/Client/SharedComponents/Metadata/Forms.fs:1301
+ 4 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 2 `TermSourceREF` spells `REF` where 113 names in the project spell it… finding(s) in Naming Consistency — start with Types.fs, IValidationPackageApi.fs. — One of this dimension's main actionable groups (2 recommendation-level).
Resolve the 1 `updateComponentsPackageJSONVersion` spells `JSON` where 60 names in the… finding(s) in Naming Consistency — start with VersionIO.fs. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 `updateElectronPackageJSONVersion` spells `JSON` where 60 names in the… finding(s) in Naming Consistency — start with VersionIO.fs. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d21_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D26 · Project Cohesion3.8 / 10Weak✓ Tool-verified
What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.
4 of 13 build units (MSBuild, npm) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D27 · Navigability7.6 / 10Strong✓ Tool-verified
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
96 % of calls cross a namespace and 3 % go through an interface, but 54 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
Scattered collaborators
What to do
Resolve the 1 Scattered collaborators finding(s) in Navigability. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d27_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
5 finding(s): 0 critical, 5 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 5 REDACTED finding(s) in Secrets (history) — start with REDACTED (3), REDACTED, REDACTED. — One of this dimension's main actionable groups (5 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
31 finding(s): 0 critical, 30 high, 1 medium, 0 low. 29 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 50 file(s) — `src/Components/src/Composite/Actionbar/Actionbar.stories.tsx` (line 40), `src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx` (line 43), `src/Components/src/Composite/AnnotationTable/ResetTableConfirmationModal.stories.tsx` (line 41), `src/Components/src/Composite/ArcSelector/ArcSelector.stories.tsx` (line 11), `src/Components/src/Composite/ArcVaultActions/ArcVaultActions.stories.tsx` (line 17), … (+45 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
No action in Static Analysis (SAST) — all 29 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (29 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
+ 1 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 6 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (5), REDACTED. — One of this dimension's main actionable groups (6 issue-level).
Resolve the 5 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4), REDACTED. — One of this dimension's main actionable groups (5 issue-level).
Resolve the 1 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 5 High IaC finding(s) in IaC & Container Security — start with REDACTED (5). — One of this dimension's main actionable groups (5 issue-level).
Resolve the 5 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (3), REDACTED (2). — One of this dimension's main actionable groups (5 warning-level).
Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 409 of the 660 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 9 Change coupling finding(s) in Change Coupling — start with IArcVaultsApi.fs (2), TableImportPreview.fs, REDACTED. — One of this dimension's main actionable groups (9 warning-level).
Resolve the 2 Change coupling clique finding(s) in Change Coupling — start with HtmlViewer.fs, main.fs. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with VersionControlApiClient.fs. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
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.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 22 platform declaration(s) and 1 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.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC1 · Text alternatives5.2 / 10Adequate✓ Tool-verified
Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.
An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. — src/Client/Pages/Info/InfoView.fs:44
What to do
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
Do you agree with this assessment?
AC2 · Forms & labels5.1 / 10Adequate✓ Tool-verified
Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.
Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×23) — src/Client/Index.fs:70, src/Client/MainComponents/EmptyTableModals.fs:132, src/Client/MainComponents/FooterTabs.fs:94, …
This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×8) — src/Client/Modals/SelectiveImportModal.fs:94, src/Client/Pages/Settings/SettingsView.fs:135, src/Client/SharedComponents/Metadata/Forms.fs:197, …
A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one. — src/Client/Modals/SelectiveImportModal.fs:130
This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×2) — src/Client/Pages/BuildingBlock/Dropdown.fs:20, src/Client/Pages/BuildingBlock/SearchComponent.fs:129
A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×2) — src/Client/Pages/ProtocolTemplates/ProtocolView.fs:264, src/Components/src/Composite/Actionbar/Actionbar.fs:44
This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×3) — src/Components/playground/App.tsx:43, src/Components/playground/App.tsx:65, src/Components/playground/App.tsx:77
This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. — src/Components/playground/App.tsx:127
What to do
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope). (×3) — src/Client/Pages/FilePicker/FilePickerView.fs:244, src/Components/src/Composite/SortableList/SortableList.fs:223, src/Components/src/Primitive/BaseModal/BaseModal.fs:260
The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×3) — src/Client/index.html:2, src/Electron/index.html:2, src/Server/public/test.html:2
Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — src/Components/src/Page/Changelog/Changelog.fs:292
An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label. — src/Components/src/Page/FileViewer/PDFViewer.fs:45
An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it's decorative. — src/Components/src/Page/ProvenanceGrouping/EditorPanels.fs:292
A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. — src/Server/public/test.html:2
What to do
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".
A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0". (×11) — src/Client/MainComponents/FooterTabs.fs:120, src/Client/MainComponents/FooterTabs.fs:167, src/Client/MainComponents/FooterTabs.fs:196, …
An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. (×8) — src/Client/MainComponents/NoFileElement.fs:67, src/Client/Pages/BuildingBlock/Dropdown.fs:96, src/Client/Pages/BuildingBlock/Dropdown.fs:112, …
A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×8) — src/Client/Modals/InteropLoggingModal.fs:44, src/Client/SharedComponents/Logo.fs:11, src/Client/Views/MainPageViews.fs:20, …
An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action. — src/Client/Pages/BuildingBlock/Dropdown.fs:49
This <div> announces itself as a role="tab" and binds a click, but nothing can put focus on it: no tabindex="0" in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabindex="0"="0" and an Enter/Space key handler, or make it a native <button>. If a parent widget owns the keyboard model, that parent must move focus onto the active role="tab" or point aria-activedescendant at it. — src/Components/src/Composite/TermSearch/TermSearch.fs:676
This <article> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabindex="0", so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabindex="0"="0" so the element can receive that focus. — src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:417
This <div> carries tabindex="0", so it is in the tab order and a keyboard user will land on it — but its behaviour is bound to the pointer only, with no key handler. A tabindex makes an element focusable, not operable: Enter and Space fire a click on a native <button> or <a href> and nowhere else, so this can be focused and never activated. Use a <button>, or handle Enter/Space in a key handler. — src/Components/src/Primitive/CardGrid/CardGrid.fs:15
This <ul> carries tabindex="0", so it is in the tab order and a keyboard user will land on it — but its behaviour is bound to the pointer only, with no key handler. A tabindex makes an element focusable, not operable: Enter and Space fire a click on a native <button> or <a href> and nowhere else, so this can be focused and never activated. Use a <button>, or handle Enter/Space in a key handler. Give it a role as well, so assistive tech can announce what it is. — src/Components/src/Primitive/Dropdown/Dropdown.fs:44
What to do
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.
Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.
Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.
Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
`.swt\:menu :where(li>details>summary)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Components/src/swate-components.css:2
`.swt\:menu :where(li)>:not(ul,.swt\:menu-title,details,.swt\:btn).swt\:menu-active` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Components/src/swate-components.css:2
`.swt\:collapse:is(details) summary` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Components/src/swate-components.css:2
`.swt\:outline-hidden` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Components/src/swate-components.css:2
`.swt\:\!outline-0` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Components/src/swate-components.css:2
`.swt\:outline-none` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Components/src/swate-components.css:2
`.animated-border::before` moves (`animation: border-gradient-flow 8s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×3) — src/Electron/src/Renderer/tailwind.css:257, src/Components/tailwind.css:218, src/Client/tailwind.css:207
`:is(.swt\:menu :where(li>details>summary),.swt\:menu :where(li>.swt\:menu-dropdown-toggle)):after` moves (`transition-property: rotate,translate`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Components/src/swate-components.css:2
`.swt\:toggle>*` moves (`transition: opacity .2s,rotate .4s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Components/src/swate-components.css:2
`.swt\:toggle:before` moves (`transition: background-color .1s,translate .2s,inset-inline-start .2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Components/src/swate-components.css:2
`.swt\:checkbox:before` moves (`transition: clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Components/src/swate-components.css:2
`.swt\:modal-box` moves (`transition: translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Components/src/swate-components.css:2
`.animated-border:before` moves (`animation: 8s ease-in-out infinite border-gradient-flow`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Components/src/swate-components.css:2
What to do
Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Do you agree with this assessment?
AX8 · Test isolation7.5 / 10Strong✓ 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.
`Client.Tests` (production) references the test project `Shared.Tests`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference. — tests/Client/Client.Tests.fsproj:16
What to do
Remove every production → test project reference: extract any shared test helper into a production support library (which the tests reference), or invert the dependency so the test project depends on production — not the reverse.
Other · Code Health — Unreviewed-generation residue in this repository's F#: bindings whose whole body still raises a "not implemented" error (NotImplementedException, failwith "not implemented"), and placeholder text (lorem ipsum, changeme/replace_me…) left in string literals of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
Maturity · Maturity — Whether the 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.
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.
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.
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.
Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.
Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability5.5 / 10Adequate✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `build`.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Add a health-check endpoint (ASP.NET Core's MapHealthChecks, or a /health route in your Giraffe/Suave app) so orchestrators and load balancers can probe liveness/readiness.
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 `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) as a CI step. What was searched, so you can tell an absence from a miss: the 5 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:4
`Directory.Packages.props` 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`. — Directory.Packages.props:6
What to do
Add a SAST step to CI running what this repository's stack ships: `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) — so a security regression fails the build instead of landing.
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
What to do
Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
Add an approval/environment gate (required reviewers / protection rules) before production promotion.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Do you agree with this assessment?
R1 · Type Safety9.5 / 10Exemplary✓ Tool-verified
React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.
Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.
React / JS · Code Health — The share of the scored frontend lines inside a near-exact copy-pasted block of substantial extent (the D4 clone algorithm over JS/TS tokens, D-386; each line once, 10 at none and 0 at a quarter of the lines, as D4): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.
Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Scored on the share of the scored frontend lines inside a reported copy, on the same curve as D4. Deterministic.
src/Components/playground/App.tsx:90 · src/Components/playground/App.tsx:106 · src/Components/playground/App.tsx:120 · src/Components/playground/App.tsx:141 · +2 more site(s) not listed — all 6 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/Components/playground/App.tsx:90
src/Components/playground/App.tsx:112 · src/Components/playground/App.tsx:126 · src/Components/playground/App.tsx:147 · src/Components/playground/App.tsx:184 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/Components/playground/App.tsx:112
What to do
Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).
Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.
src/Electron/scripts/forge-make.cjs:8 imports @electron-forge/cli/dist/electron-forge-make.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — src/Electron/scripts/forge-make.cjs:8
What to do
Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.
Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.
Do you agree with this assessment?
R3 · Large Files5.3 / 10Adequate✓ Tool-verified
React / JS · Code Health — How many source files exceed the large-file threshold.
Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.
src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx has 2896 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx:1
src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.stories.tsx has 2449 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.stories.tsx:1
src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx has 1159 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx:1
src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx has 1069 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx:1
src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx has 801 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx:1
src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx has 645 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx:1
src/Components/src/Page/GitComparison/GitMergeConflictViewer.stories.tsx has 575 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/Components/src/Page/GitComparison/GitMergeConflictViewer.stories.tsx:1
What to do
Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
Do you agree with this assessment?
R4 · Test Coverage1.7 / 10Critical✓ Tool-verified
React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.
Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.
No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×5) — src/Components/playground/App.tsx:1, src/Electron/scripts/forge-make.cjs:1, src/Fable.SimpleJson.Compatibility/quote.js:1, …
What to do
Add tests that import the unreached modules (directly or through their public entry).
React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).
Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.
Do you agree with this assessment?
R6 · Tooling6.7 / 10Adequate✓ Tool-verified
React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each REDACTED script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.
Method: REDACTED scanned for test/lint/typecheck script wiring. Deterministic presence check.
test ✓ · lint ✗ · typecheck ✓ — read from this repository's REDACTED scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
Add eslint as REDACTED scripts and run them in CI.
Do you agree with this assessment?
R7 · Dead Code8.8 / 10Strong✓ Tool-verified
React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).
Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.
5 file(s) (~50 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package.
1 file(s) (~47 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — src/Client
70 file(s) (~19258 LoC) were excluded from dead-code analysis. This package's entry point(s) resolved, but the walk stopped one hop in: src/Components/src/index.ts imports './dist/Composite/SortableList/SortableList.fs', which is not in the scanned tree. That is usually a generated or build-output module, so reachability cannot see past it and no dead-code claim is made about this package. Nothing is necessarily wrong here. — src/Components
3 file(s) (~224 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — tests/Client
2 file(s) (~180 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — tests/Electron.Core
This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. (×25) — src/Components/playground/App.tsx:34, src/Components/playground/App.tsx:94, src/Components/playground/App.tsx:101, …
What to do
Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.
Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.
Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×6)
Declared in src/Client/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×4)
Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×10)
Only test files import it (first: src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx:3) — move it to devDependencies. — src/Components/REDACTED:57
What to do
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.
Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.
Other · Security — Only what this repository's own non-C# files could be read for was assessed — markup this repository SHIPS is scored for third-party script integrity whether or not the repository serves it itself, since a page handed to a consumer runs in that consumer’s origin. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
`https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.18.0/cytoscape.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. — src/Server/public/test.html:4
What to do
Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for … in` loop leaves the mutable .NET collection it is walking alone — F#'s own lists, arrays, maps and sets cannot be changed by a loop body, but a `ResizeArray`, `Dictionary`, `Queue` or other BCL collection walked by `for x in c do` is walked through its enumerator, so a body that adds to or removes from `c` makes the next `MoveNext` throw `InvalidOperationException` and the remaining items are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 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.
X10 Duplicated predicate — 4 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 63 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.
AX1 Captive dependencies — 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
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX6 Interface segregation — no exported interface declares behaviour
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
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility — The runtime tier booted this repository's service, but crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:7474: page.goto: net::ERR_SOCKET_NOT_CONNECTED at http://127.0.0.1:7474/
Call log:
- navigating to "http://127.0.0.1:7474/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:7687: page.goto: net::ERR_SOCKET_NOT_CONNECTED at http://127.0.0.1:7687/
Call log:
- navigating to "http://127.0.0.1:7687/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:6379: page.goto: net::ERR_EMPTY_RESPONSE at http://127.0.0.1:6379/
Call log:
- navigating to "http://127.0.0.1:6379/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:1111: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:1111/
Call log:
- navigating to "http://127.0.0.1:1111/", waiting until "load"
rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:8000: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:8000/
Call log:
- navigating to "http://127.0.0.1:8000/", waiting until "load"
. This repository also has a user interface (222 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates) that the booted service does not serve, and this scan has no strategy that reaches it — so no WCAG success criterion was verified in a rendered page on this run. That is a gap in OUR tooling, not a finding about your application: nothing here says the interface is inaccessible. The static accessibility checks still ran.
AXS1 Runtime exposed surface — 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.
D11 Test Reliability — Test reliability NOT MEASURED: this repository's test suite spans .NET and JavaScript/TypeScript, and the JavaScript/TypeScript half could not be re-run — unit: measured (0 flaky); JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in the repository root; vitest via `npm ci --ignore-scripts` in src/Components/; vitest via `npm ci --ignore-scripts` in tests/Electron.Core/): not included — the dependency install for the repository root refused the committed lockfile (npm error code EUSAGE), so the suite never ran. No partial figure is published as if it were the whole: reliability is excluded from the score rather than counted as a near-zero.
D12 Dependency Hygiene — Dependency hygiene not measured
D17 Explicit Debt — the C# workspace loaded 0 projects, so explicit-debt density could not be measured
D18 Solution Shape — D18 scores the shape of a C#/VB .NET solution; this repository's .NET projects are all F# (.fsproj), which the C#/VB workspace does not load, so the dimension does not apply.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only; comments in this repository's .fs source were not judged.
D25 ADR Conformance — no ADRs to check
D32 Data Compliance (PII/GDPR) — 50 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
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: the .NET half could not be measured — no coverage produced (collector absent, or test run exceeded the inline budget); the JavaScript/TypeScript half could not be measured — the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov — add `@vitest/coverage-v8` (or `@vitest/coverage-istanbul`) as a devDependency. This repository's production source spans both ecosystems, and no partial figure is published as if it were the whole: coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan.
DM1 Domain Modelling — applicable but not scored (3 signals for this style, 3 needed — the count is met but a required primary signal is absent): 3 strongly-typed id(s); 492 value object(s); 44 domain event(s); its domain events are published by services or handlers — no domain entity raises one; no aggregate is declared and no domain structure surrounds the state-guarding types: not claimed as DDD
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
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for 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.
SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X12 Unreachable branch — 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 — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
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 — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
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.
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 — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
AC2 · Forms & labels· <input> without a programmatic label · ×20
<input> without a programmatic label src/Client/Index.fs:70— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/MainComponents/FooterTabs.fs:94— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/MainComponents/NoFileElement.fs:22— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/MainComponents/TableFooter.fs:25— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Modals/SelectiveImportModal.fs:67— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Modals/SelectiveImportModal.fs:234— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Pages/BuildingBlock/Dropdown.fs:20— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
<input> without a programmatic label src/Client/Pages/BuildingBlock/SearchComponent.fs:129— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
<input> without a programmatic label src/Client/Pages/BuildingBlock/SearchComponent.fs:155— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Pages/FilePicker/FilePickerView.fs:51— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Pages/JsonImport/JsonImport.fs:93— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Pages/ProtocolTemplates/ProtocolView.fs:63— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/Pages/Settings/SettingsView.fs:156— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/SharedComponents/Metadata/Forms.fs:203— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/SharedComponents/Metadata/Forms.fs:902— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/SharedComponents/Metadata/Forms.fs:933— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/SharedComponents/Metadata/Forms.fs:1199— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Client/SharedComponents/Metadata/Generic.fs:64— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Components/src/Composite/AnnotationTable/Modals.fs:207— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label src/Components/src/Composite/AnnotationTable/Modals.fs:1134— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
AC4 · Keyboard semantics· Click handler on a non-interactive <div> · ×15
Click handler on a non-interactive <div> src/Client/MainComponents/FooterTabs.fs:120— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Client/MainComponents/FooterTabs.fs:167— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Client/MainComponents/FooterTabs.fs:196— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Client/MainComponents/FooterTabs.fs:224— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Client/MainComponents/FooterTabs.fs:257— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Client/Modals/InteropLoggingModal.fs:44— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
Click handler on a non-interactive <div> src/Client/SharedComponents/Logo.fs:11— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
Click handler on a non-interactive <div> src/Client/Views/SpreadsheetView.fs:12— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
Click handler on a non-interactive <div> src/Components/src/Composite/AnnotationTable/Modals.fs:1693— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Components/src/Composite/AnnotationTable/Modals.fs:1702— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Components/src/Composite/AnnotationTable/Modals.fs:1711— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Components/src/Composite/Notes/NoteSearch/NoteSearch.fs:118— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
Click handler on a non-interactive <div> src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs:101— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:524— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
Click handler on a non-interactive <div> src/Components/src/Page/SettingsPage/SettingsPage.fs:423— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
AC2 · Forms & labels· <label> that labels no control · ×11
<label> that labels no control src/Client/Modals/SelectiveImportModal.fs:94— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Client/Pages/Settings/SettingsView.fs:135— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Client/SharedComponents/Metadata/Forms.fs:197— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Client/SharedComponents/Metadata/Forms.fs:1315— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Client/SharedComponents/NavbarBurger.fs:14— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Components/playground/App.tsx:43— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Components/playground/App.tsx:65— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Components/playground/App.tsx:77— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Components/src/Composite/AnnotationTable/Modals.fs:206— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Components/src/Composite/AnnotationTable/Modals.fs:232— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control src/Components/src/Composite/AnnotationTable/Modals.fs:1087— This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
AC2 · Forms & labels· <select> without a programmatic label · ×5
<select> without a programmatic label src/Client/MainComponents/EmptyTableModals.fs:132— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<select> without a programmatic label src/Client/Pages/JsonExporter/JsonExporter.fs:58— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<select> without a programmatic label src/Client/Pages/JsonImport/JsonImport.fs:70— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<select> without a programmatic label src/Client/SharedComponents/Metadata/Forms.fs:886— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<select> without a programmatic label src/Components/src/Composite/AnnotationTable/Modals.fs:1250— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<html> without a lang src/Client/index.html:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang src/Electron/index.html:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang src/Server/public/test.html:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
D11 · Test Reliability· Test suite cannot be installed from its own lockfile · ×3
Test suite cannot be installed from its own lockfile: the repository root — The vitest suite in the repository root was never exercised because its dependency install refused the committed lockfile — the dependency install for the repository root refused the committed lockfile (npm error code EUSAGE), so the suite never ran. The suite is declared and committed but cannot be installed from what the repository ships, so neither this scan nor a new contributor can run it. The ask is the one the owner performs: run the install locally and commit the lockfile it writes.
Test suite cannot be installed from its own lockfile: src/Components/ — The vitest suite in src/Components/ was never exercised because its dependency install refused the committed lockfile — the dependency install for src/Components/ refused the committed lockfile (npm error code EUSAGE), so the suite never ran. The suite is declared and committed but cannot be installed from what the repository ships, so neither this scan nor a new contributor can run it. The ask is the one the owner performs: run the install locally and commit the lockfile it writes.
Test suite cannot be installed from its own lockfile: tests/Electron.Core/ — The vitest suite in tests/Electron.Core/ was never exercised because its dependency install refused the committed lockfile — the dependency install for tests/Electron.Core/ refused the committed lockfile (npm error code EUSAGE), so the suite never ran. The suite is declared and committed but cannot be installed from what the repository ships, so neither this scan nor a new contributor can run it. The ask is the one the owner performs: run the install locally and commit the lockfile it writes.
AC2 · Forms & labels· <button> with no accessible text · ×2
<button> with no accessible text src/Client/Pages/ProtocolTemplates/ProtocolView.fs:264— A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
<button> with no accessible text src/Components/src/Composite/Actionbar/Actionbar.fs:44— A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
AC4 · Keyboard semantics· Click handler on a non-interactive <li> · ×2
Click handler on a non-interactive <li> src/Client/Views/MainPageViews.fs:20— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
Click handler on a non-interactive <li> src/Components/src/Composite/ArcSelector/ArcSelector.fs:28— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
AC4 · Keyboard semantics· Click handler on a non-interactive <span> · ×2
Click handler on a non-interactive <span> src/Components/src/Page/FileExplorer/FileExplorerItem.fs:272— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
Click handler on a non-interactive <span> src/Components/src/Page/GitSidebar/GitSidebar.fs:1696— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0".
AC1 · Text alternatives· <img> without a text alternative · ×1
<img> without a text alternative src/Client/Pages/Info/InfoView.fs:44— An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
AC3 · Page structure· <iframe> without a title · ×1
<iframe> without a title src/Components/src/Page/FileViewer/PDFViewer.fs:45— An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label.
AC3 · Page structure· Document without a <title> · ×1
Document without a <title> src/Server/public/test.html:2— A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>.
AC4 · Keyboard semantics· Clickable role="tab" that no keyboard user can reach · ×1
Clickable role="tab" that no keyboard user can reach src/Components/src/Composite/TermSearch/TermSearch.fs:676— This <div> announces itself as a role="tab" and binds a click, but nothing can put focus on it: no tabindex="0" in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabindex="0"="0" and an Enter/Space key handler, or make it a native <button>. If a parent widget owns the keyboard model, that parent must move focus onto the active role="tab" or point aria-activedescendant at it.
AC4 · Keyboard semantics· Hover-only interaction on <article> · ×1
Hover-only interaction on <article> src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:417— This <article> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabindex="0", so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabindex="0"="0" so the element can receive that focus.
Focusable <div> isn't keyboard-operable src/Components/src/Primitive/CardGrid/CardGrid.fs:15— This <div> carries tabindex="0", so it is in the tab order and a keyboard user will land on it — but its behaviour is bound to the pointer only, with no key handler. A tabindex makes an element focusable, not operable: Enter and Space fire a click on a native <button> or <a href> and nowhere else, so this can be focused and never activated. Use a <button>, or handle Enter/Space in a key handler.
Focusable <ul> isn't keyboard-operable src/Components/src/Primitive/Dropdown/Dropdown.fs:44— This <ul> carries tabindex="0", so it is in the tab order and a keyboard user will land on it — but its behaviour is bound to the pointer only, with no key handler. A tabindex makes an element focusable, not operable: Enter and Space fire a click on a native <button> or <a href> and nowhere else, so this can be focused and never activated. Use a <button>, or handle Enter/Space in a key handler. Give it a role as well, so assistive tech can announce what it is.
AX8 · Test isolation· Production project references a test project · ×1
Production project references a test project: Client.Tests → Shared.Tests tests/Client/Client.Tests.fsproj:16— `Client.Tests` (production) references the test project `Shared.Tests`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
Hotspot: src/Electron/src/Renderer/Context/GitWorkflow.fs src/Electron/src/Renderer/Context/GitWorkflow.fs:5259— src/Electron/src/Renderer/Context/GitWorkflow.fs changed 115 times in last 90 days, max cyclomatic complexity 237 in GitWorkflow.updateCore at line 5259. 7 of those changes were fix/bug commits, and the other 108 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Context/GitWorkflow.fs`: 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/Electron/src/Main/IPC/IArcVaultsApi.fs src/Electron/src/Main/IPC/IArcVaultsApi.fs:221— src/Electron/src/Main/IPC/IArcVaultsApi.fs changed 98 times in last 90 days, max cyclomatic complexity 171 in ArcVaultsApi.api at line 221. 17 of those changes were fix/bug commits, and the other 81 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Main/IPC/IArcVaultsApi.fs`: 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/Components/src/Page/GitComparison/GitPagedDiffViewer.fs src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:1194— src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs changed 28 times in last 90 days, max cyclomatic complexity 166 in GitPagedDiffViewer.Grid at line 1194. 3 of those changes were fix/bug commits, and the other 25 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs`: 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/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs:45— src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs changed 65 times in last 90 days, max cyclomatic complexity 61 in FileTree.FileTree at line 45. 6 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs`: 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/Electron/src/Main/ArcVault/ArcVault.fs src/Electron/src/Main/ArcVault/ArcVault.fs:386— src/Electron/src/Main/ArcVault/ArcVault.fs changed 114 times in last 90 days, max cyclomatic complexity 30 in ArcVaultExtensions.ArcVault.RenameOpenArcRootCore at line 386. 21 of those changes were fix/bug commits, and the other 93 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Main/ArcVault/ArcVault.fs`: 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/Electron/src/Main/IPC/IVersionControlApi.fs src/Electron/src/Main/IPC/IVersionControlApi.fs:546— src/Electron/src/Main/IPC/IVersionControlApi.fs changed 46 times in last 90 days, max cyclomatic complexity 48 in IVersionControlApi.api at line 546. 3 of those changes were fix/bug commits, and the other 43 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Main/IPC/IVersionControlApi.fs`: 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/Components/src/Page/GitSidebar/GitSidebar.fs src/Components/src/Page/GitSidebar/GitSidebar.fs:2311— src/Components/src/Page/GitSidebar/GitSidebar.fs changed 34 times in last 90 days, max cyclomatic complexity 46 in GitSidebar.Main at line 2311. 5 of those changes were fix/bug commits, and the other 29 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Page/GitSidebar/GitSidebar.fs`: 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/Components/src/Composite/GraphCanvas/GraphCanvas.fs src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:919— src/Components/src/Composite/GraphCanvas/GraphCanvas.fs changed 13 times in last 90 days, max cyclomatic complexity 103 in GraphCanvas.GraphCanvas at line 919. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/GraphCanvas/GraphCanvas.fs`: 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/Electron/src/Main/ArcVault/ArcVaultHelper.fs src/Electron/src/Main/ArcVault/ArcVaultHelper.fs:51— src/Electron/src/Main/ArcVault/ArcVaultHelper.fs changed 44 times in last 90 days, max cyclomatic complexity 22 in ArcVaultHelper.updateARCByFileContentDTO at line 51. 5 of those changes were fix/bug commits, and the other 39 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Main/ArcVault/ArcVaultHelper.fs`: 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/Electron/src/Renderer/Context/FileTreeExpansionContext.fs src/Electron/src/Renderer/Context/FileTreeExpansionContext.fs:169— src/Electron/src/Renderer/Context/FileTreeExpansionContext.fs changed 8 times in last 90 days, max cyclomatic complexity 79 in FileTreeExpansionContext.FileTreeExpansionCtxProvider at line 169. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Context/FileTreeExpansionContext.fs`: 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/Shared/PathHelpers.fs src/Shared/PathHelpers.fs:414— src/Shared/PathHelpers.fs changed 28 times in last 90 days, max cyclomatic complexity 22 in ArcEntityPathRules.classifyDeleteTarget at line 414. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Shared/PathHelpers.fs`: 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/Components/src/Page/FileExplorer/FileExplorer.fs src/Components/src/Page/FileExplorer/FileExplorer.fs:142— src/Components/src/Page/FileExplorer/FileExplorer.fs changed 10 times in last 90 days, max cyclomatic complexity 52 in FileExplorer.FileExplorer at line 142. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Page/FileExplorer/FileExplorer.fs`: 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/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs src/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs:110— src/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs changed 20 times in last 90 days, max cyclomatic complexity 26 in GitDiffTarget.Main at line 110. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs`: 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/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs:296— src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs changed 12 times in last 90 days, max cyclomatic complexity 29 in ProvenanceGraph.Header at line 296. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs`: 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/Components/src/Composite/Widgets/JsonImport/JsonImportModal.fs src/Components/src/Composite/Widgets/JsonImport/JsonImportModal.fs:174— src/Components/src/Composite/Widgets/JsonImport/JsonImportModal.fs changed 14 times in last 90 days, max cyclomatic complexity 24 in JsonImportModal.JsonImportModal at line 174. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/Widgets/JsonImport/JsonImportModal.fs`: 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/Electron/src/Renderer/Context/FileStateContext.fs src/Electron/src/Renderer/Context/FileStateContext.fs:90— src/Electron/src/Renderer/Context/FileStateContext.fs changed 13 times in last 90 days, max cyclomatic complexity 23 in FileStateContext.FileStateCtxProviderWithSnapshots at line 90. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Context/FileStateContext.fs`: 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/Electron/src/Renderer/Components/Helper/FileExplorerStateReconciliation.fs src/Electron/src/Renderer/Components/Helper/FileExplorerStateReconciliation.fs:134— src/Electron/src/Renderer/Components/Helper/FileExplorerStateReconciliation.fs changed 14 times in last 90 days, max cyclomatic complexity 21 in FileExplorerStateReconciliation.useReconcileSelectedPreview at line 134. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Components/Helper/FileExplorerStateReconciliation.fs`: 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/Electron/src/Renderer/Components/MainContent/ArcFilePreviewTarget.fs src/Electron/src/Renderer/Components/MainContent/ArcFilePreviewTarget.fs:19— src/Electron/src/Renderer/Components/MainContent/ArcFilePreviewTarget.fs changed 11 times in last 90 days, max cyclomatic complexity 26 in ArcFilePreviewTarget.ArcFilePreviewTarget at line 19. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Renderer/Components/MainContent/ArcFilePreviewTarget.fs`: 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/Components/src/Page/FileExplorer/FileExplorerItem.fs src/Components/src/Page/FileExplorer/FileExplorerItem.fs:118— src/Components/src/Page/FileExplorer/FileExplorerItem.fs changed 13 times in last 90 days, max cyclomatic complexity 22 in FileExplorerItem.LFSStatusPill at line 118. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Page/FileExplorer/FileExplorerItem.fs`: 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/Components/src/Page/DataHubBrowser/DataHubBrowser.fs src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:267— src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs changed 8 times in last 90 days, max cyclomatic complexity 34 in DataHubBrowser.ExplorePanel at line 267. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs`: 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/Components/src/Composite/AnnotationTable/ContextMenu.fs src/Components/src/Composite/AnnotationTable/ContextMenu.fs:204— src/Components/src/Composite/AnnotationTable/ContextMenu.fs changed 12 times in last 90 days, max cyclomatic complexity 21 in AnnotationTableContextMenuUtil.getFittedCells at line 204. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/AnnotationTable/ContextMenu.fs`: 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: build/Build.fs build/Build.fs:6— build/Build.fs changed 5 times in last 90 days, max cyclomatic complexity 45 in Build.main at line 6. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- build/Build.fs`: 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/Components/src/Composite/TableImport/TableImportPreview.fs src/Components/src/Composite/TableImport/TableImportPreview.fs:254— src/Components/src/Composite/TableImport/TableImportPreview.fs changed 10 times in last 90 days, max cyclomatic complexity 22 in TableImportPreview.SourceCard at line 254. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/TableImport/TableImportPreview.fs`: 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/Components/src/Composite/Table/Table.fs src/Components/src/Composite/Table/Table.fs:65— src/Components/src/Composite/Table/Table.fs changed 5 times in last 90 days, max cyclomatic complexity 41 in Table.Table at line 65. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/Table/Table.fs`: 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/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs:123— src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs changed 6 times in last 90 days, max cyclomatic complexity 29 in DataAnnotator.Table at line 123. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs`: 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.
FileTooLong: Context/GitWorkflow.fs src/Electron/src/Renderer/Context/GitWorkflow.fs— FileTooLong — 5111 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4611 over it, 10.22× 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: GitSidebar/GitSidebar.fs src/Components/src/Page/GitSidebar/GitSidebar.fs— FileTooLong — 2197 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1697 over it, 4.39× 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: GitComparison/GitPagedDiffViewer.fs src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs— FileTooLong — 2007 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 46 functions. The bar is 500 significant lines; this is 1507 over it, 4.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: ProvenanceGrouping/Controls.fs src/Components/src/Page/ProvenanceGrouping/Controls.fs— FileTooLong — 1581 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1081 over it, 3.16× 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: OfficeInterop/OfficeInterop.fs src/Client/OfficeInterop/OfficeInterop.fs— FileTooLong — 1526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1026 over it, 3.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.
FileTooLong: ProvenanceGrouping/ProvenanceGrouping.fs src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.fs— FileTooLong — 1407 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 907 over it, 2.81× 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: AnnotationTable/Modals.fs src/Components/src/Composite/AnnotationTable/Modals.fs— FileTooLong — 1166 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 666 over it, 2.33× 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: GraphCanvas/GraphCanvas.fs src/Components/src/Composite/GraphCanvas/GraphCanvas.fs— FileTooLong — 1163 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 663 over it, 2.33× 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: Metadata/Forms.fs src/Client/SharedComponents/Metadata/Forms.fs— FileTooLong — 1115 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 615 over it, 2.23× 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: IPC/IVersionControlApi.fs src/Electron/src/Main/IPC/IVersionControlApi.fs— FileTooLong — 1061 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 35 functions. The bar is 500 significant lines; this is 561 over it, 2.12× 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: IPC/IArcVaultsApi.fs src/Electron/src/Main/IPC/IArcVaultsApi.fs— FileTooLong — 979 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 479 over it, 1.96× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: TermSearch/TermSearch.fs src/Components/src/Composite/TermSearch/TermSearch.fs— FileTooLong — 961 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 461 over it, 1.92× 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: Api/GitLabApi.fs src/Components/src/Api/GitLabApi.fs— FileTooLong — 930 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 35 functions. The bar is 500 significant lines; this is 430 over it, 1.86× 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: IPC/FileSystemIO.fs src/Electron/src/Main/IPC/FileSystemIO.fs— FileTooLong — 845 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 44 functions. The bar is 500 significant lines; this is 345 over it, 1.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: ArcVault/ArcVault.fs src/Electron/src/Main/ArcVault/ArcVault.fs— FileTooLong — 837 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 337 over it, 1.67× 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: DataHubBrowser/DataHubBrowser.fs src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs— FileTooLong — 815 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 315 over it, 1.63× 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: AnnotationTable/ContextMenu.fs src/Components/src/Composite/AnnotationTable/ContextMenu.fs— FileTooLong — 793 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 293 over it, 1.59× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: GitComparison/GitMergeConflictViewer.fs src/Components/src/Page/GitComparison/GitMergeConflictViewer.fs— FileTooLong — 770 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 270 over it, 1.54× 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: ProvenanceGrouping/ARCtrlConverter.fs src/Shared/ProvenanceGrouping/ARCtrlConverter.fs— FileTooLong — 712 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 212 over it, 1.42× 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: FileExplorer/FileTree.fs src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs— FileTooLong — 684 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 184 over it, 1.37× 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: ProvenanceGrouping/State.fs src/Components/src/Page/ProvenanceGrouping/State.fs— FileTooLong — 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22× 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: Api/IOntologyAPI.fs src/Server/Api/IOntologyAPI.fs— FileTooLong — 601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 101 over it, 1.20× 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: VersionControl/Mappings.fs src/Electron/src/Main/VersionControl/Mappings.fs— FileTooLong — 600 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 88 functions. The bar is 500 significant lines; this is 100 over it, 1.20× 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: ProvenanceGrouping/PropertyModel.fs src/Components/src/Page/ProvenanceGrouping/PropertyModel.fs— FileTooLong — 575 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 75 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: Shared/PathHelpers.fs src/Shared/PathHelpers.fs— FileTooLong — 575 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 43 functions. The bar is 500 significant lines; this is 75 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.
+ 9 more in this group — see findings.md.
D30 · Dependency Vulnerabilities· Medium CVE · ×12
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
AC6 · Visual & motion safety· Animation without a prefers-reduced-motion guard · ×9
Animation without a prefers-reduced-motion guard src/Electron/src/Renderer/tailwind.css:257— `.animated-border::before` moves (`animation: border-gradient-flow 8s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/tailwind.css:218— `.animated-border::before` moves (`animation: border-gradient-flow 8s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/src/swate-components.css:2— `:is(.swt\:menu :where(li>details>summary),.swt\:menu :where(li>.swt\:menu-dropdown-toggle)):after` moves (`transition-property: rotate,translate`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/src/swate-components.css:2— `.swt\:toggle>*` moves (`transition: opacity .2s,rotate .4s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/src/swate-components.css:2— `.swt\:toggle:before` moves (`transition: background-color .1s,translate .2s,inset-inline-start .2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/src/swate-components.css:2— `.swt\:checkbox:before` moves (`transition: clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/src/swate-components.css:2— `.swt\:modal-box` moves (`transition: translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Components/src/swate-components.css:2— `.animated-border:before` moves (`animation: 8s ease-in-out infinite border-gradient-flow`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Animation without a prefers-reduced-motion guard src/Client/tailwind.css:207— `.animated-border::before` moves (`animation: border-gradient-flow 8s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
Change coupling: TableImportPreview.fs ↔ TemplateImportModal.fs src/Components/src/Composite/TableImport/TableImportPreview.fs:1— `src/Components/src/Composite/TableImport/TableImportPreview.fs` and `src/Components/src/Composite/TemplateBrowser/TemplateImportModal.fs` change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `4709dde4` add some type annotations; `89c5f076` Inline thin wrappers in the import code; `a0da2cd8` Keep an opened import grid mounted and test the per-table row counts — run `git show` on any of them.
Change coupling: IArcVaultsApi.fs ↔ ArcVaultHelper.fs src/Electron/src/Main/IPC/IArcVaultsApi.fs:1— `src/Electron/src/Main/IPC/IArcVaultsApi.fs` and `src/Electron/src/Renderer/Components/Helper/ArcVaultHelper.fs` change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `27daa87e` Choose the Git executable in the general settings; `07a541bb` Added per-normalized-path initialization serialization. Made initial …; `2f7d3ffd` Implemented the focused follow-up. — run `git show` on any of them.
Change coupling: REDACTED ↔ Server.fs REDACTED:1— `REDACTED` and `src/Server/Server.fs` change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `2e10492a` final solution for routing issue; `f534afb0` Remove switch of routebuilder.config :fire:; `8d13a860` Rework search field :sparkles::construction: #332#338#339 — run `git show` on any of them.
Change coupling: IArcVaultsApi.fs ↔ InitState.fs src/Electron/src/Main/IPC/IArcVaultsApi.fs:1— `src/Electron/src/Main/IPC/IArcVaultsApi.fs` and `src/Electron/src/Renderer/Components/InitState.fs` change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `83162f41` add init git by default to arc creation; `680aacec` Remove ArcScope Hook; `ec14032e` Improve auth types and implement datahub view — run `git show` on any of them.
Change coupling: FileTreeCreator.fs ↔ FileExplorerLfs.fs src/Electron/src/Main/FileTreeCreator.fs:1— `src/Electron/src/Main/FileTreeCreator.fs` and `src/Electron/src/Renderer/Components/FileExplorerLfs.fs` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `18376633` Join the large object index to file tree rows in the renderer and dro…; `2f6d74eb` Use the version control object state record in the file tree; `f279c53a` Source file tree large-object badges from the version control session — run `git show` on any of them.
Change coupling: ArcFileEditor.fs ↔ ArcFileEditor.stories.tsx src/Components/src/Page/ArcFileEditor/ArcFileEditor.fs:1— `src/Components/src/Page/ArcFileEditor/ArcFileEditor.fs` and `src/Components/src/Page/ArcFileEditor/ArcFileEditor.stories.tsx` change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `5ccaeaef` Add table search, triggered with Ctrl + F, fix some issues with kbd s…; `eaacc7da` Cover With Units template import in the ArcFileEditor stories; `885ff7a4` Removed datamap part — run `git show` on any of them.
Change coupling: Mappings.fs ↔ GitWorkflow.fs src/Electron/src/Main/VersionControl/Mappings.fs:1— `src/Electron/src/Main/VersionControl/Mappings.fs` and `src/Electron/src/Renderer/Context/GitWorkflow.fs` change together 50% of the time (10 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `10d127cb` Use the merged object service and text diff options of VersionControl…; `50844a52` Keep diffs in memory by setting or on low space and show where they stop; `5adbc5f6` Memo viewer rows on parts only and test the window owner wiring — run `git show` on any of them.
Change coupling: Virtual.fs ↔ GitPagedDiffViewer.stories.tsx src/Components/src/JsBindings/Virtual.fs:1— `src/Components/src/JsBindings/Virtual.fs` and `src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `9a8035f7` Keep capped diff rows in step with scrolling and cheapen page arrivals; `9f65136d` Keep the logical scroll offset through index growth and scrollbar holds; `390d9d9f` Keep the scroll anchor on folds, reopen by line and bound diff inputs — run `git show` on any of them.
Change coupling: Actionbar.fs ↔ ArcSelector.stories.tsx src/Components/src/Composite/Actionbar/Actionbar.fs:1— `src/Components/src/Composite/Actionbar/Actionbar.fs` and `src/Components/src/Composite/ArcSelector/ArcSelector.stories.tsx` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `5b939049` Implement review corrections Refactor some existing code Moved action…; `cb884c88` Remove wrong changelog entries Remove unnecessary tests Update contex… (at that commit the file was still `src/Components/src/Primitive/Actionbar/Actionbar.fs`); `8aab7775` * Move react state control outside ArcSelector * Keep Arc selector at… (at that commit the file was still `src/Components/src/Primitive/Actionbar/Actionbar.fs`) — run `git show` on any of them.
AC4 · Keyboard semantics· Anchor without href · ×8
Anchor without href src/Client/MainComponents/NoFileElement.fs:67— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Client/Pages/BuildingBlock/Dropdown.fs:96— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Client/Pages/BuildingBlock/Dropdown.fs:112— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Client/SharedComponents/NavbarBurger.fs:53— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Client/Views/MainPageViews.fs:23— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Components/src/Composite/Layout/Layout.fs:603— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Components/src/Composite/Layout/Layout.fs:611— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Anchor without href src/Components/src/Composite/TermSearch/TermSearch.fs:270— An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
Duplicated block (12 lines × 2) src/Client/OfficeInterop/ExcelHelper.fs:465— src/Client/OfficeInterop/ExcelHelper.fs:465-476 | src/Client/OfficeInterop/ExcelHelper.fs:540-551 — 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/Client/OfficeInterop/ExcelHelper.fs:465` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) src/Client/OfficeInterop/OfficeInterop.fs:429— src/Client/OfficeInterop/OfficeInterop.fs:429-440 | src/Client/OfficeInterop/OfficeInterop.fs:443-454 — 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/Components/src/Composite/AnnotationTable/ContextMenu.fs:812— src/Components/src/Composite/AnnotationTable/ContextMenu.fs:812-823 | src/Components/src/Composite/AnnotationTable/ContextMenu.fs:933-944 — 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/Components/src/Composite/AnnotationTable/ContextMenu.fs:812` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Components/src/Composite/AnnotationTable/ContextMenu.fs:945` calls `ContextMenuItem` and `src/Components/src/Composite/AnnotationTable/ContextMenu.fs:823` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) src/Components/src/Page/Metadata/RunMetadata.fs:1— src/Components/src/Page/Metadata/RunMetadata.fs:1-12 | src/Components/src/Page/Metadata/WorkflowMetadata.fs:1-12 — 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/Components/src/Page/ProvenanceGrouping/Controls.fs:1371— src/Components/src/Page/ProvenanceGrouping/Controls.fs:1371-1382 | src/Components/src/Page/ProvenanceGrouping/Controls.fs:1518-1529 — 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/Components/src/Page/ProvenanceGrouping/Controls.fs:1831— src/Components/src/Page/ProvenanceGrouping/Controls.fs:1831-1842 | src/Components/src/Page/ProvenanceGrouping/Controls.fs:1847-1858 — 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/Electron/src/Main/ArcVault/ArcVault.fs:1064— src/Electron/src/Main/ArcVault/ArcVault.fs:1064-1075 | src/Electron/src/Main/ArcVault/ArcVault.fs:1103-1114 — 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/Electron/src/Main/ArcVault/ArcVault.fs:1064` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Electron/src/Main/ArcVault/ArcVault.fs:1078` calls `Ok` and `src/Electron/src/Main/ArcVault/ArcVault.fs:1115` 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/Client/Pages/FilePicker/FilePickerView.fs:186— src/Client/Pages/FilePicker/FilePickerView.fs:186-194 | src/Client/Pages/FilePicker/FilePickerView.fs:210-218 — 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/Client/Pages/FilePicker/FilePickerView.fs:186` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) src/Components/src/ARCtrl/Extensions/CompositeCell.fs:201— src/Components/src/ARCtrl/Extensions/CompositeCell.fs:201-209 | src/Components/src/ARCtrl/Extensions/CompositeCell.fs:216-224 — 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/Components/src/Primitive/Blankslate/Blankslate.fs:43— src/Components/src/Primitive/Blankslate/Blankslate.fs:43-51 | src/Components/src/Primitive/Blankslate/Blankslate.fs:58-66 — 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/Components/src/Primitive/Blankslate/Blankslate.fs:43` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) src/Electron/src/Main/ArcVault/ArcNodesReader.fs:25— src/Electron/src/Main/ArcVault/ArcNodesReader.fs:25-33 | src/Electron/src/Main/Provenance/ProvenanceGroupingReader.fs:13-21 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Electron/src/Main/ArcVault/ArcNodesReader.fs:25` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:719— src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:719-727 | src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:764-772 — 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/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:719` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) src/Components/src/Composite/Workspace/DropOverlay.fs:277— src/Components/src/Composite/Workspace/DropOverlay.fs:277-285 | src/Components/src/Composite/Workspace/DropOverlay.fs:291-299 — 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/Components/src/Composite/Workspace/DropOverlay.fs:277` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) src/Electron/src/Main/IPC/IArcVaultsApi.fs:498— src/Electron/src/Main/IPC/IArcVaultsApi.fs:498-506 | src/Electron/src/Main/IPC/IArcVaultsApi.fs:540-548 — 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/Electron/src/Main/IPC/IArcVaultsApi.fs:498` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
AC6 · Visual & motion safety· Focus outline removed in CSS without a · ×6
Focus outline removed in CSS without a :focus replacement src/Components/src/swate-components.css:2— `.swt\:menu :where(li>details>summary)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
Focus outline removed in CSS without a :focus replacement src/Components/src/swate-components.css:2— `.swt\:menu :where(li)>:not(ul,.swt\:menu-title,details,.swt\:btn).swt\:menu-active` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
Focus outline removed in CSS without a :focus replacement src/Components/src/swate-components.css:2— `.swt\:collapse:is(details) summary` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
Focus outline removed in CSS without a :focus replacement src/Components/src/swate-components.css:2— `.swt\:outline-hidden` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
Focus outline removed in CSS without a :focus replacement src/Components/src/swate-components.css:2— `.swt\:\!outline-0` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
Focus outline removed in CSS without a :focus replacement src/Components/src/swate-components.css:2— `.swt\:outline-none` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
TooManyFunctions: GitWorkflow src/Electron/src/Renderer/Context/GitWorkflow.fs:1— TooManyFunctions — 149 functions. The bar is 30 functions; this is 119 over it, 4.97× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: GitDiffPageLoader src/Electron/src/Renderer/Context/GitWorkflow.fs:1789— TooManyFunctions — 59 functions. The bar is 30 functions; this is 29 over it, 1.97× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: Session src/Shared/ProvenanceGrouping/Session.fs:89— TooManyFunctions — 48 functions. The bar is 30 functions; this is 18 over it, 1.60× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: VersionControlApiClient src/Electron/src/Renderer/VersionControlApiClient.fs:5— TooManyFunctions — 39 functions. The bar is 30 functions; this is 9 over it, 1.30× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: Filesystem src/Electron/src/Main/Bindings/Filesystem.fs:1— TooManyFunctions — 35 functions. The bar is 30 functions; this is 5 over it, 1.17× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
TooManyFunctions: AuthService src/Electron/src/Main/Auth/AuthService.fs:1— TooManyFunctions — 31 functions. The bar is 30 functions; this is 1 over it, 1.03× the bar. The counted members are a module's functions — a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility.
Duplicated block (15 lines × 2) src/Client/OfficeInterop/ExcelHelper.fs:240— src/Client/OfficeInterop/ExcelHelper.fs:240-254 | src/Client/OfficeInterop/OfficeInterop.fs:1999-2013 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/OfficeInterop/ExcelHelper.fs:240` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Client/OfficeInterop/OfficeInterop.fs:2013` calls `then` and `src/Client/OfficeInterop/ExcelHelper.fs:254` 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 (15 lines × 2) src/Client/OfficeInterop/ExcelHelper.fs:422— src/Client/OfficeInterop/ExcelHelper.fs:422-436 | src/Client/OfficeInterop/ExcelHelper.fs:497-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.
Duplicated block (15 lines × 2) src/Client/Pages/FilePicker/FilePickerView.fs:96— src/Client/Pages/FilePicker/FilePickerView.fs:96-110 | src/Client/Pages/TermSearch/TermSearchView.fs:24-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Pages/FilePicker/FilePickerView.fs:96` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) src/Client/SharedComponents/Metadata/Forms.fs:1053— src/Client/SharedComponents/Metadata/Forms.fs:1053-1067 | src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonsInput.fs:20-34 — 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 (15 lines × 2) src/Client/States/DataAnnotator.fs:35— src/Client/States/DataAnnotator.fs:35-49 | src/Components/src/Composite/Widgets/DataAnnotator/Types.fs:32-46 — 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 (15 lines × 2) src/Server/Api/IOntologyAPI.fs:461— src/Server/Api/IOntologyAPI.fs:461-475 | src/Server/Api/IOntologyAPI.fs:741-755 — 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/Server/Api/IOntologyAPI.fs:461` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) src/Client/SharedComponents/Metadata/Forms.fs:177— src/Client/SharedComponents/Metadata/Forms.fs:177-189 | src/Components/src/Page/Metadata/FormComponents/Helpers.fs:17-29 — 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 (13 lines × 2) src/Client/SharedComponents/Widgets.fs:36— src/Client/SharedComponents/Widgets.fs:36-48 | src/Client/SharedComponents/Widgets.fs:58-70 — 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/Client/States/DataAnnotator.fs:90— src/Client/States/DataAnnotator.fs:90-102 | src/Components/src/Composite/Widgets/DataAnnotator/Types.fs:140-152 — 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 (13 lines × 2) src/Client/Util/MessageInterop.fs:121— src/Client/Util/MessageInterop.fs:121-133 | src/Fable.Remoting.Client.Compatibility/Remoting.fs:100-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Util/MessageInterop.fs:121` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) src/Components/src/Api/GitLabApi.fs:1010— src/Components/src/Api/GitLabApi.fs:1010-1022 | src/Components/src/Api/GitLabApi.fs:1081-1093 — 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/Components/src/Page/Metadata/InvestigationMetadata.fs:1— src/Components/src/Page/Metadata/InvestigationMetadata.fs:1-13 | src/Components/src/Page/Metadata/StudyMetadata.fs:1-13 — before extracting anything, compare `src/Components/src/Page/Metadata/InvestigationMetadata.fs` and `src/Components/src/Page/Metadata/StudyMetadata.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) src/Client/OfficeInterop/ARCtrlHelper.fs:55— src/Client/OfficeInterop/ARCtrlHelper.fs:55-64 | src/Client/OfficeInterop/OfficeInterop.fs:75-84 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/OfficeInterop/ARCtrlHelper.fs:55` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) src/Electron/src/Main/IPC/IArcVaultsApi.fs:409— src/Electron/src/Main/IPC/IArcVaultsApi.fs:409-419 | src/Electron/src/Main/IPC/IArcVaultsApi.fs:859-868 — 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/Electron/src/Main/IPC/IArcVaultsApi.fs:409` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) src/Shared/ProvenanceGrouping/Session.fs:546— src/Shared/ProvenanceGrouping/Session.fs:546-555 | src/Shared/ProvenanceGrouping/Session.fs:557-566 — 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/Components/src/Composite/AnnotationTable/Modals.fs:903— src/Components/src/Composite/AnnotationTable/Modals.fs:903-912 | src/Components/src/Composite/AnnotationTable/Modals.fs:939-948 — 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/Components/src/Composite/AnnotationTable/Modals.fs:903` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Components/src/Composite/AnnotationTable/Modals.fs:902` calls `td` and `src/Components/src/Composite/AnnotationTable/Modals.fs:938` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) src/Components/src/Composite/DataMapTable/DataMapTable.fs:82— src/Components/src/Composite/DataMapTable/DataMapTable.fs:82-91 | src/Components/src/Composite/DataMapTable/DataMapTable.fs:132-141 — 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/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/FileTreeDeleteModal.fs:10— src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/FileTreeDeleteModal.fs:10-19 | src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/FileTreeFreeLfsModal.fs:10-19 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) src/Client/Pages/BuildingBlock/Helper.fs:37— src/Client/Pages/BuildingBlock/Helper.fs:37-43 | src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs:67-73 — 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/Components/src/Composite/MarkdownText/Plugins/AddImage.fs:31— src/Components/src/Composite/MarkdownText/Plugins/AddImage.fs:31-37 | src/Components/src/Composite/MarkdownText/Plugins/AddStep.fs:37-43 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) src/Components/src/Composite/Notes/Editor/Validation.fs:32— src/Components/src/Composite/Notes/Editor/Validation.fs:32-38 | src/Components/src/Composite/Notes/Editor/Validation.fs:40-46 — 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/Components/src/Primitive/BaseModal/BaseModal.fs:155— src/Components/src/Primitive/BaseModal/BaseModal.fs:155-161 | src/Components/src/Primitive/ErrorModal/ErrorModal.fs:84-90 — 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 (7 lines × 2) src/Electron/src/Main/IPC/IVersionControlApi.fs:233— src/Electron/src/Main/IPC/IVersionControlApi.fs:233-239 | src/Electron/src/Main/IPC/IVersionControlApi.fs:331-337 — 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/Client/MainComponents/EmptyTableElement.fs:23— src/Client/MainComponents/EmptyTableElement.fs:23-27 | src/Client/MainComponents/EmptyTableModals.fs:34-40 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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/Components/src/Composite/AnnotationTable/AnnotationTable.fs:344— src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:344-348 | src/Components/src/Composite/DataMapTable/DataMapContextMenu.fs:163-167 — 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 (5 lines × 2) src/Server/Database/Term.fs:509— src/Server/Database/Term.fs:509-513 | src/Server/Database/Term.fs:574-578 — 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/Server/Database/Term.fs:351— src/Server/Database/Term.fs:351-355 | src/Server/Database/Term.fs:364-368 — 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/Client/SharedComponents/JsBindings/DndKit.fs:92— src/Client/SharedComponents/JsBindings/DndKit.fs:92-96 | src/Components/src/JsBindings/DndKit.fs:150-154 — before extracting anything, compare `src/Client/SharedComponents/JsBindings/DndKit.fs` and `src/Components/src/JsBindings/DndKit.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
R4 · Test Coverage· No test reaches this file · ×5
No test reaches this file src/Components/playground/App.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file src/Electron/scripts/forge-make.cjs:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file src/Fable.SimpleJson.Compatibility/quote.js:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file src/Components/playground/main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file src/Fable.SimpleJson.Compatibility/isBrowser.js:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
Duplicated block (19 lines × 2) src/Client/MainComponents/Widgets.fs:197— src/Client/MainComponents/Widgets.fs:197-215 | src/Components/src/Composite/Widgets/Widgets.fs:199-217 — before extracting anything, compare `src/Client/MainComponents/Widgets.fs` and `src/Components/src/Composite/Widgets/Widgets.fs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/MainComponents/Widgets.fs:197` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Components/src/Composite/Widgets/Widgets.fs:198` calls `onFocus` and `src/Client/MainComponents/Widgets.fs:196` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (19 lines × 2) src/Client/Modals/SelectiveImportModal.fs:329— src/Client/Modals/SelectiveImportModal.fs:329-347 | src/Client/Modals/SelectiveImportModal.fs:394-412 — 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/Client/Modals/SelectiveImportModal.fs:329` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) src/Components/src/Composite/AnnotationTable/Modals.fs:1172— src/Components/src/Composite/AnnotationTable/Modals.fs:1172-1190 | src/Components/src/Composite/AnnotationTable/Modals.fs:1622-1640 — 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/Components/src/Composite/AnnotationTable/Modals.fs:1172` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) src/Server/Api/IOntologyAPI.fs:298— src/Server/Api/IOntologyAPI.fs:298-316 | src/Server/Api/IOntologyAPI.fs:556-574 — 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/Server/Api/IOntologyAPI.fs:298` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) src/Components/src/Composite/TermSearch/Types.fs:24— src/Components/src/Composite/TermSearch/Types.fs:24-39 | src/Components/src/Composite/TermSearch/Types.fs:42-57 — 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/Components/src/Composite/TermSearch/Types.fs:24` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:287— src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:287-302 | src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs:270-285 — before extracting anything, compare `src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs` and `src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:287` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) src/Components/src/Page/ProvenanceGrouping/Interaction.fs:174— src/Components/src/Page/ProvenanceGrouping/Interaction.fs:174-189 | src/Components/src/Page/ProvenanceGrouping/Interaction.fs:227-242 — 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/Components/src/Page/ProvenanceGrouping/Interaction.fs:174` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (16 lines × 2) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:151— src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:151-166 | src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs:139-154 — before extracting anything, compare `src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs` and `src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:151` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13–14 lines × 2) src/Client/MainComponents/Navbar.fs:88— src/Client/MainComponents/Navbar.fs:88-101 | src/Client/MainComponents/Navbar.fs:115-127 — 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/Client/MainComponents/Navbar.fs:88` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13–14 lines × 2) src/Client/OfficeInterop/OfficeInterop.fs:34— src/Client/OfficeInterop/OfficeInterop.fs:34-47 | src/Client/OfficeInterop/OfficeInterop.fs:151-163 — 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/Client/OfficeInterop/OfficeInterop.fs:34` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (13–14 lines × 2) src/Components/src/Composite/TableImport/Helper.fs:44— src/Components/src/Composite/TableImport/Helper.fs:44-57 | src/Components/src/Composite/TableImport/Helper.fs:89-101 — 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/Components/src/Composite/TableImport/Helper.fs:44` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13–14 lines × 2) src/Components/src/Composite/Widgets/Widgets.fs:306— src/Components/src/Composite/Widgets/Widgets.fs:306-319 | src/Components/src/Composite/Widgets/Widgets.fs:321-333 — 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/Components/src/Composite/Widgets/Widgets.fs:306` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) src/Components/src/Page/ProvenanceGrouping/EditorLayout.fs:116— src/Components/src/Page/ProvenanceGrouping/EditorLayout.fs:116-123 | src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:112-119 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) src/Components/src/Primitive/Popover/Popover.fs:236— src/Components/src/Primitive/Popover/Popover.fs:236-243 | src/Components/src/Primitive/Popover/Popover.fs:280-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. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Primitive/Popover/Popover.fs:236` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) src/Components/src/Composite/AnnotationTable/Modals.fs:303— src/Components/src/Composite/AnnotationTable/Modals.fs:303-310 | src/Components/src/Composite/AnnotationTable/Modals.fs:336-343 — 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/Components/src/Composite/AnnotationTable/Modals.fs:303` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) src/Components/src/Composite/TermSearch/TermSearch.fs:140— src/Components/src/Composite/TermSearch/TermSearch.fs:140-147 | src/Components/src/Composite/TermSearch/TermSearch.fs:152-159 — 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/Client/OfficeInterop/OfficeInterop.fs:151— src/Client/OfficeInterop/OfficeInterop.fs:151-156 | src/Client/OfficeInterop/OfficeInterop.fs:312-317 — 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/Components/src/Util/ReactHooks.fs:153— src/Components/src/Util/ReactHooks.fs:153-161 | src/Components/src/Util/ReactHooks.fs:273-278 — 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/Components/src/Util/ReactHooks.fs:153` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6 lines × 2) src/Electron/src/Main/IPC/IVersionControlApi.fs:237— src/Electron/src/Main/IPC/IVersionControlApi.fs:237-242 | src/Electron/src/Main/IPC/IVersionControlApi.fs:305-310 — 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/Electron/src/Main/IPC/IVersionControlApi.fs:237` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) src/Electron/src/Renderer/Context/GitWorkflow.fs:783— src/Electron/src/Renderer/Context/GitWorkflow.fs:783-788 | src/Electron/src/Swate.Electron.Shared/IPCTypes.fs:257-262 — 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.
AC3 · Page structure· Data table has no header cells · ×3
Data table has no header cells src/Client/Pages/FilePicker/FilePickerView.fs:244— A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
Data table has no header cells src/Components/src/Composite/SortableList/SortableList.fs:223— A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
Data table has no header cells src/Components/src/Primitive/BaseModal/BaseModal.fs:260— A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
Repeated repair: src/Components/src/Composite/TemplateBrowser/Helper.fs src/Components/src/Composite/TemplateBrowser/Helper.fs:8— src/Components/src/Composite/TemplateBrowser/Helper.fs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is Helper.toFullAuthorName at line 8), 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: “update ARCtrl, replace internal, hotfix function”; “* Implemented a check for imported table to exist with the same name before import * Enabled renaming of imported templates when their name already exists in the import dialogue or use the current last name + 1 * Implemented check to prevent tables from using names with forbidden characters * Also implemented the same kind of fix for the import of tables with the JSON import * When a table in the tab is renamed into a table that already has that name, an error is displayed with a dialogue * Unified table name checks instead of doing them any longer at different places”; “expand template test case for fix to include all composite header types”; “fix table.Columns bug after table.Join(..., TableJoinOptions.Headers) #1397”. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/Composite/TemplateBrowser/Helper.fs`: 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/Electron/src/Main/Notes/NoteScaffolding.fs src/Electron/src/Main/Notes/NoteScaffolding.fs:11— src/Electron/src/Main/Notes/NoteScaffolding.fs 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 5 (its worst body is NoteScaffolding.ensureNotesFolderAtArcPath at line 11), 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: “fix auto generation on missing README.md in notes scaffold.”; “fix edge case failures for write/update async to disc.”; “Reduced scope of the PR Revert changes that alter mainly already existing problems”. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Electron/src/Main/Notes/NoteScaffolding.fs`: 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/Components/src/ClipboardContract/Contract.fs src/Components/src/ClipboardContract/Contract.fs:50— src/Components/src/ClipboardContract/Contract.fs 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 6 (its worst body is Mapping.map at line 50), 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: “Fixed cross pasting into swate alpha and unified pasting behaviour”; “* Fixed context menu-paste with right-click * Implemented preservation of target unit term when available”; “Fixed plain numeric AnnotationTable paste has regressed for unitized cells. Fixed treatment of PlainText.parseRows of terminal newline as an additional empty spreadsheet row.”. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-17 09:58:49 +01:00' --until='2026-11-15 09:58:49 +01:00' --full-history --no-merges -- src/Components/src/ClipboardContract/Contract.fs`: 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· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (5 members, 50+ identical tokens) src/Components/src/Page/Metadata/AssayMetadata.fs:1— src/Components/src/Page/Metadata/AssayMetadata.fs:1-85 | src/Components/src/Page/Metadata/InvestigationMetadata.fs:1-101 | src/Components/src/Page/Metadata/RunMetadata.fs:1-92 | src/Components/src/Page/Metadata/StudyMetadata.fs:1-93 | src/Components/src/Page/Metadata/WorkflowMetadata.fs:1-84 — 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.
Members sharing a duplicated core (5 members, 50+ identical tokens) src/Components/src/Page/ProvenanceGrouping/ConnectorMeasurement.fs:1— src/Components/src/Page/ProvenanceGrouping/ConnectorMeasurement.fs:1-351 | src/Components/src/Page/ProvenanceGrouping/ConnectorOverlay.fs:1-417 | src/Components/src/Page/ProvenanceGrouping/ConnectorPaths.fs:1-543 | src/Components/src/Page/ProvenanceGrouping/ConnectorRendering.fs:1-223 | src/Components/src/Page/ProvenanceGrouping/ConnectorTypes.fs:1-100 — 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.
Members sharing a duplicated core (5 members, 50+ identical tokens) src/Electron/src/Main/ArcVault/ArcVault.fs:1— src/Electron/src/Main/ArcVault/ArcVault.fs:1-1137 | src/Electron/src/Main/ArcVault/ArcVaultFileTree.fs:2-287 | src/Electron/src/Main/ArcVault/ArcVaultFileWatcher.fs:2-459 | src/Electron/src/Main/ArcVault/ArcVaultLargeObjects.fs:2-322 | src/Electron/src/Main/ArcVault/ArcVaultState.fs:2-320 — 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.
Duplicated block (25 lines × 2) src/Client/Pages/ProtocolTemplates/ProtocolView.fs:117— src/Client/Pages/ProtocolTemplates/ProtocolView.fs:117-141 | src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs:136-160 — before extracting anything, compare `src/Client/Pages/ProtocolTemplates/ProtocolView.fs` and `src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Pages/ProtocolTemplates/ProtocolView.fs:117` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) src/Components/src/Composite/DataMapTable/DataMapTable.fs:94— src/Components/src/Composite/DataMapTable/DataMapTable.fs:94-118 | src/Components/src/Composite/DataMapTable/DataMapTable.fs:143-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. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Composite/DataMapTable/DataMapTable.fs:94` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) src/Server/Api/IOntologyAPI.fs:413— src/Server/Api/IOntologyAPI.fs:413-437 | src/Server/Api/IOntologyAPI.fs:690-714 — 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/Server/Api/IOntologyAPI.fs:413` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (20 lines × 2) src/Client/Pages/ProtocolTemplates/ProtocolView.fs:30— src/Client/Pages/ProtocolTemplates/ProtocolView.fs:30-49 | src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs:42-61 — before extracting anything, compare `src/Client/Pages/ProtocolTemplates/ProtocolView.fs` and `src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Pages/ProtocolTemplates/ProtocolView.fs:30` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20 lines × 2) src/Client/States/IndexedDB.fs:115— src/Client/States/IndexedDB.fs:115-134 | src/Client/States/IndexedDB.fs:155-174 — 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/Client/States/IndexedDB.fs:115` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (20 lines × 2) src/Components/src/Page/Metadata/AssayMetadata.fs:66— src/Components/src/Page/Metadata/AssayMetadata.fs:66-85 | src/Components/src/Page/Metadata/RunMetadata.fs:73-92 — before extracting anything, compare `src/Components/src/Page/Metadata/AssayMetadata.fs` and `src/Components/src/Page/Metadata/RunMetadata.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/AssayMetadata.fs:66` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) src/Client/MainComponents/Widgets.fs:18— src/Client/MainComponents/Widgets.fs:18-35 | src/Components/src/Composite/Widgets/Widgets.fs:13-30 — before extracting anything, compare `src/Client/MainComponents/Widgets.fs` and `src/Components/src/Composite/Widgets/Widgets.fs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 227 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 (18 lines × 2) src/Components/src/Page/ProvenanceGrouping/Controls.fs:1— src/Components/src/Page/ProvenanceGrouping/Controls.fs:1-18 | src/Components/src/Page/ProvenanceGrouping/ControlsSupport.fs:1-18 — 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 (18 lines × 2) src/Client/MainComponents/Widgets.fs:244— src/Client/MainComponents/Widgets.fs:244-261 | src/Components/src/Composite/Widgets/Widgets.fs:250-267 — before extracting anything, compare `src/Client/MainComponents/Widgets.fs` and `src/Components/src/Composite/Widgets/Widgets.fs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/MainComponents/Widgets.fs:244` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–17 lines × 2) src/Client/Modals/SelectiveImportModal.fs:307— src/Client/Modals/SelectiveImportModal.fs:307-322 | src/Client/Modals/SelectiveImportModal.fs:376-392 — 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/Client/Modals/SelectiveImportModal.fs:307` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–17 lines × 2) src/Client/SharedComponents/Metadata/Generic.fs:60— src/Client/SharedComponents/Metadata/Generic.fs:60-75 | src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs:65-81 — before extracting anything, compare `src/Client/SharedComponents/Metadata/Generic.fs` and `src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (16–17 lines × 2) src/Client/SharedComponents/Metadata/Generic.fs:78— src/Client/SharedComponents/Metadata/Generic.fs:78-93 | src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs:84-100 — before extracting anything, compare `src/Client/SharedComponents/Metadata/Generic.fs` and `src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Generic.fs:78` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) src/Client/Update/UpdateUtil.fs:54— src/Client/Update/UpdateUtil.fs:54-67 | src/Components/src/Composite/TableImport/Helper.fs:138-151 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Update/UpdateUtil.fs:54` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) src/Electron/src/Main/IPC/Delete.fs:370— src/Electron/src/Main/IPC/Delete.fs:370-384 | src/Electron/src/Main/IPC/Rename.fs:325-338 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Electron/src/Main/IPC/Delete.fs:370` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) src/Components/src/Composite/TermSearch/TermSearch.fs:862— src/Components/src/Composite/TermSearch/TermSearch.fs:862-875 | src/Components/src/Composite/TermSearch/TermSearch.fs:922-935 — 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/Components/src/Composite/TermSearch/TermSearch.fs:862` 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.
Change coupling clique: HtmlViewer.fs, ImageViewer.fs, PDFViewer.fs src/Components/src/Page/FileViewer/HtmlViewer.fs— 3 files — `src/Components/src/Page/FileViewer/HtmlViewer.fs`, `src/Components/src/Page/FileViewer/ImageViewer.fs`, `src/Components/src/Page/FileViewer/PDFViewer.fs` — all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
Change coupling clique: main.fs, preload.fs, REDACTED src/Electron/src/Main/main.fs— 3 files — `src/Electron/src/Main/main.fs`, `src/Electron/src/Preload/preload.fs`, `src/Electron/src/Renderer/Api.fs` — all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
Duplicated block (36 lines × 2) src/Client/Pages/ProtocolTemplates/ProtocolView.fs:64— src/Client/Pages/ProtocolTemplates/ProtocolView.fs:64-99 | src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs:78-113 — before extracting anything, compare `src/Client/Pages/ProtocolTemplates/ProtocolView.fs` and `src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Pages/ProtocolTemplates/ProtocolView.fs:64` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (36 lines × 2) src/Components/src/Page/Metadata/AssayMetadata.fs:29— src/Components/src/Page/Metadata/AssayMetadata.fs:29-64 | src/Components/src/Page/Metadata/RunMetadata.fs:28-63 — before extracting anything, compare `src/Components/src/Page/Metadata/AssayMetadata.fs` and `src/Components/src/Page/Metadata/RunMetadata.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/AssayMetadata.fs:29` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) src/Client/OfficeInterop/OfficeInterop.fs:111— src/Client/OfficeInterop/OfficeInterop.fs:111-133 | src/Client/OfficeInterop/OfficeInterop.fs:231-253 — 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/Components/src/Composite/AnnotationTable/Modals.fs:1195— src/Components/src/Composite/AnnotationTable/Modals.fs:1195-1217 | src/Components/src/Composite/AnnotationTable/Modals.fs:1645-1667 — 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/Components/src/Composite/AnnotationTable/Modals.fs:1195` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18–19 lines × 2) src/Components/src/Composite/AnnotationTable/ContextMenu.fs:873— src/Components/src/Composite/AnnotationTable/ContextMenu.fs:873-890 | src/Components/src/Composite/AnnotationTable/ContextMenu.fs:953-971 — 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/Components/src/Composite/AnnotationTable/ContextMenu.fs:873` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Components/src/Composite/AnnotationTable/ContextMenu.fs:891` calls `DuplicateRowItem` and `src/Components/src/Composite/AnnotationTable/ContextMenu.fs:972` 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 (18–19 lines × 2) src/Components/src/Composite/DataMapTable/ClipboardTarget.fs:36— src/Components/src/Composite/DataMapTable/ClipboardTarget.fs:36-53 | src/Components/src/Composite/DataMapTable/ClipboardTarget.fs:60-78 — 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/Components/src/Composite/DataMapTable/ClipboardTarget.fs:60` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (17–18 lines × 2) src/Client/OfficeInterop/OfficeInterop.fs:1801— src/Client/OfficeInterop/OfficeInterop.fs:1801-1818 | src/Client/OfficeInterop/OfficeInterop.fs:1900-1916 — 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/Client/OfficeInterop/OfficeInterop.fs:1801` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17–18 lines × 2) src/Client/SharedComponents/Metadata/Assay.fs:23— src/Client/SharedComponents/Metadata/Assay.fs:23-40 | src/Client/SharedComponents/Metadata/Workflow.fs:32-48 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Assay.fs:23` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) src/Client/SharedComponents/Metadata/Forms.fs:524— src/Client/SharedComponents/Metadata/Forms.fs:524-540 | src/Components/src/Page/Metadata/FormComponents/InputSequence.fs:108-124 — before extracting anything, compare `src/Client/SharedComponents/Metadata/Forms.fs` and `src/Components/src/Page/Metadata/FormComponents/InputSequence.fs` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Forms.fs:524` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) src/Components/src/Composite/TermSearch/TermSearch.fs:900— src/Components/src/Composite/TermSearch/TermSearch.fs:900-916 | src/Components/src/Composite/TermSearch/TermSearch.fs:930-946 — 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/Components/src/Composite/TermSearch/TermSearch.fs:900` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11–12 lines × 2) src/Components/src/Page/FileExplorer/FileExplorerItem.fs:398— src/Components/src/Page/FileExplorer/FileExplorerItem.fs:398-408 | src/Components/src/Page/FileExplorer/FileExplorerItem.fs:490-501 — 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 before the matched lines, `src/Components/src/Page/FileExplorer/FileExplorerItem.fs:396` calls `CreateItemButton` and `src/Components/src/Page/FileExplorer/FileExplorerItem.fs:489` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11–12 lines × 2) src/Electron/src/Main/IPC/IArcVaultsApi.fs:408— src/Electron/src/Main/IPC/IArcVaultsApi.fs:408-419 | src/Electron/src/Main/IPC/IArcVaultsApi.fs:445-455 — 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/Electron/src/Main/IPC/IArcVaultsApi.fs:408` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) src/Client/SharedComponents/Metadata/Forms.fs:477— src/Client/SharedComponents/Metadata/Forms.fs:477-487 | src/Components/src/Page/Metadata/FormComponents/InputSequence.fs:60-72 — before extracting anything, compare `src/Client/SharedComponents/Metadata/Forms.fs` and `src/Components/src/Page/Metadata/FormComponents/InputSequence.fs` 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. 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.
Duplicated block (11 lines × 2) src/Server/Server.fs:50— src/Server/Server.fs:50-60 | src/Server/Server.fs:66-76 — 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.
Unused dependency '@dnd-kit/sortable' — Declared in src/Client/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@dnd-kit/sortable' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
AC2 · Forms & labels· <fieldset> without a <legend> · ×1
<fieldset> without a <legend> src/Client/Modals/SelectiveImportModal.fs:130— A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one.
AC2 · Forms & labels· <ComboBox> field component without a label · ×1
<ComboBox> field component without a label src/Components/playground/App.tsx:127— This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC3 · Page structure· Heading level jumps from h1 to h3 · ×1
Heading level jumps from h1 to h3 src/Components/src/Page/Changelog/Changelog.fs:292— Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
Empty <h3> heading src/Components/src/Page/ProvenanceGrouping/EditorPanels.fs:292— An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it's decorative.
AC4 · Keyboard semantics· Link used as a button (placeholder href) · ×1
Link used as a button (placeholder href) src/Client/Pages/BuildingBlock/Dropdown.fs:49— An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action.
GitWorkflow.updateCore (cyclomatic 237) src/Electron/src/Renderer/Context/GitWorkflow.fs:5259— GitWorkflow.updateCore has cyclomatic complexity 237 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ProvenanceGrouping.Main (cyclomatic 180) src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.fs:21— ProvenanceGrouping.Main has cyclomatic complexity 180 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcVaultsApi.api (cyclomatic 171) src/Electron/src/Main/IPC/IArcVaultsApi.fs:221— ArcVaultsApi.api has cyclomatic complexity 171 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitPagedDiffViewer.Grid (cyclomatic 166) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:1194— GitPagedDiffViewer.Grid has cyclomatic complexity 166 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
GraphCanvas.GraphCanvas (cyclomatic 103) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:919— GraphCanvas.GraphCanvas has cyclomatic complexity 103 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
FileTreeExpansionContext.FileTreeExpansionCtxProvider (cyclomatic 79) src/Electron/src/Renderer/Context/FileTreeExpansionContext.fs:169— FileTreeExpansionContext.FileTreeExpansionCtxProvider has cyclomatic complexity 79 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Interface.update (cyclomatic 77) src/Client/Update/InterfaceUpdate.fs:87— Interface.update has cyclomatic complexity 77 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
TextInputWithMarkdown.TextInputWithMarkdown (cyclomatic 76) src/Components/src/Composite/MarkdownText/TextInputWithMarkdown.fs:63— TextInputWithMarkdown.TextInputWithMarkdown has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GitDiffPageLoader.updatePage (cyclomatic 65) src/Electron/src/Renderer/Context/GitWorkflow.fs:2738— GitDiffPageLoader.updatePage has cyclomatic complexity 65 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
TutorialOverlay.Main (cyclomatic 63) src/Components/src/Composite/TutorialOverlay/TutorialOverlay.fs:143— TutorialOverlay.Main has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FileTree.FileTree (cyclomatic 61) src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs:45— FileTree.FileTree has cyclomatic complexity 61 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Controls.PropertyRailItem (cyclomatic 60) src/Components/src/Page/ProvenanceGrouping/Controls.fs:625— Controls.PropertyRailItem has cyclomatic complexity 60 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
TermSearch.TermSearch (cyclomatic 55) src/Components/src/Composite/TermSearch/TermSearch.fs:773— TermSearch.TermSearch has cyclomatic complexity 55 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Spreadsheet.update (cyclomatic 52) src/Client/Update/SpreadsheetUpdate.fs:14— Spreadsheet.update has cyclomatic complexity 52 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
FileExplorer.FileExplorer (cyclomatic 52) src/Components/src/Page/FileExplorer/FileExplorer.fs:142— FileExplorer.FileExplorer has cyclomatic complexity 52 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GroupCard.Main (cyclomatic 50) src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:300— GroupCard.Main has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
IVersionControlApi.api (cyclomatic 48) src/Electron/src/Main/IPC/IVersionControlApi.fs:546— IVersionControlApi.api has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
DropOverlay.DropOverlay (cyclomatic 47) src/Components/src/Composite/Workspace/DropOverlay.fs:18— DropOverlay.DropOverlay has cyclomatic complexity 47 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitSidebar.Main (cyclomatic 46) src/Components/src/Page/GitSidebar/GitSidebar.fs:2311— GitSidebar.Main has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Build.main (cyclomatic 45) build/Build.fs:6— Build.main has cyclomatic complexity 45 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ConnectorOverlay.Main (cyclomatic 41) src/Components/src/Page/ProvenanceGrouping/ConnectorOverlay.fs:49— ConnectorOverlay.Main has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Table.Table (cyclomatic 41) src/Components/src/Composite/Table/Table.fs:65— Table.Table has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GitMergeConflictViewer.Viewer (cyclomatic 38) src/Components/src/Page/GitComparison/GitMergeConflictViewer.fs:564— GitMergeConflictViewer.Viewer has cyclomatic complexity 38 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
PersonSearchDialog.PersonSearchDialog (cyclomatic 38) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:55— PersonSearchDialog.PersonSearchDialog has cyclomatic complexity 38 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GitPagedDiffViewer.RowView (cyclomatic 36) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:900— GitPagedDiffViewer.RowView has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GitWorkflow.runPublishAsync (cyclomatic 36) src/Electron/src/Renderer/Context/GitWorkflow.fs:4021— GitWorkflow.runPublishAsync has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
OverviewNav.OverviewNav (cyclomatic 35) src/Components/src/Page/ProvenanceGraph/OverviewNav.fs:151— OverviewNav.OverviewNav has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ARCitect.update (cyclomatic 34) src/Client/Update/ARCitectUpdate.fs:17— ARCitect.update has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
DataHubBrowser.ExplorePanel (cyclomatic 34) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:267— DataHubBrowser.ExplorePanel has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitPagedDiffViewer.Viewer (cyclomatic 33) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:2585— GitPagedDiffViewer.Viewer has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
PublicationSearchDialog.PublicationSearchDialog (cyclomatic 33) src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs:49— PublicationSearchDialog.PublicationSearchDialog has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GitWorkflow.runPrimarySaveAttemptAsync (cyclomatic 33) src/Electron/src/Renderer/Context/GitWorkflow.fs:4248— GitWorkflow.runPrimarySaveAttemptAsync has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcVaultExtensions.ArcVault.RenameOpenArcRootCore (cyclomatic 30) src/Electron/src/Main/ArcVault/ArcVault.fs:386— ArcVaultExtensions.ArcVault.RenameOpenArcRootCore has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ProvenanceGraph.Header (cyclomatic 29) src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs:296— ProvenanceGraph.Header has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DataAnnotator.Table (cyclomatic 29) src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs:123— DataAnnotator.Table has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FolderedDraggableList.FolderedDraggableList (cyclomatic 29) src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.fs:344— FolderedDraggableList.FolderedDraggableList has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BuildIndex.readRow (cyclomatic 29) src/Shared/ProvenanceGraph/BuildIndex.fs:237— BuildIndex.readRow has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcVaultFileWatcher.ArcVault.StartFileWatcherAsync (cyclomatic 28) src/Electron/src/Main/ArcVault/ArcVaultFileWatcher.fs:132— ArcVaultFileWatcher.ArcVault.StartFileWatcherAsync has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Controls.ValueChip (cyclomatic 27) src/Components/src/Page/ProvenanceGrouping/Controls.fs:1415— Controls.ValueChip has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitWorkflow.confirmMergeResolutionAsync (cyclomatic 27) src/Electron/src/Renderer/Context/GitWorkflow.fs:4842— GitWorkflow.confirmMergeResolutionAsync has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Controls.PropertyRail (cyclomatic 26) src/Components/src/Page/ProvenanceGrouping/Controls.fs:1028— Controls.PropertyRail has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
JsonImport.JsonImport (cyclomatic 26) src/Components/src/Composite/Widgets/JsonImport/JsonImport.fs:47— JsonImport.JsonImport has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitDiffTarget.Main (cyclomatic 26) src/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs:110— GitDiffTarget.Main has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcFilePreviewTarget.ArcFilePreviewTarget (cyclomatic 26) src/Electron/src/Renderer/Components/MainContent/ArcFilePreviewTarget.fs:19— ArcFilePreviewTarget.ArcFilePreviewTarget has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcVaults.OnCloseWindow (cyclomatic 26) src/Electron/src/Main/ArcVault/ArcVault.fs:666— ArcVaults.OnCloseWindow has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SearchField.SearchField (cyclomatic 25) src/Components/src/Page/ArcFileEditor/SearchField.fs:16— SearchField.SearchField has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DataHubBrowser.Entry (cyclomatic 25) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:510— DataHubBrowser.Entry has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Layout.Sidebars (cyclomatic 25) src/Components/src/Composite/Layout/Layout.fs:272— Layout.Sidebars has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
V2.ontologyApi (cyclomatic 25) src/Server/Api/IOntologyAPI.fs:554— V2.ontologyApi has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DataHubBrowserModel.update (cyclomatic 24) src/Components/src/Page/DataHubBrowser/Model.fs:80— DataHubBrowserModel.update has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GraphCanvas.ExportControls (cyclomatic 24) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:699— GraphCanvas.ExportControls has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
JsonImportModal.JsonImportModal (cyclomatic 24) src/Components/src/Composite/Widgets/JsonImport/JsonImportModal.fs:174— JsonImportModal.JsonImportModal has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
SortableList.SortableList (cyclomatic 24) src/Components/src/Composite/SortableList/SortableList.fs:68— SortableList.SortableList has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
ArcVaultSync.ArcVault.RunOwnWrite (cyclomatic 24) src/Electron/src/Main/ArcVault/ArcVaultSync.fs:294— ArcVaultSync.ArcVault.RunOwnWrite has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Main.tryParseToArcFile (cyclomatic 23) src/Client/OfficeInterop/OfficeInterop.fs:1348— Main.tryParseToArcFile has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
DataAnnotator.Main (cyclomatic 23) src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs:429— DataAnnotator.Main has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ComboBox.ComboBox (cyclomatic 23) src/Components/src/Primitive/ComboBox/ComboBox.fs:31— ComboBox.ComboBox has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
V1.ontologyApi (cyclomatic 23) src/Server/Api/IOntologyAPI.fs:296— V1.ontologyApi has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GitDiffPageLoader.updateWithReopen (cyclomatic 23) src/Electron/src/Renderer/Context/GitWorkflow.fs:3324— GitDiffPageLoader.updateWithReopen has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file's highest cyclomatic complexity: GitWorkflow.busyNoticeFromOperation (cyclomatic 25) 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.
FileStateContext.FileStateCtxProviderWithSnapshots (cyclomatic 23) src/Electron/src/Renderer/Context/FileStateContext.fs:90— FileStateContext.FileStateCtxProviderWithSnapshots has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
FormComponents.TextInput (cyclomatic 22) src/Client/SharedComponents/Metadata/Forms.fs:574— FormComponents.TextInput has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FileExplorerItem.LFSStatusPill (cyclomatic 22) src/Components/src/Page/FileExplorer/FileExplorerItem.fs:118— FileExplorerItem.LFSStatusPill has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GitPagedDiffViewer.LineContent (cyclomatic 22) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:616— GitPagedDiffViewer.LineContent has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ProvenanceGraph.ProvenanceGraph (cyclomatic 22) src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs:561— ProvenanceGraph.ProvenanceGraph has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
GraphCanvas.PillMenu (cyclomatic 22) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:399— GraphCanvas.PillMenu has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
TableImportPreview.SourceCard (cyclomatic 22) src/Components/src/Composite/TableImport/TableImportPreview.fs:254— TableImportPreview.SourceCard has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ContextMenu.ContextMenu (cyclomatic 22) src/Components/src/Primitive/ContextMenu/ContextMenu.fs:82— ContextMenu.ContextMenu has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ArcEntityPathRules.classifyDeleteTarget (cyclomatic 22) src/Shared/PathHelpers.fs:414— ArcEntityPathRules.classifyDeleteTarget has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitDiffPageLoader.evict (cyclomatic 22) src/Electron/src/Renderer/Context/GitWorkflow.fs:2132— GitDiffPageLoader.evict has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: GitWorkflow.busyNoticeFromOperation (cyclomatic 25) 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.
ArcVaultHelper.updateARCByFileContentDTO (cyclomatic 22) src/Electron/src/Main/ArcVault/ArcVaultHelper.fs:51— ArcVaultHelper.updateARCByFileContentDTO has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
FormComponents.ValueInput (cyclomatic 21) src/Client/SharedComponents/Metadata/Forms.fs:856— FormComponents.ValueInput has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
DataHubBrowser.Filter (cyclomatic 21) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:29— DataHubBrowser.Filter has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitSidebar.PublishRenameDialog (cyclomatic 21) src/Components/src/Page/GitSidebar/GitSidebar.fs:2163— GitSidebar.PublishRenameDialog has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
TextInput.TextInput (cyclomatic 21) src/Components/src/Page/Metadata/FormComponents/TextInput.fs:13— TextInput.TextInput has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AnnotationTableContextMenuUtil.getFittedCells (cyclomatic 21) src/Components/src/Composite/AnnotationTable/ContextMenu.fs:204— AnnotationTableContextMenuUtil.getFittedCells has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FileExplorerStateReconciliation.useReconcileSelectedPreview (cyclomatic 21) src/Electron/src/Renderer/Components/Helper/FileExplorerStateReconciliation.fs:134— FileExplorerStateReconciliation.useReconcileSelectedPreview has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
MessageInteropHelper.buildInProxyInner (cyclomatic 20) src/Client/Util/MessageInterop.fs:140— MessageInteropHelper.buildInProxyInner has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcFileFooterTabs.Main (cyclomatic 20) src/Components/src/Page/ArcFileEditor/ArcFileFooterTabs.fs:331— ArcFileFooterTabs.Main has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GitSidebar.OperationStatusNotice (cyclomatic 20) src/Components/src/Page/GitSidebar/GitSidebar.fs:640— GitSidebar.OperationStatusNotice has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Notes.Wizard (cyclomatic 20) src/Components/src/Composite/Notes/Editor/Notes.fs:76— Notes.Wizard has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GridSelectModule.tryGetKeyboardShortcut (cyclomatic 19) src/Components/src/Composite/Table/KeyboardNavigation.fs:48— GridSelectModule.tryGetKeyboardShortcut has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Queries.processDetail (cyclomatic 19) src/Shared/ProvenanceGraph/Queries.fs:360— Queries.processDetail has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
ArcEntityPathRules.isStructuralWatcherPath (cyclomatic 19) src/Shared/PathHelpers.fs:370— ArcEntityPathRules.isStructuralWatcherPath has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
FileTreeStore.applyDirectory (cyclomatic 19) src/Electron/src/Renderer/Context/FileTreeStore.fs:150— FileTreeStore.applyDirectory has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
ArcRenameHelper.renameResolvedArcEntityAsync (cyclomatic 19) src/Electron/src/Main/IPC/Rename.fs:131— ArcRenameHelper.renameResolvedArcEntityAsync has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
IndexedFileTree.ReplaceChildrenReportingNew (cyclomatic 19) src/Electron/src/Main/IndexedFileTree.fs:77— IndexedFileTree.ReplaceChildrenReportingNew has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SpreadsheetView.Main (cyclomatic 18) src/Client/Views/SpreadsheetView.fs:31— SpreadsheetView.Main has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ProtocolState.update (cyclomatic 18) src/Client/Pages/ProtocolTemplates/ProtocolState.fs:13— ProtocolState.update has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
LazyLoadTable.Main (cyclomatic 18) src/Client/SharedComponents/LazyLoadTable.fs:18— LazyLoadTable.Main has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
FileExplorerItem.DirectoryRow (cyclomatic 18) src/Components/src/Page/FileExplorer/FileExplorerItem.fs:300— FileExplorerItem.DirectoryRow has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GroupCard.OrganizerTab (cyclomatic 18) src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:160— GroupCard.OrganizerTab has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Layout.layoutGraphWith (cyclomatic 18) src/Components/src/Composite/GraphCanvas/Layout.fs:296— Layout.layoutGraphWith has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DataMapTable.DataMapTable (cyclomatic 18) src/Components/src/Composite/DataMapTable/DataMapTable.fs:252— DataMapTable.DataMapTable has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
AnnotationTableContextMenuUtil.pasteCells (cyclomatic 18) src/Components/src/Composite/AnnotationTable/ContextMenu.fs:497— AnnotationTableContextMenuUtil.pasteCells has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GitWorkflow.routeFailure (cyclomatic 18) src/Electron/src/Renderer/Context/GitWorkflow.fs:3506— GitWorkflow.routeFailure has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: GitWorkflow.busyNoticeFromOperation (cyclomatic 25) 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.
Main.fillSelectedWithOntologyAnnotation (cyclomatic 17) src/Client/OfficeInterop/OfficeInterop.fs:2236— Main.fillSelectedWithOntologyAnnotation has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MergeConflicts.parseMergeConflictFragments (cyclomatic 17) src/Components/src/Page/GitComparison/GitTextComparison.Core.fs:282— MergeConflicts.parseMergeConflictFragments has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
PersonImportDialog.PersonImportDialog (cyclomatic 17) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonImportDialog.fs:135— PersonImportDialog.PersonImportDialog has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Controls.FilterToolbar (cyclomatic 17) src/Components/src/Page/ProvenanceGrouping/Controls.fs:1815— Controls.FilterToolbar has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
BuildingBlockWidget.Main (cyclomatic 17) src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs:243— BuildingBlockWidget.Main has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
TargetSelector.Main (cyclomatic 17) src/Components/src/Composite/Notes/Editor/TargetSelector.fs:11— TargetSelector.Main has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
AnnotationTable.ModalController (cyclomatic 17) src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:357— AnnotationTable.ModalController has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SemVer.SemVer.comparePreRelease.Static (cyclomatic 17) src/Components/src/Util/SemVer.fs:15— SemVer.SemVer.comparePreRelease.Static has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcEntityPathRules.classifyRenameTarget (cyclomatic 17) src/Shared/PathHelpers.fs:612— ArcEntityPathRules.classifyRenameTarget has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ArcDeleteHelper.applyEntityDeletion (cyclomatic 17) src/Electron/src/Main/IPC/Delete.fs:165— ArcDeleteHelper.applyEntityDeletion has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Main.convertBuildingBlock (cyclomatic 16) src/Client/OfficeInterop/OfficeInterop.fs:2052— Main.convertBuildingBlock has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Controls.ConnectionHandle (cyclomatic 16) src/Components/src/Page/ProvenanceGrouping/Controls.fs:24— Controls.ConnectionHandle has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
FlipColumn.View (cyclomatic 16) src/Components/src/Page/ProvenanceGrouping/ViewSupport.fs:230— FlipColumn.View has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
GraphCanvas.Minimap (cyclomatic 16) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:569— GraphCanvas.Minimap has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
TableImportPreview.RowGrid (cyclomatic 16) src/Components/src/Composite/TableImport/TableImportPreview.fs:80— TableImportPreview.RowGrid has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TermSearch.TermItem (cyclomatic 16) src/Components/src/Composite/TermSearch/TermSearch.fs:183— TermSearch.TermItem has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GridSelect.GetNextIndex (cyclomatic 16) src/Components/src/Composite/Table/KeyboardNavigation.fs:146— GridSelect.GetNextIndex has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ErrorModalProvider.ErrorModalHost (cyclomatic 16) src/Components/src/Primitive/ErrorModal/Provider.fs:102— ErrorModalProvider.ErrorModalHost has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Blankslate.Blankslate (cyclomatic 16) src/Components/src/Primitive/Blankslate/Blankslate.fs:69— Blankslate.Blankslate has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
EmptyColumnJson.normalize (cyclomatic 16) src/Components/src/ARCtrl/EmptyColumnJson.fs:34— EmptyColumnJson.normalize has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BuildIndex.fillProcess (cyclomatic 16) src/Shared/ProvenanceGraph/BuildIndex.fs:543— BuildIndex.fillProcess has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
GitDiffTarget.backgroundReadingOf (cyclomatic 16) src/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs:49— GitDiffTarget.backgroundReadingOf has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ArcVaultSync.ArcVault.RequestSync (cyclomatic 16) src/Electron/src/Main/ArcVault/ArcVaultSync.fs:215— ArcVaultSync.ArcVault.RequestSync has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ArcFileCreateContracts.createContracts (cyclomatic 16) src/Electron/src/Main/ARCtrlExtensions/ArcFileCreateContracts.fs:9— ArcFileCreateContracts.createContracts has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D11 · Test Reliability· Test reliability not measured · ×1
Test reliability not measured — JavaScript/TypeScript suite install refused the lockfile — Test reliability NOT MEASURED: this repository's test suite spans .NET and JavaScript/TypeScript, and the JavaScript/TypeScript half could not be re-run — unit: measured (0 flaky); JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in the repository root; vitest via `npm ci --ignore-scripts` in src/Components/; vitest via `npm ci --ignore-scripts` in tests/Electron.Core/): not included — the dependency install for the repository root refused the committed lockfile (npm error code EUSAGE), so the suite never ran. No partial figure is published as if it were the whole: reliability is excluded from the score rather than counted as a near-zero.
GitPagedDiffViewer.Grid (cognitive 208) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:1194— GitPagedDiffViewer.Grid has cognitive complexity 208 (threshold 15). Drivers by points: if/else 70 (112 pts), match/switch 34 (54 pts), boolean chains 29, loops 7 (13 pts) (nesting depth added 68). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ProvenanceGrouping.Main (cognitive 192) src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.fs:21— ProvenanceGrouping.Main has cognitive complexity 192 (threshold 15). Drivers by points: if/else 93 (115 pts), match/switch 53 (65 pts), boolean chains 9, loops 1 (3 pts) (nesting depth added 36). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ArcVaultsApi.api (cognitive 191) src/Electron/src/Main/IPC/IArcVaultsApi.fs:221— ArcVaultsApi.api has cognitive complexity 191 (threshold 15). Drivers by points: match/switch 51 (94 pts), error handling 43 (51 pts), if/else 33 (40 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 59). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitWorkflow.updateCore (cognitive 164) src/Electron/src/Renderer/Context/GitWorkflow.fs:5259— GitWorkflow.updateCore has cognitive complexity 164 (threshold 15). Drivers by points: if/else 47 (78 pts), match/switch 30 (64 pts), boolean chains 22 (nesting depth added 65). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GraphCanvas.GraphCanvas (cognitive 137) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:919— GraphCanvas.GraphCanvas has cognitive complexity 137 (threshold 15). Drivers by points: if/else 66 (85 pts), match/switch 23 (30 pts), boolean chains 14, loops 6, error handling 1 (2 pts) (nesting depth added 27). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
TextInputWithMarkdown.TextInputWithMarkdown (cognitive 117) src/Components/src/Composite/MarkdownText/TextInputWithMarkdown.fs:63— TextInputWithMarkdown.TextInputWithMarkdown has cognitive complexity 117 (threshold 15). Drivers by points: if/else 46 (67 pts), match/switch 17 (36 pts), loops 4 (10 pts), boolean chains 4 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TutorialOverlay.Main (cognitive 92) src/Components/src/Composite/TutorialOverlay/TutorialOverlay.fs:143— TutorialOverlay.Main has cognitive complexity 92 (threshold 15). Drivers by points: if/else 43 (65 pts), match/switch 13 (21 pts), boolean chains 6 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileTreeExpansionContext.FileTreeExpansionCtxProvider (cognitive 90) src/Electron/src/Renderer/Context/FileTreeExpansionContext.fs:169— FileTreeExpansionContext.FileTreeExpansionCtxProvider has cognitive complexity 90 (threshold 15). Drivers by points: if/else 27 (42 pts), match/switch 14 (23 pts), boolean chains 22, error handling 1 (2 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Table.Table (cognitive 86) src/Components/src/Composite/Table/Table.fs:65— Table.Table has cognitive complexity 86 (threshold 15). Drivers by points: if/else 43 (75 pts), loops 3 (5 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TermSearch.TermSearch (cognitive 84) src/Components/src/Composite/TermSearch/TermSearch.fs:773— TermSearch.TermSearch has cognitive complexity 84 (threshold 15). Drivers by points: if/else 48 (56 pts), loops 8 (20 pts), boolean chains 5, match/switch 3 (nesting depth added 20). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Interface.update (cognitive 79) src/Client/Update/InterfaceUpdate.fs:87— Interface.update has cognitive complexity 79 (threshold 15). Drivers by points: match/switch 27 (61 pts), if/else 6 (13 pts), loops 1 (4 pts), error handling 1 (nesting depth added 44). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GroupCard.Main (cognitive 77) src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:300— GroupCard.Main has cognitive complexity 77 (threshold 15). Drivers by points: if/else 27 (45 pts), match/switch 13 (18 pts), loops 4 (11 pts), boolean chains 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcVaults.OnCloseWindow (cognitive 72) src/Electron/src/Main/ArcVault/ArcVault.fs:666— ArcVaults.OnCloseWindow has cognitive complexity 72 (threshold 15). Drivers by points: if/else 21 (55 pts), error handling 2 (8 pts), match/switch 2 (8 pts), boolean chains 1 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
FileExplorer.FileExplorer (cognitive 71) src/Components/src/Page/FileExplorer/FileExplorer.fs:142— FileExplorer.FileExplorer has cognitive complexity 71 (threshold 15). Drivers by points: if/else 38 (50 pts), match/switch 9 (11 pts), boolean chains 9, loops 1 (nesting depth added 14). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Main.fillSelectedWithOntologyAnnotation (cognitive 66) src/Client/OfficeInterop/OfficeInterop.fs:2236— Main.fillSelectedWithOntologyAnnotation has cognitive complexity 66 (threshold 15). Drivers by points: if/else 18 (55 pts), match/switch 2 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 44). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitDiffPageLoader.updatePage (cognitive 63) src/Electron/src/Renderer/Context/GitWorkflow.fs:2738— GitDiffPageLoader.updatePage has cognitive complexity 63 (threshold 15). Drivers by points: match/switch 17 (39 pts), if/else 10 (16 pts), boolean chains 8 (nesting depth added 28). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Controls.PropertyRailItem (cognitive 60) src/Components/src/Page/ProvenanceGrouping/Controls.fs:625— Controls.PropertyRailItem has cognitive complexity 60 (threshold 15). Drivers by points: if/else 31 (34 pts), match/switch 17 (20 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GitSidebar.Main (cognitive 58) src/Components/src/Page/GitSidebar/GitSidebar.fs:2311— GitSidebar.Main has cognitive complexity 58 (threshold 15). Drivers by points: if/else 41 (48 pts), boolean chains 5, match/switch 5 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Queries.processDetail (cognitive 58) src/Shared/ProvenanceGraph/Queries.fs:360— Queries.processDetail has cognitive complexity 58 (threshold 15). Drivers by points: match/switch 6 (23 pts), loops 4 (18 pts), if/else 3 (17 pts) (nesting depth added 45). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaultFileWatcher.ArcVault.StartFileWatcherAsync (cognitive 58) src/Electron/src/Main/ArcVault/ArcVaultFileWatcher.fs:132— ArcVaultFileWatcher.ArcVault.StartFileWatcherAsync has cognitive complexity 58 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 7 (20 pts), error handling 2 (6 pts), boolean chains 4 (nesting depth added 33). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
IVersionControlApi.api (cognitive 57) src/Electron/src/Main/IPC/IVersionControlApi.fs:546— IVersionControlApi.api has cognitive complexity 57 (threshold 15). Drivers by points: match/switch 20 (39 pts), if/else 8 (15 pts), error handling 1 (2 pts), loops 1 (nesting depth added 27). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaultExtensions.ArcVault.RenameOpenArcRootCore (cognitive 56) src/Electron/src/Main/ArcVault/ArcVault.fs:386— ArcVaultExtensions.ArcVault.RenameOpenArcRootCore has cognitive complexity 56 (threshold 15). Drivers by points: match/switch 10 (28 pts), if/else 9 (19 pts), error handling 2 (7 pts), boolean chains 2 (nesting depth added 33). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
PersonSearchDialog.PersonSearchDialog (cognitive 55) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:55— PersonSearchDialog.PersonSearchDialog has cognitive complexity 55 (threshold 15). Drivers by points: if/else 28 (37 pts), boolean chains 7, error handling 3 (6 pts), loops 2 (3 pts), match/switch 2 (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Main.rectifyTermColumns (cognitive 54) src/Client/OfficeInterop/OfficeInterop.fs:1656— Main.rectifyTermColumns has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (37 pts), loops 3 (14 pts), match/switch 2 (3 pts) (nesting depth added 37). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileTree.FileTree (cognitive 54) src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTree.fs:45— FileTree.FileTree has cognitive complexity 54 (threshold 15). Drivers by points: match/switch 21 (32 pts), if/else 19 (21 pts), boolean chains 1 (nesting depth added 13). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaultSync.ArcVault.RunOwnWrite (cognitive 53) src/Electron/src/Main/ArcVault/ArcVaultSync.fs:294— ArcVaultSync.ArcVault.RunOwnWrite has cognitive complexity 53 (threshold 15). Drivers by points: match/switch 8 (30 pts), error handling 4 (16 pts), if/else 1 (6 pts), boolean chains 1 (nesting depth added 39). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitPagedDiffViewer.RowView (cognitive 52) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:900— GitPagedDiffViewer.RowView has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 7 (14 pts), boolean chains 6 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PublicationSearchDialog.PublicationSearchDialog (cognitive 51) src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs:49— PublicationSearchDialog.PublicationSearchDialog has cognitive complexity 51 (threshold 15). Drivers by points: if/else 30 (41 pts), boolean chains 4, error handling 1 (2 pts), loops 2, match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
V2.ontologyApi (cognitive 49) src/Server/Api/IOntologyAPI.fs:554— V2.ontologyApi has cognitive complexity 49 (threshold 15). Drivers by points: if/else 33 (43 pts), match/switch 4, boolean chains 2 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DropOverlay.DropOverlay (cognitive 48) src/Components/src/Composite/Workspace/DropOverlay.fs:18— DropOverlay.DropOverlay has cognitive complexity 48 (threshold 15). Drivers by points: match/switch 19 (39 pts), if/else 7 (9 pts) (nesting depth added 22). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitMergeConflictViewer.Viewer (cognitive 46) src/Components/src/Page/GitComparison/GitMergeConflictViewer.fs:564— GitMergeConflictViewer.Viewer has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (33 pts), match/switch 6 (8 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ConnectorOverlay.Main (cognitive 45) src/Components/src/Page/ProvenanceGrouping/ConnectorOverlay.fs:49— ConnectorOverlay.Main has cognitive complexity 45 (threshold 15). Drivers by points: match/switch 15 (27 pts), if/else 7 (12 pts), boolean chains 5, loops 1 (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
V1.ontologyApi (cognitive 45) src/Server/Api/IOntologyAPI.fs:296— V1.ontologyApi has cognitive complexity 45 (threshold 15). Drivers by points: if/else 31 (40 pts), match/switch 4, boolean chains 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GitPagedDiffViewer.LineContent (cognitive 44) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:616— GitPagedDiffViewer.LineContent has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Build.main (cognitive 43) build/Build.fs:6— Build.main has cognitive complexity 43 (threshold 15). Drivers by points: match/switch 12 (31 pts), if/else 5 (11 pts), boolean chains 1 (nesting depth added 25). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
OverviewNav.OverviewNav (cognitive 43) src/Components/src/Page/ProvenanceGraph/OverviewNav.fs:151— OverviewNav.OverviewNav has cognitive complexity 43 (threshold 15). Drivers by points: if/else 25 (28 pts), match/switch 4 (7 pts), boolean chains 6, loops 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ProvenanceGraph.Header (cognitive 42) src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs:296— ProvenanceGraph.Header has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (27 pts), match/switch 4 (6 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Controls.PropertyRail (cognitive 39) src/Components/src/Page/ProvenanceGrouping/Controls.fs:1028— Controls.PropertyRail has cognitive complexity 39 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 6, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DataAnnotator.Table (cognitive 39) src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs:123— DataAnnotator.Table has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (25 pts), match/switch 5 (8 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ContextMenu.ContextMenu (cognitive 39) src/Components/src/Primitive/ContextMenu/ContextMenu.fs:82— ContextMenu.ContextMenu has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 5 (10 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GitWorkflow.confirmMergeResolutionAsync (cognitive 39) src/Electron/src/Renderer/Context/GitWorkflow.fs:4842— GitWorkflow.confirmMergeResolutionAsync has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 6 (17 pts), if/else 10 (14 pts), boolean chains 8 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SearchField.SearchField (cognitive 37) src/Components/src/Page/ArcFileEditor/SearchField.fs:16— SearchField.SearchField has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (24 pts), match/switch 4 (7 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FolderedDraggableList.FolderedDraggableList (cognitive 36) src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.fs:344— FolderedDraggableList.FolderedDraggableList has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (23 pts), match/switch 6 (8 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GitWorkflow.runPublishAsync (cognitive 36) src/Electron/src/Renderer/Context/GitWorkflow.fs:4021— GitWorkflow.runPublishAsync has cognitive complexity 36 (threshold 15). Drivers by points: match/switch 12 (27 pts), if/else 4 (7 pts), boolean chains 2 (nesting depth added 18). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GraphCanvas.ExportControls (cognitive 35) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:699— GraphCanvas.ExportControls has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (18 pts), error handling 4 (8 pts), boolean chains 5, match/switch 3 (4 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Helper.updateTables (cognitive 35) src/Components/src/Composite/TableImport/Helper.fs:178— Helper.updateTables has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 4 (14 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 21). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
AnnotationTableContextMenuUtil.pasteCells (cognitive 35) src/Components/src/Composite/AnnotationTable/ContextMenu.fs:497— AnnotationTableContextMenuUtil.pasteCells has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25 (33 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
EmptyColumnJson.normalize (cognitive 35) src/Components/src/ARCtrl/EmptyColumnJson.fs:34— EmptyColumnJson.normalize has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 1 (4 pts), boolean chains 3 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ArcRenameHelper.renameResolvedArcEntityAsync (cognitive 35) src/Electron/src/Main/IPC/Rename.fs:131— ArcRenameHelper.renameResolvedArcEntityAsync has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 7 (31 pts), if/else 2 (3 pts), error handling 1 (nesting depth added 25). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Layout.layoutGraphWith (cognitive 34) src/Components/src/Composite/GraphCanvas/Layout.fs:296— Layout.layoutGraphWith has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (27 pts), loops 1 (3 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
FileTreeStore.applyDirectory (cognitive 34) src/Electron/src/Renderer/Context/FileTreeStore.fs:150— FileTreeStore.applyDirectory has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (9 pts), boolean chains 5, match/switch 1 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GridSelect.SelectAt (cognitive 33) src/Components/src/Composite/Table/KeyboardNavigation.fs:251— GridSelect.SelectAt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (30 pts), match/switch 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FormComponents.ValueInput (cognitive 32) src/Client/SharedComponents/Metadata/Forms.fs:856— FormComponents.ValueInput has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 9 (21 pts), if/else 7 (10 pts), loops 1 (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
DataHubBrowser.ExplorePanel (cognitive 32) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:267— DataHubBrowser.ExplorePanel has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 8 (10 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SortableList.SortableList (cognitive 32) src/Components/src/Composite/SortableList/SortableList.fs:68— SortableList.SortableList has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 6 (10 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcEntityPathRules.classifyRenameTarget (cognitive 32) src/Shared/PathHelpers.fs:612— ArcEntityPathRules.classifyRenameTarget has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 4 (16 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GitDiffPageLoader.evict (cognitive 32) src/Electron/src/Renderer/Context/GitWorkflow.fs:2132— GitDiffPageLoader.evict has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 3 (5 pts), boolean chains 4, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcVaultSync.ArcVault.RequestSync (cognitive 32) src/Electron/src/Main/ArcVault/ArcVaultSync.fs:215— ArcVaultSync.ArcVault.RequestSync has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 3 (10 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GitPagedDiffViewer.Viewer (cognitive 31) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:2585— GitPagedDiffViewer.Viewer has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 6 (10 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Controls.ValueChip (cognitive 31) src/Components/src/Page/ProvenanceGrouping/Controls.fs:1415— Controls.ValueChip has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 8 (13 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcEntityPathRules.classifyDeleteTarget (cognitive 31) src/Shared/PathHelpers.fs:414— ArcEntityPathRules.classifyDeleteTarget has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 6 (19 pts), if/else 7 (12 pts) (nesting depth added 18). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitWorkflow.runPrimarySaveAttemptAsync (cognitive 31) src/Electron/src/Renderer/Context/GitWorkflow.fs:4248— GitWorkflow.runPrimarySaveAttemptAsync has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 8 (20 pts), if/else 5 (9 pts), boolean chains 2 (nesting depth added 16). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
AuthService.revalidate (cognitive 31) src/Electron/src/Main/Auth/AuthService.fs:436— AuthService.revalidate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 3 (12 pts), loops 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DataAnnotator.Main (cognitive 30) src/Components/src/Composite/Widgets/DataAnnotator/DataAnnotator.fs:429— DataAnnotator.Main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (20 pts), match/switch 6 (8 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TableImportPreview.RowGrid (cognitive 30) src/Components/src/Composite/TableImport/TableImportPreview.fs:80— TableImportPreview.RowGrid has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DataHubBrowserModel.update (cognitive 29) src/Components/src/Page/DataHubBrowser/Model.fs:80— DataHubBrowserModel.update has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
TextInput.TextInput (cognitive 29) src/Components/src/Page/Metadata/FormComponents/TextInput.fs:13— TextInput.TextInput has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (23 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Notes.Wizard (cognitive 29) src/Components/src/Composite/Notes/Editor/Notes.fs:76— Notes.Wizard has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 8 (24 pts), if/else 5 (nesting depth added 16). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
AnnotationTableContextMenuUtil.getFittedCells (cognitive 29) src/Components/src/Composite/AnnotationTable/ContextMenu.fs:204— AnnotationTableContextMenuUtil.getFittedCells has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (21 pts), match/switch 4 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Main.convertBuildingBlock (cognitive 28) src/Client/OfficeInterop/OfficeInterop.fs:2052— Main.convertBuildingBlock has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 4 (8 pts), loops 2 (8 pts) (nesting depth added 17). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
PersonImportDialog.PersonImportDialog (cognitive 27) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonImportDialog.fs:135— PersonImportDialog.PersonImportDialog has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (5 pts), match/switch 2, boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonImport.JsonImport (cognitive 27) src/Components/src/Composite/Widgets/JsonImport/JsonImport.fs:47— JsonImport.JsonImport has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 7 (9 pts), boolean chains 3, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
IndexedFileTree.ReplaceChildrenReportingNew (cognitive 27) src/Electron/src/Main/IndexedFileTree.fs:77— IndexedFileTree.ReplaceChildrenReportingNew has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
WorkflowPayloads.mergeWorkflowPayloadsFromDisk (cognitive 27) src/Electron/src/Main/ARCtrlExtensions/WorkflowPayloads.fs:89— WorkflowPayloads.mergeWorkflowPayloadsFromDisk has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 4 (10 pts), loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ARCitect.update (cognitive 26) src/Client/Update/ARCitectUpdate.fs:17— ARCitect.update has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 7 (14 pts), if/else 5 (12 pts) (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
MessageInteropHelper.buildInProxyInner (cognitive 26) src/Client/Util/MessageInterop.fs:140— MessageInteropHelper.buildInProxyInner has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 9 (17 pts), if/else 4 (5 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileExplorerItem.LFSStatusPill (cognitive 26) src/Components/src/Page/FileExplorer/FileExplorerItem.fs:118— FileExplorerItem.LFSStatusPill has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (21 pts), match/switch 4, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GitSidebar.PublishRenameDialog (cognitive 26) src/Components/src/Page/GitSidebar/GitSidebar.fs:2163— GitSidebar.PublishRenameDialog has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ToCanvas.limitLineageTo (cognitive 26) src/Components/src/Page/ProvenanceGraph/ToCanvas.fs:403— ToCanvas.limitLineageTo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (8 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FormComponents.TextInput (cognitive 25) src/Client/SharedComponents/Metadata/Forms.fs:574— FormComponents.TextInput has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 5 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LazyLoadTable.Main (cognitive 25) src/Client/SharedComponents/LazyLoadTable.fs:18— LazyLoadTable.Main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
FlipColumn.View (cognitive 25) src/Components/src/Page/ProvenanceGrouping/ViewSupport.fs:230— FlipColumn.View has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 4 (7 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BuildingBlockWidget.Main (cognitive 25) src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs:243— BuildingBlockWidget.Main has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 7 (12 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileStateContext.FileStateCtxProviderWithSnapshots (cognitive 25) src/Electron/src/Renderer/Context/FileStateContext.fs:90— FileStateContext.FileStateCtxProviderWithSnapshots has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 6 (11 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcFileSystemHelper.collectExternalFolderEntries (cognitive 25) src/Electron/src/Main/IPC/FileSystemIO.fs:329— ArcFileSystemHelper.collectExternalFolderEntries has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcVaultLargeObjects.ArcVault.CheckGitStateOnFocus (cognitive 25) src/Electron/src/Main/ArcVault/ArcVaultLargeObjects.fs:195— ArcVaultLargeObjects.ArcVault.CheckGitStateOnFocus has cognitive complexity 25 (threshold 15). Drivers by points: if/else 3 (13 pts), match/switch 4 (10 pts), error handling 1 (2 pts) (nesting depth added 17). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
MergeConflicts.parseMergeConflictFragments (cognitive 24) src/Components/src/Page/GitComparison/GitTextComparison.Core.fs:282— MergeConflicts.parseMergeConflictFragments has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 7 (13 pts), if/else 9 (10 pts), loops 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
EditorPanels.assignmentBatchWarning (cognitive 24) src/Components/src/Page/ProvenanceGrouping/EditorPanels.fs:26— EditorPanels.assignmentBatchWarning has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (20 pts), match/switch 2 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GroupCard.OrganizerTab (cognitive 24) src/Components/src/Page/ProvenanceGrouping/GroupCard.fs:160— GroupCard.OrganizerTab has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (20 pts), match/switch 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
JsonImportModal.JsonImportModal (cognitive 24) src/Components/src/Composite/Widgets/JsonImport/JsonImportModal.fs:174— JsonImportModal.JsonImportModal has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 8 (13 pts), if/else 8 (10 pts), boolean chains 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ComboBox.ComboBox (cognitive 24) src/Components/src/Primitive/ComboBox/ComboBox.fs:31— ComboBox.ComboBox has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (15 pts), loops 2 (4 pts), match/switch 3, boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
BuildIndex.readRow (cognitive 24) src/Shared/ProvenanceGraph/BuildIndex.fs:237— BuildIndex.readRow has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 8 (15 pts), if/else 6 (8 pts), loops 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcDeleteHelper.deleteArcEntityWithAsync (cognitive 24) src/Electron/src/Main/IPC/Delete.fs:229— ArcDeleteHelper.deleteArcEntityWithAsync has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 2 (7 pts), error handling 1 (2 pts) (nesting depth added 16). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcFileSystemHelper.moveGenericFileSystemItemOnDisk (cognitive 24) src/Electron/src/Main/IPC/FileSystemIO.fs:1060— ArcFileSystemHelper.moveGenericFileSystemItemOnDisk has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 4 (9 pts), boolean chains 1 (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaultLargeObjects.ArcVault.CheckLfsContentOf (cognitive 24) src/Electron/src/Main/ArcVault/ArcVaultLargeObjects.fs:253— ArcVaultLargeObjects.ArcVault.CheckLfsContentOf has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 5 (13 pts), boolean chains 5, if/else 1 (3 pts), loops 1 (3 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
JsonImportHelper.updateTables (cognitive 23) src/Client/Update/UpdateUtil.fs:121— JsonImportHelper.updateTables has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 2 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ProvenanceGraph.ProvenanceGraph (cognitive 23) src/Components/src/Page/ProvenanceGraph/ProvenanceGraph.fs:561— ProvenanceGraph.ProvenanceGraph has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (12 pts), match/switch 5, boolean chains 4, error handling 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TableImportPreview.SourceCard (cognitive 23) src/Components/src/Composite/TableImport/TableImportPreview.fs:254— TableImportPreview.SourceCard has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 4, match/switch 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Queries.walk (cognitive 23) src/Shared/ProvenanceGraph/Queries.fs:434— Queries.walk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 2 (9 pts), loops 3 (7 pts), match/switch 2 (7 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Queries.lineage (cognitive 23) src/Shared/ProvenanceGraph/Queries.fs:483— Queries.lineage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (10 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BuildIndex.fillProcess (cognitive 23) src/Shared/ProvenanceGraph/BuildIndex.fs:543— BuildIndex.fillProcess has cognitive complexity 23 (threshold 15). Drivers by points: loops 10 (17 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
EditorPanels.connectionDetails (cognitive 22) src/Components/src/Page/ProvenanceGrouping/EditorPanels.fs:242— EditorPanels.connectionDetails has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 3 (9 pts), loops 1 (3 pts) (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
TargetSelector.Main (cognitive 22) src/Components/src/Composite/Notes/Editor/TargetSelector.fs:11— TargetSelector.Main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 3 (7 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GitDiffTarget.Main (cognitive 22) src/Electron/src/Renderer/Components/MainContent/GitDiffTarget.fs:110— GitDiffTarget.Main has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 7 (14 pts), if/else 4, boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileTreeRenameWorkflow.confirmRenameItem (cognitive 22) src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTreeRename.fs:50— FileTreeRenameWorkflow.confirmRenameItem has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 5 (18 pts), if/else 2 (4 pts) (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaultHelper.updateARCByFileContentDTO (cognitive 22) src/Electron/src/Main/ArcVault/ArcVaultHelper.fs:51— ArcVaultHelper.updateARCByFileContentDTO has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 8 (22 pts) (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileExplorerGitLfsHelper.contextMenuItems (cognitive 21) src/Components/src/Page/FileExplorer/FileExplorerGitLfsHelper.fs:149— FileExplorerGitLfsHelper.contextMenuItems has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (21 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GitSidebar.OperationStatusNotice (cognitive 21) src/Components/src/Page/GitSidebar/GitSidebar.fs:640— GitSidebar.OperationStatusNotice has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 9 (11 pts), if/else 6 (10 pts) (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Controls.SourceInfoPopover (cognitive 21) src/Components/src/Page/ProvenanceGrouping/Controls.fs:2019— Controls.SourceInfoPopover has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (6 pts), match/switch 3 (6 pts) (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
AnnotationTable.ModalController (cognitive 21) src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:357— AnnotationTable.ModalController has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 1 (3 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
DataHubBrowser.GitLabEntry (cognitive 20) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:852— DataHubBrowser.GitLabEntry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DragHandlers.applyPropertyValueToGroups (cognitive 20) src/Components/src/Page/ProvenanceGrouping/EditorActions.fs:375— DragHandlers.applyPropertyValueToGroups has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 3 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Helper.applyImport (cognitive 20) src/Components/src/Composite/TableImport/Helper.fs:432— Helper.applyImport has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ContractPolicy.prepareAsync (cognitive 20) src/Electron/src/Main/ARCtrlExtensions/ContractPolicy.fs:235— ContractPolicy.prepareAsync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Main.joinTables (cognitive 19) src/Client/OfficeInterop/OfficeInterop.fs:1546— Main.joinTables has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Main.tryGetValidConversionCellTypes (cognitive 19) src/Client/OfficeInterop/OfficeInterop.fs:1944— Main.tryGetValidConversionCellTypes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileExplorerItem.DirectoryRow (cognitive 19) src/Components/src/Page/FileExplorer/FileExplorerItem.fs:300— FileExplorerItem.DirectoryRow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GitSidebar.ChangedFilesList (cognitive 19) src/Components/src/Page/GitSidebar/GitSidebar.fs:1842— GitSidebar.ChangedFilesList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GraphCanvas.PillMenu (cognitive 19) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:399— GraphCanvas.PillMenu has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 5 (7 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Layout.measureNode (cognitive 19) src/Components/src/Composite/GraphCanvas/Layout.fs:92— Layout.measureNode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ContextMenuModals.MoveColumnModal (cognitive 19) src/Components/src/Composite/AnnotationTable/Modals.fs:665— ContextMenuModals.MoveColumnModal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, loops 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ArcDeleteHelper.applyEntityDeletion (cognitive 19) src/Electron/src/Main/IPC/Delete.fs:165— ArcDeleteHelper.applyEntityDeletion has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (8 pts), match/switch 3 (5 pts), if/else 3 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ArcVaultSync.ArcVault.SyncFromDisk (cognitive 19) src/Electron/src/Main/ArcVault/ArcVaultSync.fs:161— ArcVaultSync.ArcVault.SyncFromDisk has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 3 (8 pts), error handling 1 (2 pts) (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
EmptyTableModals.PreviousTableSelect (cognitive 18) src/Client/MainComponents/EmptyTableModals.fs:32— EmptyTableModals.PreviousTableSelect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), loops 2 (6 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Main.tryParseToArcFile (cognitive 18) src/Client/OfficeInterop/OfficeInterop.fs:1348— Main.tryParseToArcFile has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 8 (18 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Pills.describePill (cognitive 18) src/Components/src/Composite/GraphCanvas/Pills.fs:58— Pills.describePill has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Layout.Sidebars (cognitive 18) src/Components/src/Composite/Layout/Layout.fs:272— Layout.Sidebars has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 4 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
MarkdownPluginPromptModal.View (cognitive 18) src/Components/src/Composite/MarkdownText/Plugins/MarkdownPluginPromptModal.fs:32— MarkdownPluginPromptModal.View has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SemVer.SemVer.comparePreRelease.Static (cognitive 18) src/Components/src/Util/SemVer.fs:15— SemVer.SemVer.comparePreRelease.Static has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (6 pts) (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileExplorerStateReconciliation.useReconcileSelectedPreview (cognitive 18) src/Electron/src/Renderer/Components/Helper/FileExplorerStateReconciliation.fs:134— FileExplorerStateReconciliation.useReconcileSelectedPreview has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (13 pts), boolean chains 4, if/else 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaultExtensions.ArcVault.AddArcFile (cognitive 18) src/Electron/src/Main/ArcVault/ArcVault.fs:144— ArcVaultExtensions.ArcVault.AddArcFile has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (18 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
NoFileElement.Main (cognitive 17) src/Client/MainComponents/NoFileElement.fs:147— NoFileElement.Main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DataHubBrowser.Entry (cognitive 17) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:510— DataHubBrowser.Entry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, match/switch 6, boolean chains 1, loops 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DataHubBrowser.Filter (cognitive 17) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:29— DataHubBrowser.Filter has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 4 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitPagedDiffDisplay.foldRuns (cognitive 17) src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs:306— GitPagedDiffDisplay.foldRuns has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
GitSidebar.LogViewer (cognitive 17) src/Components/src/Page/GitSidebar/GitSidebar.fs:489— GitSidebar.LogViewer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, match/switch 4 (6 pts), error handling 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ChangelogHelpers.sections (cognitive 17) src/Components/src/Page/Changelog/Changelog.fs:30— ChangelogHelpers.sections has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GraphCanvas.Minimap (cognitive 17) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:569— GraphCanvas.Minimap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 4 (5 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Workspace.Workspace (cognitive 17) src/Components/src/Composite/Workspace/Workspace.fs:96— Workspace.Workspace has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 4, boolean chains 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
DropTarget.resolveDropTarget (cognitive 17) src/Components/src/Composite/Workspace/Helper/DropTarget.fs:64— DropTarget.resolveDropTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Helper.insertAnnotationIntoSelectedCells (cognitive 17) src/Components/src/Composite/Widgets/DataAnnotator/Helper.fs:55— Helper.insertAnnotationIntoSelectedCells has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (12 pts), boolean chains 2, if/else 2, error handling 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
CompositeCellModal.CompositeCellModal (cognitive 17) src/Components/src/Composite/AnnotationTable/Modals.fs:469— CompositeCellModal.CompositeCellModal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 4). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
SplitResizer.SplitResizer (cognitive 17) src/Components/src/Primitive/SplitResizer/SplitResizer.fs:17— SplitResizer.SplitResizer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ErrorModalProvider.ErrorModalHost (cognitive 17) src/Components/src/Primitive/ErrorModal/Provider.fs:102— ErrorModalProvider.ErrorModalHost has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (5 pts), loops 2 (4 pts) (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Popover.Content (cognitive 17) src/Components/src/Primitive/Popover/Popover.fs:172— Popover.Content has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (4 pts) (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcFilePreviewTarget.ArcFilePreviewTarget (cognitive 17) src/Electron/src/Renderer/Components/MainContent/ArcFilePreviewTarget.fs:19— ArcFilePreviewTarget.ArcFilePreviewTarget has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 11 (14 pts), if/else 2 (3 pts) (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcExternalTools.openTerminalWith (cognitive 17) src/Electron/src/Main/AppMenu/ExternalTools.fs:72— ArcExternalTools.openTerminalWith has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcVaults.DisposeVault (cognitive 17) src/Electron/src/Main/ArcVault/ArcVault.fs:600— ArcVaults.DisposeVault has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FileTreeCreator.reconcileFileTreeDirectoryAsync (cognitive 17) src/Electron/src/Main/FileTreeCreator.fs:217— FileTreeCreator.reconcileFileTreeDirectoryAsync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (5 pts), match/switch 3 (5 pts), error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AuthService.signIn (cognitive 17) src/Electron/src/Main/Auth/AuthService.fs:291— AuthService.signIn has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 4 (8 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Changelog.tryFindLastVersion (cognitive 16) build/IO/Changelog.fs:61— Changelog.tryFindLastVersion has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (16 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
History.updateHistoryStorageMsg (cognitive 16) src/Client/Update.fs:228— History.updateHistoryStorageMsg has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Main.getCompositeColumnDetails (cognitive 16) src/Client/OfficeInterop/OfficeInterop.fs:1835— Main.getCompositeColumnDetails has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 4 (5 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ArcFileFooterTabs.Main (cognitive 16) src/Components/src/Page/ArcFileEditor/ArcFileFooterTabs.fs:331— ArcFileFooterTabs.Main has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 5, loops 2 (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Helper.computeNewPackages (cognitive 16) src/Components/src/Page/ValidationPackageBrowser/Helper.fs:219— Helper.computeNewPackages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 2 (6 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DataHubBrowser.Tabs (cognitive 16) src/Components/src/Page/DataHubBrowser/DataHubBrowser.fs:163— DataHubBrowser.Tabs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileExplorerHelper.defaultContextMenuItems (cognitive 16) src/Components/src/Page/FileExplorer/FileExplorer.fs:60— FileExplorerHelper.defaultContextMenuItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 4 (7 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ValueAssignment.planPropertyValueDrop (cognitive 16) src/Components/src/Page/ProvenanceGrouping/EndpointAndAssignment.fs:54— ValueAssignment.planPropertyValueDrop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GraphCanvas.Pill (cognitive 16) src/Components/src/Composite/GraphCanvas/GraphCanvas.fs:218— GraphCanvas.Pill has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (5 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Queries.sharedNodeEdges (cognitive 16) src/Shared/ProvenanceGraph/Queries.fs:46— Queries.sharedNodeEdges has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (6 pts), match/switch 1 (5 pts), if/else 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileTreeMaterialization.overlayDirectories (cognitive 16) src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/FileTreeMaterialization.fs:95— FileTreeMaterialization.overlayDirectories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OperationLog.append (cognitive 16) src/Electron/src/Renderer/Context/OperationLog.fs:56— OperationLog.append has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 3 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
FileIOHelper.tryGetRepoRelativePathCore (cognitive 16) src/Electron/src/Swate.Electron.Shared/FileIOHelper.fs:64— FileIOHelper.tryGetRepoRelativePathCore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
InMemoryChangesExtensions.ARC.hasInMemoryChanges (cognitive 16) src/Electron/src/Main/ARCtrlExtensions/InMemoryChanges.fs:192— InMemoryChangesExtensions.ARC.hasInMemoryChanges has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (8 pts), boolean chains 4, if/else 4 (nesting depth added 4). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
TooManyMethods: Icons src/Components/src/Primitive/Icons.fs:9— TooManyMethods — 76 methods. The bar is 30 methods; this is 46 over it, 2.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.
Change-coupling hub: VersionControlApiClient.fs → IVersionControlApi.fs, Mappings.fs, WorkspaceSessionHost.fs src/Electron/src/Renderer/VersionControlApiClient.fs— `src/Electron/src/Renderer/VersionControlApiClient.fs` changes together with 3 other files — `src/Electron/src/Main/IPC/IVersionControlApi.fs`, `src/Electron/src/Main/VersionControl/Mappings.fs`, `src/Electron/src/Main/VersionControl/WorkspaceSessionHost.fs` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
Near-duplicate member pair (225 shared lines) src/Client/MainComponents/Widgets.fs:1— src/Client/MainComponents/Widgets.fs:1-308 | src/Components/src/Composite/Widgets/Widgets.fs:1-599 — These two members are variants of one another: 225 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.
Near-duplicate member pair (81 shared lines) src/Client/Pages/ProtocolTemplates/ProtocolView.fs:1— src/Client/Pages/ProtocolTemplates/ProtocolView.fs:1-327 | src/Components/src/Composite/TemplateBrowser/TemplatesDisplay.fs:1-253 — These two members are variants of one another: 81 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.
Near-duplicate member pair (61 shared lines) src/Client/SharedComponents/Metadata/Generic.fs:1— src/Client/SharedComponents/Metadata/Generic.fs:1-97 | src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs:1-104 — These two members are variants of one another: 61 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.
Near-duplicate member pair (46 shared lines) src/Client/SharedComponents/JsBindings/DndKit.fs:1— src/Client/SharedComponents/JsBindings/DndKit.fs:1-96 | src/Components/src/JsBindings/DndKit.fs:1-154 — These two members are variants of one another: 46 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 (59 corresponding lines) · ×1
Edited copy of a member (59 corresponding lines) src/Client/Spreadsheet/IO.fs:1— src/Client/Spreadsheet/IO.fs:1-110 | src/Components/src/ARCtrl/Json.fs:1-309 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×1
Edited copy of a member (31 corresponding lines) src/Client/Model.fs:1— src/Client/Model.fs:1-309 | src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs:1-382 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) src/Components/src/Page/ProvenanceGrouping/EditorActions.fs:1— src/Components/src/Page/ProvenanceGrouping/EditorActions.fs:1-608 | src/Components/src/Page/ProvenanceGrouping/EditorLayout.fs:1-123 | src/Components/src/Page/ProvenanceGrouping/EditorPanels.fs:1-342 | src/Components/src/Page/ProvenanceGrouping/EditorPropertyShelf.fs:1-261 | src/Components/src/Page/ProvenanceGrouping/EditorSurface.fs:1-206 | src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.fs:1-1912 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Edited copy of a member (298 corresponding lines) · ×1
Edited copy of a member (298 corresponding lines) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:1— src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:1-315 | src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs:1-298 — These two members are one piece of code written twice and then edited apart: 298 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 (108 corresponding lines) · ×1
Edited copy of a member (108 corresponding lines) src/Client/SharedComponents/Metadata/Investigation.fs:1— src/Client/SharedComponents/Metadata/Investigation.fs:1-109 | src/Client/SharedComponents/Metadata/Study.fs:1-108 — These two members are one piece of code written twice and then edited apart: 108 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 (104 corresponding lines) · ×1
Edited copy of a member (104 corresponding lines) src/Client/SharedComponents/Metadata/Run.fs:1— src/Client/SharedComponents/Metadata/Run.fs:1-104 | src/Client/SharedComponents/Metadata/Workflow.fs:1-139 — These two members are one piece of code written twice and then edited apart: 104 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, 49+ corresponding lines) · ×1
Edited copies of one member (3 members, 49+ corresponding lines) src/Electron/src/Renderer/Components/Helper/FileTargetConflictModal.fs:1— src/Electron/src/Renderer/Components/Helper/FileTargetConflictModal.fs:1-49 | src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/FileTreeDeleteModal.fs:1-53 | src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/FileTreeFreeLfsModal.fs:1-63 — These 3 members are one piece of code written 3 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 3 times and the copies 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/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/CreateArcFileModal.fs:1— src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/CreateArcFileModal.fs:1-40 | src/Electron/src/Renderer/Components/LeftSidebar/FileExplorer/Modals/CreateFileSystemItemModal.fs:1-43 — 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.
Duplicated block (92–94 lines × 2) src/Client/MainComponents/Widgets.fs:40— src/Client/MainComponents/Widgets.fs:40-133 | src/Components/src/Composite/Widgets/Widgets.fs:34-125 — before extracting anything, compare `src/Client/MainComponents/Widgets.fs` and `src/Components/src/Composite/Widgets/Widgets.fs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 227 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 (58–59 lines × 2) src/Client/Spreadsheet/IO.fs:52— src/Client/Spreadsheet/IO.fs:52-110 | src/Components/src/ARCtrl/Json.fs:13-70 — 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 (55 lines × 2) src/Client/MainComponents/Widgets.fs:142— src/Client/MainComponents/Widgets.fs:142-196 | src/Components/src/Composite/Widgets/Widgets.fs:143-197 — before extracting anything, compare `src/Client/MainComponents/Widgets.fs` and `src/Components/src/Composite/Widgets/Widgets.fs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/MainComponents/Widgets.fs:142` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Components/src/Composite/Widgets/Widgets.fs:198` calls `onFocus` and `src/Client/MainComponents/Widgets.fs:197` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (53–54 lines × 2) src/Server/Api/IOntologyAPI.fs:497— src/Server/Api/IOntologyAPI.fs:497-549 | src/Server/Api/IOntologyAPI.fs:778-831 — 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/Server/Api/IOntologyAPI.fs:497` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (45–49 lines × 2) src/Components/src/Page/Metadata/InvestigationMetadata.fs:33— src/Components/src/Page/Metadata/InvestigationMetadata.fs:33-81 | src/Components/src/Page/Metadata/StudyMetadata.fs:29-73 — before extracting anything, compare `src/Components/src/Page/Metadata/InvestigationMetadata.fs` and `src/Components/src/Page/Metadata/StudyMetadata.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/InvestigationMetadata.fs:33` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (33–34 lines × 2) src/Client/SharedComponents/JsBindings/DndKit.fs:47— src/Client/SharedComponents/JsBindings/DndKit.fs:47-80 | src/Components/src/JsBindings/DndKit.fs:86-118 — before extracting anything, compare `src/Client/SharedComponents/JsBindings/DndKit.fs` and `src/Components/src/JsBindings/DndKit.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (32 lines × 2) src/Client/SharedComponents/Metadata/Forms.fs:740— src/Client/SharedComponents/Metadata/Forms.fs:740-771 | src/Components/src/Page/Metadata/FormComponents/OntologyAnnotationInput.fs:26-57 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Forms.fs:740` 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 (31–32 lines × 2) src/Client/SharedComponents/Widgets.fs:10— src/Client/SharedComponents/Widgets.fs:10-41 | src/Components/src/Composite/Widgets/LocalStorage.fs:19-49 — 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 (31 lines × 2) src/Client/Model.fs:191— src/Client/Model.fs:191-221 | src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs:16-46 — 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 (29 lines × 2) src/Client/SharedComponents/Metadata/Generic.fs:23— src/Client/SharedComponents/Metadata/Generic.fs:23-51 | src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs:22-50 — before extracting anything, compare `src/Client/SharedComponents/Metadata/Generic.fs` and `src/Components/src/Primitive/LayoutComponents/LayoutComponents.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Generic.fs:23` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (28 lines × 2) src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.fs:71— src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.fs:71-98 | src/Components/src/Page/ProvenanceGrouping/ControlsSupport.fs:44-71 — 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 (27 lines × 2) src/Components/src/Primitive/Buttons/Buttons.fs:16— src/Components/src/Primitive/Buttons/Buttons.fs:16-42 | src/Components/src/Primitive/Buttons/Buttons.fs:47-73 — 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/Components/src/Primitive/Buttons/Buttons.fs:16` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25–26 lines × 2) src/Components/src/Composite/SortableList/RowComponents.fs:104— src/Components/src/Composite/SortableList/RowComponents.fs:104-128 | src/Components/src/Composite/SortableList/RowComponents.fs:143-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Composite/SortableList/RowComponents.fs:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22–23 lines × 2) src/Client/MainComponents/Widgets.fs:217— src/Client/MainComponents/Widgets.fs:217-238 | src/Components/src/Composite/Widgets/Widgets.fs:219-241 — before extracting anything, compare `src/Client/MainComponents/Widgets.fs` and `src/Components/src/Composite/Widgets/Widgets.fs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/MainComponents/Widgets.fs:217` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11–23 lines × 2) src/Client/SharedComponents/Metadata/Forms.fs:434— src/Client/SharedComponents/Metadata/Forms.fs:434-456 | src/Components/src/Page/Metadata/FormComponents/InputSequence.fs:33-43 — before extracting anything, compare `src/Client/SharedComponents/Metadata/Forms.fs` and `src/Components/src/Page/Metadata/FormComponents/InputSequence.fs` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Forms.fs:434` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (18–21 lines × 4) src/Client/OfficeInterop/ARCtrlHelper.fs:71— src/Client/OfficeInterop/ARCtrlHelper.fs:71-90 | src/Client/OfficeInterop/OfficeInterop.fs:54-74 | src/Client/OfficeInterop/OfficeInterop.fs:91-108 | src/Client/OfficeInterop/OfficeInterop.fs:170-190 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/OfficeInterop/ARCtrlHelper.fs:71` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (21 lines × 4) src/Electron/src/Main/ArcVault/ArcVault.fs:5— src/Electron/src/Main/ArcVault/ArcVault.fs:5-25 | src/Electron/src/Main/ArcVault/ArcVaultFileTree.fs:6-26 | src/Electron/src/Main/ArcVault/ArcVaultFileWatcher.fs:6-26 | src/Electron/src/Main/ArcVault/ArcVaultLargeObjects.fs:6-26 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (21 lines × 2) src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:101— src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:101-121 | src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs:94-114 — before extracting anything, compare `src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs` and `src/Components/src/Page/Metadata/FormComponents/PublicationsInput/PublicationSearchDialog.fs` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/FormComponents/PersonsInput/PersonSearchDialog.fs:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–20 lines × 2) src/Components/src/Composite/MarkdownText/TextInputWithMarkdown.fs:115— src/Components/src/Composite/MarkdownText/TextInputWithMarkdown.fs:115-134 | src/Components/src/Page/Metadata/FormComponents/TextInput.fs:37-52 — 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–20 lines × 2) src/Components/src/Page/GitSidebar/GitSidebar.fs:763— src/Components/src/Page/GitSidebar/GitSidebar.fs:763-781 | src/Components/src/Page/GitSidebar/GitSidebar.fs:831-850 — 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/Components/src/Page/GitSidebar/GitSidebar.fs:763` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15–19 lines × 2) src/Components/src/Page/GitSidebar/GitSidebar.fs:226— src/Components/src/Page/GitSidebar/GitSidebar.fs:226-240 | src/Components/src/Page/GitSidebar/GitSidebar.fs:800-818 — 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/Components/src/Page/GitSidebar/GitSidebar.fs:226` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14–19 lines × 2) src/Electron/src/Renderer/Context/GitWorkflow.fs:3961— src/Electron/src/Renderer/Context/GitWorkflow.fs:3961-3974 | src/Electron/src/Renderer/Context/GitWorkflow.fs:4689-4707 — 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/Electron/src/Renderer/Context/GitWorkflow.fs:3961` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (18 lines × 5) src/Components/src/Page/Metadata/AssayMetadata.fs:23— src/Components/src/Page/Metadata/AssayMetadata.fs:23-40 | src/Components/src/Page/Metadata/InvestigationMetadata.fs:27-44 | src/Components/src/Page/Metadata/RunMetadata.fs:22-39 | src/Components/src/Page/Metadata/StudyMetadata.fs:23-40 | src/Components/src/Page/Metadata/WorkflowMetadata.fs:22-39 — before extracting anything, compare `src/Components/src/Page/Metadata/AssayMetadata.fs` and `src/Components/src/Page/Metadata/RunMetadata.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/Page/Metadata/AssayMetadata.fs:23` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–18 lines × 2) src/Server/Api/IOntologyAPI.fs:479— src/Server/Api/IOntologyAPI.fs:479-494 | src/Server/Api/IOntologyAPI.fs:759-776 — 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/Server/Api/IOntologyAPI.fs:479` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (15–17 lines × 2) src/Client/Pages/Settings/SettingsView.fs:18— src/Client/Pages/Settings/SettingsView.fs:18-32 | src/Components/src/Page/SettingsPage/SettingsPage.fs:59-75 — 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 (14–15 lines × 6) src/Components/src/Page/ProvenanceGrouping/EditorActions.fs:1— src/Components/src/Page/ProvenanceGrouping/EditorActions.fs:1-15 | src/Components/src/Page/ProvenanceGrouping/EditorLayout.fs:1-14 | src/Components/src/Page/ProvenanceGrouping/EditorPanels.fs:1-14 | src/Components/src/Page/ProvenanceGrouping/EditorPropertyShelf.fs:1-15 | src/Components/src/Page/ProvenanceGrouping/EditorSurface.fs:1-14 | src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.fs:1-15 — 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 6 call sites, so a change lands once.
Duplicated block (13–15 lines × 5) src/Client/OfficeInterop/ARCtrlHelper.fs:67— src/Client/OfficeInterop/ARCtrlHelper.fs:67-81 | src/Client/OfficeInterop/OfficeInterop.fs:50-64 | src/Client/OfficeInterop/OfficeInterop.fs:87-101 | src/Client/OfficeInterop/OfficeInterop.fs:166-180 | src/Client/OfficeInterop/OfficeInterop.fs:207-219 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12–14 lines × 3) src/Components/src/Composite/AnnotationTable/Modals.fs:1192— src/Components/src/Composite/AnnotationTable/Modals.fs:1192-1205 | src/Components/src/Composite/AnnotationTable/Modals.fs:1503-1514 | src/Components/src/Composite/AnnotationTable/Modals.fs:1642-1655 — 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/Components/src/Composite/AnnotationTable/Modals.fs:1192` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12–14 lines × 2) src/Components/src/Page/ProvenanceGrouping/EditorPropertyShelf.fs:23— src/Components/src/Page/ProvenanceGrouping/EditorPropertyShelf.fs:23-34 | src/Components/src/Page/ProvenanceGrouping/PropertyModel.fs:9-22 — 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 (13 lines × 5) src/Electron/src/Main/ArcVault/ArcVault.fs:4— src/Electron/src/Main/ArcVault/ArcVault.fs:4-16 | src/Electron/src/Main/ArcVault/ArcVaultFileTree.fs:5-17 | src/Electron/src/Main/ArcVault/ArcVaultFileWatcher.fs:5-17 | src/Electron/src/Main/ArcVault/ArcVaultLargeObjects.fs:5-17 | src/Electron/src/Main/ArcVault/ArcVaultState.fs:4-16 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
Duplicated block (12–13 lines × 2) src/Client/SharedComponents/Widgets.fs:52— src/Client/SharedComponents/Widgets.fs:52-63 | src/Components/src/Composite/Widgets/LocalStorage.fs:53-65 — 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 (11–12 lines × 5) src/Components/src/Page/ProvenanceGrouping/ConnectorMeasurement.fs:1— src/Components/src/Page/ProvenanceGrouping/ConnectorMeasurement.fs:1-12 | src/Components/src/Page/ProvenanceGrouping/ConnectorOverlay.fs:1-12 | src/Components/src/Page/ProvenanceGrouping/ConnectorPaths.fs:1-11 | src/Components/src/Page/ProvenanceGrouping/ConnectorRendering.fs:1-12 | src/Components/src/Page/ProvenanceGrouping/ConnectorTypes.fs:1-12 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
Duplicated block (9–12 lines × 2) src/Client/OfficeInterop/ARCtrlHelper.fs:158— src/Client/OfficeInterop/ARCtrlHelper.fs:158-166 | src/Client/OfficeInterop/ArcTableHelper.fs:73-84 — 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 (11 lines × 3) src/Client/Util/MessageInterop.fs:123— src/Client/Util/MessageInterop.fs:123-133 | src/Fable.Electron.Remoting.Compatibility/Preload.fs:140-150 | src/Fable.Remoting.Client.Compatibility/Remoting.fs:102-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/Util/MessageInterop.fs:123` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7–9 lines × 2) src/Client/SharedComponents/JsBindings/DndKit.fs:82— src/Client/SharedComponents/JsBindings/DndKit.fs:82-88 | src/Components/src/JsBindings/DndKit.fs:126-134 — before extracting anything, compare `src/Client/SharedComponents/JsBindings/DndKit.fs` and `src/Components/src/JsBindings/DndKit.fs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Components/src/JsBindings/DndKit.fs:126` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8–9 lines × 2) src/Components/src/Page/ValidationPackageBrowser/PackageTable.fs:64— src/Components/src/Page/ValidationPackageBrowser/PackageTable.fs:64-72 | src/Components/src/Page/ValidationPackageBrowser/PackageTable.fs:75-82 — 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 × 3) src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:403— src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:403-410 | src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:417-424 | src/Components/src/Composite/AnnotationTable/AnnotationTable.fs:428-435 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 2) src/Server/Database/Helper.fs:106— src/Server/Database/Helper.fs:106-112 | src/Server/Database/Helper.fs:156-163 — 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 (22 lines × 2) src/Client/SharedComponents/Metadata/Assay.fs:78— src/Client/SharedComponents/Metadata/Assay.fs:78-99 | src/Client/SharedComponents/Metadata/Run.fs:83-104 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Client/SharedComponents/Metadata/Assay.fs:78` 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.
Coverage not measured — .NET and JavaScript/TypeScript suite — Coverage NOT MEASURED: the .NET half could not be measured — no coverage produced (collector absent, or test run exceeded the inline budget); the JavaScript/TypeScript half could not be measured — the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov — add `@vitest/coverage-v8` (or `@vitest/coverage-istanbul`) as a devDependency. This repository's production source spans both ecosystems, and no partial figure is published as if it were the whole: coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan.
Duplicated block (12 lines × 6 locations) src/Components/playground/App.tsx:90— src/Components/playground/App.tsx:90 · src/Components/playground/App.tsx:106 · src/Components/playground/App.tsx:120 · src/Components/playground/App.tsx:141 · +2 more site(s) not listed — all 6 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Duplicated block (12 lines × 5 locations) src/Components/playground/App.tsx:112— src/Components/playground/App.tsx:112 · src/Components/playground/App.tsx:126 · src/Components/playground/App.tsx:147 · src/Components/playground/App.tsx:184 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Boundary violation [package:third-party-deep-import] src/Electron/scripts/forge-make.cjs:8— src/Electron/scripts/forge-make.cjs:8 imports @electron-forge/cli/dist/electron-forge-make.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
R3 · Large Files· src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx · ×1
src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx: 2896 lines of code src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx:1— src/Components/src/Page/GitComparison/GitPagedDiffViewer.stories.tsx has 2896 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.stories.tsx · ×1
src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.stories.tsx: 2449 lines of code src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.stories.tsx:1— src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.stories.tsx has 2449 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx · ×1
src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx: 1159 lines of code src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx:1— src/Components/src/Page/GitSidebar/GitSidebar.stories.tsx has 1159 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx · ×1
src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx: 1069 lines of code src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx:1— src/Components/src/Page/FileExplorer/FileExplorer.stories.tsx has 1069 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx · ×1
src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx: 801 lines of code src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx:1— src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx has 801 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx · ×1
src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx: 645 lines of code src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx:1— src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx has 645 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· src/Components/src/Page/GitComparison/GitMergeConflictViewer.stories.tsx · ×1
src/Components/src/Page/GitComparison/GitMergeConflictViewer.stories.tsx: 575 lines of code src/Components/src/Page/GitComparison/GitMergeConflictViewer.stories.tsx:1— src/Components/src/Page/GitComparison/GitMergeConflictViewer.stories.tsx has 575 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
No lint script — test ✓ · lint ✗ · typecheck ✓ — read from this repository's REDACTED scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
Unused dependency '@iconify-json/fluent' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@iconify/tailwind4' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@testing-library/react' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'daisyui' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'exifr' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'globals' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@nfdi4plants/exceljs' — Declared in src/Client/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'isomorphic-fetch' — Declared in src/Client/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'pako' — Declared in src/Client/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@dnd-kit/utilities' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@floating-ui/react' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@tanstack/react-virtual' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@uidotdev/usehooks' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@uiw/react-md-editor' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'fuse.js' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'mermaid' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'rehype-rewrite' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency 'rehype-sanitize' — Declared in src/Components/REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Third-party script without Subresource Integrity src/Server/public/test.html:4— `https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.18.0/cytoscape.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session.
Duplicated predicate src/Components/src/Composite/MarkdownText/Plugins/AddImage.fs:34— `boundedEnd < source.Length && source.[boundedEnd] <> '\n'` appears character-identically in 2 files — src/Components/src/Composite/MarkdownText/Plugins/AddImage.fs, src/Components/src/Composite/MarkdownText/Plugins/AddStep.fs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Client/Pages/BuildingBlock/Helper.fs:58— `header.IsFeaturedColumn || (header.IsTermColumn && header.ToTerm().NameText.Length > 0) || header.IsSingleColumn` appears character-identically in 2 files — src/Client/Pages/BuildingBlock/Helper.fs, src/Components/src/Composite/Widgets/BuildingBlockWidget/BuildingBlockWidget.fs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Electron/src/Main/Helper/WindowSend.fs:9— `not (window.isDestroyed ()) && not (window.webContents.isDestroyed ())` appears character-identically in 2 files — src/Electron/src/Main/Helper/WindowSend.fs, src/Electron/src/Main/Services/Settings/UiSettings.fs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Electron/src/Renderer/Context/GitWorkflow.fs:3589— `not status.Installed || not status.Compatible` appears character-identically in 2 files — src/Electron/src/Renderer/Context/GitWorkflow.fs, src/Electron/src/Renderer/Context/VersionControlDependencyContext.fs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 147 significant file(s) lose their only recent owner: src/Client/OfficeInterop/OfficeInterop.fs, src/Components/src/Composite/AnnotationTable/Modals.fs, src/Client/SharedComponents/Metadata/Forms.fs, src/Components/src/Composite/TermSearch/TermSearch.fs, src/Components/src/Primitive/Icons.fs, src/Electron/src/Main/IPC/FileSystemIO.fs, src/Components/src/Composite/AnnotationTable/ContextMenu.fs, src/Components/src/Composite/AnnotationTable/AnnotationTable.fs (+139 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 72 significant file(s) lose their only recent owner: src/Electron/src/Renderer/Context/GitWorkflow.fs, src/Components/src/Page/GitComparison/GitPagedDiffViewer.fs, src/Components/src/Page/GitSidebar/GitSidebar.fs, src/Components/src/Page/ProvenanceGrouping/Controls.fs, src/Components/src/Page/ProvenanceGrouping/ProvenanceGrouping.fs, src/Components/src/Composite/GraphCanvas/GraphCanvas.fs, src/Electron/src/Main/IPC/IVersionControlApi.fs, src/Components/src/Page/ProvenanceGrouping/GroupCard.fs (+64 more). Pair on, review, or document these before any departure.
D21 · Naming Consistency· `TermSourceREF` spells `REF` where 113 names in the project spell it `Ref` · ×2
`TermSourceREF` spells `REF` where 113 names in the project spell it `Ref` src/Components/src/Page/ValidationPackageBrowser/Types.fs:38— 113 of 115 names in project Build spell the token `Ref` (113 of 115; unit: names in project Build containing `Ref`). Peers: FooterTabs.Table(tabRef) (src/Client/Modals/ContextMenus/FooterTabs.fs:12); FooterTabs.Plus(tabRef) (src/Client/Modals/ContextMenus/FooterTabs.fs:26); FooterTabs.DataMap(tabRef) (src/Client/Modals/ContextMenus/FooterTabs.fs:48); ISortable.setNodeRef (src/Client/SharedComponents/JsBindings/DndKit.fs:32); IDroppable.setNodeRef (src/Client/SharedComponents/JsBindings/DndKit.fs:37). Rename to `TermSourceRef`. [rule N6]
`TermSourceREF` spells `REF` where 113 names in the project spell it `Ref` src/Electron/src/Main/IPC/IValidationPackageApi.fs:19— 113 of 115 names in project Build spell the token `Ref` (113 of 115; unit: names in project Build containing `Ref`). Peers: FooterTabs.Table(tabRef) (src/Client/Modals/ContextMenus/FooterTabs.fs:12); FooterTabs.Plus(tabRef) (src/Client/Modals/ContextMenus/FooterTabs.fs:26); FooterTabs.DataMap(tabRef) (src/Client/Modals/ContextMenus/FooterTabs.fs:48); ISortable.setNodeRef (src/Client/SharedComponents/JsBindings/DndKit.fs:32); IDroppable.setNodeRef (src/Client/SharedComponents/JsBindings/DndKit.fs:37). Rename to `TermSourceRef`. [rule N6]
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (220 single-owned of 409 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 409 of the 660 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/Components/src/Composite/Notes/NoteSearch/NoteSearch.fs.
No ADRs found REDACTED:2— 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 `REDACTED` makes this repository a deployable product (line 2).
D21 · Naming Consistency· `updateComponentsPackageJSONVersion` spells `JSON` where 60 names in the project spell it `Json` · ×1
`updateComponentsPackageJSONVersion` spells `JSON` where 60 names in the project spell it `Json` build/IO/VersionIO.fs:100— 60 of 62 names in project Build spell the token `Json` (60 of 62; unit: names in project Build containing `Json`). Peers: ProjectPaths.simpleJsonCompatibilityTestsPath (build/ProjectInfo.fs:25); GitHub.toJson (build/Tools/GitHub.fs:68); API.requestAsJson (src/Client/SharedComponents/Metadata/Forms.fs:28); Json.readFromJsonMap (src/Client/Spreadsheet/IO.fs:52); FooterReorderData.toJson (src/Client/Spreadsheet/Types.fs:15). Rename to `updateComponentsPackageJsonVersion`. [rule N6]
D21 · Naming Consistency· `updateElectronPackageJSONVersion` spells `JSON` where 60 names in the project spell it `Json` · ×1
`updateElectronPackageJSONVersion` spells `JSON` where 60 names in the project spell it `Json` build/IO/VersionIO.fs:113— 60 of 62 names in project Build spell the token `Json` (60 of 62; unit: names in project Build containing `Json`). Peers: ProjectPaths.simpleJsonCompatibilityTestsPath (build/ProjectInfo.fs:25); GitHub.toJson (build/Tools/GitHub.fs:68); API.requestAsJson (src/Client/SharedComponents/Metadata/Forms.fs:28); Json.readFromJsonMap (src/Client/Spreadsheet/IO.fs:52); FooterReorderData.toJson (src/Client/Spreadsheet/Types.fs:15). Rename to `updateElectronPackageJsonVersion`. [rule N6]
D21 · Naming Consistency· `requestByPubMedID` spells `ID` where 722 names in the project spell it `Id` · ×1
`requestByPubMedID` spells `ID` where 722 names in the project spell it `Id` src/Client/SharedComponents/Metadata/Forms.fs:91— 722 of 728 names in project Build spell the token `Id` (722 of 728; unit: names in project Build containing `Id`). Peers: ClickOutsideHandler.AddListener(containerId) (src/Client/SharedComponents/ClickOutsideHandler.fs:10); Cells.mkCellId (src/Client/Spreadsheet/Controller/Cells.fs:6); FooterReorderData.OriginId (src/Client/Spreadsheet/Types.fs:7); DebounceStorage.Add(timeoutId) (src/Client/Util/Helper.fs:14); MainPageUtil.DrawerId (src/Client/Views/MainPageViews.fs:10). Rename to `requestByPubMedId`. [rule N6]
D21 · Naming Consistency· `PubMedIDInput` spells `ID` where 722 names in the project spell it `Id` · ×1
`PubMedIDInput` spells `ID` where 722 names in the project spell it `Id` src/Client/SharedComponents/Metadata/Forms.fs:1301— 722 of 728 names in project Build spell the token `Id` (722 of 728; unit: names in project Build containing `Id`). Peers: ClickOutsideHandler.AddListener(containerId) (src/Client/SharedComponents/ClickOutsideHandler.fs:10); Cells.mkCellId (src/Client/Spreadsheet/Controller/Cells.fs:6); FooterReorderData.OriginId (src/Client/Spreadsheet/Types.fs:7); DebounceStorage.Add(timeoutId) (src/Client/Util/Helper.fs:14); MainPageUtil.DrawerId (src/Client/Views/MainPageViews.fs:10). Rename to `PubMedIdInput`. [rule N6]
D21 · Naming Consistency· `LatestReposFetchID` spells `ID` where 722 names in the project spell it `Id` · ×1
`LatestReposFetchID` spells `ID` where 722 names in the project spell it `Id` src/Components/src/Page/DataHubBrowser/Model.fs:23— 722 of 728 names in project Build spell the token `Id` (722 of 728; unit: names in project Build containing `Id`). Peers: ClickOutsideHandler.AddListener(containerId) (src/Client/SharedComponents/ClickOutsideHandler.fs:10); Cells.mkCellId (src/Client/Spreadsheet/Controller/Cells.fs:6); FooterReorderData.OriginId (src/Client/Spreadsheet/Types.fs:7); DebounceStorage.Add(timeoutId) (src/Client/Util/Helper.fs:14); MainPageUtil.DrawerId (src/Client/Views/MainPageViews.fs:10). Rename to `LatestReposFetchId`. [rule N6]
D21 · Naming Consistency· `TermID` spells `ID` where 722 names in the project spell it `Id` · ×1
`TermID` spells `ID` where 722 names in the project spell it `Id` src/Shared/Database.fs:42— 722 of 728 names in project Build spell the token `Id` (722 of 728; unit: names in project Build containing `Id`). Peers: ClickOutsideHandler.AddListener(containerId) (src/Client/SharedComponents/ClickOutsideHandler.fs:10); Cells.mkCellId (src/Client/Spreadsheet/Controller/Cells.fs:6); FooterReorderData.OriginId (src/Client/Spreadsheet/Types.fs:7); DebounceStorage.Add(timeoutId) (src/Client/Util/Helper.fs:14); MainPageUtil.DrawerId (src/Client/Views/MainPageViews.fs:10). Rename to `TermId`. [rule N6]
D21 · Naming Consistency· `RelatedTermID` spells `ID` where 722 names in the project spell it `Id` · ×1
`RelatedTermID` spells `ID` where 722 names in the project spell it `Id` src/Shared/Database.fs:44— 722 of 728 names in project Build spell the token `Id` (722 of 728; unit: names in project Build containing `Id`). Peers: ClickOutsideHandler.AddListener(containerId) (src/Client/SharedComponents/ClickOutsideHandler.fs:10); Cells.mkCellId (src/Client/Spreadsheet/Controller/Cells.fs:6); FooterReorderData.OriginId (src/Client/Spreadsheet/Types.fs:7); DebounceStorage.Add(timeoutId) (src/Client/Util/Helper.fs:14); MainPageUtil.DrawerId (src/Client/Views/MainPageViews.fs:10). Rename to `RelatedTermId`. [rule N6]
D21 · Naming Consistency· `localID` spells `ID` where 722 names in the project spell it `Id` · ×1
`localID` spells `ID` where 722 names in the project spell it `Id` src/Shared/Shared.fs:98— 722 of 728 names in project Build spell the token `Id` (722 of 728; unit: names in project Build containing `Id`). Peers: ClickOutsideHandler.AddListener(containerId) (src/Client/SharedComponents/ClickOutsideHandler.fs:10); Cells.mkCellId (src/Client/Spreadsheet/Controller/Cells.fs:6); FooterReorderData.OriginId (src/Client/Spreadsheet/Types.fs:7); DebounceStorage.Add(timeoutId) (src/Client/Util/Helper.fs:14); MainPageUtil.DrawerId (src/Client/Views/MainPageViews.fs:10). Rename to `localId`. [rule N6]
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 4 of 13 project(s) overshoot their size bounds, lowering Project Cohesion to 3.8/10. The most over is `src/Components/src` (63175 LoC, 913 module-visible types across 75 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
Scattered collaborators — 96 % of calls cross a namespace and only 54 % of collaborators are co-located — group each feature's code into a vertical slice so a call's collaborators sit together.
D28 · Secrets (history)· Rotate the exposed credentials · ×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.
Logging is not universal — Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `build`.
No SAST REDACTED:4— No static application security testing detected. For this repository's stack, add `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) as a CI step. What was searched, so you can tell an absence from a miss: the 5 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
No dependency-update automation Directory.Packages.props:6— `Directory.Packages.props` 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`.
P4 · Deployment & Rollback· No rollback/health safety · ×1
No rollback/health safety — Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
R7 · Dead Code· Unused module-local declaration 'TermSearchContainer' · ×1
Unused module-local declaration 'TermSearchContainer' src/Components/playground/App.tsx:34— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'TableContainer' · ×1
Unused module-local declaration 'TableContainer' src/Components/playground/App.tsx:94— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'AnnoTableContainer' · ×1
Unused module-local declaration 'AnnoTableContainer' src/Components/playground/App.tsx:101— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'ContextMenuContainer' · ×1
Unused module-local declaration 'ContextMenuContainer' src/Components/playground/App.tsx:110— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'TemplateFilterContainer' · ×1
Unused module-local declaration 'TemplateFilterContainer' src/Components/playground/App.tsx:117— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'ComboBoxContainer' · ×1
Unused module-local declaration 'ComboBoxContainer' src/Components/playground/App.tsx:124— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'BaseModalContainer' · ×1
Unused module-local declaration 'BaseModalContainer' src/Components/playground/App.tsx:138— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'DataMapTableContainer' · ×1
Unused module-local declaration 'DataMapTableContainer' src/Components/playground/App.tsx:145— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'WidgetControllerContainer' · ×1
Unused module-local declaration 'WidgetControllerContainer' src/Components/playground/App.tsx:159— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'LandingContainer' · ×1
Unused module-local declaration 'LandingContainer' src/Components/playground/App.tsx:166— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'MarkdownTextContainer' · ×1
Unused module-local declaration 'MarkdownTextContainer' src/Components/playground/App.tsx:182— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'AuthButtonContainer' · ×1
Unused module-local declaration 'AuthButtonContainer' src/Components/playground/App.tsx:189— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'DataHubBrowserContainer' · ×1
Unused module-local declaration 'DataHubBrowserContainer' src/Components/playground/App.tsx:196— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'ARCSelectorContainer' · ×1
Unused module-local declaration 'ARCSelectorContainer' src/Components/playground/App.tsx:203— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'ArcFileEditorContainer' · ×1
Unused module-local declaration 'ArcFileEditorContainer' src/Components/playground/App.tsx:210— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'WorkspaceContainer' · ×1
Unused module-local declaration 'WorkspaceContainer' src/Components/playground/App.tsx:216— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'ValidationPackageBrowserFixtureContainer' · ×1
Unused module-local declaration 'ValidationPackageBrowserFixtureContainer' src/Components/playground/App.tsx:224— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'SortableListContainer' · ×1
Unused module-local declaration 'SortableListContainer' src/Components/playground/App.tsx:232— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'DataAnnotatorContainer' · ×1
Unused module-local declaration 'DataAnnotatorContainer' src/Components/playground/App.tsx:242— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'getLayoutLeafCount' · ×1
Unused module-local declaration 'getLayoutLeafCount' src/Components/src/Composite/Workspace/Helper/WorkspaceModel.test.ts:47— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'dragByPointer' · ×1
Unused module-local declaration 'dragByPointer' src/Components/src/Composite/Workspace/Workspace.stories.tsx:24— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'dragToPaneEdge' · ×1
Unused module-local declaration 'dragToPaneEdge' src/Components/src/Composite/Workspace/Workspace.stories.tsx:66— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'SingleTabHarness' · ×1
Unused module-local declaration 'SingleTabHarness' src/Components/src/Composite/Workspace/Workspace.stories.tsx:139— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'ButtonProps' · ×1
Unused module-local declaration 'ButtonProps' src/Components/src/Primitive/BaseModal/BaseModal.stories.tsx:7— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code· Unused module-local declaration 'proxyTarget' · ×1
Unused module-local declaration 'proxyTarget' tests/Client/vite.config.mts:5— This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R8 · Dependency Hygiene· Test-only dependency '@dnd-kit/core' in production deps · ×1
Test-only dependency '@dnd-kit/core' in production deps src/Components/REDACTED:57— Only test files import it (first: src/Components/src/Composite/FolderedDraggableList/FolderedDraggableList.stories.tsx:3) — move it to devDependencies.
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.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 50 file(s) — `src/Components/src/Composite/Actionbar/Actionbar.stories.tsx`, `src/Components/src/Composite/AnnotationTable/AnnotationTable.stories.tsx`, `src/Components/src/Composite/AnnotationTable/ResetTableConfirmationModal.stories.tsx`, `src/Components/src/Composite/ArcSelector/ArcSelector.stories.tsx`, `src/Components/src/Composite/ArcVaultActions/ArcVaultActions.stories.tsx`, … (+45 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a1dedd-3e49-75f8-992c-ae19534db3b5 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 128 · Warnings: 624 · Recommendations: 58 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 15-11-2026 @ 11:00 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.