Executive summary
The system holds an adequate standing with a health score of 51%, indicating a workable asset that carries significant operational risk. While the underlying code is clean and the architecture is robust, the low readiness score suggests the team lacks the safety nets required for reliable, secure delivery. This gap exposes the business to preventable outages and security regressions, threatening the stability of a medium-sized application that would cost approximately €27,000 to rebuild from scratch.
The primary risk lies in operational fragility. With a readiness score of 43%, the system lacks the testing and observability needed to ensure changes do not break production. This creates a velocity tax on every modification, where developers spend extra time navigating uncertainty and fixing avoidable defects. The cost of this drag compounds over time, slowing feature delivery and increasing the likelihood of costly incidents that disrupt business operations.
A secondary concern is the security posture. Although the code structure is sound, the absence of automated security checks in the development pipeline leaves the application vulnerable to known vulnerabilities. Without a gate that blocks insecure code before it merges, the team relies on manual review, which is inconsistent and slow. This exposure increases the potential for data breaches or compliance failures, which carry far higher costs than the effort required to implement basic safeguards.
The codebase itself is a strength, with high maintainability and a clear architecture that minimizes ripple effects during changes. The low rebuild effort indicates that the core logic is well-contained and not overly complex. This foundation provides a solid base for improvement, allowing the team to focus on adding safety nets without needing to refactor the entire system.
The immediate priority is to integrate automated security scanning into the continuous integration pipeline. This single action provides the highest return on investment by preventing security regressions at the source. It is a low-effort change that significantly reduces risk and builds confidence in the deployment process. Addressing this first will stabilize the delivery pipeline and allow the team to tackle other readiness gaps with greater efficiency.
Note that several areas, including domain modeling and event-driven patterns, were not measured. The assessment reflects only the analyzed components, so the full picture may differ in unmeasured areas.
Raise Readiness 43 → 70 (the Healthy floor) ⇒ headline 51 → ~58.
New since the last scan (100+)
- D1 · find.FindPage (cyclomatic 99) src/renderer/pages/find.tsx
- D1 · Node.Node (cyclomatic 54) src/renderer/components/Tree/Node.tsx
- D1 · index.RightPanel (cyclomatic 52) src/renderer/components/RightPanel/index.tsx
- D1 · index.List (cyclomatic 44) src/renderer/components/List/index.tsx
- D1 · switchhosts::run (cyclomatic 43) src-tauri/src/lib.rs
- D1 · EditHostsInfo.EditHostsInfo (cyclomatic 36) src/renderer/components/EditHostsInfo.tsx
- D1 · notify.getFriendlyUpdateErrorMessage (cyclomatic 34) src/renderer/core/notify.ts
- D1 · General.General (cyclomatic 33) src/renderer/components/Pref/General.tsx
- D1 · HostsEditor.HostsEditor (cyclomatic 32) src/renderer/components/Editor/HostsEditor.tsx
- D1 · switchhosts::storage::tree_format::legacy_node_to_v5 (cyclomatic 31) src-tauri/src/storage/tree_format.rs
- D1 · ListItem.ListItem (cyclomatic 26) src/renderer/components/List/ListItem.tsx
- D1 · index.PreferencePanel (cyclomatic 26) src/renderer/components/Pref/index.tsx
- D1 · switchhosts::storage::tree_format::v5_node_to_legacy (cyclomatic 24) src-tauri/src/storage/tree_format.rs
- D1 · index.MainPage (cyclomatic 22) src/renderer/pages/index.tsx
- D1 · UpdateDialog.UpdateDialog (cyclomatic 20) src/renderer/components/UpdateDialog.tsx
- D1 · Tree.Tree (cyclomatic 19) src/renderer/components/Tree/Tree.tsx
- D1 · index.TopBar (cyclomatic 16) src/renderer/components/TopBar/index.tsx
- D2 · find.FindPage (cognitive 101) src/renderer/pages/find.tsx
- D2 · index.RightPanel (cognitive 61) src/renderer/components/RightPanel/index.tsx
- D2 · index.List (cognitive 58) src/renderer/components/List/index.tsx
- D2 · Node.Node (cognitive 52) src/renderer/components/Tree/Node.tsx
- D2 · switchhosts::run (cognitive 50) src-tauri/src/lib.rs
- D2 · switchhosts::storage::tree_format::legacy_node_to_v5 (cognitive 42) src-tauri/src/storage/tree_format.rs
- D2 · EditHostsInfo.EditHostsInfo (cognitive 41) src/renderer/components/EditHostsInfo.tsx
- D2 · switchhosts::storage::tree_format::v5_node_to_legacy (cognitive 40) src-tauri/src/storage/tree_format.rs
- D2 · index.PreferencePanel (cognitive 38) src/renderer/components/Pref/index.tsx
- D2 · General.General (cognitive 34) src/renderer/components/Pref/General.tsx
- D2 · hostsFn.setOnStateOfItem (cognitive 32) src/common/hostsFn.ts
- D2 · HostsEditor.HostsEditor (cognitive 31) src/renderer/components/Editor/HostsEditor.tsx
- D2 · sort-lang.sortContentGroup (cognitive 30) scripts/sort-lang.mjs
- D2 · ListItem.ListItem (cognitive 23) src/renderer/components/List/ListItem.tsx
- D2 · Tree.Tree (cognitive 23) src/renderer/components/Tree/Tree.tsx
- D2 · switchhosts::commands::apply_side_effects (cognitive 22) src-tauri/src/commands.rs
- D2 · hosts_cm.buildDecorations (cognitive 20) src/renderer/components/Editor/hosts_cm.ts
- D2 · switchhosts::import_export::convert_v3_node (cognitive 19) src-tauri/src/import_export.rs
- D2 · UpdateDialog.UpdateDialog (cognitive 19) src/renderer/components/UpdateDialog.tsx
- D2 · index.MainPage (cognitive 19) src/renderer/pages/index.tsx
- D2 · switchhosts::hosts_apply::aggregate::remove_duplicate_records_pass (cognitive 17) src-tauri/src/hosts_apply/aggregate.rs
- D2 · switchhosts::hosts_apply::elevation::elevate_copy (cognitive 17) src-tauri/src/hosts_apply/elevation.rs
- D2 · ConfigMenu.ConfigMenu (cognitive 17) src/renderer/components/TopBar/ConfigMenu.tsx
- D2 · switchhosts::commands::apply_hosts_selection (cognitive 16) src-tauri/src/commands.rs
- D2 · fn.selectTo (cognitive 16) src/renderer/components/Tree/fn.ts
- D3 · FunctionTooLong: find.FindPage src/renderer/pages/find.tsx
- D3 · MethodTooLong: MenuLabels.for_locale src-tauri/src/i18n.rs
- D3 · FunctionTooLong: index.RightPanel src/renderer/components/RightPanel/index.tsx
- D3 · FunctionTooLong: switchhosts::run src-tauri/src/lib.rs
- D3 · FileTooLong: src/commands.rs src-tauri/src/commands.rs
- D3 · FunctionTooLong: EditHostsInfo.EditHostsInfo src/renderer/components/EditHostsInfo.tsx
- D3 · FunctionTooLong: General.General src/renderer/components/Pref/General.tsx
- D3 · FunctionTooLong: index.List src/renderer/components/List/index.tsx
- D3 · FunctionTooLong: HostsEditor.HostsEditor src/renderer/components/Editor/HostsEditor.tsx
- D3 · FileTooLong: pages/find.tsx src/renderer/pages/find.tsx
- D3 · FunctionTooLong: index.clampPanel src/renderer/pages/index.tsx
- D3 · FunctionTooLong: index.TopBar src/renderer/components/TopBar/index.tsx
- D3 · FunctionTooLong: index.MainPage src/renderer/pages/index.tsx
- D3 · FunctionTooLong: Node.Node src/renderer/components/Tree/Node.tsx
- D3 · FunctionTooLong: index.PreferencePanel src/renderer/components/Pref/index.tsx
- D3 · FunctionTooLong: Advanced.Advanced src/renderer/components/Pref/Advanced.tsx
- D3 · FunctionTooLong: ConfigMenu.ConfigMenu src/renderer/components/TopBar/ConfigMenu.tsx
- D3 · FileTooLong: src/lifecycle.rs src-tauri/src/lifecycle.rs
- D3 · FunctionTooLong: History.Loading src/renderer/components/History.tsx
- D3 · FunctionTooLong: ListItem.ListItem src/renderer/components/List/ListItem.tsx
- D3 · FunctionTooLong: UpdateDialog.UpdateDialog src/renderer/components/UpdateDialog.tsx
- D3 · FunctionTooLong: Transfer.Transfer src/renderer/components/Transfer.tsx
- D3 · TooManyFields: AppConfig src-tauri/src/storage/config.rs
- D3 · TooManyFields: MenuLabels src-tauri/src/i18n.rs
- D3 · FunctionTooLong: History.History src/renderer/components/History.tsx
- D3 · FunctionTooLong: Tree.Tree src/renderer/components/Tree/Tree.tsx
- D4 · Duplicated block (12 lines × 2) src-tauri/src/http_api.rs
- D4 · Duplicated block (9 lines × 2) src-tauri/src/hosts_apply/cmd_runner.rs
- D4 · Duplicated block (8 lines × 2) src-tauri/src/commands.rs
- D4 · Duplicated block (7 lines × 2) src-tauri/src/find.rs
- D4 · Duplicated block (7 lines × 2) src-tauri/src/commands.rs
- D4 · Duplicated block (5 lines × 2) src-tauri/src/find.rs
- D4 · Duplicated block (5 lines × 2) src-tauri/src/storage/tree_format.rs
- D4 · Duplicated block (19 lines × 2) src-tauri/src/hosts_apply/cmd_runner.rs
- D4 · Duplicated block (5 lines × 4) src-tauri/src/find.rs
- D4 · Duplicated block (6 lines × 3) src-tauri/src/lifecycle.rs
- D4 · Duplicated block (9 lines × 2) src-tauri/src/lifecycle.rs
- D4 · Duplicated block (8 lines × 3) src-tauri/src/lifecycle.rs
- D4 · Duplicated block (8 lines × 2) src-tauri/src/import_export.rs
- D4 · Duplicated block (8 lines × 2) src-tauri/src/hosts_apply/cmd_runner.rs
- D4 · Duplicated block (7 lines × 2) src-tauri/src/hosts_apply/elevation.rs
- D4 · Duplicated block (6 lines × 2) src-tauri/src/commands.rs
- D4 · Duplicated block (5 lines × 2) src-tauri/src/migration/archiver.rs
- D4 · Duplicated block (5 lines × 2) src-tauri/src/storage/data_dir_pointer.rs
- D4 · Duplicated block (5 lines × 2) src-tauri/src/commands.rs
- D8 · Coverage not measured — JavaScript/TypeScript suite
- D15 · Hotspot: src/renderer/components/Tree/Tree.tsx src/renderer/components/Tree/Tree.tsx
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
Rebuild cost & value ~ Modeled — €8,800–€44,000
| Cost to rebuild | €8,800–€44,000 |
|---|---|
| Domain complexity | Standard |
| Quality factor | 0.7× (at 51% quality) |
| Size & shape | Medium · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk) |
This codebase represents roughly ~0.2 person-years of build effort (about ~€27,000 to rebuild). Its weakest lens is Readiness at 43% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency matrix
| depends on → | 1 e2e.support.test | 2 src.common.default_configs | 3 src.common.newlines | 4 src.common.normalize | 5 src.common.tree | 6 src.renderer.common.PageWrapper | 7 src.renderer.components.BrowserLink | 8 src.renderer.components.Editor.hosts_cm | 9 src.renderer.components.Editor.hosts_highlight | 10 src.renderer.components.History | 11 src.renderer.components.SideDrawer | 12 src.renderer.components.Tree.Tree | 13 src.renderer.components.Tree.fn | 14 src.renderer.core.agent | 15 src.renderer.core.notify | 16 src.renderer.pages.find | 17 switchhosts.app_menu | 18 switchhosts.hosts_apply.helper_admin | 19 switchhosts.storage.config | 20 switchhosts.storage.paths | 21 e2e.support | 22 src.common | 23 src.renderer.common | 24 src.renderer.components | 25 src.renderer.components.Editor | 26 src.renderer.components.LeftPanel | 27 src.renderer.components.List | 28 src.renderer.components.Pref | 29 src.renderer.components.TopBar | 30 src.renderer.components.Tree.Node | 31 src.renderer.core | 32 src.renderer.pages | 33 switchhosts.hosts_apply.elevation | 34 switchhosts.storage | 35 switchhosts.storage.manifest | 36 src.renderer.components.Tree | 37 src.renderer.utils | 38 switchhosts.commands | 39 switchhosts.http | 40 switchhosts.lifecycle |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 e2e.support.test | ||||||||||||||||||||||||||||||||||||||||
| 2 src.common.default_configs | ||||||||||||||||||||||||||||||||||||||||
| 3 src.common.newlines | ||||||||||||||||||||||||||||||||||||||||
| 4 src.common.normalize | ||||||||||||||||||||||||||||||||||||||||
| 5 src.common.tree | ||||||||||||||||||||||||||||||||||||||||
| 6 src.renderer.common.PageWrapper | ||||||||||||||||||||||||||||||||||||||||
| 7 src.renderer.components.BrowserLink | ||||||||||||||||||||||||||||||||||||||||
| 8 src.renderer.components.Editor.hosts_cm | ||||||||||||||||||||||||||||||||||||||||
| 9 src.renderer.components.Editor.hosts_highlight | ||||||||||||||||||||||||||||||||||||||||
| 10 src.renderer.components.History | ||||||||||||||||||||||||||||||||||||||||
| 11 src.renderer.components.SideDrawer | ||||||||||||||||||||||||||||||||||||||||
| 12 src.renderer.components.Tree.Tree | ||||||||||||||||||||||||||||||||||||||||
| 13 src.renderer.components.Tree.fn | ||||||||||||||||||||||||||||||||||||||||
| 14 src.renderer.core.agent | ||||||||||||||||||||||||||||||||||||||||
| 15 src.renderer.core.notify | ||||||||||||||||||||||||||||||||||||||||
| 16 src.renderer.pages.find | ||||||||||||||||||||||||||||||||||||||||
| 17 switchhosts.app_menu | ||||||||||||||||||||||||||||||||||||||||
| 18 switchhosts.hosts_apply.helper_admin | ||||||||||||||||||||||||||||||||||||||||
| 19 switchhosts.storage.config | ||||||||||||||||||||||||||||||||||||||||
| 20 switchhosts.storage.paths | ||||||||||||||||||||||||||||||||||||||||
| 21 e2e.support | 2 | |||||||||||||||||||||||||||||||||||||||
| 22 src.common | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 23 src.renderer.common | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 src.renderer.components | 8 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 25 src.renderer.components.Editor | 2 | 2 | ||||||||||||||||||||||||||||||||||||||
| 26 src.renderer.components.LeftPanel | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 src.renderer.components.List | 1 | |||||||||||||||||||||||||||||||||||||||
| 28 src.renderer.components.Pref | 4 | 3 | ||||||||||||||||||||||||||||||||||||||
| 29 src.renderer.components.TopBar | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 30 src.renderer.components.Tree.Node | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 src.renderer.core | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 32 src.renderer.pages | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 switchhosts.hosts_apply.elevation | 1 | |||||||||||||||||||||||||||||||||||||||
| 34 switchhosts.storage | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 35 switchhosts.storage.manifest | 1 | |||||||||||||||||||||||||||||||||||||||
| 36 src.renderer.components.Tree | 1 | 2 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 37 src.renderer.utils | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 38 switchhosts.commands | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 39 switchhosts.http | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 40 switchhosts.lifecycle | 1 |
21→1 e2e.support depends on e2e.support.test✕
- Type pairs
- 2 distinct (type in e2e.support → type in e2e.support.test) references.
- Which types
e2e.support.test→e2e.support.test.MockCalle2e.support.test→e2e.support.test.MockState
- Direction
- e2e.support uses e2e.support.test. Changing e2e.support.test can break e2e.support, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→3 src.common depends on src.common.newlines✕
- Type pairs
- 1 distinct (type in src.common → type in src.common.newlines) reference.
- Which types
src.common.newlines→src.common.newlines.LineEnding
- Direction
- src.common uses src.common.newlines. Changing src.common.newlines can break src.common, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→4 src.common depends on src.common.normalize✕
- Type pairs
- 2 distinct (type in src.common → type in src.common.normalize) references.
- Which types
src.common.normalize→src.common.normalize.IHostsLineObjsrc.common.normalize→src.common.normalize.INormalizeOptions
- Direction
- src.common uses src.common.normalize. Changing src.common.normalize can break src.common, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→6 src.renderer.common depends on src.renderer.common.PageWrapper✕
- Type pairs
- 1 distinct (type in src.renderer.common → type in src.renderer.common.PageWrapper) reference.
- Which types
src.renderer.common.PageWrapper→src.renderer.common.PageWrapper.IProps
- Direction
- src.renderer.common uses src.renderer.common.PageWrapper. Changing src.renderer.common.PageWrapper can break src.renderer.common, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→7 src.renderer.components depends on src.renderer.components.BrowserLink✕
- Type pairs
- 8 distinct (type in src.renderer.components → type in src.renderer.components.BrowserLink) references.
- Which types
src.renderer.components.BrowserLink→src.renderer.components.BrowserLink.Propssrc.renderer.components.ConfirmModal→src.renderer.components.BrowserLink.Propssrc.renderer.components.HostsViewer→src.renderer.components.BrowserLink.Propssrc.renderer.components.ItemIcon→src.renderer.components.BrowserLink.Propssrc.renderer.components.Lang→src.renderer.components.BrowserLink.Propssrc.renderer.components.StatusBar→src.renderer.components.BrowserLink.Propssrc.renderer.components.SwitchButton→src.renderer.components.BrowserLink.Propssrc.renderer.components.Transfer→src.renderer.components.BrowserLink.Props
- Direction
- src.renderer.components uses src.renderer.components.BrowserLink. Changing src.renderer.components.BrowserLink can break src.renderer.components, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→10 src.renderer.components depends on src.renderer.components.History✕
- Type pairs
- 1 distinct (type in src.renderer.components → type in src.renderer.components.History) reference.
- Which types
src.renderer.components.History→src.renderer.components.History.IHistoryProps
- Direction
- src.renderer.components uses src.renderer.components.History. Changing src.renderer.components.History can break src.renderer.components, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→11 src.renderer.components depends on src.renderer.components.SideDrawer✕
- Type pairs
- 1 distinct (type in src.renderer.components → type in src.renderer.components.SideDrawer) reference.
- Which types
src.renderer.components.SideDrawer→src.renderer.components.SideDrawer.SideDrawerProps
- Direction
- src.renderer.components uses src.renderer.components.SideDrawer. Changing src.renderer.components.SideDrawer can break src.renderer.components, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→8 src.renderer.components.Editor depends on src.renderer.components.Editor.hosts_cm✕
- Type pairs
- 2 distinct (type in src.renderer.components.Editor → type in src.renderer.components.Editor.hosts_cm) references.
- Which types
src.renderer.components.Editor.hosts_cm→src.renderer.components.Editor.hosts_cm.BuildExtensionsOptionssrc.renderer.components.Editor.hosts_cm→src.renderer.components.Editor.hosts_cm.BuiltExtensions
- Direction
- src.renderer.components.Editor uses src.renderer.components.Editor.hosts_cm. Changing src.renderer.components.Editor.hosts_cm can break src.renderer.components.Editor, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→9 src.renderer.components.Editor depends on src.renderer.components.Editor.hosts_highlight✕
- Type pairs
- 2 distinct (type in src.renderer.components.Editor → type in src.renderer.components.Editor.hosts_highlight) references.
- Which types
src.renderer.components.Editor.hosts_highlight→src.renderer.components.Editor.hosts_highlight.CommentToggleResultsrc.renderer.components.Editor.hosts_highlight→src.renderer.components.Editor.hosts_highlight.ToggleLineResult
- Direction
- src.renderer.components.Editor uses src.renderer.components.Editor.hosts_highlight. Changing src.renderer.components.Editor.hosts_highlight can break src.renderer.components.Editor, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→7 src.renderer.components.LeftPanel depends on src.renderer.components.BrowserLink✕
- Type pairs
- 1 distinct (type in src.renderer.components.LeftPanel → type in src.renderer.components.BrowserLink) reference.
- Which types
src.renderer.components.LeftPanel.TrashcanItem→src.renderer.components.BrowserLink.Props
- Direction
- src.renderer.components.LeftPanel uses src.renderer.components.BrowserLink. Changing src.renderer.components.BrowserLink can break src.renderer.components.LeftPanel, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→7 src.renderer.components.List depends on src.renderer.components.BrowserLink✕
- Type pairs
- 1 distinct (type in src.renderer.components.List → type in src.renderer.components.BrowserLink) reference.
- Which types
src.renderer.components.List.ListItem→src.renderer.components.BrowserLink.Props
- Direction
- src.renderer.components.List uses src.renderer.components.BrowserLink. Changing src.renderer.components.BrowserLink can break src.renderer.components.List, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→6 src.renderer.components.Pref depends on src.renderer.common.PageWrapper✕
- Type pairs
- 4 distinct (type in src.renderer.components.Pref → type in src.renderer.common.PageWrapper) references.
- Which types
src.renderer.components.Pref.Advanced→src.renderer.common.PageWrapper.IPropssrc.renderer.components.Pref.Commands→src.renderer.common.PageWrapper.IPropssrc.renderer.components.Pref.General→src.renderer.common.PageWrapper.IPropssrc.renderer.components.Pref.Proxy→src.renderer.common.PageWrapper.IProps
- Direction
- src.renderer.components.Pref uses src.renderer.common.PageWrapper. Changing src.renderer.common.PageWrapper can break src.renderer.components.Pref, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→7 src.renderer.components.Pref depends on src.renderer.components.BrowserLink✕
- Type pairs
- 3 distinct (type in src.renderer.components.Pref → type in src.renderer.components.BrowserLink) references.
- Which types
src.renderer.components.Pref.ChangeDataDirModal→src.renderer.components.BrowserLink.Propssrc.renderer.components.Pref.CommandsHistory→src.renderer.components.BrowserLink.Propssrc.renderer.components.Pref.DataDirRecoveryModal→src.renderer.components.BrowserLink.Props
- Direction
- src.renderer.components.Pref uses src.renderer.components.BrowserLink. Changing src.renderer.components.BrowserLink can break src.renderer.components.Pref, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→6 src.renderer.components.TopBar depends on src.renderer.common.PageWrapper✕
- Type pairs
- 1 distinct (type in src.renderer.components.TopBar → type in src.renderer.common.PageWrapper) reference.
- Which types
src.renderer.components.TopBar.ConfigMenu→src.renderer.common.PageWrapper.IProps
- Direction
- src.renderer.components.TopBar uses src.renderer.common.PageWrapper. Changing src.renderer.common.PageWrapper can break src.renderer.components.TopBar, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→7 src.renderer.components.TopBar depends on src.renderer.components.BrowserLink✕
- Type pairs
- 1 distinct (type in src.renderer.components.TopBar → type in src.renderer.components.BrowserLink) reference.
- Which types
src.renderer.components.TopBar.ImportFromUrl→src.renderer.components.BrowserLink.Props
- Direction
- src.renderer.components.TopBar uses src.renderer.components.BrowserLink. Changing src.renderer.components.BrowserLink can break src.renderer.components.TopBar, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→5 src.renderer.components.Tree.Node depends on src.common.tree✕
- Type pairs
- 1 distinct (type in src.renderer.components.Tree.Node → type in src.common.tree) reference.
- Which types
src.renderer.components.Tree.Node.INodeProps→src.common.tree.ITreeNodeData
- Direction
- src.renderer.components.Tree.Node uses src.common.tree. Changing src.common.tree can break src.renderer.components.Tree.Node, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→14 src.renderer.core depends on src.renderer.core.agent✕
- Type pairs
- 1 distinct (type in src.renderer.core → type in src.renderer.core.agent) reference.
- Which types
src.renderer.core.agent→src.renderer.core.agent.IAgent
- Direction
- src.renderer.core uses src.renderer.core.agent. Changing src.renderer.core.agent can break src.renderer.core, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→15 src.renderer.core depends on src.renderer.core.notify✕
- Type pairs
- 1 distinct (type in src.renderer.core → type in src.renderer.core.notify) reference.
- Which types
src.renderer.core.notify→src.renderer.core.notify.AppNotificationOptions
- Direction
- src.renderer.core uses src.renderer.core.notify. Changing src.renderer.core.notify can break src.renderer.core, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→16 src.renderer.pages depends on src.renderer.pages.find✕
- Type pairs
- 1 distinct (type in src.renderer.pages → type in src.renderer.pages.find) reference.
- Which types
src.renderer.pages.find→src.renderer.pages.find.ResultColumnResizeIndex
- Direction
- src.renderer.pages uses src.renderer.pages.find. Changing src.renderer.pages.find can break src.renderer.pages, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→18 switchhosts.hosts_apply.elevation depends on switchhosts.hosts_apply.helper_admin✕
- Type pairs
- 1 distinct (type in switchhosts.hosts_apply.elevation → type in switchhosts.hosts_apply.helper_admin) reference.
- Which types
switchhosts.hosts_apply.elevation.elevation$module→switchhosts.hosts_apply.helper_admin.HelperStatus
- Direction
- switchhosts.hosts_apply.elevation uses switchhosts.hosts_apply.helper_admin. Changing switchhosts.hosts_apply.helper_admin can break switchhosts.hosts_apply.elevation, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→19 switchhosts.storage depends on switchhosts.storage.config✕
- Type pairs
- 1 distinct (type in switchhosts.storage → type in switchhosts.storage.config) reference.
- Which types
switchhosts.storage.AppState→switchhosts.storage.config.AppConfig
- Direction
- switchhosts.storage uses switchhosts.storage.config. Changing switchhosts.storage.config can break switchhosts.storage, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→20 switchhosts.storage depends on switchhosts.storage.paths✕
- Type pairs
- 2 distinct (type in switchhosts.storage → type in switchhosts.storage.paths) references.
- Which types
switchhosts.storage.AppState→switchhosts.storage.paths.DataDirRecoveryswitchhosts.storage.AppState→switchhosts.storage.paths.V5Paths
- Direction
- switchhosts.storage uses switchhosts.storage.paths. Changing switchhosts.storage.paths can break switchhosts.storage, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→20 switchhosts.storage.manifest depends on switchhosts.storage.paths✕
- Type pairs
- 1 distinct (type in switchhosts.storage.manifest → type in switchhosts.storage.paths) reference.
- Which types
switchhosts.storage.manifest.Manifest→switchhosts.storage.paths.V5Paths
- Direction
- switchhosts.storage.manifest uses switchhosts.storage.paths. Changing switchhosts.storage.paths can break switchhosts.storage.manifest, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→5 src.renderer.components.Tree depends on src.common.tree✕
- Type pairs
- 1 distinct (type in src.renderer.components.Tree → type in src.common.tree) reference.
- Which types
src.renderer.components.Tree.fn→src.common.tree.ITreeNodeData
- Direction
- src.renderer.components.Tree uses src.common.tree. Changing src.common.tree can break src.renderer.components.Tree, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→12 src.renderer.components.Tree depends on src.renderer.components.Tree.Tree✕
- Type pairs
- 2 distinct (type in src.renderer.components.Tree → type in src.renderer.components.Tree.Tree) references.
- Which types
src.renderer.components.Tree.Tree→src.renderer.components.Tree.Tree.ITreePropssrc.renderer.components.Tree.fn→src.renderer.components.Tree.Tree.DropWhereType
- Direction
- src.renderer.components.Tree uses src.renderer.components.Tree.Tree. Changing src.renderer.components.Tree.Tree can break src.renderer.components.Tree, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→13 src.renderer.components.Tree depends on src.renderer.components.Tree.fn✕
- Type pairs
- 1 distinct (type in src.renderer.components.Tree → type in src.renderer.components.Tree.fn) reference.
- Which types
src.renderer.components.Tree.fn→src.renderer.components.Tree.fn.IObj
- Direction
- src.renderer.components.Tree uses src.renderer.components.Tree.fn. Changing src.renderer.components.Tree.fn can break src.renderer.components.Tree, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→30 src.renderer.components.Tree depends on src.renderer.components.Tree.Node✕
- Type pairs
- 1 distinct (type in src.renderer.components.Tree → type in src.renderer.components.Tree.Node) reference.
- Which types
src.renderer.components.Tree.Node→src.renderer.components.Tree.Node.INodeProps
- Direction
- src.renderer.components.Tree uses src.renderer.components.Tree.Node. Changing src.renderer.components.Tree.Node can break src.renderer.components.Tree, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→2 src.renderer.utils depends on src.common.default_configs✕
- Type pairs
- 1 distinct (type in src.renderer.utils → type in src.common.default_configs) reference.
- Which types
src.renderer.utils.theme→src.common.default_configs.ThemeType
- Direction
- src.renderer.utils uses src.common.default_configs. Changing src.common.default_configs can break src.renderer.utils, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→24 src.renderer.utils depends on src.renderer.components✕
- Type pairs
- 1 distinct (type in src.renderer.utils → type in src.renderer.components) reference.
- Which types
src.renderer.utils.formatInterval→src.renderer.components.Lang
- Direction
- src.renderer.utils uses src.renderer.components. Changing src.renderer.components can break src.renderer.utils, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→34 switchhosts.commands depends on switchhosts.storage✕
- Type pairs
- 1 distinct (type in switchhosts.commands → type in switchhosts.storage) reference.
- Which types
switchhosts.commands.commands$module→switchhosts.storage.AppState
- Direction
- switchhosts.commands uses switchhosts.storage. Changing switchhosts.storage can break switchhosts.commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→35 switchhosts.commands depends on switchhosts.storage.manifest✕
- Type pairs
- 1 distinct (type in switchhosts.commands → type in switchhosts.storage.manifest) reference.
- Which types
switchhosts.commands.commands$module→switchhosts.storage.manifest.Manifest
- Direction
- switchhosts.commands uses switchhosts.storage.manifest. Changing switchhosts.storage.manifest can break switchhosts.commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→19 switchhosts.http depends on switchhosts.storage.config✕
- Type pairs
- 1 distinct (type in switchhosts.http → type in switchhosts.storage.config) reference.
- Which types
switchhosts.http.http$module→switchhosts.storage.config.AppConfig
- Direction
- switchhosts.http uses switchhosts.storage.config. Changing switchhosts.storage.config can break switchhosts.http, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→34 switchhosts.http depends on switchhosts.storage✕
- Type pairs
- 1 distinct (type in switchhosts.http → type in switchhosts.storage) reference.
- Which types
switchhosts.http.http$module→switchhosts.storage.AppState
- Direction
- switchhosts.http uses switchhosts.storage. Changing switchhosts.storage can break switchhosts.http, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→34 switchhosts.lifecycle depends on switchhosts.storage✕
- Type pairs
- 1 distinct (type in switchhosts.lifecycle → type in switchhosts.storage) reference.
- Which types
switchhosts.lifecycle.lifecycle$module→switchhosts.storage.AppState
- Direction
- switchhosts.lifecycle uses switchhosts.storage. Changing switchhosts.storage can break switchhosts.lifecycle, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Accessibility
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2021 — Injection | 35 | High / Critical |
| A06:2021 — Vulnerable & Outdated Components | 15 | Medium |
Roadmap
First, integrate automated security scanning into the CI pipeline to block regressions before they land. Second, document recovery objectives and validate restore procedures to ensure true disaster readiness. Third, expand test coverage to include currently unreached production modules, maintain a changelog to track release changes, and update outdated dependencies to reduce security and upgrade debt.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing. | +8.2 pts | Medium | Security & performance tooling |
| Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery). | +8.2 pts | Medium | DR & Backup |
| Add tests that import the unreached modules (directly or through their public entry). | +8.2 pts | Medium | Test Coverage |
| Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release. | +8.0 pts | Medium | Release Hygiene |
| Bump outdated dependencies to current versions to limit upgrade debt. | +7.0 pts | Medium | Dependency Freshness |
| Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label. | +6.0 pts | Medium | Forms & labels |
| Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. | +6.0 pts | Medium | Keyboard semantics |
| Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI. | +6.0 pts | Medium | A11y enforcement |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Dependency Vulnerabilities: Medium advisory (unmaintained): REDACTED |
| src/renderer/components/List/index.tsx | 5.9 | Mixed | Cyclomatic Complexity: index.List (cyclomatic 44) |
| src/renderer/components/List/ListItem.tsx | 5.9 | Mixed | Cyclomatic Complexity: ListItem.ListItem (cyclomatic 26) |
| src/common/hostsFn.ts | 6.5 | Mixed | Change Coupling: Boundary-crossing change coupling: hostsFn.ts ↔ index.tsx |
| src-tauri/src/commands.rs | 7.0 | Mixed | Cognitive Complexity: switchhosts::commands::apply_side_effects (cognitive 22) |
| src-tauri/src/storage/tree_format.rs | 7.1 | Mixed | Cyclomatic Complexity: switchhosts::storage::tree_format::legacy_node_to_v5 (cyclomatic 31) |
| src/renderer/pages/find.tsx | 7.2 | Mixed | Cyclomatic Complexity: find.FindPage (cyclomatic 99) |
| src/renderer/pages/index.tsx | 7.2 | Mixed | Cyclomatic Complexity: index.MainPage (cyclomatic 22) |
| src-tauri/src/lifecycle.rs | 7.2 | Mixed | God Classes: FileTooLong: src/lifecycle.rs |
| src/renderer/components/Tree/Node.tsx | 7.4 | Mixed | Cyclomatic Complexity: Node.Node (cyclomatic 54) |
| src/renderer/components/RightPanel/index.tsx | 7.4 | Mixed | Cyclomatic Complexity: index.RightPanel (cyclomatic 52) |
| src-tauri/src/lib.rs | 7.4 | Mixed | Cyclomatic Complexity: switchhosts::run (cyclomatic 43) |
| src/renderer/components/EditHostsInfo.tsx | 7.4 | Mixed | Cyclomatic Complexity: EditHostsInfo.EditHostsInfo (cyclomatic 36) |
| src/renderer/components/Pref/General.tsx | 7.4 | Mixed | Cyclomatic Complexity: General.General (cyclomatic 33) |
| src/renderer/components/Editor/HostsEditor.tsx | 7.4 | Mixed | Cyclomatic Complexity: HostsEditor.HostsEditor (cyclomatic 32) |
| src/renderer/components/Pref/index.tsx | 7.4 | Mixed | Cyclomatic Complexity: index.PreferencePanel (cyclomatic 26) |
| src/renderer/components/UpdateDialog.tsx | 7.4 | Mixed | Cyclomatic Complexity: UpdateDialog.UpdateDialog (cyclomatic 20) |
| src/renderer/components/Tree/Tree.tsx | 7.4 | Mixed | Cyclomatic Complexity: Tree.Tree (cyclomatic 19) |
How the grades work
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.
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.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 45 of 49 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 49 dimensions across the health lenses
- 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, 245 of 259 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D10 Test Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 128 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 2 test source file(s) (.rs) 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.
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT SCORED: this repository's production source includes .rs, and the built-in reliability runner cannot re-run the .rs test suite(s) — so reliability was not measured for the repository as a whole. The JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in the repository root (84 tests)): measured (0 flaky) suite(s) did re-run, and came back with 0 flaky across 1 measured tier(s) — but that is a figure for one half of the product, and we do not publish a partial one as if it were complete. This is OUR limitation, not a defect in the repo — test reliability is excluded from the score rather than counted.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 24 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, which could not be reached on this run, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (48 contributor(s) across 1802 commit(s) sampled, automation and bot accounts excluded). One of them holds 95% of the history; the other 47 hold 0.1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `src/renderer/components/Pref/languageOptions.ts` 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.
- AX3 Project dependency cycles — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which project references which. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj, Gradle and Maven builds only, and this repository commits none — so there was no graph to read, and re-running the same commit reads the same nothing. Its modules are declared as: npm/pnpm/yarn packages and workspaces (package.json, pnpm-workspace.yaml, lerna.json); Cargo crates and workspaces (Cargo.toml). A reader for that graph is the collector this check is missing. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
- AX4 Dependency direction — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the direction each project reference points. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj, Gradle and Maven builds only, and this repository commits none — so there was no graph to read, and re-running the same commit reads the same nothing. Its modules are declared as: npm/pnpm/yarn packages and workspaces (package.json, pnpm-workspace.yaml, lerna.json); Cargo crates and workspaces (Cargo.toml). A reader for that graph is the collector this check is missing. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX8 Test isolation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which projects are test projects, and what they reference. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj, Gradle and Maven builds only, and this repository commits none — so there was no graph to read, and re-running the same commit reads the same nothing. Its modules are declared as: npm/pnpm/yarn packages and workspaces (package.json, pnpm-workspace.yaml, lerna.json); Cargo crates and workspaces (Cargo.toml). A reader for that graph is the collector this check is missing. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
- C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
- C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
- ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 11 further occurrence(s) are not listed individually; the score already reflects all 51.
- S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
- X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X32 Type resolved by simple name across every loaded assembly — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- 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.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- 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 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- 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.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
17 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was find.FindPage at 99. A further 1 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 switchhosts::i18n::normalize_locale at 16 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: src-tauri/src/i18n.rs (switchhosts::i18n::normalize_locale at 16). 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.
What to do
- Resolve the 3 switchhosts finding(s) in Cyclomatic Complexity — start with tree_format.rs (2), lib.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 find.FindPage (cyclomatic 99) finding(s) in Cyclomatic Complexity — start with find.tsx. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Node.Node (cyclomatic 54) finding(s) in Cyclomatic Complexity — start with Node.tsx. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
25 method(s) exceeded the cognitive complexity threshold of 15; the worst was find.FindPage at 101.
What to do
- Resolve the 8 switchhosts finding(s) in Cognitive Complexity — start with tree_format.rs (2), commands.rs (2), lib.rs. — One of this dimension's main actionable groups (8 warning-level).
- Resolve the 1 find.FindPage (cognitive 101) finding(s) in Cognitive Complexity — start with find.tsx. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 index.RightPanel (cognitive 61) finding(s) in Cognitive Complexity — start with index.tsx. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
26 god class(es) detected.
What to do
- Resolve the 20 FunctionTooLong finding(s) in God Classes — start with index.tsx (6), History.tsx (2), find.tsx. — One of this dimension's main actionable groups (20 warning-level).
- Resolve the 3 FileTooLong finding(s) in God Classes — start with commands.rs, find.tsx, lifecycle.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 TooManyFields finding(s) in God Classes — start with config.rs, i18n.rs. — One of this dimension's main actionable groups (2 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
19 duplicated block group(s) detected. Measured on part of this repository only: .tsx, .ts (45% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.
What to do
- Resolve the 5 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with find.rs, tree_format.rs, archiver.rs. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 3 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with commands.rs, import_export.rs, cmd_runner.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with find.rs, commands.rs, elevation.rs. — One of this dimension's main actionable groups (3 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
295 test methods: 227 unit, 24 integration, 0 BDD, 44 e2e. The JavaScript/TypeScript suite contributes 128 `it`/`test` case(s) across 22 test file(s) declaring at least one; its tier split is read from package names and paths only. The Rust suite contributes 167 `#[test]` function(s) across 21 file(s) declaring at least one; its unit/integration split is Cargo's own — 1 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
What to do
- Improve Test Distribution — currently 8.1/10. — 295 test methods: 227 unit, 24 integration, 0 BDD, 44 e2e. The JavaScript/TypeScript suite contributes 128 `it`/`test` case(s) across 22 test file(s) declaring at least one; its tier split is read from package names and paths only. The Rust suite contributes 167 `#[test]` function(s) across 21 file(s) declaring at least one; its unit/integration split is Cargo's own — 1 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
D10 · Test Quality
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 128 tests. Measured on the JavaScript/TypeScript suite only — at least 2 test source file(s) (.rs) went unread, so its test quality is unmeasured and is not in these counts.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
Top hotspots: src/renderer/components/Tree/Tree.tsx (2×19=38)
What to do
- Resolve the 1 Hotspot finding(s) in Churn × Complexity Hotspots — start with Tree.tsx. — One of this dimension's main actionable groups (1 warning-level).
D17 · Explicit Debt
0 deducted task-comment markers across 24204 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The root README (Warp, the intelligent terminal for developers) gives a strong overview and links to Polish/Chinese translations, a screenshot, features list, install with both manual download/build and Chocolatey commands, backup location, and an alfred/README that documents its own directory. It is clear, complete, and well-structured.
What to do
- Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
0 API inconsistencies across 5 exposed types.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
35 finding(s): 0 critical, 35 high, 0 medium, 0 low. 16 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 1 file(s) — `src/renderer/components/Pref/languageOptions.ts` (line 13) — 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 1 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.
What to do
- Resolve the 9 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9). — One of this dimension's main actionable groups (9 issue-level).
- Resolve the 9 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9). — One of this dimension's main actionable groups (9 issue-level).
- No action in Static Analysis (SAST) — all 16 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 (16 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
15 finding(s): 0 critical, 0 high, 15 medium, 0 low.
What to do
- Resolve the 7 Medium advisory (unmaintained) finding(s) in Dependency Vulnerabilities — start with REDACTED (7). — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 4 Medium advisory (unsound) finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 4 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 79 of the 132 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
Strongest change-coupling: EditHostsInfo.tsx↔Trashcan.tsx 64%; Trashcan.tsx↔ListItem.tsx 64%; Trashcan.tsx↔index.tsx 64%
What to do
- Resolve the 1 Boundary-crossing change coupling finding(s) in Change Coupling — start with hostsFn.ts. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 2 Change coupling finding(s) in Change Coupling — start with ListItem.tsx, index.tsx. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with Trashcan.tsx. — One of this dimension's main actionable groups (1 warning-level).
D36 · Supply-chain Provenance & Signing
1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 7 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, 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.
Frontend & cross-cutting dimensions
AC1 · Text alternatives
AC2 · Forms & labels
- This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name 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. (×4) — src/renderer/components/Pref/Commands.tsx:32, src/renderer/components/TopBar/ImportFromUrl.tsx:88, src/renderer/pages/find.tsx:983, …
- This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — 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. (×2) — src/renderer/components/Pref/General.tsx:122, src/renderer/components/Pref/Proxy.tsx:48
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.
AC3 · Page structure
- No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="root">, so there is no content here to wrap — render the <main> from the component mounted into it. — src/renderer/index.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.
AC4 · Keyboard semantics
- A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler. (×5) — src/renderer/components/LeftPanel/SystemHostsItem.tsx:23, src/renderer/components/List/ListItem.tsx:92, src/renderer/components/List/ListItem.tsx:165, …
What to do
- Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness
AC6 · Visual & motion safety
AC7 · A11y enforcement
- No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 48 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX9 · CQS / query purity
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 1 of 1 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add cargo-audit / cargo-deny (or clippy) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 44430 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
P5 · DR & Backup
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- src/renderer/components/Transfer.tsx:95 · src/renderer/components/Transfer.tsx:139 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/renderer/components/Transfer.tsx:95
- src/renderer/components/Pref/DataDirRecoveryModal.tsx:36 · src/renderer/components/Pref/DataDirRecoveryModal.tsx:55 — the two spans are one implementation copied and then locally edited — 58 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/renderer/components/Pref/DataDirRecoveryModal.tsx:36
- src/common/tree.ts:21 · src/renderer/components/Tree/fn.ts:11 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/common/tree.ts:21
- src/renderer/components/LeftPanel/Trashcan.tsx:96 · src/renderer/components/LeftPanel/TrashcanItem.tsx:103 · src/renderer/components/RightPanel/index.tsx:316 — the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/renderer/components/LeftPanel/Trashcan.tsx:96
- src/renderer/components/LeftPanel/TrashcanItem.tsx:33 · src/renderer/components/LeftPanel/TrashcanItem.tsx:52 · src/renderer/components/RightPanel/index.tsx:120 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/renderer/components/LeftPanel/TrashcanItem.tsx:33
- src/renderer/components/SetWriteMode.tsx:71 · src/renderer/components/TopBar/ImportFromUrl.tsx:98 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/renderer/components/SetWriteMode.tsx:71
- src/renderer/components/TopBar/index.tsx:91 · src/renderer/components/TopBar/index.tsx:178 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/renderer/components/TopBar/index.tsx:91
- src/renderer/pages/find.tsx:771 · src/renderer/pages/find.tsx:832 — all 2 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/renderer/pages/find.tsx:771
- src/renderer/pages/index.tsx:77 · src/renderer/pages/tray.tsx:22 — the two spans are one implementation copied and then locally edited — 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/renderer/pages/index.tsx:77
- src/renderer/components/Pref/Proxy.tsx:58 · src/renderer/components/Pref/Proxy.tsx:74 — all 2 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/renderer/components/Pref/Proxy.tsx:58
- src/renderer/components/EditHostsInfo.tsx:156 · src/renderer/components/List/ListItem.tsx:115 — the two spans are one implementation copied and then locally edited — 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/renderer/components/EditHostsInfo.tsx:156
- src/renderer/components/LeftPanel/Trashcan.tsx:51 · src/renderer/components/LeftPanel/TrashcanItem.tsx:40 · src/renderer/components/LeftPanel/TrashcanItem.tsx:59 · src/renderer/components/RightPanel/index.tsx:107 · +1 more site(s) not listed — the 5 copies are spread across 3 files, 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/renderer/components/LeftPanel/Trashcan.tsx:51
- src/renderer/components/Pref/General.tsx:194 · src/renderer/components/Pref/General.tsx:206 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/renderer/components/Pref/General.tsx:194
- src/renderer/components/RightPanel/index.tsx:94 · src/renderer/components/RightPanel/index.tsx:115 — all 2 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/renderer/components/RightPanel/index.tsx:94
- src/renderer/components/Pref/General.tsx:175 · src/renderer/components/Pref/General.tsx:219 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/renderer/components/Pref/General.tsx:175
- src/renderer/components/Pref/Advanced.tsx:127 · src/renderer/components/Pref/Advanced.tsx:137 · src/renderer/components/Pref/Advanced.tsx:147 — 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. — src/renderer/components/Pref/Advanced.tsx:127
- src/renderer/components/Editor/HostsEditor.tsx:91 · src/renderer/components/Editor/HostsEditor.tsx:109 — all 2 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/renderer/components/Editor/HostsEditor.tsx:91
- src/renderer/pages/find.tsx:876 · src/renderer/pages/find.tsx:899 — all 2 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/renderer/pages/find.tsx:876
- src/renderer/components/Editor/HostsEditor.tsx:304 · src/renderer/components/HostsViewer.tsx:55 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/renderer/components/Editor/HostsEditor.tsx:304
- src/renderer/components/Pref/Advanced.tsx:58 · src/renderer/pages/find.tsx:245 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/renderer/components/Pref/Advanced.tsx:58
- src/renderer/components/Pref/index.tsx:203 · src/renderer/components/Pref/index.tsx:210 · src/renderer/components/Pref/index.tsx:217 · src/renderer/components/Pref/index.tsx:224 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — src/renderer/components/Pref/index.tsx:203
- src/renderer/components/Pref/Advanced.tsx:190 · src/renderer/components/Pref/Advanced.tsx:200 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/renderer/components/Pref/Advanced.tsx:190
- src/renderer/components/Pref/Advanced.tsx:201 · src/renderer/components/Pref/Advanced.tsx:207 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/renderer/components/Pref/Advanced.tsx:201
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.
R2 · Cyclomatic Complexity
- invoke has cyclomatic complexity 63 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — e2e/support/tauri-mock.js:326
- getFriendlyUpdateErrorMessage has cyclomatic complexity 34 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/core/notify.ts:37
- Node has cyclomatic complexity 31 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/Tree/Node.tsx:52
- RightPanel has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/RightPanel/index.tsx:24
- General has cyclomatic complexity 20 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/Pref/General.tsx:28
- FindPage has cyclomatic complexity 17 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/pages/find.tsx:243
- onDragOver has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/Tree/Node.tsx:119
- sortContentGroup has cyclomatic complexity 15 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/sort-lang.mjs:87
- UpdateDialog has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/UpdateDialog.tsx:19
- replaceOne has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/pages/find.tsx:708
- replaceAll has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/pages/find.tsx:785
- TopBar has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/TopBar/index.tsx:36
- isEqual has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/Tree/Node.tsx:293
- (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/common/hostsFn.ts:77
- applyChangedRemoteHostsToSystem has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/components/List/index.tsx:127
- findObjectRange has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/sort-lang.mjs:159
- MainPage has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/renderer/pages/index.tsx:35
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
What to do
- Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage
- 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. (×40) — src/renderer/components/EditHostsInfo.tsx, src/renderer/components/RightPanel/index.tsx, src/renderer/components/Editor/HostsEditor.tsx, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
- 34 outdated package(s); JS/npm CVEs scored in D30
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
R7 · Dead Code
- Unreachable from the 17 application, 11 tooling and 25 test entry point(s) detected in this repo. Gate removals on `npm run typecheck` — an undetected custom entry would make these reachable.
- no import path from any entry point (17 application, 11 tooling, 25 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×4) — src/renderer/components/LeftPanel/SystemHostsItem.tsx, src/renderer/components/Lang.tsx, src/renderer/utils/css-var.ts, …
- Nothing imports this binding — it is safe to review for removal. (×6) — src/common/constants.ts:9, src/common/hostsFn.ts:26, src/common/hostsFn.ts:53, …
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
- Declared in the root package.json 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.
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
WCAG coverage — what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC1 · Text alternatives | 1.1.1, 1.2.2, 1.2.5 | Partial signal |
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC4 · Keyboard semantics | 2.1.1, 2.4.3 | Partial signal |
| AC5 · ARIA correctness | 4.1.2 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 86% | Strong | Solid. |
| Architecture | 98% | Exemplary | Strongest area. |
| Maturity | 59% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 43% | Weak — gated by P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 67% | Adequate — gated by D29, D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Accessibility | 48% | Weak — gated by AC4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
Not evidenced — 3 control(s) we could not find positive evidence for
- 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.
Not included — 75 check(s) not relevant to this codebase
- AX1 Captive dependencies — no DI registrations detected
- AX2 Stateful singletons — no singleton implementations detected
- AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository commits no project file of a kind this check models. This is a gap in the analyzer, not a finding about this repository
- AX4 Dependency direction — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository commits no project file of a kind this check models. 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 — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository commits no project file of a kind this check models. This is a gap in the analyzer, not a finding about this repository
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D11 Test Reliability — Test reliability not scored — polyglot repository, one half has no runner
- D12 Dependency Hygiene — Not scored — 24 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, which could not be reached on this run, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — Not scored — this repository's 632 shipped crate(s) were read from its REDACTED, but crates.io could not be asked for the licence of 59 of them (HTTP 429 Unknown Error), and a licence verdict over part of a dependency graph is not a licence verdict. Nothing is asserted about this repository's licensing in either direction.
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D23 Boundary Type-Coupling — Production source is present (.mts, .rs, .ts, .tsx) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
- D27 Navigability — symbol resolution incomplete — too few calls resolved to assess navigability
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — 1 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.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
- D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a CS/VB/GO/SCALA/SWIFT/DART class graph, and this repository's production source is .mts, .rs, .ts, .tsx, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage NOT MEASURED: 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. 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. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
- DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 3 aggregate root(s) (types guarding their own state behind command methods — this language has no AggregateRoot base to inherit); 4 value object(s)
- ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
- ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- 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'.
- P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
- P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
- P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
- PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
- PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- 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 — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X28 Index access outside its own emptiness guard — 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
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 41 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Click handler on a non-interactive <div> src/renderer/components/LeftPanel/SystemHostsItem.tsx:23
- Click handler on a non-interactive <div> src/renderer/components/List/ListItem.tsx:92
- Click handler on a non-interactive <div> src/renderer/components/List/ListItem.tsx:165
- Click handler on a non-interactive <div> src/renderer/components/Tree/Node.tsx:201
- Click handler on a non-interactive <div> src/renderer/components/Tree/Node.tsx:253
- REDACTED
- Boundary-crossing change coupling: hostsFn.ts ↔ index.tsx src/common/hostsFn.ts
Serious — 203 finding(s)
- No test reaches this file src/renderer/components/EditHostsInfo.tsx
- No test reaches this file src/renderer/components/RightPanel/index.tsx
- No test reaches this file src/renderer/components/Editor/HostsEditor.tsx
- No test reaches this file src/renderer/components/Pref/General.tsx
- No test reaches this file src/renderer/pages/index.tsx
- No test reaches this file src/renderer/components/History.tsx
- No test reaches this file src/renderer/components/Pref/Advanced.tsx
- No test reaches this file src/renderer/components/TopBar/ConfigMenu.tsx
- No test reaches this file src/renderer/components/Pref/index.tsx
- No test reaches this file scripts/sort-lang.mjs
- No test reaches this file src/renderer/components/TopBar/index.tsx
- No test reaches this file src/renderer/components/UpdateDialog.tsx
- No test reaches this file src/renderer/components/Transfer.tsx
- No test reaches this file src/renderer/components/Editor/hosts_cm.ts
- No test reaches this file src/renderer/components/Pref/DataDirRecoveryModal.tsx
- No test reaches this file src/renderer/index.tsx
- No test reaches this file src/renderer/components/TopBar/ImportFromUrl.tsx
- No test reaches this file src/renderer/components/LeftPanel/TrashcanItem.tsx
- No test reaches this file src/renderer/components/LeftPanel/Trashcan.tsx
- No test reaches this file src/renderer/components/Pref/CommandsHistory.tsx
- No test reaches this file src/renderer/components/LeftSidebar/index.tsx
- No test reaches this file src/renderer/components/Pref/Proxy.tsx
- No test reaches this file scripts/bundle-universal-helper.mjs
- No test reaches this file src/renderer/components/ResizeHandle/index.tsx
- No test reaches this file src/renderer/components/RightPanel/SystemHostsPanel.tsx
- FunctionTooLong: find.FindPage src/renderer/pages/find.tsx:243
- FunctionTooLong: index.RightPanel src/renderer/components/RightPanel/index.tsx:24
- FunctionTooLong: switchhosts::run src-tauri/src/lib.rs:119
- FunctionTooLong: EditHostsInfo.EditHostsInfo src/renderer/components/EditHostsInfo.tsx:35
- FunctionTooLong: General.General src/renderer/components/Pref/General.tsx:28
- FunctionTooLong: index.List src/renderer/components/List/index.tsx:28
- FunctionTooLong: HostsEditor.HostsEditor src/renderer/components/Editor/HostsEditor.tsx:27
- FunctionTooLong: index.clampPanel src/renderer/pages/index.tsx:32
- FunctionTooLong: index.TopBar src/renderer/components/TopBar/index.tsx:36
- FunctionTooLong: index.MainPage src/renderer/pages/index.tsx:35
- FunctionTooLong: Node.Node src/renderer/components/Tree/Node.tsx:52
- FunctionTooLong: index.PreferencePanel src/renderer/components/Pref/index.tsx:23
- FunctionTooLong: Advanced.Advanced src/renderer/components/Pref/Advanced.tsx:54
- FunctionTooLong: ConfigMenu.ConfigMenu src/renderer/components/TopBar/ConfigMenu.tsx:46
- FunctionTooLong: History.Loading src/renderer/components/History.tsx:115
- FunctionTooLong: ListItem.ListItem src/renderer/components/List/ListItem.tsx:29
- FunctionTooLong: UpdateDialog.UpdateDialog src/renderer/components/UpdateDialog.tsx:19
- FunctionTooLong: Transfer.Transfer src/renderer/components/Transfer.tsx:34
- FunctionTooLong: History.History src/renderer/components/History.tsx:124
- FunctionTooLong: Tree.Tree src/renderer/components/Tree/Tree.tsx:36
- switchhosts::run (cognitive 50) src-tauri/src/lib.rs:119
- switchhosts::storage::tree_format::legacy_node_to_v5 (cognitive 42) src-tauri/src/storage/tree_format.rs:89
- switchhosts::storage::tree_format::v5_node_to_legacy (cognitive 40) src-tauri/src/storage/tree_format.rs:262
- switchhosts::commands::apply_side_effects (cognitive 22) src-tauri/src/commands.rs:291
- switchhosts::import_export::convert_v3_node (cognitive 19) src-tauri/src/import_export.rs:113
- switchhosts::hosts_apply::aggregate::remove_duplicate_records_pass (cognitive 17) src-tauri/src/hosts_apply/aggregate.rs:129
- switchhosts::hosts_apply::elevation::elevate_copy (cognitive 17) src-tauri/src/hosts_apply/elevation.rs:617
- switchhosts::commands::apply_hosts_selection (cognitive 16) src-tauri/src/commands.rs:643
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (5 lines × 2) src-tauri/src/find.rs:719
- Duplicated block (5 lines × 2) src-tauri/src/storage/tree_format.rs:130
- Duplicated block (5 lines × 2) src-tauri/src/migration/archiver.rs:110
- Duplicated block (5 lines × 2) src-tauri/src/storage/data_dir_pointer.rs:220
- Duplicated block (5 lines × 2) src-tauri/src/commands.rs:169
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (14 lines × 2 locations) src/common/tree.ts:21
- Duplicated block (14 lines × 2 locations) src/renderer/components/SetWriteMode.tsx:71
- Duplicated block (14 lines × 2 locations) src/renderer/components/TopBar/index.tsx:91
- Duplicated block (14 lines × 2 locations) src/renderer/pages/find.tsx:771
- <TextInput> field component without a label src/renderer/components/TopBar/ImportFromUrl.tsx:88
- <TextInput> field component without a label src/renderer/pages/find.tsx:983
- <TextInput> field component without a label src/renderer/pages/find.tsx:997
- switchhosts::run (cyclomatic 43) src-tauri/src/lib.rs:119
- switchhosts::storage::tree_format::legacy_node_to_v5 (cyclomatic 31) src-tauri/src/storage/tree_format.rs:89
- switchhosts::storage::tree_format::v5_node_to_legacy (cyclomatic 24) src-tauri/src/storage/tree_format.rs:262
- FileTooLong: src/commands.rs src-tauri/src/commands.rs
- FileTooLong: pages/find.tsx src/renderer/pages/find.tsx
- FileTooLong: src/lifecycle.rs src-tauri/src/lifecycle.rs
- Duplicated block (8 lines × 2) src-tauri/src/commands.rs:1315
- Duplicated block (8 lines × 2) src-tauri/src/import_export.rs:200
- Duplicated block (8 lines × 2) src-tauri/src/hosts_apply/cmd_runner.rs:112
- Duplicated block (7 lines × 2) src-tauri/src/find.rs:706
- Duplicated block (7 lines × 2) src-tauri/src/commands.rs:779
- Duplicated block (7 lines × 2) src-tauri/src/hosts_apply/elevation.rs:404
- <Select> field component without a label src/renderer/components/Pref/General.tsx:122
- <Select> field component without a label src/renderer/components/Pref/Proxy.tsx:48
- TooManyFields: AppConfig src-tauri/src/storage/config.rs:25
- TooManyFields: MenuLabels src-tauri/src/i18n.rs:6
- Change coupling: ListItem.tsx ↔ Node.tsx src/renderer/components/List/ListItem.tsx
- Change coupling: index.tsx ↔ Tree.tsx src/renderer/components/List/index.tsx
- Duplicated block (9 lines × 2) src-tauri/src/hosts_apply/cmd_runner.rs:181
- Duplicated block (9 lines × 2) src-tauri/src/lifecycle.rs:636
- Duplicated block (14 lines × 3 locations) src/renderer/components/LeftPanel/Trashcan.tsx:96
- Duplicated block (14 lines × 3 locations) src/renderer/components/LeftPanel/TrashcanItem.tsx:33
- Duplicated block (11 lines × 2 locations) src/renderer/components/Pref/General.tsx:194
- Duplicated block (11 lines × 2 locations) src/renderer/components/RightPanel/index.tsx:94
- Duplicated block (8 lines × 2 locations) src/renderer/components/Editor/HostsEditor.tsx:91
- Duplicated block (8 lines × 2 locations) src/renderer/pages/find.tsx:876
- Duplicated block (7 lines × 2 locations) src/renderer/components/Editor/HostsEditor.tsx:304
- Duplicated block (7 lines × 2 locations) src/renderer/components/Pref/Advanced.tsx:58
- <Textarea> field component without a label src/renderer/components/Pref/Commands.tsx:32
- Page without a main landmark src/renderer/index.html:2
- Accessibility enforcement below the top rung
- find.FindPage (cyclomatic 99) src/renderer/pages/find.tsx:243
- Node.Node (cyclomatic 54) src/renderer/components/Tree/Node.tsx:52
- index.RightPanel (cyclomatic 52) src/renderer/components/RightPanel/index.tsx:24
- index.List (cyclomatic 44) src/renderer/components/List/index.tsx:28
- EditHostsInfo.EditHostsInfo (cyclomatic 36) src/renderer/components/EditHostsInfo.tsx:35
- notify.getFriendlyUpdateErrorMessage (cyclomatic 34) src/renderer/core/notify.ts:37
- General.General (cyclomatic 33) src/renderer/components/Pref/General.tsx:28
- HostsEditor.HostsEditor (cyclomatic 32) src/renderer/components/Editor/HostsEditor.tsx:27
- ListItem.ListItem (cyclomatic 26) src/renderer/components/List/ListItem.tsx:29
- index.PreferencePanel (cyclomatic 26) src/renderer/components/Pref/index.tsx:23
- index.MainPage (cyclomatic 22) src/renderer/pages/index.tsx:35
- UpdateDialog.UpdateDialog (cyclomatic 20) src/renderer/components/UpdateDialog.tsx:19
- Tree.Tree (cyclomatic 19) src/renderer/components/Tree/Tree.tsx:36
- index.TopBar (cyclomatic 16) src/renderer/components/TopBar/index.tsx:36
- Hotspot: src/renderer/components/Tree/Tree.tsx src/renderer/components/Tree/Tree.tsx:36
- find.FindPage (cognitive 101) src/renderer/pages/find.tsx:243
- index.RightPanel (cognitive 61) src/renderer/components/RightPanel/index.tsx:24
- index.List (cognitive 58) src/renderer/components/List/index.tsx:28
- Node.Node (cognitive 52) src/renderer/components/Tree/Node.tsx:52
- EditHostsInfo.EditHostsInfo (cognitive 41) src/renderer/components/EditHostsInfo.tsx:35
- index.PreferencePanel (cognitive 38) src/renderer/components/Pref/index.tsx:23
- General.General (cognitive 34) src/renderer/components/Pref/General.tsx:28
- hostsFn.setOnStateOfItem (cognitive 32) src/common/hostsFn.ts:71
- HostsEditor.HostsEditor (cognitive 31) src/renderer/components/Editor/HostsEditor.tsx:27
- sort-lang.sortContentGroup (cognitive 30) scripts/sort-lang.mjs:87
- ListItem.ListItem (cognitive 23) src/renderer/components/List/ListItem.tsx:29
- Tree.Tree (cognitive 23) src/renderer/components/Tree/Tree.tsx:36
- hosts_cm.buildDecorations (cognitive 20) src/renderer/components/Editor/hosts_cm.ts:30
- UpdateDialog.UpdateDialog (cognitive 19) src/renderer/components/UpdateDialog.tsx:19
- index.MainPage (cognitive 19) src/renderer/pages/index.tsx:35
- ConfigMenu.ConfigMenu (cognitive 17) src/renderer/components/TopBar/ConfigMenu.tsx:46
- fn.selectTo (cognitive 16) src/renderer/components/Tree/fn.ts:184
- MethodTooLong: MenuLabels.for_locale src-tauri/src/i18n.rs:91
- Change-coupling hub: Trashcan.tsx → EditHostsInfo.tsx, ListItem.tsx, index.tsx src/renderer/components/LeftPanel/Trashcan.tsx
- REDACTED
- REDACTED
- Duplicated block (12 lines × 2) src-tauri/src/http_api.rs:228
- Duplicated block (19 lines × 2) src-tauri/src/hosts_apply/cmd_runner.rs:144
- Duplicated block (5 lines × 4) src-tauri/src/find.rs:592
- Duplicated block (6 lines × 3) src-tauri/src/lifecycle.rs:464
- Duplicated block (8 lines × 3) src-tauri/src/lifecycle.rs:637
- Duplicated block (6 lines × 2) src-tauri/src/commands.rs:953
- Coverage not measured — JavaScript/TypeScript suite
- Duplicated block (16 lines × 2 locations) src/renderer/components/Transfer.tsx:95
- Duplicated block with local edits (15 matched lines × 2 locations) src/renderer/components/Pref/DataDirRecoveryModal.tsx:36
- Duplicated block with local edits (13 matched lines × 2 locations) src/renderer/pages/index.tsx:77
- Duplicated block (12 lines × 2 locations) src/renderer/components/Pref/Proxy.tsx:58
- Duplicated block with local edits (11 matched lines × 2 locations) src/renderer/components/EditHostsInfo.tsx:156
- Duplicated block (11 lines × 5 locations) src/renderer/components/LeftPanel/Trashcan.tsx:51
- Duplicated block (10 lines × 2 locations) src/renderer/components/Pref/General.tsx:175
- Duplicated block (9 lines × 3 locations) src/renderer/components/Pref/Advanced.tsx:127
- Duplicated block (7 lines × 4 locations) src/renderer/components/Pref/index.tsx:203
- Duplicated block (6 lines × 2 locations) src/renderer/components/Pref/Advanced.tsx:190
- Duplicated block (5 lines × 2 locations) src/renderer/components/Pref/Advanced.tsx:201
- Complex function invoke (cyclomatic 63, cognitive 47) e2e/support/tauri-mock.js:326
- Complex function getFriendlyUpdateErrorMessage (cyclomatic 34, cognitive 13) src/renderer/core/notify.ts:37
- Complex function Node (cyclomatic 31, cognitive 25) src/renderer/components/Tree/Node.tsx:52
- Complex function RightPanel (cyclomatic 24, cognitive 23) src/renderer/components/RightPanel/index.tsx:24
- Complex function General (cyclomatic 20, cognitive 16) src/renderer/components/Pref/General.tsx:28
- Complex function FindPage (cyclomatic 17, cognitive 14) src/renderer/pages/find.tsx:243
- Complex function onDragOver (cyclomatic 16, cognitive 18) src/renderer/components/Tree/Node.tsx:119
- Complex function sortContentGroup (cyclomatic 15, cognitive 28) scripts/sort-lang.mjs:87
- Complex function UpdateDialog (cyclomatic 15, cognitive 14) src/renderer/components/UpdateDialog.tsx:19
- Complex function replaceOne (cyclomatic 14, cognitive 16) src/renderer/pages/find.tsx:708
- Complex function replaceAll (cyclomatic 14, cognitive 15) src/renderer/pages/find.tsx:785
- Complex function TopBar (cyclomatic 13, cognitive 11) src/renderer/components/TopBar/index.tsx:36
- Complex function isEqual (cyclomatic 11, cognitive 17) src/renderer/components/Tree/Node.tsx:293
- Complex function (anonymous) (cyclomatic 11, cognitive 16) src/common/hostsFn.ts:77
- Complex function applyChangedRemoteHostsToSystem (cyclomatic 11, cognitive 13) src/renderer/components/List/index.tsx:127
- Complex function findObjectRange (cyclomatic 11, cognitive 11) scripts/sort-lang.mjs:159
- Complex function MainPage (cyclomatic 11, cognitive 10) src/renderer/pages/index.tsx:35
- Dependency Freshness
- Dead file (~32 LoC) src/renderer/components/LeftPanel/SystemHostsItem.tsx
- Dead file (~25 LoC) src/renderer/components/Lang.tsx
- Dead file (~11 LoC) src/renderer/utils/css-var.ts
- Dead file (~6 LoC) src/common/utils/wait.ts
- Unused dependency 'tslib'
Minor — 15 finding(s)
- Documentation: no project overview README.md
- No ADRs found
- REDACTED
- REDACTED
- REDACTED
- No ADRs
- No architecture diagram/doc
- No SAST
- No changelog
- Unused export 'downloadUrl' src/common/constants.ts:9
- Unused export 'cleanHostsList' src/common/hostsFn.ts:26
- Unused export 'updateOneItem' src/common/hostsFn.ts:53
- Unused export 'getNodeById' src/common/tree.ts:44
- Unused export 'isParent' src/renderer/components/Tree/fn.ts:155
- Unused export 'isHalfWidthAtom' src/renderer/stores/i18n.ts:19
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-f2595820f8504c89864f5705636fd2a7/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-f2595820f8504c89864f5705636fd2a7/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 35 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 15 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 1 file(s) — `src/renderer/components/Pref/languageOptions.ts` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |