Executive summary
usememos/memos scores 53 out of 100 and is rated Adequate, while six of its seven lenses score higher still: Performance at 87, Code Health at 84, Production Readiness at 76 and Maturity at 71, all rated Strong, and Architecture at 58 and Security and Compliance at 55, both rated Adequate.
The score is lower than those six because the weakest lens counts most, and here that is Accessibility, which scores 44 and is rated Weak. Its Keyboard semantics dimension scores 1.9 out of 10, and until that reaches 4, Accessibility can't be rated higher than Adequate. The first actions are to make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href and to enforce accessibility in the toolchain you already use: enable Biome's a11y rule group in your biome.json `linter.rules` (it is off whenever `recommended` is false and the group is unlisted), then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI, and if Accessibility rose to 70, the score would rise from 53 to about 61.
146 findings are critical: 101 in Static Analysis (SAST), 18 in Secrets (history), nine in Keyboard semantics, seven in Dependency Vulnerabilities, four in REDACTED Scanning, three in Circular Imports, two in Forms & labels, one in Page structure and one in Text alternatives.
Watchdog couldn't measure 19 dimensions in this code, among them Cyclomatic Complexity, Cognitive Complexity and Code Duplication, so they are left out of the score. The product code is 85,360 lines, which would take an estimated 1.0 person-years, around €140,000, to rebuild.
If Accessibility rose from 44 to 70, the lowest score rated Strong, the score would rise from 53 to about 61.
New since the last survey: 58 findings
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Code Duplication · Duplication concentrated across 8 sibling directories (7 clone groups) web/src/components/MemoActionMenu/MemoActionMenu.tsx
- Code Duplication · Duplicated block with local edits (34 matched lines × 2 locations) web/src/components/Settings/InstanceSection.tsx
- Code Duplication · Duplicated block with local edits (14 matched lines × 2 locations) web/src/components/Settings/AISection.tsx
- Code Duplication · Duplicated block (14 lines × 2 locations) web/src/components/ui/popover.tsx
- Code Duplication · Duplicated block (11 lines × 2 locations) web/src/components/MemoDisplaySettingMenu.tsx
- Code Duplication · Duplicated block (11 lines × 2 locations) web/src/hooks/useMemoQueries.ts
- Cyclomatic Complexity · Complex function EditSession (cyclomatic 34, cognitive 28) web/src/components/MemoEditor/edit/EditSession.tsx
- Cyclomatic Complexity · Complex function MemoHeader (cyclomatic 23, cognitive 20) web/src/components/MemoView/components/MemoHeader.tsx
- Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 20, cognitive 25) web/src/hooks/useMemoFilters.ts
- Large Files · web/src/pages/MemoViews.tsx: 613 lines of code web/src/pages/MemoViews.tsx
- Large Files · web/src/components/AppSidebar/AppSidebar.tsx: 437 lines of code web/src/components/AppSidebar/AppSidebar.tsx
- Large Files · web/src/hooks/useMemoQueries.ts: 409 lines of code web/src/hooks/useMemoQueries.ts
- Large Files · web/src/components/Settings/StorageSection.tsx: 407 lines of code web/src/components/Settings/StorageSection.tsx
- Test Coverage · No test reaches this file web/src/components/ui/checkbox.tsx
- Dead Code · Dead file (~28 LoC) web/src/components/ui/checkbox.tsx
- Circular Imports · Import cycle (14 files) web/src/router/index.tsx
- Exception handling · Swallowed exception (empty catch) web/src/connect.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/VideoPoster.tsx
- Exception handling · Swallowed exception (empty catch) web/src/components/UserMenu.tsx
- Exception handling · Swallowed exception (caught, then discarded) web/src/components/MediaMetadataDetails.tsx
- Exception handling · Swallowed exception (empty catch) web/src/components/CreateWebhookDialog.tsx
- Exception handling · Swallowed exception (empty catch) web/src/components/ChallengeWidget.tsx
- Exception handling · Swallowed exception (empty catch) web/src/components/MapView/useMapMemos.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/MemoActionMenu/memoShareImage.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/MemoActionMenu/hooks.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/MemoEditor/edit/draftKey.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/MemoEditor/edit/services/cacheService.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/MemoEditor/edit/services/cacheService.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/MemoReactionListView/hooks.ts
- Exception handling · Swallowed exception (empty catch) web/src/components/map/LocationPicker.tsx
- Exception handling · Swallowed exception (empty catch) web/src/contexts/AuthContext.tsx
- Exception handling · Swallowed exception (empty catch) web/src/hooks/useLocalStorage.ts
- Exception handling · Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts
- Exception handling · Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts
- Exception handling · Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts
- Exception handling · Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts
- Exception handling · Swallowed exception (empty catch) web/src/lib/tag.ts
- Exception handling · Swallowed exception (empty catch) web/src/lib/tag-suggestions.ts
- Exception handling · Swallowed exception (empty catch) web/src/utils/theme.ts
- Exception handling · Swallowed exception (empty catch) web/src/utils/managed-attachment.ts
- Keyboard semantics · Double-click handler on a non-interactive <div> web/src/components/MemoEditor/view/MemoContentView.tsx
- Visual & motion safety · Focus outline removed inline web/src/components/AppSidebar/SidebarResizeHandle.tsx
- Visual & motion safety · Focus outline removed inline web/src/components/DateTimeInput.tsx
- Visual & motion safety · Focus outline removed in CSS without a :focus replacement web/src/index.css
- Visual & motion safety · Focus outline removed in CSS without a :focus replacement web/src/components/MemoEditor/edit/editor.css
Fixed since the last survey: 972 findings
- Cyclomatic Complexity · PreviewImageDialog.PreviewImageDialog (cyclomatic 80) web/src/components/PreviewImageDialog.tsx
- Cyclomatic Complexity · APIService.UpdateMemo (cyclomatic 67) server/api/memo_service.go
- Cyclomatic Complexity · index.MemoEditorImpl (cyclomatic 58) web/src/components/MemoEditor/index.tsx
- Cyclomatic Complexity · MemoDetail.MemoDetail (cyclomatic 54) web/src/pages/MemoDetail.tsx
- Cyclomatic Complexity · MarkdownRenderer.renderNode (cyclomatic 51) markdown/renderer/markdown_renderer.go
- Cyclomatic Complexity · MapView.MapView (cyclomatic 51) web/src/components/MapView/MapView.tsx
- Cyclomatic Complexity · PagedMemoList.PagedMemoList (cyclomatic 51) web/src/components/PagedMemoList/PagedMemoList.tsx
- Cyclomatic Complexity · APIService.parseUserAgent (cyclomatic 47) REDACTED
- Cyclomatic Complexity · DB.ApplyMemoMutation (cyclomatic 47) store/db/mysql/memo_attachment.go
- Cyclomatic Complexity · DB.ApplyMemoMutation (cyclomatic 47) store/db/postgres/memo_attachment.go
- Cyclomatic Complexity · SpaceSwitcher.SpaceSwitcher (cyclomatic 47) web/src/components/AppSidebar/SpaceSwitcher.tsx
- Cyclomatic Complexity · DB.ApplyMemoMutation (cyclomatic 46) store/db/sqlite/memo_attachment.go
- Cyclomatic Complexity · SpacesSection.SpaceDetail (cyclomatic 45) web/src/components/Settings/SpacesSection.tsx
- Cyclomatic Complexity · MemoDetailSidebar.MemoDetailSidebar (cyclomatic 44) web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx
- Cyclomatic Complexity · AttachmentListEditor.AttachmentListEditor (cyclomatic 43) web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx
- Cyclomatic Complexity · store.ValidateMemoWriteSnapshot (cyclomatic 40) store/memo.go
- Cyclomatic Complexity · memoexport.validateMemo (cyclomatic 39) core/memoexport/validate.go
- Cyclomatic Complexity · ColumnGrid.ColumnGrid (cyclomatic 39) web/src/components/ColumnGrid/ColumnGrid.tsx
- Cyclomatic Complexity · useLiveMemoRefresh.useLiveMemoRefresh (cyclomatic 39) web/src/hooks/useLiveMemoRefresh.ts
- Cyclomatic Complexity · MemoViews.MemoViews (cyclomatic 39) web/src/pages/MemoViews.tsx
- Cyclomatic Complexity · APIService.UpdateUser (cyclomatic 38) server/api/user_service.go
- Cyclomatic Complexity · InviteSpaceMemberDialog.InviteSpaceMemberDialog (cyclomatic 38) web/src/components/Settings/InviteSpaceMemberDialog.tsx
- Cyclomatic Complexity · Store.ApplyMemoMutation (cyclomatic 37) store/memo_attachment.go
- Cyclomatic Complexity · CalendarDayCell.CalendarDayCell (cyclomatic 37) web/src/components/CalendarView/CalendarDayCell.tsx
- Cyclomatic Complexity · store.PrepareInstanceStorageSettingUpdate (cyclomatic 35) store/storage.go
- Cyclomatic Complexity · APIService.CreateUser (cyclomatic 34) server/api/user_service.go
- Cyclomatic Complexity · store.validateAndNormalizeDeploymentInstanceSetting (cyclomatic 34) store/deployment_config.go
- Cyclomatic Complexity · MediaMetadataDetails.MediaMetadataDetails (cyclomatic 31) web/src/components/MediaMetadataDetails.tsx
- Cyclomatic Complexity · access.CheckMemoReadContext (cyclomatic 30) core/access/memo.go
- Cyclomatic Complexity · DB.ListMemos (cyclomatic 30) store/db/mysql/memo.go
- Cyclomatic Complexity · DB.ListMemos (cyclomatic 30) store/db/sqlite/memo.go
- Cyclomatic Complexity · CustomIconPicker.CustomIconPicker (cyclomatic 30) web/src/components/CustomIconPicker.tsx
- Cyclomatic Complexity · api.collectSpaceFilterNames (cyclomatic 28) server/api/filter_access.go
- Cyclomatic Complexity · APIService.ListMemos (cyclomatic 28) server/api/memo_service.go
- Cyclomatic Complexity · APIService.ListUserStats (cyclomatic 28) server/api/user_service_stats.go
- Cyclomatic Complexity · DB.ListMemos (cyclomatic 28) store/db/postgres/memo.go
- Cyclomatic Complexity · CreateIdentityProviderDialog.CreateIdentityProviderDialog (cyclomatic 28) web/src/components/CreateIdentityProviderDialog.tsx
- Cyclomatic Complexity · CreateWebhookDialog.CreateWebhookDialog (cyclomatic 28) web/src/components/CreateWebhookDialog.tsx
- Cyclomatic Complexity · SpacesSection.SpacesSection (cyclomatic 28) web/src/components/Settings/SpacesSection.tsx
- Cyclomatic Complexity · APIService.normalizeMemoAttachmentRequest (cyclomatic 27) server/api/memo_attachment_service.go
- Cyclomatic Complexity · DB.ListAttachments (cyclomatic 27) store/db/mysql/attachment.go
- Cyclomatic Complexity · DB.ListAttachments (cyclomatic 27) store/db/sqlite/attachment.go
- Cyclomatic Complexity · markdownTagRanges.collectLiteralRanges (cyclomatic 27) web/src/components/MemoEditor/Editor/markdownTagRanges.ts
- Cyclomatic Complexity · parser.characterReferenceLength (cyclomatic 26) markdown/parser/tag.go
- Cyclomatic Complexity · DB.ListAttachments (cyclomatic 26) store/db/postgres/attachment.go
- Cyclomatic Complexity · AudienceMenu.AudienceMenu (cyclomatic 26) web/src/components/MemoEditor/Toolbar/AudienceMenu.tsx
- Cyclomatic Complexity · StorageSection.StorageSection (cyclomatic 26) web/src/components/Settings/StorageSection.tsx
- Cyclomatic Complexity · GlobalMemoEditorContext.GlobalMemoEditorProvider (cyclomatic 26) web/src/contexts/GlobalMemoEditorContext.tsx
- Cyclomatic Complexity · gfm-email.findMarkdownGFMEmailRanges::collect (cyclomatic 26) web/src/utils/gfm-email.ts
- Cyclomatic Complexity · parser.scanTagSegment (cyclomatic 25) markdown/parser/tag.go
- Cyclomatic Complexity · APIService.UpdateInstanceSetting (cyclomatic 25) server/api/instance_service.go
- Cyclomatic Complexity · APIService.extractManagedAttachmentReferences (cyclomatic 25) server/api/memo_attachment_service.go
- Cyclomatic Complexity · APIService.UpdateUserSetting (cyclomatic 25) server/api/user_service_settings.go
- Cyclomatic Complexity · EditorSuggestions.EditorSuggestions (cyclomatic 25) web/src/components/MemoEditor/components/EditorSuggestions.tsx
- Cyclomatic Complexity · APIService.ListMemoComments (cyclomatic 24) server/api/memo_service_comments.go
- Cyclomatic Complexity · APIService.loadMemoExportData (cyclomatic 24) server/api/user_service_memo_export.go
- Cyclomatic Complexity · DB.ListMemoRelations (cyclomatic 24) REDACTED
- Cyclomatic Complexity · CalendarView.CalendarView (cyclomatic 24) web/src/components/CalendarView/CalendarView.tsx
- Cyclomatic Complexity · APIService.getInstanceSettingByName (cyclomatic 23) server/api/instance_service.go
- Cyclomatic Complexity · APIService.UpdateUserWebhook (cyclomatic 23) server/api/user_service_webhooks.go
- Cyclomatic Complexity · QuickFindDialog.QuickFindDialog (cyclomatic 23) web/src/components/AppSidebar/QuickFindDialog.tsx
- Cyclomatic Complexity · AttachmentListEditor.AttachmentItemCard (cyclomatic 23) web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx
- Cyclomatic Complexity · media-metadata.buildMediaMetadataDisplay (cyclomatic 23) web/src/utils/media-metadata.ts
- Cyclomatic Complexity · remark-tag.reconcileUnderscoreEmailEmphasis (cyclomatic 23) web/src/utils/remark-plugins/remark-tag.ts
- Cyclomatic Complexity · filter.evaluateNumeric (cyclomatic 22) filter/parser.go
- Cyclomatic Complexity · linkmeta.extractDocumentMetadata (cyclomatic 22) internal/linkmeta/html_meta_extract.go
- Cyclomatic Complexity · service.ExtractAll (cyclomatic 22) markdown/markdown.go
- Cyclomatic Complexity · APIService.prepareInstanceAISettingForUpdate (cyclomatic 22) server/api/instance_service_validation.go
- Cyclomatic Complexity · APIService.CreateMemoComment (cyclomatic 22) server/api/memo_service_comments.go
- Cyclomatic Complexity · APIService.UpdateUserNotification (cyclomatic 22) server/api/user_service_notifications.go
- Cyclomatic Complexity · DB.ListMemoRelations (cyclomatic 22) REDACTED
- Cyclomatic Complexity · DB.ListUsers (cyclomatic 22) store/db/mysql/user.go
- Cyclomatic Complexity · DB.ListMemoRelations (cyclomatic 22) REDACTED
- Cyclomatic Complexity · DB.ListUsers (cyclomatic 22) store/db/sqlite/user.go
- Cyclomatic Complexity · CreateSpaceDialog.CreateSpaceDialog (cyclomatic 22) web/src/components/CreateSpaceDialog.tsx
- Cyclomatic Complexity · MemoView.MemoView (cyclomatic 22) web/src/components/MemoView/MemoView.tsx
- Cyclomatic Complexity · Attachments.Attachments::renderContent (cyclomatic 22) web/src/pages/Attachments.tsx
- Cyclomatic Complexity · SignUp.SignUp (cyclomatic 22) web/src/pages/SignUp.tsx
- Cyclomatic Complexity · filter.buildCallCondition (cyclomatic 21) filter/parser.go
- Cyclomatic Complexity · api.validateClientMediaMetadata (cyclomatic 21) server/api/attachment_media_metadata.go
- Cyclomatic Complexity · APIService.prepareAttachment (cyclomatic 21) server/api/attachment_service.go
- Cyclomatic Complexity · APIService.batchConvertMemoRelations (cyclomatic 21) server/api/memo_service_converter.go
- Cyclomatic Complexity · MemoMentionMessage.MemoMentionMessage (cyclomatic 21) web/src/components/Inbox/MemoMentionMessage.tsx
- Cyclomatic Complexity · SpaceInvitationMessage.SpaceInvitationMessage (cyclomatic 21) web/src/components/Inbox/SpaceInvitationMessage.tsx
- Cyclomatic Complexity · AISection.AISection (cyclomatic 21) web/src/components/Settings/AISection.tsx
- Cyclomatic Complexity · MemberSection.MemberSection (cyclomatic 21) web/src/components/Settings/MemberSection.tsx
- Cyclomatic Complexity · remark-tag.markdownSourceContext (cyclomatic 21) web/src/utils/remark-plugins/remark-tag.ts
- Cyclomatic Complexity · filter.compareLiterals (cyclomatic 20) filter/parser.go
- Cyclomatic Complexity · service.GenerateSnippet (cyclomatic 20) markdown/markdown.go
- Cyclomatic Complexity · api.saveAttachmentContent (cyclomatic 20) server/api/attachment_service_storage.go
- Cyclomatic Complexity · APIService.prepareMemoCreate (cyclomatic 20) server/api/memo_create_helpers.go
- Cyclomatic Complexity · APIService.canAccessNotification (cyclomatic 20) server/api/user_service_notifications.go
- Cyclomatic Complexity · APIService.GetUserStats (cyclomatic 20) server/api/user_service_stats.go
- Cyclomatic Complexity · FileServerService.checkAttachmentPermission (cyclomatic 20) server/fileserver/fileserver.go
- Cyclomatic Complexity · store.validateDeploymentIdentityProvider (cyclomatic 20) store/deployment_config.go
- Cyclomatic Complexity · DB.ListUsers (cyclomatic 20) store/db/postgres/user.go
- Cyclomatic Complexity · mediaMetadataService.normalizeCoordinate (cyclomatic 20) web/src/components/MemoEditor/services/mediaMetadataService.ts
- Cyclomatic Complexity · AuthCallback.AuthCallback (cyclomatic 20) web/src/pages/AuthCallback.tsx
- Cyclomatic Complexity · HTMLMetaFetcher.fetch (cyclomatic 19) internal/linkmeta/html_meta.go
- Cyclomatic Complexity · APIService.Transcribe (cyclomatic 19) server/api/ai_service.go
Rebuild cost: about €140,000 · Estimate
| Cost to rebuild | €48,000 to €240,000, for 801 to 2,541 hours of work, about 1.0 person-years for 1 to 2 engineers |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 53. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Medium: 85,360 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 components.AppSidebar.SidebarRow | 2 components.AttachmentLibrary | 3 components.CreateAccessTokenDialog | 4 components.MemoActionMenu | 5 components.MemoEditor.MemoEditor | 6 components.MemoEditor.edit.state.types | 7 components.MemoEditor.view | 8 components.MemoMetadata.Attachment | 9 components.MemoMetadata.Relation | 10 components.map.types | 11 contexts.ViewContext | 12 hooks.useAttachmentLibrary | 13 lib.custom-icons | 14 types.proto.api.instance_service_pb | 15 types.proto.api.memo_service_pb | 16 utils.media-item | 17 components | 18 components.ActivityCalendar.types | 19 components.AppSidebar | 20 components.CalendarView.CalendarDayCell | 21 components.ErrorBoundary | 22 components.MapView | 23 components.MemoDetailSidebar | 24 components.MemoEditor | 25 components.MemoEditor.edit | 26 components.MemoEditor.edit.services.cacheService | 27 components.MemoEditor.edit.types.components | 28 components.MemoPanel.MemoPanelList | 29 components.Settings | 30 components.map | 31 components.ui | 32 contexts | 33 hooks | 34 lib | 35 types.statistics | 36 utils | 37 components.ActivityCalendar.CalendarCell | 38 components.CalendarView | 39 components.MemoEditor.edit.hooks | 40 components.ActivityCalendar |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 components.AppSidebar.SidebarRow | ||||||||||||||||||||||||||||||||||||||||
| 2 components.AttachmentLibrary | ||||||||||||||||||||||||||||||||||||||||
| 3 components.CreateAccessTokenDialog | ||||||||||||||||||||||||||||||||||||||||
| 4 components.MemoActionMenu | ||||||||||||||||||||||||||||||||||||||||
| 5 components.MemoEditor.MemoEditor | ||||||||||||||||||||||||||||||||||||||||
| 6 components.MemoEditor.edit.state.types | ||||||||||||||||||||||||||||||||||||||||
| 7 components.MemoEditor.view | ||||||||||||||||||||||||||||||||||||||||
| 8 components.MemoMetadata.Attachment | ||||||||||||||||||||||||||||||||||||||||
| 9 components.MemoMetadata.Relation | ||||||||||||||||||||||||||||||||||||||||
| 10 components.map.types | ||||||||||||||||||||||||||||||||||||||||
| 11 contexts.ViewContext | ||||||||||||||||||||||||||||||||||||||||
| 12 hooks.useAttachmentLibrary | ||||||||||||||||||||||||||||||||||||||||
| 13 lib.custom-icons | ||||||||||||||||||||||||||||||||||||||||
| 14 types.proto.api.instance_service_pb | ||||||||||||||||||||||||||||||||||||||||
| 15 types.proto.api.memo_service_pb | ||||||||||||||||||||||||||||||||||||||||
| 16 utils.media-item | ||||||||||||||||||||||||||||||||||||||||
| 17 components | 29 | |||||||||||||||||||||||||||||||||||||||
| 18 components.ActivityCalendar.types | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 components.AppSidebar | 6 | |||||||||||||||||||||||||||||||||||||||
| 20 components.CalendarView.CalendarDayCell | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 components.ErrorBoundary | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 22 components.MapView | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 23 components.MemoDetailSidebar | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 components.MemoEditor | 5 | |||||||||||||||||||||||||||||||||||||||
| 25 components.MemoEditor.edit | 1 | |||||||||||||||||||||||||||||||||||||||
| 26 components.MemoEditor.edit.services.cacheService | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 components.MemoEditor.edit.types.components | 1 | |||||||||||||||||||||||||||||||||||||||
| 28 components.MemoPanel.MemoPanelList | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 components.Settings | 3 | 3 | ||||||||||||||||||||||||||||||||||||||
| 30 components.map | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 31 components.ui | 8 | |||||||||||||||||||||||||||||||||||||||
| 32 contexts | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 hooks | 2 | 3 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 34 lib | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 35 types.statistics | 1 | |||||||||||||||||||||||||||||||||||||||
| 36 utils | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 37 components.ActivityCalendar.CalendarCell | 1 | |||||||||||||||||||||||||||||||||||||||
| 38 components.CalendarView | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 39 components.MemoEditor.edit.hooks | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 40 components.ActivityCalendar | 1 | 2 | 1 |
17→1 components uses components.AppSidebar.SidebarRow✕
- Connections
- 29 pairs of types, where a type in components uses a type in components.AppSidebar.SidebarRow. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
web.src.components.AttachmentIcon→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.AuthFooter→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.AuthPageLayout→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ChallengeWidget→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ChangeMemberPasswordDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CreateAccessTokenDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CreateIdentityProviderDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CreateSpaceDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CreateUserDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CreateWebhookDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CredentialFields→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CustomIcon→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.CustomIconPicker→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.IdentityLabel→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.IdentityProviderButtons→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.LearnMore→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.LocaleSelect→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.MemoDisplaySettingMenu→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.MemosLogo→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.PreviewImageDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.RequiredBadge→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.SpaceIconPicker→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.SpaceMark→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.SpaceSelectItem→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.TagTree→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components, while a change to components can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components uses a module listed above it, which is the healthy direction.
18→11 components.ActivityCalendar.types uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in components.ActivityCalendar.types uses a type in contexts.ViewContext.
- The types involved
web.src.components.ActivityCalendar.types.MonthCalendarProps→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- components.ActivityCalendar.types uses contexts.ViewContext, so a change to contexts.ViewContext can break components.ActivityCalendar.types, while a change to components.ActivityCalendar.types can't break contexts.ViewContext.
- Position
- Below the diagonal: components.ActivityCalendar.types uses a module listed above it, which is the healthy direction.
19→1 components.AppSidebar uses components.AppSidebar.SidebarRow✕
- Connections
- 6 pairs of types, where a type in components.AppSidebar uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.AppSidebar.SidebarResizeHandle→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.AppSidebar.SidebarRow→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.AppSidebar.SidebarRow→web.src.components.AppSidebar.SidebarRow.SidebarRowStateweb.src.components.AppSidebar.SidebarSection→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.AppSidebar.SidebarSectionHeader→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.AppSidebar.TagsSection→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.AppSidebar uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.AppSidebar, while a change to components.AppSidebar can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.AppSidebar uses a module listed above it, which is the healthy direction.
20→11 components.CalendarView.CalendarDayCell uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in components.CalendarView.CalendarDayCell uses a type in contexts.ViewContext.
- The types involved
web.src.components.CalendarView.CalendarDayCell.CalendarDayCellProps→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- components.CalendarView.CalendarDayCell uses contexts.ViewContext, so a change to contexts.ViewContext can break components.CalendarView.CalendarDayCell, while a change to components.CalendarView.CalendarDayCell can't break contexts.ViewContext.
- Position
- Below the diagonal: components.CalendarView.CalendarDayCell uses a module listed above it, which is the healthy direction.
21→1 components.ErrorBoundary uses components.AppSidebar.SidebarRow✕
- Connections
- 1 pair of types, where a type in components.ErrorBoundary uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.ErrorBoundary.ErrorBoundary→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.ErrorBoundary uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.ErrorBoundary, while a change to components.ErrorBoundary can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.ErrorBoundary uses a module listed above it, which is the healthy direction.
21→3 components.ErrorBoundary uses components.CreateAccessTokenDialog✕
- Connections
- 1 pair of types, where a type in components.ErrorBoundary uses a type in components.CreateAccessTokenDialog.
- The types involved
web.src.components.ErrorBoundary.ErrorBoundary→web.src.components.CreateAccessTokenDialog.State
- Direction
- components.ErrorBoundary uses components.CreateAccessTokenDialog, so a change to components.CreateAccessTokenDialog can break components.ErrorBoundary, while a change to components.ErrorBoundary can't break components.CreateAccessTokenDialog.
- Position
- Below the diagonal: components.ErrorBoundary uses a module listed above it, which is the healthy direction.
22→1 components.MapView uses components.AppSidebar.SidebarRow✕
- Connections
- 1 pair of types, where a type in components.MapView uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.MapView.MapCanvas→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.MapView uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.MapView, while a change to components.MapView can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.MapView uses a module listed above it, which is the healthy direction.
22→11 components.MapView uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in components.MapView uses a type in contexts.ViewContext.
- The types involved
web.src.components.MapView.model→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- components.MapView uses contexts.ViewContext, so a change to contexts.ViewContext can break components.MapView, while a change to components.MapView can't break contexts.ViewContext.
- Position
- Below the diagonal: components.MapView uses a module listed above it, which is the healthy direction.
23→1 components.MemoDetailSidebar uses components.AppSidebar.SidebarRow✕
- Connections
- 1 pair of types, where a type in components.MemoDetailSidebar uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.MemoDetailSidebar.MemoDetailSidebar→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.MemoDetailSidebar uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.MemoDetailSidebar, while a change to components.MemoDetailSidebar can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.MemoDetailSidebar uses a module listed above it, which is the healthy direction.
24→5 components.MemoEditor uses components.MemoEditor.MemoEditor✕
- Connections
- 5 pairs of types, where a type in components.MemoEditor uses a type in components.MemoEditor.MemoEditor.
- The types involved
web.src.components.MemoEditor.MemoEditor→web.src.components.MemoEditor.MemoEditor.EditingSessionPropsweb.src.components.MemoEditor.MemoEditor→web.src.components.MemoEditor.MemoEditor.MemoEditorDraftPropsweb.src.components.MemoEditor.MemoEditor→web.src.components.MemoEditor.MemoEditor.MemoEditorEditPropsweb.src.components.MemoEditor.MemoEditor→web.src.components.MemoEditor.MemoEditor.MemoEditorPropsweb.src.components.MemoEditor.MemoEditor→web.src.components.MemoEditor.MemoEditor.MemoEditorViewProps
- Direction
- components.MemoEditor uses components.MemoEditor.MemoEditor, so a change to components.MemoEditor.MemoEditor can break components.MemoEditor, while a change to components.MemoEditor can't break components.MemoEditor.MemoEditor.
- Position
- Below the diagonal: components.MemoEditor uses a module listed above it, which is the healthy direction.
25→6 components.MemoEditor.edit uses components.MemoEditor.edit.state.types✕
- Connections
- 1 pair of types, where a type in components.MemoEditor.edit uses a type in components.MemoEditor.edit.state.types.
- The types involved
web.src.components.MemoEditor.edit.initialState→web.src.components.MemoEditor.edit.state.types.EditorState
- Direction
- components.MemoEditor.edit uses components.MemoEditor.edit.state.types, so a change to components.MemoEditor.edit.state.types can break components.MemoEditor.edit, while a change to components.MemoEditor.edit can't break components.MemoEditor.edit.state.types.
- Position
- Below the diagonal: components.MemoEditor.edit uses a module listed above it, which is the healthy direction.
26→15 components.MemoEditor.edit.services.cacheService uses types.proto.api.memo_service_pb✕
- Connections
- 1 pair of types, where a type in components.MemoEditor.edit.services.cacheService uses a type in types.proto.api.memo_service_pb.
- The types involved
web.src.components.MemoEditor.edit.services.cacheService.EditorDraft→web.src.types.proto.api.memo_service_pb.Visibility
- Direction
- components.MemoEditor.edit.services.cacheService uses types.proto.api.memo_service_pb, so a change to types.proto.api.memo_service_pb can break components.MemoEditor.edit.services.cacheService, while a change to components.MemoEditor.edit.services.cacheService can't break types.proto.api.memo_service_pb.
- Position
- Below the diagonal: components.MemoEditor.edit.services.cacheService uses a module listed above it, which is the healthy direction.
27→15 components.MemoEditor.edit.types.components uses types.proto.api.memo_service_pb✕
- Connections
- 1 pair of types, where a type in components.MemoEditor.edit.types.components uses a type in types.proto.api.memo_service_pb.
- The types involved
web.src.components.MemoEditor.edit.types.components.AudienceMenuProps→web.src.types.proto.api.memo_service_pb.Visibility
- Direction
- components.MemoEditor.edit.types.components uses types.proto.api.memo_service_pb, so a change to types.proto.api.memo_service_pb can break components.MemoEditor.edit.types.components, while a change to components.MemoEditor.edit.types.components can't break types.proto.api.memo_service_pb.
- Position
- Below the diagonal: components.MemoEditor.edit.types.components uses a module listed above it, which is the healthy direction.
28→5 components.MemoPanel.MemoPanelList uses components.MemoEditor.MemoEditor✕
- Connections
- 1 pair of types, where a type in components.MemoPanel.MemoPanelList uses a type in components.MemoEditor.MemoEditor.
- The types involved
web.src.components.MemoPanel.MemoPanelList.MemoPanelCompose→web.src.components.MemoEditor.MemoEditor.MemoDraftSeed
- Direction
- components.MemoPanel.MemoPanelList uses components.MemoEditor.MemoEditor, so a change to components.MemoEditor.MemoEditor can break components.MemoPanel.MemoPanelList, while a change to components.MemoPanel.MemoPanelList can't break components.MemoEditor.MemoEditor.
- Position
- Below the diagonal: components.MemoPanel.MemoPanelList uses a module listed above it, which is the healthy direction.
29→1 components.Settings uses components.AppSidebar.SidebarRow✕
- Connections
- 3 pairs of types, where a type in components.Settings uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.Settings.InfoChip→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.Settings.InviteSpaceMemberDialog→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.Settings.UsageLimitDialog→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.Settings uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.Settings, while a change to components.Settings can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.Settings uses a module listed above it, which is the healthy direction.
29→14 components.Settings uses types.proto.api.instance_service_pb✕
- Connections
- 3 pairs of types, where a type in components.Settings uses a type in types.proto.api.instance_service_pb.
- The types involved
web.src.components.Settings.AISection→web.src.types.proto.api.instance_service_pb.InstanceSetting_AIProviderTypeweb.src.components.Settings.StorageSection→web.src.types.proto.api.instance_service_pb.InstanceSetting_StorageTypeweb.src.components.Settings.useInstanceSettingUpdater→web.src.types.proto.api.instance_service_pb.InstanceSetting_Key
- Direction
- components.Settings uses types.proto.api.instance_service_pb, so a change to types.proto.api.instance_service_pb can break components.Settings, while a change to components.Settings can't break types.proto.api.instance_service_pb.
- Position
- Below the diagonal: components.Settings uses a module listed above it, which is the healthy direction.
30→1 components.map uses components.AppSidebar.SidebarRow✕
- Connections
- 1 pair of types, where a type in components.map uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.map.BasemapLayer→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.map uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.map, while a change to components.map can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.map uses a module listed above it, which is the healthy direction.
30→10 components.map uses components.map.types✕
- Connections
- 1 pair of types, where a type in components.map uses a type in components.map.types.
- The types involved
web.src.components.map.LocationPicker→web.src.components.map.types.MapPoint
- Direction
- components.map uses components.map.types, so a change to components.map.types can break components.map, while a change to components.map can't break components.map.types.
- Position
- Below the diagonal: components.map uses a module listed above it, which is the healthy direction.
31→1 components.ui uses components.AppSidebar.SidebarRow✕
- Connections
- 8 pairs of types, where a type in components.ui uses a type in components.AppSidebar.SidebarRow.
- The types involved
web.src.components.ui.dropdown-menu→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.popover→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.radio-group→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.select→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.separator→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.sheet→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.switch→web.src.components.AppSidebar.SidebarRow.Propsweb.src.components.ui.tooltip→web.src.components.AppSidebar.SidebarRow.Props
- Direction
- components.ui uses components.AppSidebar.SidebarRow, so a change to components.AppSidebar.SidebarRow can break components.ui, while a change to components.ui can't break components.AppSidebar.SidebarRow.
- Position
- Below the diagonal: components.ui uses a module listed above it, which is the healthy direction.
32→14 contexts uses types.proto.api.instance_service_pb✕
- Connections
- 1 pair of types, where a type in contexts uses a type in types.proto.api.instance_service_pb.
- The types involved
web.src.contexts.InstanceContext→web.src.types.proto.api.instance_service_pb.InstanceSetting_Key
- Direction
- contexts uses types.proto.api.instance_service_pb, so a change to types.proto.api.instance_service_pb can break contexts, while a change to contexts can't break types.proto.api.instance_service_pb.
- Position
- Below the diagonal: contexts uses a module listed above it, which is the healthy direction.
33→11 hooks uses contexts.ViewContext✕
- Connections
- 2 pairs of types, where a type in hooks uses a type in contexts.ViewContext.
- The types involved
web.src.hooks.useFilteredMemoStats→web.src.contexts.ViewContext.MemoTimeBasisweb.src.hooks.useMemoSorting→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- hooks uses contexts.ViewContext, so a change to contexts.ViewContext can break hooks, while a change to hooks can't break contexts.ViewContext.
- Position
- Below the diagonal: hooks uses a module listed above it, which is the healthy direction.
33→12 hooks uses hooks.useAttachmentLibrary✕
- Connections
- 3 pairs of types, where a type in hooks uses a type in hooks.useAttachmentLibrary.
- The types involved
web.src.hooks.useAttachmentLibrary→web.src.hooks.useAttachmentLibrary.AttachmentLibraryListItemweb.src.hooks.useAttachmentLibrary→web.src.hooks.useAttachmentLibrary.AttachmentLibraryMediaItemweb.src.hooks.useAttachmentLibrary→web.src.hooks.useAttachmentLibrary.AttachmentLibraryStats
- Direction
- hooks uses hooks.useAttachmentLibrary, so a change to hooks.useAttachmentLibrary can break hooks, while a change to hooks can't break hooks.useAttachmentLibrary.
- Position
- Below the diagonal: hooks uses a module listed above it, which is the healthy direction.
33→14 hooks uses types.proto.api.instance_service_pb✕
- Connections
- 1 pair of types, where a type in hooks uses a type in types.proto.api.instance_service_pb.
- The types involved
web.src.hooks.useInstanceQueries→web.src.types.proto.api.instance_service_pb.InstanceSetting_Key
- Direction
- hooks uses types.proto.api.instance_service_pb, so a change to types.proto.api.instance_service_pb can break hooks, while a change to hooks can't break types.proto.api.instance_service_pb.
- Position
- Below the diagonal: hooks uses a module listed above it, which is the healthy direction.
33→16 hooks uses utils.media-item✕
- Connections
- 1 pair of types, where a type in hooks uses a type in utils.media-item.
- The types involved
web.src.hooks.useAttachmentLibrary→web.src.utils.media-item.AttachmentVisualItem
- Direction
- hooks uses utils.media-item, so a change to utils.media-item can break hooks, while a change to hooks can't break utils.media-item.
- Position
- Below the diagonal: hooks uses a module listed above it, which is the healthy direction.
34→11 lib uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in lib uses a type in contexts.ViewContext.
- The types involved
web.src.lib.calendar-utils→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- lib uses contexts.ViewContext, so a change to contexts.ViewContext can break lib, while a change to lib can't break contexts.ViewContext.
- Position
- Below the diagonal: lib uses a module listed above it, which is the healthy direction.
34→13 lib uses lib.custom-icons✕
- Connections
- 1 pair of types, where a type in lib uses a type in lib.custom-icons.
- The types involved
web.src.lib.custom-icons→web.src.lib.custom-icons.CustomIconValue
- Direction
- lib uses lib.custom-icons, so a change to lib.custom-icons can break lib, while a change to lib can't break lib.custom-icons.
- Position
- Below the diagonal: lib uses a module listed above it, which is the healthy direction.
34→14 lib uses types.proto.api.instance_service_pb✕
- Connections
- 1 pair of types, where a type in lib uses a type in types.proto.api.instance_service_pb.
- The types involved
web.src.lib.resource-names→web.src.types.proto.api.instance_service_pb.InstanceSetting_Key
- Direction
- lib uses types.proto.api.instance_service_pb, so a change to types.proto.api.instance_service_pb can break lib, while a change to lib can't break types.proto.api.instance_service_pb.
- Position
- Below the diagonal: lib uses a module listed above it, which is the healthy direction.
34→15 lib uses types.proto.api.memo_service_pb✕
- Connections
- 1 pair of types, where a type in lib uses a type in types.proto.api.memo_service_pb.
- The types involved
web.src.lib.resource-names→web.src.types.proto.api.memo_service_pb.Visibility
- Direction
- lib uses types.proto.api.memo_service_pb, so a change to types.proto.api.memo_service_pb can break lib, while a change to lib can't break types.proto.api.memo_service_pb.
- Position
- Below the diagonal: lib uses a module listed above it, which is the healthy direction.
35→11 types.statistics uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in types.statistics uses a type in contexts.ViewContext.
- The types involved
web.src.types.statistics.StatisticsData→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- types.statistics uses contexts.ViewContext, so a change to contexts.ViewContext can break types.statistics, while a change to types.statistics can't break contexts.ViewContext.
- Position
- Below the diagonal: types.statistics uses a module listed above it, which is the healthy direction.
36→15 utils uses types.proto.api.memo_service_pb✕
- Connections
- 1 pair of types, where a type in utils uses a type in types.proto.api.memo_service_pb.
- The types involved
web.src.utils.memo→web.src.types.proto.api.memo_service_pb.Visibility
- Direction
- utils uses types.proto.api.memo_service_pb, so a change to types.proto.api.memo_service_pb can break utils, while a change to utils can't break types.proto.api.memo_service_pb.
- Position
- Below the diagonal: utils uses a module listed above it, which is the healthy direction.
36→16 utils uses utils.media-item✕
- Connections
- 1 pair of types, where a type in utils uses a type in utils.media-item.
- The types involved
web.src.utils.media-item→web.src.utils.media-item.AttachmentVisualItem
- Direction
- utils uses utils.media-item, so a change to utils.media-item can break utils, while a change to utils can't break utils.media-item.
- Position
- Below the diagonal: utils uses a module listed above it, which is the healthy direction.
37→18 components.ActivityCalendar.CalendarCell uses components.ActivityCalendar.types✕
- Connections
- 1 pair of types, where a type in components.ActivityCalendar.CalendarCell uses a type in components.ActivityCalendar.types.
- The types involved
web.src.components.ActivityCalendar.CalendarCell.CalendarCellProps→web.src.components.ActivityCalendar.types.CalendarDayCell
- Direction
- components.ActivityCalendar.CalendarCell uses components.ActivityCalendar.types, so a change to components.ActivityCalendar.types can break components.ActivityCalendar.CalendarCell, while a change to components.ActivityCalendar.CalendarCell can't break components.ActivityCalendar.types.
- Position
- Below the diagonal: components.ActivityCalendar.CalendarCell uses a module listed above it, which is the healthy direction.
38→11 components.CalendarView uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in components.CalendarView uses a type in contexts.ViewContext.
- The types involved
web.src.components.CalendarView.dayModel→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- components.CalendarView uses contexts.ViewContext, so a change to contexts.ViewContext can break components.CalendarView, while a change to components.CalendarView can't break contexts.ViewContext.
- Position
- Below the diagonal: components.CalendarView uses a module listed above it, which is the healthy direction.
38→20 components.CalendarView uses components.CalendarView.CalendarDayCell✕
- Connections
- 2 pairs of types, where a type in components.CalendarView uses a type in components.CalendarView.CalendarDayCell.
- The types involved
web.src.components.CalendarView.CalendarDayCell→web.src.components.CalendarView.CalendarDayCell.CalendarCellLayoutweb.src.components.CalendarView.CalendarDayCell→web.src.components.CalendarView.CalendarDayCell.CalendarDayCellProps
- Direction
- components.CalendarView uses components.CalendarView.CalendarDayCell, so a change to components.CalendarView.CalendarDayCell can break components.CalendarView, while a change to components.CalendarView can't break components.CalendarView.CalendarDayCell.
- Position
- Below the diagonal: components.CalendarView uses a module listed above it, which is the healthy direction.
39→6 components.MemoEditor.edit.hooks uses components.MemoEditor.edit.state.types✕
- Connections
- 1 pair of types, where a type in components.MemoEditor.edit.hooks uses a type in components.MemoEditor.edit.state.types.
- The types involved
web.src.components.MemoEditor.edit.hooks.useAutoSave→web.src.components.MemoEditor.edit.state.types.EditorState
- Direction
- components.MemoEditor.edit.hooks uses components.MemoEditor.edit.state.types, so a change to components.MemoEditor.edit.state.types can break components.MemoEditor.edit.hooks, while a change to components.MemoEditor.edit.hooks can't break components.MemoEditor.edit.state.types.
- Position
- Below the diagonal: components.MemoEditor.edit.hooks uses a module listed above it, which is the healthy direction.
39→26 components.MemoEditor.edit.hooks uses components.MemoEditor.edit.services.cacheService✕
- Connections
- 1 pair of types, where a type in components.MemoEditor.edit.hooks uses a type in components.MemoEditor.edit.services.cacheService.
- The types involved
web.src.components.MemoEditor.edit.hooks.useAutoSave→web.src.components.MemoEditor.edit.services.cacheService.EditorDraft
- Direction
- components.MemoEditor.edit.hooks uses components.MemoEditor.edit.services.cacheService, so a change to components.MemoEditor.edit.services.cacheService can break components.MemoEditor.edit.hooks, while a change to components.MemoEditor.edit.hooks can't break components.MemoEditor.edit.services.cacheService.
- Position
- Below the diagonal: components.MemoEditor.edit.hooks uses a module listed above it, which is the healthy direction.
40→11 components.ActivityCalendar uses contexts.ViewContext✕
- Connections
- 1 pair of types, where a type in components.ActivityCalendar uses a type in contexts.ViewContext.
- The types involved
web.src.components.ActivityCalendar.utils→web.src.contexts.ViewContext.MemoTimeBasis
- Direction
- components.ActivityCalendar uses contexts.ViewContext, so a change to contexts.ViewContext can break components.ActivityCalendar, while a change to components.ActivityCalendar can't break contexts.ViewContext.
- Position
- Below the diagonal: components.ActivityCalendar uses a module listed above it, which is the healthy direction.
40→18 components.ActivityCalendar uses components.ActivityCalendar.types✕
- Connections
- 2 pairs of types, where a type in components.ActivityCalendar uses a type in components.ActivityCalendar.types.
- The types involved
web.src.components.ActivityCalendar.MonthCalendar→web.src.components.ActivityCalendar.types.MonthCalendarPropsweb.src.components.ActivityCalendar.cellStyles→web.src.components.ActivityCalendar.types.CalendarDayCell
- Direction
- components.ActivityCalendar uses components.ActivityCalendar.types, so a change to components.ActivityCalendar.types can break components.ActivityCalendar, while a change to components.ActivityCalendar can't break components.ActivityCalendar.types.
- Position
- Below the diagonal: components.ActivityCalendar uses a module listed above it, which is the healthy direction.
40→37 components.ActivityCalendar uses components.ActivityCalendar.CalendarCell✕
- Connections
- 1 pair of types, where a type in components.ActivityCalendar uses a type in components.ActivityCalendar.CalendarCell.
- The types involved
web.src.components.ActivityCalendar.CalendarCell→web.src.components.ActivityCalendar.CalendarCell.CalendarCellProps
- Direction
- components.ActivityCalendar uses components.ActivityCalendar.CalendarCell, so a change to components.ActivityCalendar.CalendarCell can break components.ActivityCalendar, while a change to components.ActivityCalendar can't break components.ActivityCalendar.CalendarCell.
- Position
- Below the diagonal: components.ActivityCalendar uses a module listed above it, which is the healthy direction.
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
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 110 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 27 | High / Critical |
| A07:2025 — Authentication Failures | 23 | High / Critical |
| A02:2025 — Security Misconfiguration | 4 | Medium |
Roadmap
First, ensure all custom controls are fully keyboard-operable and anchors have valid hrefs to fix immediate interaction barriers. Second, enforce accessibility standards by enabling linting rules, adding test assertions, and gating checks in CI to prevent future regressions. Third, resolve circular imports by extracting shared logic into separate modules to improve code stability. Finally, address historical secrets in version control and clarify the codebase's architectural layers to ensure proper organization and security.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. | +5.4 pts | Medium | Keyboard semantics |
| Enforce accessibility in the toolchain you already use: enable Biome's a11y rule group in your biome.json `linter.rules` (it is off whenever `recommended` is false and the group is unlisted), then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI. | +2.9 pts | Medium | A11y enforcement |
| Break each cycle by extracting the shared piece into a module both sides can import. | +2.4 pts | Medium | Circular Imports |
| Resolve the 4 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. | +1.0 pts | Low | Supply-chain Provenance & Signing |
| 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. | +1.8 pts | Medium | Code composition |
| Resolve the 16 REDACTED finding(s) in Secrets (history) — start with REDACTED (6), REDACTED (5), REDACTED (3). | +1.8 pts | Medium | Secrets (history) |
| Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video. | +1.7 pts | Medium | Text alternatives |
| Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1. | +1.6 pts | Medium | Visual & motion safety |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 2.4 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.4 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.4 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Secrets (history): REDACTED: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 6.2 | Mixed | Dependency Vulnerabilities: Medium CVE: REDACTED |
| REDACTED | 6.2 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 6.3 | Mixed | Static Analysis (SAST): Medium: REDACTED |
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. 74 of 79 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 79 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, 418 of 454 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 · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ 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
- D1 Cyclomatic Complexity — 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. Most of this repository's production source (.go) had no cyclomatic complexity computed for it: no function bodies were exposed for those file kinds by any language model this pass could load.
- D2 Cognitive Complexity — 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. Most of this repository's production source (.go) had no cognitive complexity computed for it: no function bodies were exposed for those file kinds by any language model this pass could load.
- D4 Code Duplication — 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. Most of this repository's production source (.go) was not read by duplication detection: no source of those file kinds was exposed to the token comparison by any language model this pass could load. Duplication in .ts, .tsx is measured by R10 Code Duplication and is not part of this gap.
- 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 1,086 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 204 test source file(s) (.go) 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 .go, and the go executor ran against the .go half and could not be re-run to completion inside our analyzer environment — so reliability was not measured for the repository as a whole. The JavaScript/TypeScript (vitest via `pnpm install --frozen-lockfile --ignore-scripts` in web/ (1567 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. The remedy is our analyzer environment, not a runner nobody has built.
- D14 License Compliance — 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. This repository declares a Go module (REDACTED/go.sum), but the licence verdict published here was taken over its npm package dependencies. Nothing was read about its Go dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
- D15 Churn × Complexity Hotspots — 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. A hotspot is churn × complexity. Churn was measured (157677 line(s) across the 90-day window), but no complexity could be computed for .go, which is most of this repository's production code — so every churned file would score as complexity 0 and the hotspot list would be empty no matter how tangled the code is. Not scored — this is a gap in the analysis run, not a finding about this repository.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. A language sidecar this run needed FAILED, so the code model the non-MSBuild public-API collector reads was never built — this is a DEGRADED run, not a settled gap, and the surface may well be collectable on a re-run: The Go sidecar exited 0 and produced a model, but its own source census reports it opened ZERO Go files — while the engine's presence probe found Go source in this tree. The model is therefore empty for a reason on OUR side, not the repository's, and Go is recorded as unread rather than as clean.
- D26 Project Cohesion — 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. Project size and spread are measured over build units (a .NET project, a Maven or Gradle module, an npm, Deno or JSR package, a Go module, a Cargo crate, a Python, Composer, Bundler, RubyGems, Mix, rebar3, sbt, SwiftPM or pub package, an OTP application, an Xcode project or XcodeGen spec, or a checkout that declares no build at all) whose source a code model reads. This repository's production source is in a language no model reads, or in units whose build tool D26 does not recognise. That is a gap in this analyzer's language reach — not a finding that the repository's projects are cohesive.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
- 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. `web/src/components/CustomIconPicker.tsx`, `web/src/components/MemoEditor/view/useSearchMatchHighlight.ts`, `web/src/lib/memo-markdown.ts`, `web/src/types/proto/api/user_service_pb.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.
- AXR1 Runtime accessibility — 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. Render strategy: boot via DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — memos Pulling memos Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: memos Pulling memos Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
- 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.
- 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 reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Go is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- 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 reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Go is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- R10 Code Duplication — 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. 25 further occurrence(s) are not listed individually; the score already reflects all 65.
- R7 Dead Code — 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. 1 further occurrence(s) are not listed individually; the score already reflects all 41.
- 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.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, Rust, Erlang, F#, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded, no Java, Rust, Erlang, F#, Python, Dart, Ruby, Scala or Kotlin was found, and this repository's Go is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — 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. 2 further occurrence(s) are not listed individually; the score already reflects all 42.
- 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 reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- Production source was not modelled — run is Degraded — No code model read .go, so the complexity, duplication and architecture dimensions were scored over a minority of this repository rather than its product, and dimensions that abstained did so for want of a model rather than for want of findings. The grade is NOT representative of this repository; diagnostics.md records the exact cause. The Go sidecar exited 0 and produced a model, but its own source census reports it opened ZERO Go files — while the engine's presence probe found Go source in this tree. The model is therefore empty for a reason on OUR side, not the repository's, and Go is recorded as unread rather than as clean.
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
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
- 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.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- 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.
- D25 ADR Conformance: ADR conformance is the LLM-scored fraction of sampled code that follows recorded decisions — it checks the decisions that were written down and the slices it sampled, not unrecorded rules or the whole tree.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (REDACTED, 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.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D5 · Coupling
2 production modules (npm+Go), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence, with abstractness counted on 1 of the 2 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
D6 · Cohesion (LCOM4)
0 of 1 classes have LCOM4 above 3.
D7 · Architectural Integrity
All 7 mechanizable ADR(s) are enforced: 6 by analyzers, 1 by tests. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
D9 · Test Distribution
2159 test methods: 2159 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 1086 `it`/`test` case(s) across 189 test file(s) declaring at least one; its tier split is read from package names and paths only. The Go suite contributes 1073 test case(s) across 197 `_test.go` file(s) declaring at least one — every `func Test…(t *testing.T)` that `go test` would collect, plus the suite methods a testify-style runner reaches; a table-driven case list counts once, so this is a floor. Its tier split is INFERRED from file names, paths and build constraints, not declared: 9 of those file(s) use Go's external test package (`package x_test`), which is a visibility boundary rather than a pyramid tier and was not read as one.
D10 · Test Quality
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 1086 tests. Measured on the JavaScript/TypeScript suite only — at least 204 test source file(s) (.go) went unread, so its test quality is unmeasured and is not in these counts.
D12 · Dependency Hygiene
19 outdated, 0 author-deprecated direct Go module(s), 0 pinning or checksum defect(s). 43 of 43 direct requirement(s) were graded against proxy.golang.org (0 not served there, 3 publishing no tagged release to be behind). Whether any of these modules is UNMAINTAINED is not graded — proxy.golang.org publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, not a registry one. Known CVEs in this module graph are D30's question, read from REDACTED and go.sum there.
What to do
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · REDACTED Scanning
1 secret(s) detected.
What to do
- Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
- Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 46 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 46 production dependency(ies) this repository's committed lockfile resolves, across 1 product REDACTED manifest(s). Its 22 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 1 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged. ★ COVERAGE OF THIS VERDICT: it grades this repository's npm package dependencies and nothing else. The repository also declares a Go module (REDACTED/go.sum), and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
D16 · Bus Factor
21 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is store/db/mysql/space.go. Counted over 410 of the 687 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D17 · Explicit Debt
1 deducted task-comment markers across 85360 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.
What to do
- Resolve the 1 TodoComment finding(s) in Explicit Debt — start with instance_service.go. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The repository's root README is excellent: it features an engaging featured sponsor link, a clear overview of Memos (self-hosted note-taking app), a Docker badge, a timeline preview image, and a full outline for the document set. The core/README documents its own package (business rules) with a table of contents; filter/, internal/, proto/, provider/, docs/design/, and server/mcp/READMEs each serve their directories while contributing to an overarching architecture design doc set. All visible documents are well written, complete, and structured. The repository's READMEs document the store/test/, mcp/evals/, web/src/components/, and components/ui/ directories — each a tool or library within its own tier — with no single root overview. The design docs cover configuration provisioning, API abuse controls, memo attachment filters, and memos export format (all implemented), plus an architecture outline for ConfirmDialog, MemoEditor, and the UI kit. All four READMEs are clipped mid-sentence; the internal jargon is consistent across the project. The repository's READMEs are strong design documents for the Multi-Spaces collaboration context (shared Spaces with no tenant boundaries), Unique Email attribute (instance-unique normalized email), and User Usage Limits four-per-user metrics. All three projects have complete design docs covering goals, non-goals, proposed models, migration, API shape, security invariants, alternatives, and deferred work, with the outline visible beyond the clipped portion. The READMEs are thin but each document is a focused domain-design doc rather than an overview of the repository as a whole.
D20 · ADR Quality
Evaluated 7 ADR(s) individually; mean quality 9.3/10 (consistently complete and clear). 0 flagged with a specific gap.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D25 · ADR Conformance
2 conform / 0 violate across 7 ADRs.
D28 · Secrets (history)
18 finding(s): 0 critical, 18 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 16 REDACTED finding(s) in Secrets (history) — start with REDACTED (6), REDACTED (5), REDACTED (3). — One of this dimension's main actionable groups (16 issue-level).
- Resolve the 2 High secret finding(s) in Secrets (history) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
110 finding(s): 0 critical, 101 high, 8 medium, 1 low. 67 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 14 file(s) — `proto/gen/api/attachment_service.pb.go`, `proto/gen/api/idp_service.pb.go`, `proto/gen/api/instance_service.pb.go`, `proto/gen/api/memo_service.pb.go`, `proto/gen/api/space_service.pb.go`, … (+9 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 3 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 19 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9), REDACTED (6), REDACTED (4). — One of this dimension's main actionable groups (19 issue-level).
- Resolve the 13 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (6), REDACTED (6), REDACTED. — One of this dimension's main actionable groups (13 issue-level).
- No action in Static Analysis (SAST) — all 67 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 (67 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
16 finding(s): 0 critical, 7 high, 6 medium, 3 low.
What to do
- Resolve the 7 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (7). — One of this dimension's main actionable groups (7 issue-level).
- Resolve the 5 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4), REDACTED. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 1 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D31 · IaC & Container Security
4 finding(s): 0 critical, 0 high, 3 medium, 1 low.
What to do
- Resolve the 3 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 410 of the 687 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: PreferencesSection.tsx↔setting.d.ts 84%; AttachmentCard.tsx↔AttachmentListView.tsx 75%; SignIn.tsx↔SignUp.tsx 70%
What to do
- Resolve the 6 Change coupling finding(s) in Change Coupling — start with PreferencesSection.tsx, AttachmentCard.tsx, SignIn.tsx. — One of this dimension's main actionable groups (6 warning-level).
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 4 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 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 — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.
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 1 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AC1 · Text alternatives
- An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. — web/src/components/AttachmentIcon.tsx:48
- Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation). (×2) — web/src/components/MemoMetadata/Attachment/AttachmentCard.tsx:35, web/src/components/PreviewImageDialog.tsx:411
What to do
- Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels
- This <img> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label. — web/src/components/AttachmentIcon.tsx:48
- This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — 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. — web/src/components/CreateAccessTokenDialog.tsx:127
- This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. 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. (×7) — web/src/components/CreateAccessTokenDialog.tsx:148, web/src/components/CreateUserDialog.tsx:121, web/src/components/MemoDetailSidebar/MemoSharePanel.tsx:140, …
- This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label. — web/src/components/DateTimeInput.tsx:20
- 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. (×3) — web/src/components/Settings/AISection.tsx:433, web/src/components/Settings/SettingList.tsx:96, web/src/components/ThemeSelect.tsx:34
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
- user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. — web/index.html:11
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. (×6) — web/src/components/AttachmentIcon.tsx:48, web/src/components/AttachmentIcon.tsx:110, web/src/components/AttachmentLibrary/AttachmentMediaGrid.tsx:25, …
- This <div> announces itself as a role="option" and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}="0" and an Enter/Space key handler, or make it a native <button>. If a parent widget owns the keyboard model, that parent must move focus onto the active role="option" or point aria-activedescendant at it. — web/src/components/LocalePicker.tsx:50
- This <div> binds mouseup and double-click — pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click. — web/src/components/MemoEditor/view/MemoContentView.tsx:117
- This <img> binds pointerdown, pointerup, pointermove and double-click — pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click. — web/src/components/PreviewImageDialog.tsx:437
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
- <div> takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2). — web/src/components/AppSidebar/SidebarResizeHandle.tsx:180
- <input> takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2). — web/src/components/DateTimeInput.tsx:20
- `*` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — web/src/index.css:7
- `.memo-editor-content .memo-editor-root` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — web/src/components/MemoEditor/edit/editor.css:26
What to do
- Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement
- No accessibility enforcement found — your Biome config enables no a11y rules and there's no axe/pa11y/Lighthouse in tests or CI. Start by turning on Biome's own a11y rule group to catch issues at author time. What was searched, so you can tell an absence from a miss: the 219 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 you already use: enable Biome's a11y rule group in your biome.json `linter.rules` (it is off whenever `recommended` is false and the group is unlisted), 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.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX6 · Interface segregation
- `EditorController` declares 17 required operations: `focus`, `hasFocus`, `isEmpty`, `getMarkdown`, `setMarkdown`, `insertMarkdown`, `getTags`, `hasChecklist`, `insertTag`, `createUploadAnchor`, `updateUploadAnchor`, `resolveUploadAnchor`, `cancelUploadAnchor`, `getSelection`, `setSelection`, `selectAll`, `toggleTaskList`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — web/src/components/MemoEditor/edit/types/editorController.ts:15
What to do
- Split fat interfaces into focused role-interfaces so clients depend only on what they use.
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 1 of 1 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- 7 ADR-shaped document(s) detected by content — `docs/design/api-abuse-controls.md`, `docs/design/configuration-provisioning.md`, `docs/design/memo-attachment-filters.md`, `docs/design/memos-export-format.md`, `docs/design/multi-spaces.md`, `docs/design/unique-email.md`, `docs/design/user-usage-limits.md`. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live — so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here.
What to do
- Move ADRs under docs/adr/ (or docs/adrs/) and name them NNNN-title.md so they're easy to find.
M3 · Folder & project structure
M4 · Documentation accuracy
- docs/design/README.md names `docs/configuration-provisioning.md`, but no file or folder `docs/configuration-provisioning.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/design/README.md:28
- docs/design/api-abuse-controls.md documents the environment variable `PERMISSION_DENIED`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/design/api-abuse-controls.md:199
- docs/design/unique-email.md links to `signup-abuse-controls.md`, but `docs/design/signup-abuse-controls.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/design/unique-email.md:32
- server/fileserver/README.md names `core/access.CheckMemoReadContext`, but no file or folder `core/access.CheckMemoReadContext` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — server/fileserver/README.md:21
- server/mcp/README.md names `server/discover`, but no file or folder `server/discover` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — server/mcp/README.md:116
What to do
- Reconcile the README with reality: docs/design/README.md names `docs/configuration-provisioning.md`, but no file or folder `docs/configuration-provisioning.md` exists; docs/design/api-abuse-controls.md documents the environment variable `PERMISSION_DENIED`, but no code, script or configuration file names it; docs/design/unique-email.md links to `signup-abuse-controls.md`, but `docs/design/signup-abuse-controls.md` does not exist; server/fileserver/README.md names `core/access.CheckMemoReadContext`, but no file or folder `core/access.CheckMemoReadContext` exists; server/mcp/README.md names `server/discover`, but no file or folder `server/discover` exists.
P1 · CI/CD gates
P2 · Observability
P3 · Security & performance tooling
What to do
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment is orchestrated by compose, and the service already exposes health probe endpoints (healthz/livez/readyz or a container healthcheck), but no compose service declares a `healthcheck:` that uses them and nothing pins a previous image to fall back to — so a release that starts but does not serve looks healthy, and reversing it is a manual step.
What to do
- Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
P6 · Release Hygiene
P7 · Outbound HTTP resilience
PF1 · Benchmark discipline
PF2 · Allocation hygiene
What to do
- Raise allocation-aware density on the hot paths — currently 187 use(s) across 51,354 production line(s) (~3.6/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
- Go: on hot paths, reuse buffers and objects through sync.Pool, preallocate slices and maps with make([]T, 0, n) / make(map[K]V, n), size builders with Grow, append with strconv.Append*, and reslice with buf[:0] instead of allocating anew.
PF3 · Async & latency hygiene
R1 · Type Safety
R10 · Code Duplication
- 7 duplicated blocks under web/src/ have copies in at least two of the sibling directories components, hooks, lib, pages, utils — 6 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — web/src/components/PasswordSignInForm.tsx:29
- 7 duplicated blocks under web/src/components/ have copies in at least two of the sibling directories AppSidebar, Inbox, MemoActionMenu, MemoDetailSidebar, MemoEditor, MemoMetadata (+2 more sibling(s) not listed) — 3 of them are reported below, and 4 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — web/src/components/MemoActionMenu/MemoActionMenu.tsx:195
- web/src/components/Inbox/MemoCommentMessage.tsx:1 · web/src/components/Inbox/MemoMentionMessage.tsx:1 — these 2 files are line-for-line copies of one another — 102 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — web/src/components/Inbox/MemoCommentMessage.tsx:1
- web/src/components/ChangeMemberPasswordDialog.tsx:12 · web/src/components/CreateUserDialog.tsx:16 — the two spans are one implementation copied and then locally edited — 203 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. — web/src/components/ChangeMemberPasswordDialog.tsx:12
- web/src/components/Settings/AISection.tsx:291 · web/src/components/Settings/SSOSection.tsx:161 — the two spans are one implementation copied and then locally edited — 246 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. — web/src/components/Settings/AISection.tsx:291
- web/src/contexts/InstanceContext.tsx:243 · web/src/contexts/MemoFilterContext.tsx:156 — the 2 copies are spread across 2 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. — web/src/contexts/InstanceContext.tsx:243
- web/src/components/Settings/InstanceSection.tsx:114 · web/src/components/Settings/PreferencesSection.tsx:88 — the two spans are one implementation copied and then locally edited — 214 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. — web/src/components/Settings/InstanceSection.tsx:114
- web/src/components/CreateAccessTokenDialog.tsx:134 · web/src/components/CreateWebhookDialog.tsx:234 — the two spans are one implementation copied and then locally edited — 191 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. — web/src/components/CreateAccessTokenDialog.tsx:134
- web/src/components/PasswordSignInForm.tsx:29 · web/src/pages/SignUp.tsx:48 — the two spans are one implementation copied and then locally edited — 179 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. — web/src/components/PasswordSignInForm.tsx:29
- web/src/components/Settings/LinkedIdentitySection.tsx:146 · web/src/components/Settings/SSOSection.tsx:125 — the 2 copies are spread across 2 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. — web/src/components/Settings/LinkedIdentitySection.tsx:146
- web/src/components/AppSidebar/AppSidebar.tsx:145 · web/src/components/AppSidebar/AppSidebar.tsx:183 — 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. — web/src/components/AppSidebar/AppSidebar.tsx:145
- web/src/components/ErrorBoundary.tsx:41 · web/src/components/ErrorBoundary.tsx:77 — the two spans are one implementation copied and then locally edited — 120 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. — web/src/components/ErrorBoundary.tsx:41
- web/src/components/VideoPoster.tsx:40 · web/src/hooks/useNearViewport.ts:25 — 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. — web/src/components/VideoPoster.tsx:40
- web/src/components/Settings/SSOSection.tsx:107 · web/src/components/Settings/WebhookSection.tsx:64 — the two spans are one implementation copied and then locally edited — 69 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. — web/src/components/Settings/SSOSection.tsx:107
- web/src/hooks/useSpaceQueries.ts:104 · web/src/hooks/useSpaceQueries.ts:192 — 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. — web/src/hooks/useSpaceQueries.ts:104
- web/src/hooks/useSpaceQueries.ts:148 · web/src/hooks/useSpaceQueries.ts:171 · web/src/hooks/useSpaceQueries.ts:194 — 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. — web/src/hooks/useSpaceQueries.ts:148
- web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:71 · web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:99 — 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. — web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:71
- web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:95 · web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:110 — 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. — web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:95
- web/src/components/MemoMetadata/Location/LocationDialog.tsx:34 · web/src/components/MemoMetadata/Relation/LinkMemoDialog.tsx:32 — the 2 copies are spread across 2 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. — web/src/components/MemoMetadata/Location/LocationDialog.tsx:34
- web/src/components/ChangeMemberPasswordDialog.tsx:98 · web/src/components/UpdateAccountDialog.tsx:220 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — web/src/components/ChangeMemberPasswordDialog.tsx:98
- web/src/components/Settings/AISection.tsx:523 · web/src/components/Settings/UsageLimitDialog.tsx:157 — the two spans are one implementation copied and then locally edited — 78 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. — web/src/components/Settings/AISection.tsx:523
- web/src/components/Settings/MemberSection.tsx:55 · web/src/components/Settings/MemberSection.tsx:73 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — web/src/components/Settings/MemberSection.tsx:55
- web/src/components/ui/popover.tsx:19 · web/src/components/ui/select.tsx:69 — the 2 copies are spread across 2 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. — web/src/components/ui/popover.tsx:19
- web/src/components/AppSidebar/ViewsSection.tsx:137 · web/src/pages/MemoViews.tsx:635 — 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. — web/src/components/AppSidebar/ViewsSection.tsx:137
- web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:43 · web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:73 · web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:101 — all 3 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. — web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:43
- web/src/components/CreateIdentityProviderDialog.tsx:341 · web/src/components/CreateIdentityProviderDialog.tsx:360 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — web/src/components/CreateIdentityProviderDialog.tsx:341
- web/src/components/Settings/NotificationSection.tsx:206 · web/src/components/Settings/NotificationSection.tsx:238 · web/src/components/Settings/NotificationSection.tsx:264 — 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. — web/src/components/Settings/NotificationSection.tsx:206
- web/src/components/Settings/AISection.tsx:525 · web/src/components/UpdateCustomizedProfileDialog.tsx:133 — the two spans are one implementation copied and then locally edited — 59 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. — web/src/components/Settings/AISection.tsx:525
- web/src/components/UpdateAccountDialog.tsx:185 · web/src/components/UpdateAccountDialog.tsx:197 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — web/src/components/UpdateAccountDialog.tsx:185
- web/src/components/CreateIdentityProviderDialog.tsx:508 · web/src/components/CreateIdentityProviderDialog.tsx:532 · web/src/components/CreateIdentityProviderDialog.tsx:550 — all 3 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. — web/src/components/CreateIdentityProviderDialog.tsx:508
- web/src/components/CreateIdentityProviderDialog.tsx:529 · web/src/components/CreateIdentityProviderDialog.tsx:547 — 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. — web/src/components/CreateIdentityProviderDialog.tsx:529
- web/src/components/MemoDisplaySettingMenu.tsx:126 · web/src/components/MemoDisplaySettingMenu.tsx:144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — web/src/components/MemoDisplaySettingMenu.tsx:126
- web/src/components/Settings/AccessTokenSection.tsx:286 · web/src/components/Settings/MyAccountSection.tsx:106 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — web/src/components/Settings/AccessTokenSection.tsx:286
- web/src/components/Settings/SpacesSection.tsx:288 · web/src/components/Settings/SpacesSection.tsx:471 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — web/src/components/Settings/SpacesSection.tsx:288
- web/src/components/ui/select.tsx:141 · web/src/components/ui/select.tsx:153 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — web/src/components/ui/select.tsx:141
- web/src/hooks/useMemoQueries.ts:317 · web/src/hooks/useMemoQueries.ts:380 — 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. — web/src/hooks/useMemoQueries.ts:317
- web/src/hooks/useSpaceQueries.ts:243 · web/src/hooks/useSpaceQueries.ts:275 · web/src/hooks/useSpaceQueries.ts:324 · web/src/hooks/useSpaceQueries.ts:370 — all 4 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. — web/src/hooks/useSpaceQueries.ts:243
- web/src/hooks/useUserQueries.ts:256 · web/src/hooks/useUserQueries.ts:304 — 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. — web/src/hooks/useUserQueries.ts:256
- web/src/hooks/useUserQueries.ts:311 · web/src/hooks/useUserQueries.ts:342 — 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. — web/src/hooks/useUserQueries.ts:311
- web/src/pages/NotFound.tsx:1 · web/src/pages/PermissionDenied.tsx:1 — the two spans are one implementation copied and then locally edited — 53 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. — web/src/pages/NotFound.tsx:1
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.
R11 · Import Boundaries
- web/src/components/map/positron.ts:4 imports maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — web/src/components/map/positron.ts:4
What to do
- Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity
- MemoDetail has cyclomatic complexity 51 and cognitive complexity 42; 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. — web/src/pages/MemoDetail.tsx:92
- PagedMemoList has cyclomatic complexity 45 and cognitive complexity 38; 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. — web/src/components/PagedMemoList/PagedMemoList.tsx:122
- SpaceSwitcher has cyclomatic complexity 41 and cognitive complexity 38; 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. — web/src/components/AppSidebar/SpaceSwitcher.tsx:60
- (anonymous) has cyclomatic complexity 39 and cognitive complexity 31; 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. — web/src/components/CalendarView/CalendarDayCell.tsx:164
- MemoDetailSidebar has cyclomatic complexity 38 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 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. — web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx:90
- EditSession has cyclomatic complexity 34 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 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. — web/src/components/MemoEditor/edit/EditSession.tsx:44
- MapView has cyclomatic complexity 33 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 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. — web/src/components/MapView/MapView.tsx:26
- PreviewImageDialog has cyclomatic complexity 33 and cognitive complexity 26; 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. — web/src/components/PreviewImageDialog.tsx:71
- SpaceDetail has cyclomatic complexity 29 and cognitive complexity 26; 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. — web/src/components/Settings/SpacesSection.tsx:331
- InviteSpaceMemberDialog has cyclomatic complexity 29 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. — web/src/components/Settings/InviteSpaceMemberDialog.tsx:29
- MediaMetadataDetails has cyclomatic complexity 26 and cognitive complexity 22; 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. — web/src/components/MediaMetadataDetails.tsx:75
- (anonymous) has cyclomatic complexity 26 and cognitive complexity 22; 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. — web/src/utils/media-metadata.ts:72
- MemoHeader has cyclomatic complexity 23 and cognitive complexity 20; 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. — web/src/components/MemoView/components/MemoHeader.tsx:27
- renderContent has cyclomatic complexity 22 and cognitive complexity 32; 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. — web/src/pages/Attachments.tsx:150
- (anonymous) has cyclomatic complexity 22 and cognitive complexity 26; 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. — web/src/components/ColumnGrid/ColumnGrid.tsx:102
- AttachmentItemCard has cyclomatic complexity 22 and cognitive complexity 20; 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. — web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:158
- (anonymous) has cyclomatic complexity 22 and cognitive complexity 19; 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. — web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:427
- CalendarView has cyclomatic complexity 22 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 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. — web/src/components/CalendarView/CalendarView.tsx:54
- (anonymous) has cyclomatic complexity 20 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 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. — web/src/hooks/useMemoFilters.ts:38
- (anonymous) has cyclomatic complexity 20 and cognitive complexity 21; 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. — web/src/utils/managed-attachment.ts:83
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- web/src/components/Settings/SpacesSection.tsx has 745 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/Settings/SpacesSection.tsx:1
- web/src/pages/MemoViews.tsx has 613 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/pages/MemoViews.tsx:1
- web/src/components/CreateIdentityProviderDialog.tsx has 579 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/CreateIdentityProviderDialog.tsx:1
- web/src/components/PreviewImageDialog.tsx has 563 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/PreviewImageDialog.tsx:1
- web/src/components/Settings/AISection.tsx has 496 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/Settings/AISection.tsx:1
- web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx has 453 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:1
- web/src/components/AppSidebar/AppSidebar.tsx has 437 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/AppSidebar/AppSidebar.tsx:1
- web/src/hooks/useLiveMemoRefresh.ts has 416 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/hooks/useLiveMemoRefresh.ts:1
- web/src/hooks/useMemoQueries.ts has 409 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/hooks/useMemoQueries.ts:1
- web/src/components/Settings/StorageSection.tsx has 407 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — web/src/components/Settings/StorageSection.tsx:1
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. (×12) — web/scripts/generate-tag-unicode-data.mjs:1, web/src/components/AttachmentIcon.tsx:1, web/src/main.tsx:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling
R7 · Dead Code
- Unreachable from the 3 application, 8 tooling and 191 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (3 application, 8 tooling, 191 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 (×10) — web/scripts/generate-tag-unicode-data.mjs, web/src/components/AttachmentIcon.tsx, web/src/components/DateTimeInput.tsx, …
- no import path from any entry point (3 application, 8 tooling, 191 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (web/src/components/AttachmentIcon.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — web/src/components/kit/SquareDiv.tsx
- Nothing ultimately consumes this binding: its only referrer is the re-export in web/src/components/AttachmentLibrary/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in web/src/components/AttachmentLibrary/index.ts in the same commit, or the barrel will import a name that no longer exists. (×2) — web/src/components/AttachmentLibrary/AttachmentLibraryStates.tsx:52, web/src/components/AttachmentLibrary/AttachmentLibraryToolbar.tsx:64
- Nothing imports this binding — it is safe to review for removal. (×24) — web/src/components/MemoEditor/edit/types/attachment.ts:187, web/src/components/MemoEditor/edit/types/attachment.ts:192, web/src/components/ui/badge.tsx:34, …
- Nothing ultimately consumes this binding: its only referrer is the re-export in web/src/components/MemoMetadata/Attachment/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in web/src/components/MemoMetadata/Attachment/index.ts in the same commit, or the barrel will import a name that no longer exists. — web/src/components/MemoMetadata/Attachment/AttachmentCard.tsx:45
- Nothing ultimately consumes this binding: its only referrer is the re-export in web/src/hooks/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in web/src/hooks/index.ts in the same commit, or the barrel will import a name that no longer exists. — web/src/hooks/useAsyncEffect.ts:9
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
R9 · Circular Imports
- web/src/router/index.tsx → web/src/components/MemoEditor/index.ts → web/src/components/MemoEditor/MemoEditor.tsx → web/src/components/MemoEditor/edit/EditSession.tsx → web/src/components/MemoEditor/edit/Toolbar/index.ts → web/src/components/MemoEditor/edit/Toolbar/EditorToolbar.tsx → web/src/components/MemoEditor/edit/Toolbar/InsertMenu.tsx → web/src/components/MemoMetadata/index.ts → web/src/components/MemoMetadata/Relation/index.ts → web/src/components/MemoMetadata/Relation/LinkMemoDialog.tsx → web/src/components/MemoPreview/index.ts → web/src/components/MemoPreview/MemoPreview.tsx → web/src/components/MemoEditor/view/MemoContentView.tsx → web/src/components/MemoEditor/view/useTagNavigation.ts → web/src/router/index.tsx (one verified cycle inside a mutually-dependent group of 41 files) — web/src/router/index.tsx:4
- web/src/contexts/AuthContext.tsx → web/src/hooks/useUserQueries.ts → web/src/hooks/useCurrentUser.ts → web/src/contexts/AuthContext.tsx — web/src/contexts/AuthContext.tsx:5
- web/src/i18n.ts → web/src/utils/i18n.ts → web/src/i18n.ts — web/src/i18n.ts:4
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X2 · Cancellation propagation
- Only 7/10 functions that make a cancellable request (fetch, axios, ky, ofetch; net/http, net.Dial) accept a context.Context or an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a `signal` (Go: `ctx context.Context`) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
- `Post` calls `http.NewRequest(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`. — internal/webhook/webhook.go:141
- `fetchText` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — web/scripts/generate-tag-unicode-data.mjs:12
- `queryFn` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — web/src/components/map/useReverseGeocoding.ts:12
What to do
- Thread a context.Context or an AbortSignal through functions that make requests, so the work stops when its caller gives up.
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
- `instanceGeneralSetting.additionalStyle` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — web/src/App.tsx:38
- `instanceGeneralSetting.additionalScript` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — web/src/App.tsx:47
- `svg` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — web/src/lib/memo-markdown.ts:121
What to do
- Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X25 · Inert configuration knob
X26 · Unsynchronised callback handoff
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
- `if err := decoder.Decode(&value); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — internal/linkmeta/html_meta_extract.go:153
- `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×11) — internal/linkmeta/html_meta_extract.go:303, internal/linkmeta/html_meta_extract.go:403, internal/linkmeta/html_meta_extract.go:434, …
- `if _, err := w.Write(frame); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — REDACTED:103
- `if unmarshalErr != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — server/api/connect_handler.go:78
- `if _, err := os.Stat(path); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — server/api/attachment_service_storage.go:342
- `if err := transcodeProto(metadata, apiMetadata); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — server/api/attachment_media_metadata.go:200
- An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×21) — web/src/connect.ts:143, web/src/components/VideoPoster.tsx:89, web/src/components/UserMenu.tsx:168, …
- `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — web/src/components/MediaMetadataDetails.tsx:103
- `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. (×2) — web/src/components/MapView/useMapMemos.ts:26, web/src/hooks/useLiveMemoRefresh.ts:418
What to do
- Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
- ~0.6 `!` null assertions per 1k TypeScript source lines — 28 assertion(s) across the 43347 source line(s) of the 409 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: web/src/components/MapView/MapCanvas.tsx (5), web/src/hooks/useSpaceQueries.ts (4), web/src/utils/managed-attachment.ts (4). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
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 | 84% | Strong | Solid. |
| Architecture | 58% | Adequate — gated by R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 71% | Strong | Solid. |
| Readiness | 76% | Strong | Solid. |
| Security | 55% | Adequate — gated by D28, D29, D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Accessibility | 44% | Weak — gated by AC4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 87% | Strong | Strongest area. |
Unscored — 3 check(s) recorded observations but carry no score
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
- X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
- X7 Silent fallback defaults — 4 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 45 check(s) not relevant to this codebase
- AX1 Captive dependencies — Not applicable: this repository's Go imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's TypeScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- 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
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — memos Pulling memos Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: memos Pulling memos Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- 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.
- D1 Cyclomatic Complexity — cyclomatic complexity not measured — .go exposed no member bodies
- D11 Test Reliability — Test reliability not scored — polyglot repository, one half's runner produced no measurement
- D15 Churn × Complexity Hotspots — complexity unreadable for .go — churn × complexity hotspots could not be measured
- 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.
- D2 Cognitive Complexity — cognitive complexity not measured — .go exposed no member bodies
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D26 Project Cohesion — D26 measured no build unit over this repository's .go source. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D27 Navigability — D27 reads resolved call sites in the languages it reads only — this repository's production source is .go, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D3 God Classes — Most of this repository's production source (.go) was not read by god-class detection, so type and module size was not assessed for the languages that are the product — whatever else this pass did read is not this repository's type and module size. Not scored — this is a gap in the analyzer, not a verdict about this repository.
- D32 Data Compliance (PII/GDPR) — 4 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- 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.
- D4 Code Duplication — Duplication not measured — .go not exposed to the token comparison
- 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.
- D8 Code Coverage — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — web/ 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 — not scored — this repository shows none of the 3 signals this lens looks for
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. 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
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) 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
- R5 Dependency Freshness — uses a pnpm lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- 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.
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 146 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
- 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
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Click handler on a non-interactive <div> web/src/components/AttachmentIcon.tsx:110
- Click handler on a non-interactive <div> web/src/components/AttachmentLibrary/AttachmentMediaGrid.tsx:25
- Click handler on a non-interactive <div> web/src/components/MemoMetadata/Attachment/AttachmentListView.tsx:47
- Click handler on a non-interactive <div> web/src/components/MemoMetadata/Relation/LinkMemoDialog.tsx:66
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Click handler on a non-interactive <img> web/src/components/AttachmentIcon.tsx:48
- Click handler on a non-interactive <img> web/src/components/MemoMetadata/Attachment/AttachmentCard.tsx:17
- REDACTED
- REDACTED
- <img> without a text alternative web/src/components/AttachmentIcon.tsx:48
- Custom control with no accessible name on <img> web/src/components/AttachmentIcon.tsx:48
- <input> without a programmatic label web/src/components/DateTimeInput.tsx:20
- Viewport restricts zoom web/index.html:11
- Clickable role="option" that no keyboard user can reach web/src/components/LocalePicker.tsx:50
- Double-click handler on a non-interactive <div> web/src/components/MemoEditor/view/MemoContentView.tsx:117
- Double-click handler on a non-interactive <img> web/src/components/PreviewImageDialog.tsx:437
- REDACTED
- REDACTED
- Import cycle (14 files) web/src/router/index.tsx:4
- Import cycle (3 files) web/src/contexts/AuthContext.tsx:5
- Import cycle (2 files) web/src/i18n.ts:4
Serious — 191 finding(s)
- Swallowed exception (empty catch) web/src/connect.ts:143
- Swallowed exception (empty catch) web/src/components/VideoPoster.tsx:89
- Swallowed exception (empty catch) web/src/components/UserMenu.tsx:168
- Swallowed exception (empty catch) web/src/components/CreateWebhookDialog.tsx:145
- Swallowed exception (empty catch) web/src/components/ChallengeWidget.tsx:105
- Swallowed exception (empty catch) web/src/components/MapView/useMapMemos.ts:26
- Swallowed exception (empty catch) web/src/components/MemoActionMenu/memoShareImage.ts:37
- Swallowed exception (empty catch) web/src/components/MemoActionMenu/hooks.ts:75
- Swallowed exception (empty catch) web/src/components/MemoEditor/edit/draftKey.ts:53
- Swallowed exception (empty catch) web/src/components/MemoEditor/edit/services/cacheService.ts:60
- Swallowed exception (empty catch) web/src/components/MemoEditor/edit/services/cacheService.ts:73
- Swallowed exception (empty catch) web/src/components/MemoReactionListView/hooks.ts:66
- Swallowed exception (empty catch) web/src/components/map/LocationPicker.tsx:184
- Swallowed exception (empty catch) web/src/contexts/AuthContext.tsx:99
- Swallowed exception (empty catch) web/src/hooks/useLocalStorage.ts:36
- Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts:99
- Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts:396
- Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts:418
- Swallowed exception (empty catch) web/src/hooks/useLiveMemoRefresh.ts:449
- Swallowed exception (empty catch) web/src/lib/tag.ts:22
- Swallowed exception (empty catch) web/src/lib/tag-suggestions.ts:38
- Swallowed exception (empty catch) web/src/utils/theme.ts:95
- Swallowed exception (empty catch) web/src/utils/managed-attachment.ts:65
- Swallowed exception (caught, then discarded) internal/linkmeta/html_meta_extract.go:153
- Swallowed exception (caught, then discarded) internal/linkmeta/html_meta_extract.go:303
- Swallowed exception (caught, then discarded) internal/linkmeta/html_meta_extract.go:403
- Swallowed exception (caught, then discarded) internal/linkmeta/html_meta_extract.go:434
- Swallowed exception (caught, then discarded) internal/motionphoto/motionphoto.go:51
- Swallowed exception (caught, then discarded) server/api/user_service_memo_import.go:571
- Swallowed exception (caught, then discarded) REDACTED:103
- Swallowed exception (caught, then discarded) server/api/memo_mention_helpers.go:80
- Swallowed exception (caught, then discarded) server/api/memo_mention_helpers.go:90
- Swallowed exception (caught, then discarded) server/api/connect_handler.go:78
- Swallowed exception (caught, then discarded) REDACTED:203
- Swallowed exception (caught, then discarded) server/api/attachment_service_storage.go:342
- Swallowed exception (caught, then discarded) server/api/attachment_media_metadata.go:200
- Swallowed exception (caught, then discarded) server/api/ai_service.go:239
- Swallowed exception (caught, then discarded) server/auth/extract.go:29
- Swallowed exception (caught, then discarded) server/mcp/adapter.go:245
- Swallowed exception (caught, then discarded) web/src/components/MediaMetadataDetails.tsx:103
- No test reaches this file web/scripts/generate-tag-unicode-data.mjs:1
- No test reaches this file web/src/components/AttachmentIcon.tsx:1
- No test reaches this file web/src/main.tsx:1
- No test reaches this file web/src/hooks/useTokenRefreshOnFocus.ts:1
- No test reaches this file web/src/components/kit/SquareDiv.tsx:1
- No test reaches this file web/src/components/DateTimeInput.tsx:1
- No test reaches this file web/src/components/Settings/SectionChip.tsx:1
- No test reaches this file web/src/components/kit/OverflowTip.tsx:1
- No test reaches this file web/src/components/Settings/SectionMenuItem.tsx:1
- No test reaches this file web/src/components/ui/checkbox.tsx:1
- No test reaches this file web/src/types/common.ts:1
- No test reaches this file web/src/components/RequiredBadge.tsx:1
- Duplicated block (11 lines × 2 locations) web/src/components/CreateIdentityProviderDialog.tsx:529
- Duplicated block (11 lines × 2 locations) web/src/components/MemoDisplaySettingMenu.tsx:126
- Duplicated block (11 lines × 2 locations) web/src/components/Settings/AccessTokenSection.tsx:286
- Duplicated block (11 lines × 2 locations) web/src/components/Settings/SpacesSection.tsx:288
- Duplicated block (11 lines × 2 locations) web/src/components/ui/select.tsx:141
- Duplicated block (11 lines × 2 locations) web/src/hooks/useMemoQueries.ts:317
- Duplicated block (11 lines × 2 locations) web/src/hooks/useUserQueries.ts:256
- Duplicated block (11 lines × 2 locations) web/src/hooks/useUserQueries.ts:311
- Change coupling: PreferencesSection.tsx ↔ setting.d.ts web/src/components/Settings/PreferencesSection.tsx:1
- Change coupling: AttachmentCard.tsx ↔ AttachmentListView.tsx web/src/components/MemoMetadata/Attachment/AttachmentCard.tsx:1
- Change coupling: SignIn.tsx ↔ SignUp.tsx web/src/pages/SignIn.tsx:1
- Change coupling: AuthCallback.tsx ↔ SignIn.tsx web/src/pages/AuthCallback.tsx:1
- Change coupling: webhook.go ↔ memo_service.go internal/webhook/webhook.go:1
- Change coupling: AttachmentListView.tsx ↔ LocationDisplayView.tsx web/src/components/MemoMetadata/Attachment/AttachmentListView.tsx:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- <RadioGroup> field component without a label web/src/components/CreateAccessTokenDialog.tsx:148
- <RadioGroup> field component without a label web/src/components/CreateUserDialog.tsx:121
- <RadioGroup> field component without a label web/src/components/Settings/MemoExportSection.tsx:165
- <RadioGroup> field component without a label web/src/components/Settings/StorageSection.tsx:272
- <Select> field component without a label web/src/components/MemoDetailSidebar/MemoSharePanel.tsx:140
- <Select> field component without a label web/src/components/Settings/AISection.tsx:384
- <Select> field component without a label web/src/components/Settings/AISection.tsx:486
- <Select> field component without a label web/src/components/ThemeSelect.tsx:34
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- <Textarea> field component without a label web/src/components/CreateAccessTokenDialog.tsx:127
- <Textarea> field component without a label web/src/components/Settings/AISection.tsx:433
- <Textarea> field component without a label web/src/components/Settings/SettingList.tsx:96
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (15 lines × 2 locations) web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:71
- Duplicated block (15 lines × 2 locations) web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:95
- Duplicated block (15 lines × 2 locations) web/src/components/MemoMetadata/Location/LocationDialog.tsx:34
- Duplicated block (14 lines × 2 locations) web/src/components/ChangeMemberPasswordDialog.tsx:98
- Duplicated block (14 lines × 2 locations) web/src/components/Settings/MemberSection.tsx:55
- Duplicated block (14 lines × 2 locations) web/src/components/ui/popover.tsx:19
- Untrusted text written into markup unescaped web/src/App.tsx:38
- Untrusted text written into markup unescaped web/src/App.tsx:47
- Untrusted text written into markup unescaped web/src/lib/memo-markdown.ts:121
- <video> without a captions track web/src/components/MemoMetadata/Attachment/AttachmentCard.tsx:35
- <video> without a captions track web/src/components/PreviewImageDialog.tsx:411
- Focus outline removed inline web/src/components/AppSidebar/SidebarResizeHandle.tsx:180
- Focus outline removed inline web/src/components/DateTimeInput.tsx:20
- Focus outline removed in CSS without a :focus replacement web/src/index.css:7
- Focus outline removed in CSS without a :focus replacement web/src/components/MemoEditor/edit/editor.css:26
- Duplicated block (13 lines × 2 locations) web/src/components/AppSidebar/ViewsSection.tsx:137
- Duplicated block (13 lines × 2 locations) web/src/components/CreateIdentityProviderDialog.tsx:341
- Duplicated block (13 lines × 3 locations) web/src/components/AttachmentLibrary/AttachmentFileRows.tsx:43
- Duplicated block (13 lines × 3 locations) web/src/components/Settings/NotificationSection.tsx:206
- Dead file (~28 LoC) web/src/components/Settings/SectionMenuItem.tsx
- Dead file (~28 LoC) web/src/components/ui/checkbox.tsx
- Async function without AbortSignal: fetchText web/scripts/generate-tag-unicode-data.mjs:12
- Async function without AbortSignal: queryFn web/src/components/map/useReverseGeocoding.ts:12
- Accessibility enforcement below the top rung
- TodoComment server/api/instance_service.go:227
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Coverage not measured — JavaScript/TypeScript suite
- Coverage collected but not gated
- Duplication concentrated across 5 sibling directories (7 clone groups) web/src/components/PasswordSignInForm.tsx:29
- Duplication concentrated across 8 sibling directories (7 clone groups) web/src/components/MemoActionMenu/MemoActionMenu.tsx:195
- Wholesale file copy (102 identical lines × 2 files) web/src/components/Inbox/MemoCommentMessage.tsx:1
- Duplicated block with local edits (40 matched lines × 2 locations) web/src/components/ChangeMemberPasswordDialog.tsx:12
- Duplicated block with local edits (39 matched lines × 2 locations) web/src/components/Settings/AISection.tsx:291
- Duplicated block (35 lines × 2 locations) web/src/contexts/InstanceContext.tsx:243
- Duplicated block with local edits (34 matched lines × 2 locations) web/src/components/Settings/InstanceSection.tsx:114
- Duplicated block with local edits (30 matched lines × 2 locations) web/src/components/CreateAccessTokenDialog.tsx:134
- Duplicated block with local edits (29 matched lines × 2 locations) web/src/components/PasswordSignInForm.tsx:29
- Duplicated block (25 lines × 2 locations) web/src/components/Settings/LinkedIdentitySection.tsx:146
- Duplicated block (21 lines × 2 locations) web/src/components/AppSidebar/AppSidebar.tsx:145
- Duplicated block with local edits (21 matched lines × 2 locations) web/src/components/ErrorBoundary.tsx:41
- Duplicated block (20 lines × 2 locations) web/src/components/VideoPoster.tsx:40
- Duplicated block with local edits (17 matched lines × 2 locations) web/src/components/Settings/SSOSection.tsx:107
- Duplicated block (17 lines × 2 locations) web/src/hooks/useSpaceQueries.ts:104
- Duplicated block (16 lines × 3 locations) web/src/hooks/useSpaceQueries.ts:148
- Duplicated block with local edits (14 matched lines × 2 locations) web/src/components/Settings/AISection.tsx:523
- Duplicated block with local edits (12 matched lines × 2 locations) web/src/components/Settings/AISection.tsx:525
- Duplicated block (12 lines × 2 locations) web/src/components/UpdateAccountDialog.tsx:185
- Duplicated block (11 lines × 3 locations) web/src/components/CreateIdentityProviderDialog.tsx:508
- Duplicated block (11 lines × 4 locations) web/src/hooks/useSpaceQueries.ts:243
- Duplicated block with local edits (11 matched lines × 2 locations) web/src/pages/NotFound.tsx:1
- Boundary violation [package:third-party-deep-import] web/src/components/map/positron.ts:4
- Complex function MemoDetail (cyclomatic 51, cognitive 42) web/src/pages/MemoDetail.tsx:92
- Complex function PagedMemoList (cyclomatic 45, cognitive 38) web/src/components/PagedMemoList/PagedMemoList.tsx:122
- Complex function SpaceSwitcher (cyclomatic 41, cognitive 38) web/src/components/AppSidebar/SpaceSwitcher.tsx:60
- Complex function (anonymous) (cyclomatic 39, cognitive 31) web/src/components/CalendarView/CalendarDayCell.tsx:164
- Complex function MemoDetailSidebar (cyclomatic 38, cognitive 28) web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx:90
- Complex function EditSession (cyclomatic 34, cognitive 28) web/src/components/MemoEditor/edit/EditSession.tsx:44
- Complex function MapView (cyclomatic 33, cognitive 28) web/src/components/MapView/MapView.tsx:26
- Complex function PreviewImageDialog (cyclomatic 33, cognitive 26) web/src/components/PreviewImageDialog.tsx:71
- Complex function SpaceDetail (cyclomatic 29, cognitive 26) web/src/components/Settings/SpacesSection.tsx:331
- Complex function InviteSpaceMemberDialog (cyclomatic 29, cognitive 23) web/src/components/Settings/InviteSpaceMemberDialog.tsx:29
- Complex function MediaMetadataDetails (cyclomatic 26, cognitive 22) web/src/components/MediaMetadataDetails.tsx:75
- Complex function (anonymous) (cyclomatic 26, cognitive 22) web/src/utils/media-metadata.ts:72
- Complex function MemoHeader (cyclomatic 23, cognitive 20) web/src/components/MemoView/components/MemoHeader.tsx:27
- Complex function renderContent (cyclomatic 22, cognitive 32) web/src/pages/Attachments.tsx:150
- Complex function (anonymous) (cyclomatic 22, cognitive 26) web/src/components/ColumnGrid/ColumnGrid.tsx:102
- Complex function AttachmentItemCard (cyclomatic 22, cognitive 20) web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:158
- Complex function (anonymous) (cyclomatic 22, cognitive 19) web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:427
- Complex function CalendarView (cyclomatic 22, cognitive 18) web/src/components/CalendarView/CalendarView.tsx:54
- Complex function (anonymous) (cyclomatic 20, cognitive 25) web/src/hooks/useMemoFilters.ts:38
- Complex function (anonymous) (cyclomatic 20, cognitive 21) web/src/utils/managed-attachment.ts:83
- web/src/components/Settings/SpacesSection.tsx: 745 lines of code web/src/components/Settings/SpacesSection.tsx:1
- web/src/pages/MemoViews.tsx: 613 lines of code web/src/pages/MemoViews.tsx:1
- web/src/components/CreateIdentityProviderDialog.tsx: 579 lines of code web/src/components/CreateIdentityProviderDialog.tsx:1
- web/src/components/PreviewImageDialog.tsx: 563 lines of code web/src/components/PreviewImageDialog.tsx:1
- web/src/components/Settings/AISection.tsx: 496 lines of code web/src/components/Settings/AISection.tsx:1
- web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx: 453 lines of code web/src/components/MemoMetadata/Attachment/AttachmentListEditor.tsx:1
- web/src/components/AppSidebar/AppSidebar.tsx: 437 lines of code web/src/components/AppSidebar/AppSidebar.tsx:1
- web/src/hooks/useLiveMemoRefresh.ts: 416 lines of code web/src/hooks/useLiveMemoRefresh.ts:1
- web/src/hooks/useMemoQueries.ts: 409 lines of code web/src/hooks/useMemoQueries.ts:1
- web/src/components/Settings/StorageSection.tsx: 407 lines of code web/src/components/Settings/StorageSection.tsx:1
- Dead file (~122 LoC) web/scripts/generate-tag-unicode-data.mjs
- Dead file (~116 LoC) web/src/components/AttachmentIcon.tsx
- Dead file (~45 LoC) web/src/components/kit/SquareDiv.tsx
- Dead file (~43 LoC) web/src/components/DateTimeInput.tsx
- Dead file (~37 LoC) web/src/components/Settings/SectionChip.tsx
- Dead file (~36 LoC) web/src/components/kit/OverflowTip.tsx
- Dead file (~13 LoC) web/src/types/common.ts
- Dead file (~11 LoC) web/src/components/RequiredBadge.tsx
- Dead file (~1 LoC) web/src/components/map/index.ts
- Function without context.Context: Post internal/webhook/webhook.go:141
Minor — 98 finding(s)
- Duplicated predicate store/db/mysql/memo_attachment.go:109
- Duplicated predicate store/db/mysql/memo_relation_policy.go:20
- Duplicated predicate store/db/mysql/memo_attachment.go:112
- Duplicated predicate store/db/mysql/reaction.go:180
- Duplicated predicate store/db/mysql/space.go:409
- Duplicated predicate store/db/mysql/attachment.go:25
- Duplicated predicate store/db/mysql/memo_delete_policy.go:37
- Duplicated predicate store/db/mysql/memo_attachment.go:83
- Duplicated predicate markdown/extensions/gfm.go:291
- Duplicated predicate store/db/mysql/memo_policy.go:82
- Duplicated predicate server/api/memo_mention_helpers.go:73
- Duplicated predicate server/cors.go:71
- Duplicated predicate server/cors.go:59
- Duplicated predicate store/db/mysql/space.go:436
- Duplicated predicate core/access/memo_resolve.go:79
- Duplicated predicate server/api/memo_create_helpers.go:55
- Duplicated predicate store/db/mysql/memo_attachment.go:161
- Duplicated predicate server/api/memo_share_service.go:218
- Duplicated predicate store/db/mysql/memo_relation_policy.go:89
- Duplicated predicate store/db/mysql/attachment_delete.go:13
- Duplicated predicate server/cors.go:67
- Duplicated predicate store/db/mysql/memo_attachment.go:176
- Duplicated predicate server/api/attachment_service.go:364
- Duplicated predicate store/db/mysql/user.go:142
- Duplicated predicate store/db/mysql/memo_relation_policy.go:53
- Mock-dominated test: invalidates scoped attachment libraries after a memo save web/tests/use-memo-save.test.tsx:61
- Mock-dominated test: refreshes the parent memo total after creating a comment web/tests/use-memo-save.test.tsx:81
- Mock-dominated test: inserts multiple uploaded images once and in selection order web/tests/use-inline-image-upload.test.tsx:51
- Mock-dominated test: passes the ingested local file, with its media metadata, straight to uploads web/tests/use-inline-image-upload.test.tsx:70
- Mock-dominated test: does not start local or remote insertion while a save is in progress web/tests/use-inline-image-upload.test.tsx:111
- Mock-dominated test: keeps backing off when a successful response closes before becoming stable web/tests/live-memo-refresh.test.tsx:308
- Mock-dominated test: disables both statistics queries when deferred web/tests/filtered-memo-stats.test.ts:111
- Mock-dominated test: passes the selected Space filter to Home statistics web/tests/filtered-memo-stats.test.ts:125
- Mock-dominated test: scopes collection statistics to a Space without excluding readable private memos web/tests/filtered-memo-stats.test.ts:139
- Mock-dominated test: leaves the creator and visibility filters to access control in the All collection web/tests/filtered-memo-stats.test.ts:159
- Mock-dominated test: supports an explicit unassigned filter web/tests/filtered-memo-stats.test.ts:178
- ADR lacks an enforcement field docs/design/configuration-provisioning.md:1
- ADR lacks an enforcement field docs/design/memo-attachment-filters.md:1
- ADR lacks an enforcement field docs/design/memos-export-format.md:1
- ADR lacks an enforcement field docs/design/multi-spaces.md:1
- ADR lacks an enforcement field docs/design/unique-email.md:1
- ADR lacks an enforcement field docs/design/user-usage-limits.md:1
- README/code drift docs/design/README.md:28
- README/code drift docs/design/api-abuse-controls.md:199
- README/code drift docs/design/unique-email.md:32
- README/code drift server/fileserver/README.md:21
- README/code drift server/mcp/README.md:116
- Silent fallback default in catch web/src/components/MemoEditor/edit/services/cacheService.ts:49
- Silent fallback default in catch web/src/components/MemoEditor/view/LinkMetadataCard.tsx:15
- Silent fallback default in catch web/src/contexts/MemoFilterContext.tsx:38
- Silent fallback default in catch web/src/utils/markdown-task-actions.ts:65
- REDACTED
- REDACTED
- REDACTED
- Unused export 'default' web/src/components/AttachmentLibrary/AttachmentLibraryToolbar.tsx:64
- Unused export 'default' web/src/components/MemoMetadata/Attachment/AttachmentCard.tsx:45
- Unused export 'default' web/src/hooks/useAsyncEffect.ts:9
- Off-boarding risk: anonymized user #1
- Off-boarding risk: anonymized user #2
- Fat interface: EditorController (17 required operations) web/src/components/MemoEditor/edit/types/editorController.ts:15
- Further sole-owners (lower concentration)
- Documentation: contradicts the code docs/design/api-abuse-controls.md
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- ADRs not easily discoverable
- No rollback/health safety
- Unused export 'AttachmentLibraryUnusedPanel' web/src/components/AttachmentLibrary/AttachmentLibraryStates.tsx:52
- Unused export 'filterByCategory' web/src/components/MemoEditor/edit/types/attachment.ts:187
- Unused export 'separateMediaAndDocs' web/src/components/MemoEditor/edit/types/attachment.ts:192
- Unused export 'BadgeVariant' web/src/components/ui/badge.tsx:34
- Unused export 'BadgeShape' web/src/components/ui/badge.tsx:35
- Unused export 'ButtonVariant' web/src/components/ui/button.tsx:60
- Unused export 'ButtonSize' web/src/components/ui/button.tsx:61
- Unused export 'useCurrentUserFromAuth' web/src/contexts/AuthContext.tsx:217
- Unused export 'useAttachments' web/src/hooks/useAttachmentQueries.ts:21
- Unused export 'useDialogs' web/src/hooks/useDialog.ts:19
- Unused export 'useInstanceProfile' web/src/hooks/useInstanceQueries.ts:31
- Unused export 'useInstanceSettings' web/src/hooks/useInstanceQueries.ts:57
- Unused export 'useGeneralSetting' web/src/hooks/useInstanceQueries.ts:105
- Unused export 'useMemoRelatedSetting' web/src/hooks/useInstanceQueries.ts:111
- Unused export 'useMemos' web/src/hooks/useMemoQueries.ts:240
- Unused export 'getShareToken' web/src/hooks/useMemoShareQueries.ts:91
- Unused export 'useUserSettings' web/src/hooks/useUserQueries.ts:237
- Unused export 'getSystemColorScheme' web/src/lib/browser.ts:7
- Unused export 'isValidUrl' web/src/lib/browser.ts:24
- Unused export 'TAB_SPACE_WIDTH' web/src/lib/constants.ts:2
- Unused export 'isError' web/src/lib/error.ts:169
- Unused export 'spaceScopedCacheKey' web/src/lib/resource-names.ts:68
- Unused export 'RoutePath' web/src/router/routes.ts:27
- Unused export 'StatisticsViewProps' web/src/types/statistics.ts:3
- Unused export 'getTaskLineNumber' web/src/utils/markdown-manipulation.ts:38
- Not all functions that make a request accept a context.Context or an AbortSignal
- Null assertions (`!`) reduce the strict null checking score
Minor — 19 finding(s)
- Outdated: connectrpc.com/connect
- Outdated: github.com/at-wat/ebml-go
- Outdated: github.com/aws/aws-sdk-go-v2
- Outdated: github.com/aws/aws-sdk-go-v2/config
- Outdated: github.com/aws/aws-sdk-go-v2/credentials
- Outdated: github.com/aws/aws-sdk-go-v2/service/s3
- Outdated: github.com/aws/smithy-go
- Outdated: github.com/go-sql-driver/mysql
- Outdated: github.com/grpc-ecosystem/grpc-gateway/v2
- Outdated: github.com/lithammer/shortuuid/v4
- Outdated: github.com/moby/moby/api
- Outdated: github.com/modelcontextprotocol/go-sdk
- Outdated: github.com/openai/openai-go/v3
- Outdated: github.com/stretchr/testify
- Outdated: github.com/yuin/goldmark
- Outdated: golang.org/x/mod
- Outdated: golang.org/x/oauth2
- Outdated: google.golang.org/genai
- Outdated: modernc.org/sqlite
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-ed05c57d74124c8fac12e6721cc04f2f/history.json --exit-code 0 --source . | 36 | 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-ed05c57d74124c8fac12e6721cc04f2f/tree.json --exit-code 0 --source . | 5 | 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 . | 110 | 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 | 16 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 4 | artifacts/raw/trivy-config.json |
| 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 4 file(s) — `web/src/components/CustomIconPicker.tsx`, `web/src/components/MemoEditor/view/useSearchMatchHighlight.ts`, `web/src/lib/memo-markdown.ts`, `web/src/types/proto/api/user_service_pb.ts` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 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 |