Executive summary
quangdangfit/goshop scores 49 out of 100 and is rated Weak, while seven of its nine lenses score higher still: Performance at 100, rated Exemplary, Code Health at 84, Domain Modelling at 82 and Event-Driven at 78, all rated Strong, and Architecture at 78, Security and Compliance at 71 and Accessibility at 53, all rated Adequate.
The score is lower than those seven because the weakest lens counts most, and here that is Production Readiness, which scores 42 and is rated Weak. Its REDACTED Scanning dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 3 Leaked secret finding(s) in REDACTED Scanning and to resolve the 1 No ADRs found finding(s) in ADR Quality, and if Production Readiness rose to 70, the score would rise from 49 to about 55.
80 findings are critical: 40 in Forms & labels, 26 in Static Analysis (SAST), five in Dependency Vulnerabilities, three in REDACTED Scanning, two in IaC & Container Security, two in Secrets (history), one in Aggregate boundaries and one in Outbox / dual-write.
Watchdog couldn't measure 13 dimensions in this code, among them Internal API Consistency, Navigability and Data Protection, so they are left out of the score. The product code is 12,381 lines, which would take an estimated 0.3 person-years, around €43,000, to rebuild.
If Production Readiness rose from 42 to 70, the lowest score rated Strong, the score would rise from 49 to about 55.
New since the last survey: 12 findings
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- Boundary Type-Coupling · Cross-context type Order (order → payment) internal/payment/service/service.go
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Large Files · web/src/pages/ProfilePage.tsx: 563 lines of code web/src/pages/ProfilePage.tsx
- Schema migrations · Schema created by GORM AutoMigrate outside the migrations pkg/dbs/dbs.go
- Visual & motion safety · Animation without a prefers-reduced-motion guard web/src/components/LoadingSpinner.tsx
- Visual & motion safety · Focus outline removed in CSS without a :focus replacement web/src/index.css
Fixed since the last survey: 50 findings
- Supply-chain Provenance & Signing REDACTED
- Test Coverage · No test reaches this file web/src/api/coupons.ts
- Forms & labels · <button> with no accessible text web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/ProfilePage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/ProfilePage.tsx
- Forms & labels · <label> that labels no control web/src/pages/RegisterPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/RegisterPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/RegisterPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/RegisterPage.tsx
- Forms & labels · <button> with no accessible text web/src/pages/admin/AdminCategoriesPage.tsx
- Forms & labels · <button> with no accessible text web/src/pages/admin/AdminCategoriesPage.tsx
- Forms & labels · <button> with no accessible text web/src/pages/admin/AdminCategoriesPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCategoriesPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCategoriesPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCategoriesPage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <button> with no accessible text web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminCouponsPage.tsx
- Forms & labels · <input> without a programmatic label web/src/pages/admin/AdminOrdersPage.tsx
- Forms & labels · <select> without a programmatic label web/src/pages/admin/AdminOrdersPage.tsx
- Forms & labels · <select> without a programmatic label web/src/pages/admin/AdminOrdersPage.tsx
- Forms & labels · <button> with no accessible text web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <button> with no accessible text web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminProductsPage.tsx
- Forms & labels · <label> that labels no control web/src/pages/admin/AdminProductsPage.tsx
Rebuild cost: about €43,000 · Estimate
| Cost to rebuild | €14,000 to €72,000, for 239 to 760 hours of work, about 0.3 person-years for one engineer |
|---|---|
| Difficulty of the problem | High, 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 49. 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 | Small: 12,381 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 goshop/internal/notification/model | 2 goshop/internal/order/model | 3 goshop/internal/product/model | 4 goshop/internal/user/model | 5 goshop/pkg/config | 6 goshop/pkg/dbs | 7 goshop/pkg/notification | 8 goshop/pkg/paging | 9 goshop/pkg/payment | 10 goshop/pkg/redis | 11 web.src.types | 12 goshop/internal/notification/repository | 13 goshop/internal/order/domain | 14 goshop/internal/payment/repository | 15 goshop/internal/product/domain | 16 goshop/internal/server/grpc | 17 goshop/internal/server/http | 18 goshop/internal/user/domain | 19 goshop/internal/user/repository | 20 goshop/pkg/authentik | 21 goshop/pkg/middleware | 22 web.src.api.cart | 23 web.src.components.ProductCard | 24 goshop/internal/notification/service | 25 goshop/internal/order/repository | 26 goshop/internal/product/repository | 27 goshop/internal/user/service | 28 web.src.api | 29 web.src.components | 30 goshop/internal/notification/port/http | 31 goshop/internal/order/service | 32 goshop/internal/product/service | 33 goshop/internal/user/port/grpc | 34 goshop/internal/user/port/http | 35 goshop/internal/order/port/grpc | 36 goshop/internal/order/port/http | 37 goshop/internal/payment/service | 38 goshop/internal/product/port/grpc | 39 goshop/internal/product/port/http | 40 goshop/internal/payment/port/http |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 goshop/internal/notification/model | ||||||||||||||||||||||||||||||||||||||||
| 2 goshop/internal/order/model | ||||||||||||||||||||||||||||||||||||||||
| 3 goshop/internal/product/model | ||||||||||||||||||||||||||||||||||||||||
| 4 goshop/internal/user/model | ||||||||||||||||||||||||||||||||||||||||
| 5 goshop/pkg/config | ||||||||||||||||||||||||||||||||||||||||
| 6 goshop/pkg/dbs | ||||||||||||||||||||||||||||||||||||||||
| 7 goshop/pkg/notification | ||||||||||||||||||||||||||||||||||||||||
| 8 goshop/pkg/paging | ||||||||||||||||||||||||||||||||||||||||
| 9 goshop/pkg/payment | ||||||||||||||||||||||||||||||||||||||||
| 10 goshop/pkg/redis | ||||||||||||||||||||||||||||||||||||||||
| 11 web.src.types | ||||||||||||||||||||||||||||||||||||||||
| 12 goshop/internal/notification/repository | 2 | 3 | 1 | |||||||||||||||||||||||||||||||||||||
| 13 goshop/internal/order/domain | 3 | 1 | ||||||||||||||||||||||||||||||||||||||
| 14 goshop/internal/payment/repository | 2 | |||||||||||||||||||||||||||||||||||||||
| 15 goshop/internal/product/domain | 2 | 2 | ||||||||||||||||||||||||||||||||||||||
| 16 goshop/internal/server/grpc | 1 | 2 | 2 | |||||||||||||||||||||||||||||||||||||
| 17 goshop/internal/server/http | 1 | 2 | 2 | |||||||||||||||||||||||||||||||||||||
| 18 goshop/internal/user/domain | 3 | |||||||||||||||||||||||||||||||||||||||
| 19 goshop/internal/user/repository | 6 | 4 | ||||||||||||||||||||||||||||||||||||||
| 20 goshop/pkg/authentik | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 goshop/pkg/middleware | 1 | |||||||||||||||||||||||||||||||||||||||
| 22 web.src.api.cart | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 web.src.components.ProductCard | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 goshop/internal/notification/service | 2 | 1 | 3 | 2 | ||||||||||||||||||||||||||||||||||||
| 25 goshop/internal/order/repository | 14 | 6 | 2 | |||||||||||||||||||||||||||||||||||||
| 26 goshop/internal/product/repository | 6 | 4 | 2 | |||||||||||||||||||||||||||||||||||||
| 27 goshop/internal/user/service | 7 | 12 | 6 | 1 | ||||||||||||||||||||||||||||||||||||
| 28 web.src.api | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 29 web.src.components | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 30 goshop/internal/notification/port/http | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 31 goshop/internal/order/service | 7 | 2 | 2 | 6 | 10 | |||||||||||||||||||||||||||||||||||
| 32 goshop/internal/product/service | 6 | 14 | 7 | |||||||||||||||||||||||||||||||||||||
| 33 goshop/internal/user/port/grpc | 1 | 1 | 2 | |||||||||||||||||||||||||||||||||||||
| 34 goshop/internal/user/port/http | 1 | 6 | ||||||||||||||||||||||||||||||||||||||
| 35 goshop/internal/order/port/grpc | 2 | 1 | 2 | |||||||||||||||||||||||||||||||||||||
| 36 goshop/internal/order/port/http | 1 | 4 | ||||||||||||||||||||||||||||||||||||||
| 37 goshop/internal/payment/service | 1 | 4 | 2 | 2 | ||||||||||||||||||||||||||||||||||||
| 38 goshop/internal/product/port/grpc | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 39 goshop/internal/product/port/http | 1 | 2 | 6 | |||||||||||||||||||||||||||||||||||||
| 40 goshop/internal/payment/port/http | 1 | 2 |
12→1 goshop/internal/notification/repository uses goshop/internal/notification/model✕
- Connections
- 2 pairs of types, where a type in goshop/internal/notification/repository uses a type in goshop/internal/notification/model.
- The types involved
goshop/internal/notification/repository.PreferenceRepository→goshop/internal/notification/model.Preferencegoshop/internal/notification/repository.preferenceRepo→goshop/internal/notification/model.Preference
- Direction
- goshop/internal/notification/repository uses goshop/internal/notification/model, so a change to goshop/internal/notification/model can break goshop/internal/notification/repository, while a change to goshop/internal/notification/repository can't break goshop/internal/notification/model.
- Position
- Below the diagonal: goshop/internal/notification/repository uses a module listed above it, which is the healthy direction.
12→6 goshop/internal/notification/repository uses goshop/pkg/dbs✕
- Connections
- 3 pairs of types, where a type in goshop/internal/notification/repository uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/notification/repository.dbDeadLetterSink→goshop/pkg/dbs.Databasegoshop/internal/notification/repository.preferenceRepo→goshop/pkg/dbs.Databasegoshop/internal/notification/repository.repository→goshop/pkg/dbs.Database
- Direction
- goshop/internal/notification/repository uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/notification/repository, while a change to goshop/internal/notification/repository can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/notification/repository uses a module listed above it, which is the healthy direction.
12→7 goshop/internal/notification/repository uses goshop/pkg/notification✕
- Connections
- 1 pair of types, where a type in goshop/internal/notification/repository uses a type in goshop/pkg/notification.
- The types involved
goshop/internal/notification/repository.repository→goshop/pkg/notification.DeadLetterSink
- Direction
- goshop/internal/notification/repository uses goshop/pkg/notification, so a change to goshop/pkg/notification can break goshop/internal/notification/repository, while a change to goshop/internal/notification/repository can't break goshop/pkg/notification.
- Position
- Below the diagonal: goshop/internal/notification/repository uses a module listed above it, which is the healthy direction.
13→2 goshop/internal/order/domain uses goshop/internal/order/model✕
- Connections
- 3 pairs of types, where a type in goshop/internal/order/domain uses a type in goshop/internal/order/model.
- The types involved
goshop/internal/order/domain.domain→goshop/internal/order/model.Coupongoshop/internal/order/domain.domain→goshop/internal/order/model.Ordergoshop/internal/order/domain.domain→goshop/internal/order/model.OrderLine
- Direction
- goshop/internal/order/domain uses goshop/internal/order/model, so a change to goshop/internal/order/model can break goshop/internal/order/domain, while a change to goshop/internal/order/domain can't break goshop/internal/order/model.
- Position
- Below the diagonal: goshop/internal/order/domain uses a module listed above it, which is the healthy direction.
13→8 goshop/internal/order/domain uses goshop/pkg/paging✕
- Connections
- 1 pair of types, where a type in goshop/internal/order/domain uses a type in goshop/pkg/paging.
- The types involved
goshop/internal/order/domain.ListOrderRes→goshop/pkg/paging.Pagination
- Direction
- goshop/internal/order/domain uses goshop/pkg/paging, so a change to goshop/pkg/paging can break goshop/internal/order/domain, while a change to goshop/internal/order/domain can't break goshop/pkg/paging.
- Position
- Below the diagonal: goshop/internal/order/domain uses a module listed above it, which is the healthy direction.
14→6 goshop/internal/payment/repository uses goshop/pkg/dbs✕
- Connections
- 2 pairs of types, where a type in goshop/internal/payment/repository uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/payment/repository.paymentRepo→goshop/pkg/dbs.Databasegoshop/internal/payment/repository.repository→goshop/pkg/dbs.Database
- Direction
- goshop/internal/payment/repository uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/payment/repository, while a change to goshop/internal/payment/repository can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/payment/repository uses a module listed above it, which is the healthy direction.
15→3 goshop/internal/product/domain uses goshop/internal/product/model✕
- Connections
- 2 pairs of types, where a type in goshop/internal/product/domain uses a type in goshop/internal/product/model.
- The types involved
goshop/internal/product/domain.domain→goshop/internal/product/model.Categorygoshop/internal/product/domain.domain→goshop/internal/product/model.Review
- Direction
- goshop/internal/product/domain uses goshop/internal/product/model, so a change to goshop/internal/product/model can break goshop/internal/product/domain, while a change to goshop/internal/product/domain can't break goshop/internal/product/model.
- Position
- Below the diagonal: goshop/internal/product/domain uses a module listed above it, which is the healthy direction.
15→8 goshop/internal/product/domain uses goshop/pkg/paging✕
- Connections
- 2 pairs of types, where a type in goshop/internal/product/domain uses a type in goshop/pkg/paging.
- The types involved
goshop/internal/product/domain.ListProductRes→goshop/pkg/paging.Paginationgoshop/internal/product/domain.ListReviewRes→goshop/pkg/paging.Pagination
- Direction
- goshop/internal/product/domain uses goshop/pkg/paging, so a change to goshop/pkg/paging can break goshop/internal/product/domain, while a change to goshop/internal/product/domain can't break goshop/pkg/paging.
- Position
- Below the diagonal: goshop/internal/product/domain uses a module listed above it, which is the healthy direction.
16→5 goshop/internal/server/grpc uses goshop/pkg/config✕
- Connections
- 1 pair of types, where a type in goshop/internal/server/grpc uses a type in goshop/pkg/config.
- The types involved
goshop/internal/server/grpc.Server→goshop/pkg/config.Schema
- Direction
- goshop/internal/server/grpc uses goshop/pkg/config, so a change to goshop/pkg/config can break goshop/internal/server/grpc, while a change to goshop/internal/server/grpc can't break goshop/pkg/config.
- Position
- Below the diagonal: goshop/internal/server/grpc uses a module listed above it, which is the healthy direction.
16→6 goshop/internal/server/grpc uses goshop/pkg/dbs✕
- Connections
- 2 pairs of types, where a type in goshop/internal/server/grpc uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/server/grpc.Server→goshop/pkg/dbs.Databasegoshop/internal/server/grpc.grpc→goshop/pkg/dbs.Database
- Direction
- goshop/internal/server/grpc uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/server/grpc, while a change to goshop/internal/server/grpc can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/server/grpc uses a module listed above it, which is the healthy direction.
16→10 goshop/internal/server/grpc uses goshop/pkg/redis✕
- Connections
- 2 pairs of types, where a type in goshop/internal/server/grpc uses a type in goshop/pkg/redis.
- The types involved
goshop/internal/server/grpc.Server→goshop/pkg/redis.Redisgoshop/internal/server/grpc.grpc→goshop/pkg/redis.Redis
- Direction
- goshop/internal/server/grpc uses goshop/pkg/redis, so a change to goshop/pkg/redis can break goshop/internal/server/grpc, while a change to goshop/internal/server/grpc can't break goshop/pkg/redis.
- Position
- Below the diagonal: goshop/internal/server/grpc uses a module listed above it, which is the healthy direction.
17→5 goshop/internal/server/http uses goshop/pkg/config✕
- Connections
- 1 pair of types, where a type in goshop/internal/server/http uses a type in goshop/pkg/config.
- The types involved
goshop/internal/server/http.Server→goshop/pkg/config.Schema
- Direction
- goshop/internal/server/http uses goshop/pkg/config, so a change to goshop/pkg/config can break goshop/internal/server/http, while a change to goshop/internal/server/http can't break goshop/pkg/config.
- Position
- Below the diagonal: goshop/internal/server/http uses a module listed above it, which is the healthy direction.
17→6 goshop/internal/server/http uses goshop/pkg/dbs✕
- Connections
- 2 pairs of types, where a type in goshop/internal/server/http uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/server/http.Server→goshop/pkg/dbs.Databasegoshop/internal/server/http.http→goshop/pkg/dbs.Database
- Direction
- goshop/internal/server/http uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/server/http, while a change to goshop/internal/server/http can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/server/http uses a module listed above it, which is the healthy direction.
17→10 goshop/internal/server/http uses goshop/pkg/redis✕
- Connections
- 2 pairs of types, where a type in goshop/internal/server/http uses a type in goshop/pkg/redis.
- The types involved
goshop/internal/server/http.Server→goshop/pkg/redis.Redisgoshop/internal/server/http.http→goshop/pkg/redis.Redis
- Direction
- goshop/internal/server/http uses goshop/pkg/redis, so a change to goshop/pkg/redis can break goshop/internal/server/http, while a change to goshop/internal/server/http can't break goshop/pkg/redis.
- Position
- Below the diagonal: goshop/internal/server/http uses a module listed above it, which is the healthy direction.
18→4 goshop/internal/user/domain uses goshop/internal/user/model✕
- Connections
- 3 pairs of types, where a type in goshop/internal/user/domain uses a type in goshop/internal/user/model.
- The types involved
goshop/internal/user/domain.domain→goshop/internal/user/model.Addressgoshop/internal/user/domain.domain→goshop/internal/user/model.Usergoshop/internal/user/domain.domain→goshop/internal/user/model.Wishlist
- Direction
- goshop/internal/user/domain uses goshop/internal/user/model, so a change to goshop/internal/user/model can break goshop/internal/user/domain, while a change to goshop/internal/user/domain can't break goshop/internal/user/model.
- Position
- Below the diagonal: goshop/internal/user/domain uses a module listed above it, which is the healthy direction.
19→4 goshop/internal/user/repository uses goshop/internal/user/model✕
- Connections
- 6 pairs of types, where a type in goshop/internal/user/repository uses a type in goshop/internal/user/model.
- The types involved
goshop/internal/user/repository.AddressRepository→goshop/internal/user/model.Addressgoshop/internal/user/repository.UserRepository→goshop/internal/user/model.Usergoshop/internal/user/repository.WishlistRepository→goshop/internal/user/model.Wishlistgoshop/internal/user/repository.addressRepo→goshop/internal/user/model.Addressgoshop/internal/user/repository.userRepo→goshop/internal/user/model.Usergoshop/internal/user/repository.wishlistRepo→goshop/internal/user/model.Wishlist
- Direction
- goshop/internal/user/repository uses goshop/internal/user/model, so a change to goshop/internal/user/model can break goshop/internal/user/repository, while a change to goshop/internal/user/repository can't break goshop/internal/user/model.
- Position
- Below the diagonal: goshop/internal/user/repository uses a module listed above it, which is the healthy direction.
19→6 goshop/internal/user/repository uses goshop/pkg/dbs✕
- Connections
- 4 pairs of types, where a type in goshop/internal/user/repository uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/user/repository.addressRepo→goshop/pkg/dbs.Databasegoshop/internal/user/repository.repository→goshop/pkg/dbs.Databasegoshop/internal/user/repository.userRepo→goshop/pkg/dbs.Databasegoshop/internal/user/repository.wishlistRepo→goshop/pkg/dbs.Database
- Direction
- goshop/internal/user/repository uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/user/repository, while a change to goshop/internal/user/repository can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/user/repository uses a module listed above it, which is the healthy direction.
20→27 goshop/pkg/authentik uses goshop/internal/user/service part of a loop✕
- Connections
- 1 pair of types, where a type in goshop/pkg/authentik uses a type in goshop/internal/user/service.
- The types involved
goshop/pkg/authentik.Client→goshop/internal/user/service.AuthentikClient
- Direction
- goshop/pkg/authentik uses goshop/internal/user/service, so a change to goshop/internal/user/service can break goshop/pkg/authentik, while a change to goshop/pkg/authentik can't break goshop/internal/user/service.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→10 goshop/pkg/middleware uses goshop/pkg/redis✕
- Connections
- 1 pair of types, where a type in goshop/pkg/middleware uses a type in goshop/pkg/redis.
- The types involved
goshop/pkg/middleware.middleware→goshop/pkg/redis.Redis
- Direction
- goshop/pkg/middleware uses goshop/pkg/redis, so a change to goshop/pkg/redis can break goshop/pkg/middleware, while a change to goshop/pkg/middleware can't break goshop/pkg/redis.
- Position
- Below the diagonal: goshop/pkg/middleware uses a module listed above it, which is the healthy direction.
22→11 web.src.api.cart uses web.src.types✕
- Connections
- 1 pair of types, where a type in web.src.api.cart uses a type in web.src.types.
- The types involved
web.src.api.cart.CartItem→web.src.types.Product
- Direction
- web.src.api.cart uses web.src.types, so a change to web.src.types can break web.src.api.cart, while a change to web.src.api.cart can't break web.src.types.
- Position
- Below the diagonal: web.src.api.cart uses a module listed above it, which is the healthy direction.
23→11 web.src.components.ProductCard uses web.src.types✕
- Connections
- 1 pair of types, where a type in web.src.components.ProductCard uses a type in web.src.types.
- The types involved
web.src.components.ProductCard.ProductCardProps→web.src.types.Product
- Direction
- web.src.components.ProductCard uses web.src.types, so a change to web.src.types can break web.src.components.ProductCard, while a change to web.src.components.ProductCard can't break web.src.types.
- Position
- Below the diagonal: web.src.components.ProductCard uses a module listed above it, which is the healthy direction.
24→1 goshop/internal/notification/service uses goshop/internal/notification/model✕
- Connections
- 2 pairs of types, where a type in goshop/internal/notification/service uses a type in goshop/internal/notification/model.
- The types involved
goshop/internal/notification/service.PreferenceService→goshop/internal/notification/model.Preferencegoshop/internal/notification/service.preferenceService→goshop/internal/notification/model.Preference
- Direction
- goshop/internal/notification/service uses goshop/internal/notification/model, so a change to goshop/internal/notification/model can break goshop/internal/notification/service, while a change to goshop/internal/notification/service can't break goshop/internal/notification/model.
- Position
- Below the diagonal: goshop/internal/notification/service uses a module listed above it, which is the healthy direction.
24→7 goshop/internal/notification/service uses goshop/pkg/notification✕
- Connections
- 1 pair of types, where a type in goshop/internal/notification/service uses a type in goshop/pkg/notification.
- The types involved
goshop/internal/notification/service.service→goshop/pkg/notification.PreferenceChecker
- Direction
- goshop/internal/notification/service uses goshop/pkg/notification, so a change to goshop/pkg/notification can break goshop/internal/notification/service, while a change to goshop/internal/notification/service can't break goshop/pkg/notification.
- Position
- Below the diagonal: goshop/internal/notification/service uses a module listed above it, which is the healthy direction.
24→12 goshop/internal/notification/service uses goshop/internal/notification/repository✕
- Connections
- 3 pairs of types, where a type in goshop/internal/notification/service uses a type in goshop/internal/notification/repository.
- The types involved
goshop/internal/notification/service.dbPreferenceChecker→goshop/internal/notification/repository.PreferenceRepositorygoshop/internal/notification/service.preferenceService→goshop/internal/notification/repository.PreferenceRepositorygoshop/internal/notification/service.service→goshop/internal/notification/repository.PreferenceRepository
- Direction
- goshop/internal/notification/service uses goshop/internal/notification/repository, so a change to goshop/internal/notification/repository can break goshop/internal/notification/service, while a change to goshop/internal/notification/service can't break goshop/internal/notification/repository.
- Position
- Below the diagonal: goshop/internal/notification/service uses a module listed above it, which is the healthy direction.
24→19 goshop/internal/notification/service uses goshop/internal/user/repository✕
- Connections
- 2 pairs of types, where a type in goshop/internal/notification/service uses a type in goshop/internal/user/repository.
- The types involved
goshop/internal/notification/service.service→goshop/internal/user/repository.UserRepositorygoshop/internal/notification/service.userRepoLookup→goshop/internal/user/repository.UserRepository
- Direction
- goshop/internal/notification/service uses goshop/internal/user/repository, so a change to goshop/internal/user/repository can break goshop/internal/notification/service, while a change to goshop/internal/notification/service can't break goshop/internal/user/repository.
- Position
- Below the diagonal: goshop/internal/notification/service uses a module listed above it, which is the healthy direction.
25→2 goshop/internal/order/repository uses goshop/internal/order/model✕
- Connections
- 14 pairs of types, where a type in goshop/internal/order/repository uses a type in goshop/internal/order/model.
- The types involved
goshop/internal/order/repository.CouponRepository→goshop/internal/order/model.Coupongoshop/internal/order/repository.OrderRepository→goshop/internal/order/model.Ordergoshop/internal/order/repository.OrderRepository→goshop/internal/order/model.OrderLinegoshop/internal/order/repository.ProductRepository→goshop/internal/order/model.Productgoshop/internal/order/repository.ReservationRepository→goshop/internal/order/model.ReservationStatusgoshop/internal/order/repository.ReservationRepository→goshop/internal/order/model.StockReservationgoshop/internal/order/repository.UserRepository→goshop/internal/order/model.Usergoshop/internal/order/repository.couponRepo→goshop/internal/order/model.Coupongoshop/internal/order/repository.orderRepo→goshop/internal/order/model.Ordergoshop/internal/order/repository.orderRepo→goshop/internal/order/model.OrderLinegoshop/internal/order/repository.productRepo→goshop/internal/order/model.Productgoshop/internal/order/repository.reservationRepo→goshop/internal/order/model.ReservationStatusgoshop/internal/order/repository.reservationRepo→goshop/internal/order/model.StockReservationgoshop/internal/order/repository.userRepo→goshop/internal/order/model.User
- Direction
- goshop/internal/order/repository uses goshop/internal/order/model, so a change to goshop/internal/order/model can break goshop/internal/order/repository, while a change to goshop/internal/order/repository can't break goshop/internal/order/model.
- Position
- Below the diagonal: goshop/internal/order/repository uses a module listed above it, which is the healthy direction.
25→6 goshop/internal/order/repository uses goshop/pkg/dbs✕
- Connections
- 6 pairs of types, where a type in goshop/internal/order/repository uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/order/repository.couponRepo→goshop/pkg/dbs.Databasegoshop/internal/order/repository.orderRepo→goshop/pkg/dbs.Databasegoshop/internal/order/repository.productRepo→goshop/pkg/dbs.Databasegoshop/internal/order/repository.repository→goshop/pkg/dbs.Databasegoshop/internal/order/repository.reservationRepo→goshop/pkg/dbs.Databasegoshop/internal/order/repository.userRepo→goshop/pkg/dbs.Database
- Direction
- goshop/internal/order/repository uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/order/repository, while a change to goshop/internal/order/repository can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/order/repository uses a module listed above it, which is the healthy direction.
25→13 goshop/internal/order/repository uses goshop/internal/order/domain✕
- Connections
- 2 pairs of types, where a type in goshop/internal/order/repository uses a type in goshop/internal/order/domain.
- The types involved
goshop/internal/order/repository.OrderRepository→goshop/internal/order/domain.ListOrderReqgoshop/internal/order/repository.orderRepo→goshop/internal/order/domain.ListOrderReq
- Direction
- goshop/internal/order/repository uses goshop/internal/order/domain, so a change to goshop/internal/order/domain can break goshop/internal/order/repository, while a change to goshop/internal/order/repository can't break goshop/internal/order/domain.
- Position
- Below the diagonal: goshop/internal/order/repository uses a module listed above it, which is the healthy direction.
26→3 goshop/internal/product/repository uses goshop/internal/product/model✕
- Connections
- 6 pairs of types, where a type in goshop/internal/product/repository uses a type in goshop/internal/product/model.
- The types involved
goshop/internal/product/repository.CategoryRepository→goshop/internal/product/model.Categorygoshop/internal/product/repository.ProductRepository→goshop/internal/product/model.Productgoshop/internal/product/repository.ReviewRepository→goshop/internal/product/model.Reviewgoshop/internal/product/repository.categoryRepo→goshop/internal/product/model.Categorygoshop/internal/product/repository.productRepo→goshop/internal/product/model.Productgoshop/internal/product/repository.reviewRepo→goshop/internal/product/model.Review
- Direction
- goshop/internal/product/repository uses goshop/internal/product/model, so a change to goshop/internal/product/model can break goshop/internal/product/repository, while a change to goshop/internal/product/repository can't break goshop/internal/product/model.
- Position
- Below the diagonal: goshop/internal/product/repository uses a module listed above it, which is the healthy direction.
26→6 goshop/internal/product/repository uses goshop/pkg/dbs✕
- Connections
- 4 pairs of types, where a type in goshop/internal/product/repository uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/product/repository.categoryRepo→goshop/pkg/dbs.Databasegoshop/internal/product/repository.productRepo→goshop/pkg/dbs.Databasegoshop/internal/product/repository.repository→goshop/pkg/dbs.Databasegoshop/internal/product/repository.reviewRepo→goshop/pkg/dbs.Database
- Direction
- goshop/internal/product/repository uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/product/repository, while a change to goshop/internal/product/repository can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/product/repository uses a module listed above it, which is the healthy direction.
26→15 goshop/internal/product/repository uses goshop/internal/product/domain✕
- Connections
- 2 pairs of types, where a type in goshop/internal/product/repository uses a type in goshop/internal/product/domain.
- The types involved
goshop/internal/product/repository.ProductRepository→goshop/internal/product/domain.ListProductReqgoshop/internal/product/repository.productRepo→goshop/internal/product/domain.ListProductReq
- Direction
- goshop/internal/product/repository uses goshop/internal/product/domain, so a change to goshop/internal/product/domain can break goshop/internal/product/repository, while a change to goshop/internal/product/repository can't break goshop/internal/product/domain.
- Position
- Below the diagonal: goshop/internal/product/repository uses a module listed above it, which is the healthy direction.
27→4 goshop/internal/user/service uses goshop/internal/user/model✕
- Connections
- 7 pairs of types, where a type in goshop/internal/user/service uses a type in goshop/internal/user/model.
- The types involved
goshop/internal/user/service.AddressService→goshop/internal/user/model.Addressgoshop/internal/user/service.UserService→goshop/internal/user/model.Usergoshop/internal/user/service.WishlistService→goshop/internal/user/model.Wishlistgoshop/internal/user/service.addressSvc→goshop/internal/user/model.Addressgoshop/internal/user/service.service→goshop/internal/user/model.Usergoshop/internal/user/service.userService→goshop/internal/user/model.Usergoshop/internal/user/service.wishlistSvc→goshop/internal/user/model.Wishlist
- Direction
- goshop/internal/user/service uses goshop/internal/user/model, so a change to goshop/internal/user/model can break goshop/internal/user/service, while a change to goshop/internal/user/service can't break goshop/internal/user/model.
- Position
- Below the diagonal: goshop/internal/user/service uses a module listed above it, which is the healthy direction.
27→18 goshop/internal/user/service uses goshop/internal/user/domain✕
- Connections
- 12 pairs of types, where a type in goshop/internal/user/service uses a type in goshop/internal/user/domain.
- The types involved
goshop/internal/user/service.AddressService→goshop/internal/user/domain.CreateAddressReqgoshop/internal/user/service.AddressService→goshop/internal/user/domain.UpdateAddressReqgoshop/internal/user/service.UserService→goshop/internal/user/domain.ChangePasswordReqgoshop/internal/user/service.UserService→goshop/internal/user/domain.LoginReqgoshop/internal/user/service.UserService→goshop/internal/user/domain.RegisterReqgoshop/internal/user/service.WishlistService→goshop/internal/user/domain.AddToWishlistReqgoshop/internal/user/service.addressSvc→goshop/internal/user/domain.CreateAddressReqgoshop/internal/user/service.addressSvc→goshop/internal/user/domain.UpdateAddressReqgoshop/internal/user/service.userService→goshop/internal/user/domain.ChangePasswordReqgoshop/internal/user/service.userService→goshop/internal/user/domain.LoginReqgoshop/internal/user/service.userService→goshop/internal/user/domain.RegisterReqgoshop/internal/user/service.wishlistSvc→goshop/internal/user/domain.AddToWishlistReq
- Direction
- goshop/internal/user/service uses goshop/internal/user/domain, so a change to goshop/internal/user/domain can break goshop/internal/user/service, while a change to goshop/internal/user/service can't break goshop/internal/user/domain.
- Position
- Below the diagonal: goshop/internal/user/service uses a module listed above it, which is the healthy direction.
27→19 goshop/internal/user/service uses goshop/internal/user/repository✕
- Connections
- 6 pairs of types, where a type in goshop/internal/user/service uses a type in goshop/internal/user/repository.
- The types involved
goshop/internal/user/service.addressSvc→goshop/internal/user/repository.AddressRepositorygoshop/internal/user/service.service→goshop/internal/user/repository.AddressRepositorygoshop/internal/user/service.service→goshop/internal/user/repository.UserRepositorygoshop/internal/user/service.service→goshop/internal/user/repository.WishlistRepositorygoshop/internal/user/service.userService→goshop/internal/user/repository.UserRepositorygoshop/internal/user/service.wishlistSvc→goshop/internal/user/repository.WishlistRepository
- Direction
- goshop/internal/user/service uses goshop/internal/user/repository, so a change to goshop/internal/user/repository can break goshop/internal/user/service, while a change to goshop/internal/user/service can't break goshop/internal/user/repository.
- Position
- Below the diagonal: goshop/internal/user/service uses a module listed above it, which is the healthy direction.
27→20 goshop/internal/user/service uses goshop/pkg/authentik✕
- Connections
- 1 pair of types, where a type in goshop/internal/user/service uses a type in goshop/pkg/authentik.
- The types involved
goshop/internal/user/service.AuthentikClient→goshop/pkg/authentik.UserClaims
- Direction
- goshop/internal/user/service uses goshop/pkg/authentik, so a change to goshop/pkg/authentik can break goshop/internal/user/service, while a change to goshop/internal/user/service can't break goshop/pkg/authentik.
- Position
- Below the diagonal: goshop/internal/user/service uses a module listed above it, which is the healthy direction.
28→11 web.src.api uses web.src.types✕
- Connections
- 1 pair of types, where a type in web.src.api uses a type in web.src.types.
- The types involved
web.src.api.cart→web.src.types.Product
- Direction
- web.src.api uses web.src.types, so a change to web.src.types can break web.src.api, while a change to web.src.api can't break web.src.types.
- Position
- Below the diagonal: web.src.api uses a module listed above it, which is the healthy direction.
28→22 web.src.api uses web.src.api.cart✕
- Connections
- 1 pair of types, where a type in web.src.api uses a type in web.src.api.cart.
- The types involved
web.src.api.cart→web.src.api.cart.ClientCart
- Direction
- web.src.api uses web.src.api.cart, so a change to web.src.api.cart can break web.src.api, while a change to web.src.api can't break web.src.api.cart.
- Position
- Below the diagonal: web.src.api uses a module listed above it, which is the healthy direction.
29→11 web.src.components uses web.src.types✕
- Connections
- 1 pair of types, where a type in web.src.components uses a type in web.src.types.
- The types involved
web.src.components.StockBadge→web.src.types.Product
- Direction
- web.src.components uses web.src.types, so a change to web.src.types can break web.src.components, while a change to web.src.components can't break web.src.types.
- Position
- Below the diagonal: web.src.components uses a module listed above it, which is the healthy direction.
29→23 web.src.components uses web.src.components.ProductCard✕
- Connections
- 1 pair of types, where a type in web.src.components uses a type in web.src.components.ProductCard.
- The types involved
web.src.components.ProductCard→web.src.components.ProductCard.ProductCardProps
- Direction
- web.src.components uses web.src.components.ProductCard, so a change to web.src.components.ProductCard can break web.src.components, while a change to web.src.components can't break web.src.components.ProductCard.
- Position
- Below the diagonal: web.src.components uses a module listed above it, which is the healthy direction.
30→6 goshop/internal/notification/port/http uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/notification/port/http uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/notification/port/http.http→goshop/pkg/dbs.Database
- Direction
- goshop/internal/notification/port/http uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/notification/port/http, while a change to goshop/internal/notification/port/http can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/notification/port/http uses a module listed above it, which is the healthy direction.
30→24 goshop/internal/notification/port/http uses goshop/internal/notification/service✕
- Connections
- 2 pairs of types, where a type in goshop/internal/notification/port/http uses a type in goshop/internal/notification/service.
- The types involved
goshop/internal/notification/port/http.Handler→goshop/internal/notification/service.PreferenceServicegoshop/internal/notification/port/http.http→goshop/internal/notification/service.PreferenceService
- Direction
- goshop/internal/notification/port/http uses goshop/internal/notification/service, so a change to goshop/internal/notification/service can break goshop/internal/notification/port/http, while a change to goshop/internal/notification/port/http can't break goshop/internal/notification/service.
- Position
- Below the diagonal: goshop/internal/notification/port/http uses a module listed above it, which is the healthy direction.
31→2 goshop/internal/order/service uses goshop/internal/order/model✕
- Connections
- 7 pairs of types, where a type in goshop/internal/order/service uses a type in goshop/internal/order/model.
- The types involved
goshop/internal/order/service.CouponService→goshop/internal/order/model.Coupongoshop/internal/order/service.OrderService→goshop/internal/order/model.Ordergoshop/internal/order/service.OrderService→goshop/internal/order/model.OrderStatusgoshop/internal/order/service.couponSvc→goshop/internal/order/model.Coupongoshop/internal/order/service.orderService→goshop/internal/order/model.Ordergoshop/internal/order/service.orderService→goshop/internal/order/model.OrderStatusgoshop/internal/order/service.service→goshop/internal/order/model.StockReservation
- Direction
- goshop/internal/order/service uses goshop/internal/order/model, so a change to goshop/internal/order/model can break goshop/internal/order/service, while a change to goshop/internal/order/service can't break goshop/internal/order/model.
- Position
- Below the diagonal: goshop/internal/order/service uses a module listed above it, which is the healthy direction.
31→6 goshop/internal/order/service uses goshop/pkg/dbs✕
- Connections
- 2 pairs of types, where a type in goshop/internal/order/service uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/order/service.orderService→goshop/pkg/dbs.Databasegoshop/internal/order/service.service→goshop/pkg/dbs.Database
- Direction
- goshop/internal/order/service uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/order/service, while a change to goshop/internal/order/service can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/order/service uses a module listed above it, which is the healthy direction.
31→7 goshop/internal/order/service uses goshop/pkg/notification✕
- Connections
- 2 pairs of types, where a type in goshop/internal/order/service uses a type in goshop/pkg/notification.
- The types involved
goshop/internal/order/service.orderService→goshop/pkg/notification.Notifiergoshop/internal/order/service.service→goshop/pkg/notification.Notifier
- Direction
- goshop/internal/order/service uses goshop/pkg/notification, so a change to goshop/pkg/notification can break goshop/internal/order/service, while a change to goshop/internal/order/service can't break goshop/pkg/notification.
- Position
- Below the diagonal: goshop/internal/order/service uses a module listed above it, which is the healthy direction.
31→13 goshop/internal/order/service uses goshop/internal/order/domain✕
- Connections
- 6 pairs of types, where a type in goshop/internal/order/service uses a type in goshop/internal/order/domain.
- The types involved
goshop/internal/order/service.CouponService→goshop/internal/order/domain.CreateCouponReqgoshop/internal/order/service.OrderService→goshop/internal/order/domain.ListOrderReqgoshop/internal/order/service.OrderService→goshop/internal/order/domain.PlaceOrderReqgoshop/internal/order/service.couponSvc→goshop/internal/order/domain.CreateCouponReqgoshop/internal/order/service.orderService→goshop/internal/order/domain.ListOrderReqgoshop/internal/order/service.orderService→goshop/internal/order/domain.PlaceOrderReq
- Direction
- goshop/internal/order/service uses goshop/internal/order/domain, so a change to goshop/internal/order/domain can break goshop/internal/order/service, while a change to goshop/internal/order/service can't break goshop/internal/order/domain.
- Position
- Below the diagonal: goshop/internal/order/service uses a module listed above it, which is the healthy direction.
31→25 goshop/internal/order/service uses goshop/internal/order/repository✕
- Connections
- 10 pairs of types, where a type in goshop/internal/order/service uses a type in goshop/internal/order/repository.
- The types involved
goshop/internal/order/service.couponSvc→goshop/internal/order/repository.CouponRepositorygoshop/internal/order/service.orderService→goshop/internal/order/repository.OrderRepositorygoshop/internal/order/service.orderService→goshop/internal/order/repository.ProductRepositorygoshop/internal/order/service.orderService→goshop/internal/order/repository.ReservationRepositorygoshop/internal/order/service.orderService→goshop/internal/order/repository.UserRepositorygoshop/internal/order/service.service→goshop/internal/order/repository.CouponRepositorygoshop/internal/order/service.service→goshop/internal/order/repository.OrderRepositorygoshop/internal/order/service.service→goshop/internal/order/repository.ProductRepositorygoshop/internal/order/service.service→goshop/internal/order/repository.ReservationRepositorygoshop/internal/order/service.service→goshop/internal/order/repository.UserRepository
- Direction
- goshop/internal/order/service uses goshop/internal/order/repository, so a change to goshop/internal/order/repository can break goshop/internal/order/service, while a change to goshop/internal/order/service can't break goshop/internal/order/repository.
- Position
- Below the diagonal: goshop/internal/order/service uses a module listed above it, which is the healthy direction.
32→3 goshop/internal/product/service uses goshop/internal/product/model✕
- Connections
- 6 pairs of types, where a type in goshop/internal/product/service uses a type in goshop/internal/product/model.
- The types involved
goshop/internal/product/service.CategoryService→goshop/internal/product/model.Categorygoshop/internal/product/service.ProductService→goshop/internal/product/model.Productgoshop/internal/product/service.ReviewService→goshop/internal/product/model.Reviewgoshop/internal/product/service.categorySvc→goshop/internal/product/model.Categorygoshop/internal/product/service.productSvc→goshop/internal/product/model.Productgoshop/internal/product/service.reviewSvc→goshop/internal/product/model.Review
- Direction
- goshop/internal/product/service uses goshop/internal/product/model, so a change to goshop/internal/product/model can break goshop/internal/product/service, while a change to goshop/internal/product/service can't break goshop/internal/product/model.
- Position
- Below the diagonal: goshop/internal/product/service uses a module listed above it, which is the healthy direction.
32→15 goshop/internal/product/service uses goshop/internal/product/domain✕
- Connections
- 14 pairs of types, where a type in goshop/internal/product/service uses a type in goshop/internal/product/domain.
- The types involved
goshop/internal/product/service.CategoryService→goshop/internal/product/domain.CreateCategoryReqgoshop/internal/product/service.CategoryService→goshop/internal/product/domain.UpdateCategoryReqgoshop/internal/product/service.ProductService→goshop/internal/product/domain.CreateProductReqgoshop/internal/product/service.ProductService→goshop/internal/product/domain.ListProductReqgoshop/internal/product/service.ProductService→goshop/internal/product/domain.UpdateProductReqgoshop/internal/product/service.ReviewService→goshop/internal/product/domain.CreateReviewReqgoshop/internal/product/service.ReviewService→goshop/internal/product/domain.UpdateReviewReqgoshop/internal/product/service.categorySvc→goshop/internal/product/domain.CreateCategoryReqgoshop/internal/product/service.categorySvc→goshop/internal/product/domain.UpdateCategoryReqgoshop/internal/product/service.productSvc→goshop/internal/product/domain.CreateProductReqgoshop/internal/product/service.productSvc→goshop/internal/product/domain.ListProductReqgoshop/internal/product/service.productSvc→goshop/internal/product/domain.UpdateProductReqgoshop/internal/product/service.reviewSvc→goshop/internal/product/domain.CreateReviewReqgoshop/internal/product/service.reviewSvc→goshop/internal/product/domain.UpdateReviewReq
- Direction
- goshop/internal/product/service uses goshop/internal/product/domain, so a change to goshop/internal/product/domain can break goshop/internal/product/service, while a change to goshop/internal/product/service can't break goshop/internal/product/domain.
- Position
- Below the diagonal: goshop/internal/product/service uses a module listed above it, which is the healthy direction.
32→26 goshop/internal/product/service uses goshop/internal/product/repository✕
- Connections
- 7 pairs of types, where a type in goshop/internal/product/service uses a type in goshop/internal/product/repository.
- The types involved
goshop/internal/product/service.categorySvc→goshop/internal/product/repository.CategoryRepositorygoshop/internal/product/service.productSvc→goshop/internal/product/repository.ProductRepositorygoshop/internal/product/service.reviewSvc→goshop/internal/product/repository.ProductRepositorygoshop/internal/product/service.reviewSvc→goshop/internal/product/repository.ReviewRepositorygoshop/internal/product/service.service→goshop/internal/product/repository.CategoryRepositorygoshop/internal/product/service.service→goshop/internal/product/repository.ProductRepositorygoshop/internal/product/service.service→goshop/internal/product/repository.ReviewRepository
- Direction
- goshop/internal/product/service uses goshop/internal/product/repository, so a change to goshop/internal/product/repository can break goshop/internal/product/service, while a change to goshop/internal/product/service can't break goshop/internal/product/repository.
- Position
- Below the diagonal: goshop/internal/product/service uses a module listed above it, which is the healthy direction.
33→4 goshop/internal/user/port/grpc uses goshop/internal/user/model✕
- Connections
- 1 pair of types, where a type in goshop/internal/user/port/grpc uses a type in goshop/internal/user/model.
- The types involved
goshop/internal/user/port/grpc.grpc→goshop/internal/user/model.User
- Direction
- goshop/internal/user/port/grpc uses goshop/internal/user/model, so a change to goshop/internal/user/model can break goshop/internal/user/port/grpc, while a change to goshop/internal/user/port/grpc can't break goshop/internal/user/model.
- Position
- Below the diagonal: goshop/internal/user/port/grpc uses a module listed above it, which is the healthy direction.
33→6 goshop/internal/user/port/grpc uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/user/port/grpc uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/user/port/grpc.grpc→goshop/pkg/dbs.Database
- Direction
- goshop/internal/user/port/grpc uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/user/port/grpc, while a change to goshop/internal/user/port/grpc can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/user/port/grpc uses a module listed above it, which is the healthy direction.
33→27 goshop/internal/user/port/grpc uses goshop/internal/user/service✕
- Connections
- 2 pairs of types, where a type in goshop/internal/user/port/grpc uses a type in goshop/internal/user/service.
- The types involved
goshop/internal/user/port/grpc.UserHandler→goshop/internal/user/service.UserServicegoshop/internal/user/port/grpc.grpc→goshop/internal/user/service.UserService
- Direction
- goshop/internal/user/port/grpc uses goshop/internal/user/service, so a change to goshop/internal/user/service can break goshop/internal/user/port/grpc, while a change to goshop/internal/user/port/grpc can't break goshop/internal/user/service.
- Position
- Below the diagonal: goshop/internal/user/port/grpc uses a module listed above it, which is the healthy direction.
34→6 goshop/internal/user/port/http uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/user/port/http uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/user/port/http.http→goshop/pkg/dbs.Database
- Direction
- goshop/internal/user/port/http uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/user/port/http, while a change to goshop/internal/user/port/http can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/user/port/http uses a module listed above it, which is the healthy direction.
34→27 goshop/internal/user/port/http uses goshop/internal/user/service✕
- Connections
- 6 pairs of types, where a type in goshop/internal/user/port/http uses a type in goshop/internal/user/service.
- The types involved
goshop/internal/user/port/http.AddressHandler→goshop/internal/user/service.AddressServicegoshop/internal/user/port/http.UserHandler→goshop/internal/user/service.UserServicegoshop/internal/user/port/http.WishlistHandler→goshop/internal/user/service.WishlistServicegoshop/internal/user/port/http.http→goshop/internal/user/service.AddressServicegoshop/internal/user/port/http.http→goshop/internal/user/service.UserServicegoshop/internal/user/port/http.http→goshop/internal/user/service.WishlistService
- Direction
- goshop/internal/user/port/http uses goshop/internal/user/service, so a change to goshop/internal/user/service can break goshop/internal/user/port/http, while a change to goshop/internal/user/port/http can't break goshop/internal/user/service.
- Position
- Below the diagonal: goshop/internal/user/port/http uses a module listed above it, which is the healthy direction.
35→2 goshop/internal/order/port/grpc uses goshop/internal/order/model✕
- Connections
- 2 pairs of types, where a type in goshop/internal/order/port/grpc uses a type in goshop/internal/order/model.
- The types involved
goshop/internal/order/port/grpc.grpc→goshop/internal/order/model.Ordergoshop/internal/order/port/grpc.grpc→goshop/internal/order/model.OrderLine
- Direction
- goshop/internal/order/port/grpc uses goshop/internal/order/model, so a change to goshop/internal/order/model can break goshop/internal/order/port/grpc, while a change to goshop/internal/order/port/grpc can't break goshop/internal/order/model.
- Position
- Below the diagonal: goshop/internal/order/port/grpc uses a module listed above it, which is the healthy direction.
35→6 goshop/internal/order/port/grpc uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/order/port/grpc uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/order/port/grpc.grpc→goshop/pkg/dbs.Database
- Direction
- goshop/internal/order/port/grpc uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/order/port/grpc, while a change to goshop/internal/order/port/grpc can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/order/port/grpc uses a module listed above it, which is the healthy direction.
35→31 goshop/internal/order/port/grpc uses goshop/internal/order/service✕
- Connections
- 2 pairs of types, where a type in goshop/internal/order/port/grpc uses a type in goshop/internal/order/service.
- The types involved
goshop/internal/order/port/grpc.OrderHandler→goshop/internal/order/service.OrderServicegoshop/internal/order/port/grpc.grpc→goshop/internal/order/service.OrderService
- Direction
- goshop/internal/order/port/grpc uses goshop/internal/order/service, so a change to goshop/internal/order/service can break goshop/internal/order/port/grpc, while a change to goshop/internal/order/port/grpc can't break goshop/internal/order/service.
- Position
- Below the diagonal: goshop/internal/order/port/grpc uses a module listed above it, which is the healthy direction.
36→6 goshop/internal/order/port/http uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/order/port/http uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/order/port/http.http→goshop/pkg/dbs.Database
- Direction
- goshop/internal/order/port/http uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/order/port/http, while a change to goshop/internal/order/port/http can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/order/port/http uses a module listed above it, which is the healthy direction.
36→31 goshop/internal/order/port/http uses goshop/internal/order/service✕
- Connections
- 4 pairs of types, where a type in goshop/internal/order/port/http uses a type in goshop/internal/order/service.
- The types involved
goshop/internal/order/port/http.CouponHandler→goshop/internal/order/service.CouponServicegoshop/internal/order/port/http.OrderHandler→goshop/internal/order/service.OrderServicegoshop/internal/order/port/http.http→goshop/internal/order/service.CouponServicegoshop/internal/order/port/http.http→goshop/internal/order/service.OrderService
- Direction
- goshop/internal/order/port/http uses goshop/internal/order/service, so a change to goshop/internal/order/service can break goshop/internal/order/port/http, while a change to goshop/internal/order/port/http can't break goshop/internal/order/service.
- Position
- Below the diagonal: goshop/internal/order/port/http uses a module listed above it, which is the healthy direction.
37→2 goshop/internal/payment/service uses goshop/internal/order/model✕
- Connections
- 1 pair of types, where a type in goshop/internal/payment/service uses a type in goshop/internal/order/model.
- The types involved
goshop/internal/payment/service.OrderQuery→goshop/internal/order/model.Order
- Direction
- goshop/internal/payment/service uses goshop/internal/order/model, so a change to goshop/internal/order/model can break goshop/internal/payment/service, while a change to goshop/internal/payment/service can't break goshop/internal/order/model.
- Position
- Below the diagonal: goshop/internal/payment/service uses a module listed above it, which is the healthy direction.
37→9 goshop/internal/payment/service uses goshop/pkg/payment✕
- Connections
- 4 pairs of types, where a type in goshop/internal/payment/service uses a type in goshop/pkg/payment.
- The types involved
goshop/internal/payment/service.PaymentService→goshop/pkg/payment.Intentgoshop/internal/payment/service.paymentService→goshop/pkg/payment.Intentgoshop/internal/payment/service.paymentService→goshop/pkg/payment.Providergoshop/internal/payment/service.service→goshop/pkg/payment.Provider
- Direction
- goshop/internal/payment/service uses goshop/pkg/payment, so a change to goshop/pkg/payment can break goshop/internal/payment/service, while a change to goshop/internal/payment/service can't break goshop/pkg/payment.
- Position
- Below the diagonal: goshop/internal/payment/service uses a module listed above it, which is the healthy direction.
37→14 goshop/internal/payment/service uses goshop/internal/payment/repository✕
- Connections
- 2 pairs of types, where a type in goshop/internal/payment/service uses a type in goshop/internal/payment/repository.
- The types involved
goshop/internal/payment/service.paymentService→goshop/internal/payment/repository.PaymentRepositorygoshop/internal/payment/service.service→goshop/internal/payment/repository.PaymentRepository
- Direction
- goshop/internal/payment/service uses goshop/internal/payment/repository, so a change to goshop/internal/payment/repository can break goshop/internal/payment/service, while a change to goshop/internal/payment/service can't break goshop/internal/payment/repository.
- Position
- Below the diagonal: goshop/internal/payment/service uses a module listed above it, which is the healthy direction.
37→31 goshop/internal/payment/service uses goshop/internal/order/service✕
- Connections
- 2 pairs of types, where a type in goshop/internal/payment/service uses a type in goshop/internal/order/service.
- The types involved
goshop/internal/payment/service.paymentService→goshop/internal/order/service.OrderServicegoshop/internal/payment/service.service→goshop/internal/order/service.OrderService
- Direction
- goshop/internal/payment/service uses goshop/internal/order/service, so a change to goshop/internal/order/service can break goshop/internal/payment/service, while a change to goshop/internal/payment/service can't break goshop/internal/order/service.
- Position
- Below the diagonal: goshop/internal/payment/service uses a module listed above it, which is the healthy direction.
38→6 goshop/internal/product/port/grpc uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/product/port/grpc uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/product/port/grpc.grpc→goshop/pkg/dbs.Database
- Direction
- goshop/internal/product/port/grpc uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/product/port/grpc, while a change to goshop/internal/product/port/grpc can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/product/port/grpc uses a module listed above it, which is the healthy direction.
38→32 goshop/internal/product/port/grpc uses goshop/internal/product/service✕
- Connections
- 2 pairs of types, where a type in goshop/internal/product/port/grpc uses a type in goshop/internal/product/service.
- The types involved
goshop/internal/product/port/grpc.ProductHandler→goshop/internal/product/service.ProductServicegoshop/internal/product/port/grpc.grpc→goshop/internal/product/service.ProductService
- Direction
- goshop/internal/product/port/grpc uses goshop/internal/product/service, so a change to goshop/internal/product/service can break goshop/internal/product/port/grpc, while a change to goshop/internal/product/port/grpc can't break goshop/internal/product/service.
- Position
- Below the diagonal: goshop/internal/product/port/grpc uses a module listed above it, which is the healthy direction.
39→6 goshop/internal/product/port/http uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/product/port/http uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/product/port/http.http→goshop/pkg/dbs.Database
- Direction
- goshop/internal/product/port/http uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/product/port/http, while a change to goshop/internal/product/port/http can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/product/port/http uses a module listed above it, which is the healthy direction.
39→10 goshop/internal/product/port/http uses goshop/pkg/redis✕
- Connections
- 2 pairs of types, where a type in goshop/internal/product/port/http uses a type in goshop/pkg/redis.
- The types involved
goshop/internal/product/port/http.ProductHandler→goshop/pkg/redis.Redisgoshop/internal/product/port/http.http→goshop/pkg/redis.Redis
- Direction
- goshop/internal/product/port/http uses goshop/pkg/redis, so a change to goshop/pkg/redis can break goshop/internal/product/port/http, while a change to goshop/internal/product/port/http can't break goshop/pkg/redis.
- Position
- Below the diagonal: goshop/internal/product/port/http uses a module listed above it, which is the healthy direction.
39→32 goshop/internal/product/port/http uses goshop/internal/product/service✕
- Connections
- 6 pairs of types, where a type in goshop/internal/product/port/http uses a type in goshop/internal/product/service.
- The types involved
goshop/internal/product/port/http.CategoryHandler→goshop/internal/product/service.CategoryServicegoshop/internal/product/port/http.ProductHandler→goshop/internal/product/service.ProductServicegoshop/internal/product/port/http.ReviewHandler→goshop/internal/product/service.ReviewServicegoshop/internal/product/port/http.http→goshop/internal/product/service.CategoryServicegoshop/internal/product/port/http.http→goshop/internal/product/service.ProductServicegoshop/internal/product/port/http.http→goshop/internal/product/service.ReviewService
- Direction
- goshop/internal/product/port/http uses goshop/internal/product/service, so a change to goshop/internal/product/service can break goshop/internal/product/port/http, while a change to goshop/internal/product/port/http can't break goshop/internal/product/service.
- Position
- Below the diagonal: goshop/internal/product/port/http uses a module listed above it, which is the healthy direction.
40→6 goshop/internal/payment/port/http uses goshop/pkg/dbs✕
- Connections
- 1 pair of types, where a type in goshop/internal/payment/port/http uses a type in goshop/pkg/dbs.
- The types involved
goshop/internal/payment/port/http.http→goshop/pkg/dbs.Database
- Direction
- goshop/internal/payment/port/http uses goshop/pkg/dbs, so a change to goshop/pkg/dbs can break goshop/internal/payment/port/http, while a change to goshop/internal/payment/port/http can't break goshop/pkg/dbs.
- Position
- Below the diagonal: goshop/internal/payment/port/http uses a module listed above it, which is the healthy direction.
40→37 goshop/internal/payment/port/http uses goshop/internal/payment/service✕
- Connections
- 2 pairs of types, where a type in goshop/internal/payment/port/http uses a type in goshop/internal/payment/service.
- The types involved
goshop/internal/payment/port/http.Handler→goshop/internal/payment/service.PaymentServicegoshop/internal/payment/port/http.http→goshop/internal/payment/service.PaymentService
- Direction
- goshop/internal/payment/port/http uses goshop/internal/payment/service, so a change to goshop/internal/payment/service can break goshop/internal/payment/port/http, while a change to goshop/internal/payment/port/http can't break goshop/internal/payment/service.
- Position
- Below the diagonal: goshop/internal/payment/port/http 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 — Domain Modelling
At a glance — Event-Driven
At a glance — Accessibility
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 30 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 18 | High / Critical |
| A02:2025 — Security Misconfiguration | 11 | High / Critical |
| A07:2025 — Authentication Failures | 6 | High / Critical |
Roadmap
Immediately resolve the three leaked secrets in REDACTED and REDACTED to secure the codebase, then establish a dedicated ADR folder to document significant design decisions and their consequences. Reconcile the README with the actual code structure by removing links to non-existent files to ensure documentation accuracy. Finally, expand test coverage by adding tests for the few unreached production modules to improve reliability.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 3 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED. | +6.5 pts | Low | REDACTED Scanning |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +5.2 pts | Low | ADR Quality |
| Reconcile the README with reality: docs/authentik-integration-plan.md links to `internal/user/domain/user.go`, but `docs/internal/user/domain/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/model/user.go`, but `docs/internal/user/model/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/service/user.go`, but `docs/internal/user/service/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/repository/user.go`, but `docs/internal/user/repository/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/port/http/handlers.go`, but `docs/internal/user/port/http/handlers.go` does not exist. | +4.5 pts | Medium | Documentation accuracy |
| Add tests that import the unreached modules (directly or through their public entry). | +3.6 pts | Medium | Test Coverage |
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +3.6 pts | Medium | Architecture documentation |
| Turn off GORM AutoMigrate in production and let the versioned migrations own the schema. | +2.1 pts | Medium | Schema migrations |
| Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label. | +1.7 pts | Medium | Forms & labels |
| Enable Dependabot/Renovate or a dependency-review gate. | +1.6 pts | Medium | Security & performance tooling |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.2 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 1.6 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.8 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 3.4 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 4.1 | Mixed | REDACTED Scanning: Leaked secret: REDACTED |
| internal/payment/service/service.go | 6.3 | Mixed | Cyclomatic Complexity: paymentService.HandleWebhook (cyclomatic 19) |
| REDACTED | 6.3 | Mixed | Dependency Vulnerabilities: Medium CVE: REDACTED |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| web/src/pages/ProfilePage.tsx | 7.2 | Mixed | Cyclomatic Complexity: ProfilePage.ProfilePage (cyclomatic 29) |
| internal/order/service/order.go | 7.2 | Mixed | Cyclomatic Complexity: orderService.SweepExpiredReservations (cyclomatic 21) |
| web/src/pages/CheckoutPage.tsx | 7.4 | Mixed | Cyclomatic Complexity: CheckoutPage.CheckoutPage (cyclomatic 37) |
| web/src/pages/PaymentPage.tsx | 7.4 | Mixed | Cyclomatic Complexity: PaymentPage.PaymentPage (cyclomatic 35) |
| web/src/pages/ProductsPage.tsx | 7.4 | Mixed | Cyclomatic Complexity: ProductsPage.ProductsPage (cyclomatic 31) |
| web/src/pages/ProductDetailPage.tsx | 7.4 | Mixed | Cyclomatic Complexity: ProductDetailPage.ProductDetailPage (cyclomatic 29) |
| web/src/pages/admin/AdminProductsPage.tsx | 7.4 | Mixed | Cyclomatic Complexity: AdminProductsPage.AdminProductsPage (cyclomatic 22) |
| web/src/pages/admin/AdminCategoriesPage.tsx | 7.4 | Mixed | Cyclomatic Complexity: AdminCategoriesPage.AdminCategoriesPage (cyclomatic 19) |
| internal/order/port/http/handlers.go | 7.4 | Mixed | Code Duplication: Duplicated block (11 lines × 2) |
| web/src/pages/admin/AdminCouponsPage.tsx | 7.8 | Mixed | Cyclomatic Complexity: AdminCouponsPage.AdminCouponsPage (cyclomatic 20) |
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. 91 of 95 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 95 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, 258 of 274 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
- 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 7 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 116 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.
- 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.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 426 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- 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. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (REDACTED), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
- 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in 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/pages/ProfilePage.tsx` 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.
- AC2 Forms & labels — 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. 48 further occurrence(s) are not listed individually; the score already reflects all 88.
- 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) — postgres Pulling redis Pulling redis Error Get "https://registry-1.docker.io/v2/": Forbidden postgres 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: goshop Skipped - No image to be pulled postgres Pulling redis Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden redis 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.
- DM9 Scattered domain decisions — 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. Arm two tells a construction that PRODUCES a measurement from one that merely passes it along, and this repository's frontend does not compute that fact. A measurement built independently in two places would not appear above.
- DM9 Scattered domain decisions — 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. Some of this repository's production types come from a frontend that does not bind comparison operands to the members they read, which arm one needs, and those types were not walked for this dimension. The counts above speak for the languages that declare it.
- ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check decides whether a handler's mutation is safe to re-run by recognising its persistence writes (a database save, a repository write, an event publish) and its guards. Those markers are .NET member names, so in this repository's language a write such as `repository.save(order)` is not recognised and a same-named call on an unrelated library type could be. The handlers were found; their idempotency was neither confirmed nor ruled out.
- 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.
- R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 1 further occurrence(s) are not listed individually; the score already reflects all 41.
- 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.
- 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.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- 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.
- 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.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- 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.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- 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.
- 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.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
11 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was CheckoutPage.CheckoutPage at 37.
What to do
- Bring the 11 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with CheckoutPage.CheckoutPage (cyclomatic 37), PaymentPage.PaymentPage (cyclomatic 35), ProductsPage.ProductsPage (cyclomatic 31). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 11 together lifts Cyclomatic Complexity from 8.1 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
10 method(s) exceeded the cognitive complexity threshold of 15; the worst was CheckoutPage.CheckoutPage at 38.
What to do
- Bring the 10 bodies over 15 down to 15 or less in Cognitive Complexity — start with CheckoutPage.CheckoutPage (cognitive 38), orderService.SweepExpiredReservations (cognitive 37), PaymentPage.PaymentPage (cognitive 32). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 10 together lifts Cognitive Complexity from 8.2 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
17 god class(es) detected.
What to do
- Resolve the 15 FunctionTooLong finding(s) in God Classes — start with CheckoutPage.tsx, ProfilePage.tsx, ProductDetailPage.tsx. — One of this dimension's main actionable groups (15 warning-level).
- Resolve the 1 TooManyFields finding(s) in God Classes — start with config.go. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 FileTooLong finding(s) in God Classes — start with ProfilePage.tsx. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
14 duplicated block group(s) detected. Measured on part of this repository only: .tsx (37% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.
What to do
- Resolve the 4 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with product.go (2), redis.go, user.go. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 2 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with order.go, handlers.go. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with handlers.go, coupon_handlers.go. — One of this dimension's main actionable groups (2 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
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.
D6 · Cohesion (LCOM4)
0 of 46 classes have LCOM4 above 3.
D9 · Test Distribution
605 test methods: 523 unit, 82 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 7 `it`/`test` case(s) across 1 test file(s) declaring at least one; its tier split is read from package names and paths only. The Go suite contributes 598 test case(s) across 109 `_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: 0 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 7 tests. Measured on the JavaScript/TypeScript suite only — at least 116 test source file(s) (.go) went unread, so its test quality is unmeasured and is not in these counts.
D11 · Test Reliability
0 flaky across 2 measured tier(s). JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in web/ (7 tests)): measured (0 flaky); Go (goshop): measured (0 flaky).
D12 · Dependency Hygiene
3 outdated, 0 author-deprecated direct Go module(s), 0 pinning or checksum defect(s). 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.
D13 · REDACTED Scanning
2 secret(s) detected.
What to do
- Resolve the 3 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 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 10 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 10 production dependency(ies) this repository's committed lockfile resolves, across 1 product package.json manifest(s). Its 10 `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. ★ 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.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted task-comment markers across 12381 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The repository's root README and the migrations/README.md are the only visible documents. The root README is a clear overview of GoShop (production-ready e-commerce app built with Go REST/gRPC backend and React frontend) plus architecture, tech stack, CI/codecov badges, and an outline that includes missing-overview, missing-installation, and missing-usage; it also mentions the migrations/README as documenting its directory. The migrations README is focused on its own directory (versioned SQL migration files), with a clear conventions table, local development instructions, and production/Kubernetes guidance, matching its scope. The authentik-integration-plan.md document is an architecture/design doc that explains Authentik's role in the GoShop identity flow, current dependencies, and a detailed change list; it is clipped mid-sentence but all outlined sections exist, so no section is considered missing.
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D23 · Boundary Type-Coupling
1 domain type(s) cross context boundaries across 5 contexts.
What to do
- Resolve the 1 Cross-context type Order (order → payment) finding(s) in Boundary Type-Coupling — start with service.go. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Boundary Type-Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D26 · Project Cohesion
1 of 2 build units (Go, npm) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
2 finding(s): 0 critical, 2 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 2 REDACTED finding(s) in Secrets (history) — start with REDACTED (2). — 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)
30 finding(s): 0 critical, 26 high, 4 medium, 0 low. 20 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 1 file(s) — `web/src/pages/ProfilePage.tsx` (lines 463–464, line 464) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 20 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 (20 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
12 finding(s): 0 critical, 5 high, 6 medium, 1 low.
What to do
- Resolve the 5 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (5). — One of this dimension's main actionable groups (5 issue-level).
- Resolve the 5 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3), REDACTED (2). — 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
11 finding(s): 0 critical, 2 high, 7 medium, 2 low.
What to do
- Resolve the 2 High IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 7 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (5), REDACTED (2). — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 2 Low IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 recommendation-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 55 of the 158 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
No strong hidden change-coupling between production files.
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 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
AC2 · Forms & labels
- A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×14) — web/src/components/Pagination.tsx:21, web/src/components/Pagination.tsx:52, web/src/components/ProductCard.tsx:81, …
- This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×13) — web/src/pages/CheckoutPage.tsx:184, web/src/pages/CheckoutPage.tsx:192, web/src/pages/CheckoutPage.tsx:201, …
- This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×9) — web/src/pages/CheckoutPage.tsx:185, web/src/pages/CheckoutPage.tsx:193, web/src/pages/CheckoutPage.tsx:202, …
- 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. (×4) — web/src/pages/CheckoutPage.tsx:274, web/src/pages/OrdersPage.tsx:53, web/src/pages/ProductDetailPage.tsx:291, …
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
AC6 · Visual & motion safety
- <div> moves — its `animate-spin` utility runs with no motion-safe:/motion-reduce: variant — and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:. — web/src/components/LoadingSpinner.tsx:18
- This element's Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade. (×2) — web/src/components/ProductCard.tsx:81, web/src/pages/OrderDetailPage.tsx:91
- `.input` 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:29
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 — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 31 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX2 · Stateful singletons
AX3 · Project dependency cycles
AX5 · Architecture & structure
AX6 · Interface segregation
DM1 · Aggregate boundaries
- `ProductRepository` writes `Product` — a cross-context projection of an entity another bounded context owns and also writes. Two contexts mutating one table leaves no single guardian of its invariants; route writes through the owning context, or keep this a read-only projection. — internal/order/repository/product.go:14
What to do
- Reference other aggregates by their strongly-typed id, never by object reference, so each aggregate stays an independent consistency boundary.
DM10 · One transaction, one aggregate
DM11 · Constructible invalid state
DM12 · Ambient inputs in the domain
DM3 · Integration-event coupling
DM4 · Rich vs anemic model
DM5 · Encapsulated state
DM6 · Domain ↔ infrastructure boundary
DM7 · Repository granularity
- `Database` leaks the infrastructure/framework type `DB` through its contract. A repository should be a persistence PORT over an aggregate ROOT — expose intention-revealing whole-aggregate operations (Save/FindByID) and keep framework types, query specifications and business logic out of its contract so callers can't bypass the aggregate's invariants. — pkg/dbs/dbs.go:16
What to do
- Define repositories per aggregate root and keep the query handle inside them; reach child entities through their root so invariants can't be bypassed.
DM8 · Value-object opportunities
DM9 · Scattered domain decisions
ED3 · Event naming
ED4 · Outbox / dual-write
- `orderService.PlaceOrder` writes to the database while `orderService.publishLowStock` publishes to the message bus in the same command-handling flow, with no outbox referenced on either path. Splitting the persist and the publish across sibling methods (or two collaborating actors) doesn't make them atomic — a crash between the two either loses the message or emits a phantom event. Use the transactional outbox pattern so the message is committed in the same transaction as the state change and dispatched afterwards. — internal/order/service/order.go:87
What to do
- Adopt the transactional outbox pattern so DB writes and message publishes commit atomically — no lost or phantom events on a crash.
M1 · Documentation (README)
What to do
- Add a README to the 1 of 1 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure
M4 · Documentation accuracy
- docs/authentik-integration-plan.md links to `internal/user/domain/user.go`, but `docs/internal/user/domain/user.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:15
- docs/authentik-integration-plan.md links to `internal/user/model/user.go`, but `docs/internal/user/model/user.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:16
- docs/authentik-integration-plan.md links to `internal/user/service/user.go`, but `docs/internal/user/service/user.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:17
- docs/authentik-integration-plan.md links to `internal/user/repository/user.go`, but `docs/internal/user/repository/user.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:18
- docs/authentik-integration-plan.md links to `internal/user/port/http/handlers.go`, but `docs/internal/user/port/http/handlers.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:19
- docs/authentik-integration-plan.md links to `internal/user/port/http/routes.go`, but `docs/internal/user/port/http/routes.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:20
- docs/authentik-integration-plan.md links to `internal/user/port/grpc/handlers.go`, but `docs/internal/user/port/grpc/handlers.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:21
- docs/authentik-integration-plan.md links to `pkg/jtoken/jwt.go`, but `docs/pkg/jtoken/jwt.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:22
- docs/authentik-integration-plan.md links to `pkg/middleware/auth.go`, but `docs/pkg/middleware/auth.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:23
- docs/authentik-integration-plan.md links to `REDACTED`, but `docs/REDACTED` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:24
- docs/authentik-integration-plan.md links to `pkg/config/config.go`, but `docs/pkg/config/config.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:25
- docs/authentik-integration-plan.md links to `pkg/middleware/admin.go`, but `docs/pkg/middleware/admin.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:26
- docs/authentik-integration-plan.md links to `pkg/oidc/validator.go`, but `docs/pkg/oidc/validator.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:184
- docs/authentik-integration-plan.md links to `pkg/middleware/oidc.go`, but `docs/pkg/middleware/oidc.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:315
- docs/authentik-integration-plan.md links to `REDACTED`, but `docs/REDACTED` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:368
- docs/authentik-integration-plan.md links to `internal/user/port/http/oidc_handlers.go`, but `docs/internal/user/port/http/oidc_handlers.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:424
- docs/authentik-integration-plan.md names `internal/user/port/http/oidc_handlers.go`, but no file or folder `internal/user/port/http/oidc_handlers.go` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:424
- docs/authentik-integration-plan.md links to `internal/server/grpc/server.go`, but `docs/internal/server/grpc/server.go` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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/authentik-integration-plan.md:590
What to do
- Reconcile the README with reality: docs/authentik-integration-plan.md links to `internal/user/domain/user.go`, but `docs/internal/user/domain/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/model/user.go`, but `docs/internal/user/model/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/service/user.go`, but `docs/internal/user/service/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/repository/user.go`, but `docs/internal/user/repository/user.go` does not exist; docs/authentik-integration-plan.md links to `internal/user/port/http/handlers.go`, but `docs/internal/user/port/http/handlers.go` does not exist.
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
What to do
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P7 · Outbound HTTP resilience
P8 · Schema migrations
- This repository versions its schema (versioned SQL, versioned SQL (up/down)), but GORM AutoMigrate here builds or alters the schema from the model as well, outside that history — the two paths can disagree about the shape, and a change made this way is never a reviewed migration. Turn it off and let versioned SQL, versioned SQL (up/down) own the schema. — pkg/dbs/dbs.go:67
What to do
- Turn off GORM AutoMigrate in production and let the versioned migrations own the schema.
PF3 · Async & latency hygiene
R1 · Type Safety
R10 · Code Duplication
- web/src/pages/admin/AdminCategoriesPage.tsx:14 · web/src/pages/admin/AdminProductsPage.tsx:19 — the two spans are one implementation copied and then locally edited — 1001 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/admin/AdminCategoriesPage.tsx:14
- web/src/pages/admin/AdminCouponsPage.tsx:149 · web/src/pages/admin/AdminProductsPage.tsx:202 — the two spans are one implementation copied and then locally edited — 280 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/admin/AdminCouponsPage.tsx:149
- web/src/pages/OrdersPage.tsx:22 · web/src/pages/admin/AdminOrdersPage.tsx:21 — the two spans are one implementation copied and then locally edited — 282 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/OrdersPage.tsx:22
- web/src/pages/LoginPage.tsx:36 · web/src/pages/RegisterPage.tsx:43 — 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/pages/LoginPage.tsx:36
- web/src/pages/CheckoutPage.tsx:181 · web/src/pages/CheckoutPage.tsx:207 — 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/pages/CheckoutPage.tsx:181
- web/src/pages/ProfilePage.tsx:539 · web/src/pages/ProfilePage.tsx:565 — 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/pages/ProfilePage.tsx:539
- web/src/pages/ProductDetailPage.tsx:277 · web/src/pages/ProductDetailPage.tsx:322 — 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/pages/ProductDetailPage.tsx:277
- web/src/pages/CheckoutPage.tsx:152 · web/src/pages/ProfilePage.tsx:290 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — web/src/pages/CheckoutPage.tsx:152
- web/src/pages/OrderDetailPage.tsx:121 · web/src/pages/ProfilePage.tsx:350 — 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/pages/OrderDetailPage.tsx:121
- web/src/pages/ProfilePage.tsx:480 · web/src/pages/ProfilePage.tsx:497 — 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/pages/ProfilePage.tsx:480
- web/src/components/GuestRoute.tsx:10 · web/src/components/ProtectedRoute.tsx:15 — 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/components/GuestRoute.tsx:10
- web/src/pages/CheckoutPage.tsx:273 · web/src/pages/admin/AdminCouponsPage.tsx:101 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — web/src/pages/CheckoutPage.tsx:273
- web/src/api/products.ts:32 · web/src/api/products.ts:53 — 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/api/products.ts:32
- web/src/pages/admin/AdminCategoriesPage.tsx:142 · web/src/pages/admin/AdminOrdersPage.tsx:108 · web/src/pages/admin/AdminProductsPage.tsx:128 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — web/src/pages/admin/AdminCategoriesPage.tsx:142
- web/src/pages/admin/AdminOrdersPage.tsx:54 · web/src/pages/admin/AdminProductsPage.tsx:106 — 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/pages/admin/AdminOrdersPage.tsx:54
- web/src/components/ProductCard.tsx:39 · web/src/pages/ProductDetailPage.tsx:73 — 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/ProductCard.tsx:39
- web/src/pages/LoginPage.tsx:22 · web/src/pages/RegisterPage.tsx:25 — 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/pages/LoginPage.tsx:22
- web/src/pages/ProductsPage.tsx:65 · web/src/pages/admin/AdminOrdersPage.tsx:57 · web/src/pages/admin/AdminProductsPage.tsx:109 — the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — web/src/pages/ProductsPage.tsx:65
- web/src/api/addresses.ts:2 · web/src/api/categories.ts:6 · web/src/api/wishlist.ts:2 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — web/src/api/addresses.ts:2
- web/src/pages/admin/AdminOrdersPage.tsx:87 · web/src/pages/admin/AdminOrdersPage.tsx:157 — 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/pages/admin/AdminOrdersPage.tsx:87
- web/src/pages/ProductsPage.tsx:174 · web/src/pages/admin/AdminCategoriesPage.tsx:145 · web/src/pages/admin/AdminOrdersPage.tsx:113 · web/src/pages/admin/AdminProductsPage.tsx:132 — the 4 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — web/src/pages/ProductsPage.tsx:174
- web/src/pages/ProfilePage.tsx:31 · web/src/pages/RegisterPage.tsx:13 — 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/pages/ProfilePage.tsx:31
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity
- PaymentPage has cyclomatic complexity 23 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/pages/PaymentPage.tsx:46
- ProfilePage has cyclomatic complexity 22 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 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/ProfilePage.tsx:51
- CheckoutPage has cyclomatic complexity 20 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/pages/CheckoutPage.tsx:13
- ProductDetailPage has cyclomatic complexity 20 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/pages/ProductDetailPage.tsx:28
- ProductsPage has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/ProductsPage.tsx:12
- AdminCouponsPage has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — web/src/pages/admin/AdminCouponsPage.tsx:22
- AdminProductsPage has cyclomatic complexity 17 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — web/src/pages/admin/AdminProductsPage.tsx:25
- AdminCategoriesPage has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — web/src/pages/admin/AdminCategoriesPage.tsx:20
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- web/src/pages/ProfilePage.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/pages/ProfilePage.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. (×40) — web/src/pages/ProfilePage.tsx:1, web/src/pages/ProductDetailPage.tsx:1, web/src/pages/CheckoutPage.tsx:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
R7 · Dead Code
- Nothing imports this binding — it is safe to review for removal. (×5) — web/src/components/StockBadge.tsx:3, web/src/types/index.ts:10, web/src/types/index.ts:80, …
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
S1 · Web-Security Posture
- None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `nginx.conf` is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.) — web/nginx.conf:1
What to do
- Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.
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
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
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 != 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. (×2) — internal/order/service/order.go:407, internal/product/service/review.go:96
What to do
- Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
- ~2.2 `!` null assertions per 1k TypeScript source lines — 13 assertion(s) across the 5778 source line(s) of the 43 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/pages/ProductDetailPage.tsx (7), web/src/pages/OrderDetailPage.tsx (2), web/src/pages/PaymentPage.tsx (2). 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 |
| 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 | 78% | Adequate — gated by D26 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 44% | Weak — gated by M2, M4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 42% | Weak — gated by D13, R4, P8 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 71% | Adequate — gated by D29, D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 82% | Strong | Solid. |
| Event-Driven | 78% | Strong | Solid. |
| Accessibility | 53% | Adequate — gated by AC2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 1 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
- AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
- AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
- 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.
- AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
- 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) — postgres Pulling redis Pulling redis Error Get "https://registry-1.docker.io/v2/": Forbidden postgres 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: goshop Skipped - No image to be pulled postgres Pulling redis Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden redis 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.
- D16 Bus Factor — single-contributor repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.go), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D32 Data Compliance (PII/GDPR) — 1 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — 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.
- DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
- ED1 Handler temporal coupling — no event handlers detected — temporal-coupling check not applicable
- ED2 Event/command shape — no command-shaped messages detected — single-handler-per-command check not applicable
- ED5 Idempotency — Not assessed, and this one is on us: 1 command handler(s) or message consumer(s) were found here, but this check does not yet recognise persistence writes in this repository's language. Idempotency was neither confirmed nor ruled out — this is a limit of the analyzer, not a finding about your code.
- ES1 Event Sourcing — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 Go aggregate(s) recording domain events (own events-slice append / raise-record))
- 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
- P12 CI test-gate honesty — 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.
- 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
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for a `func BenchmarkXxx(b *testing.B)` in any `_test.go` file, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: allocation awareness is rated where code engineers for it — at least 400 production lines that ship benchmarks or already use allocation-aware idioms (8 or more). This repository's Go code has 8,214 production line(s), 3 such use(s) and no benchmarks, so there is no allocation work to rate. The card is reward-only: its absence costs nothing.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- 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.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 80 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- <button> with no accessible text web/src/components/Pagination.tsx:21
- <button> with no accessible text web/src/components/Pagination.tsx:52
- <button> with no accessible text web/src/components/ProductCard.tsx:81
- <button> with no accessible text web/src/components/StarRating.tsx:27
- <button> with no accessible text web/src/pages/CartPage.tsx:73
- <button> with no accessible text web/src/pages/CartPage.tsx:80
- <button> with no accessible text web/src/pages/CartPage.tsx:92
- <button> with no accessible text web/src/pages/CheckoutPage.tsx:262
- <button> with no accessible text web/src/pages/ProductDetailPage.tsx:218
- <button> with no accessible text web/src/pages/ProductDetailPage.tsx:225
- <button> with no accessible text web/src/pages/ProductDetailPage.tsx:244
- <button> with no accessible text web/src/pages/ProductDetailPage.tsx:390
- <button> with no accessible text web/src/pages/ProfilePage.tsx:312
- <button> with no accessible text web/src/pages/ProfilePage.tsx:318
- <label> that labels no control web/src/pages/CheckoutPage.tsx:184
- <label> that labels no control web/src/pages/CheckoutPage.tsx:192
- <label> that labels no control web/src/pages/CheckoutPage.tsx:201
- <label> that labels no control web/src/pages/CheckoutPage.tsx:210
- <label> that labels no control web/src/pages/CheckoutPage.tsx:218
- <label> that labels no control web/src/pages/LoginPage.tsx:55
- <label> that labels no control web/src/pages/LoginPage.tsx:68
- <label> that labels no control web/src/pages/ProductDetailPage.tsx:279
- <label> that labels no control web/src/pages/ProductDetailPage.tsx:290
- <label> that labels no control web/src/pages/ProductDetailPage.tsx:324
- <label> that labels no control web/src/pages/ProductsPage.tsx:113
- <label> that labels no control web/src/pages/ProductsPage.tsx:128
- <label> that labels no control web/src/pages/ProductsPage.tsx:158
- <input> without a programmatic label web/src/pages/CheckoutPage.tsx:185
- <input> without a programmatic label web/src/pages/CheckoutPage.tsx:193
- <input> without a programmatic label web/src/pages/CheckoutPage.tsx:202
- <input> without a programmatic label web/src/pages/CheckoutPage.tsx:211
- <input> without a programmatic label web/src/pages/CheckoutPage.tsx:219
- <input> without a programmatic label web/src/pages/CheckoutPage.tsx:274
- <input> without a programmatic label web/src/pages/NotificationPreferencesPage.tsx:79
- <input> without a programmatic label web/src/pages/OrdersPage.tsx:53
- <input> without a programmatic label web/src/pages/ProductsPage.tsx:116
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- <select> without a programmatic label web/src/pages/OrdersPage.tsx:62
- <select> without a programmatic label web/src/pages/ProductsPage.tsx:159
- <textarea> without a programmatic label web/src/pages/ProductDetailPage.tsx:291
- <textarea> without a programmatic label web/src/pages/ProductDetailPage.tsx:334
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Cross-context write of another context's entity: ProductRepository internal/order/repository/product.go:14
- Dual write (no outbox): orderService.PlaceOrder persists, orderService.publishLowStock publishes internal/order/service/order.go:87
Serious — 153 finding(s)
- No test reaches this file web/src/pages/ProfilePage.tsx:1
- No test reaches this file web/src/pages/ProductDetailPage.tsx:1
- No test reaches this file web/src/pages/CheckoutPage.tsx:1
- No test reaches this file web/src/pages/admin/AdminCouponsPage.tsx:1
- No test reaches this file web/src/pages/admin/AdminProductsPage.tsx:1
- No test reaches this file web/src/pages/admin/AdminCategoriesPage.tsx:1
- No test reaches this file web/src/pages/ProductsPage.tsx:1
- No test reaches this file web/src/pages/PaymentPage.tsx:1
- No test reaches this file web/src/pages/OrderDetailPage.tsx:1
- No test reaches this file web/src/pages/admin/AdminOrdersPage.tsx:1
- No test reaches this file web/src/pages/HomePage.tsx:1
- No test reaches this file web/src/pages/OrdersPage.tsx:1
- No test reaches this file web/src/components/Navbar.tsx:1
- No test reaches this file web/src/pages/CartPage.tsx:1
- No test reaches this file web/src/pages/RegisterPage.tsx:1
- No test reaches this file web/src/components/ProductCard.tsx:1
- No test reaches this file web/src/api/client.ts:1
- No test reaches this file web/src/pages/LoginPage.tsx:1
- No test reaches this file web/src/App.tsx:1
- No test reaches this file web/src/pages/NotificationPreferencesPage.tsx:1
- No test reaches this file web/src/context/AuthContext.tsx:1
- No test reaches this file web/src/api/products.ts:1
- No test reaches this file web/src/pages/admin/AdminLayout.tsx:1
- No test reaches this file web/src/components/Pagination.tsx:1
- No test reaches this file web/src/components/Footer.tsx:1
- FunctionTooLong: CheckoutPage.CheckoutPage web/src/pages/CheckoutPage.tsx:13
- FunctionTooLong: ProfilePage.ProfilePage web/src/pages/ProfilePage.tsx:51
- FunctionTooLong: ProductDetailPage.ProductDetailPage web/src/pages/ProductDetailPage.tsx:28
- FunctionTooLong: AdminProductsPage.AdminProductsPage web/src/pages/admin/AdminProductsPage.tsx:25
- FunctionTooLong: AdminCategoriesPage.AdminCategoriesPage web/src/pages/admin/AdminCategoriesPage.tsx:20
- FunctionTooLong: AdminCouponsPage.AdminCouponsPage web/src/pages/admin/AdminCouponsPage.tsx:22
- FunctionTooLong: ProductsPage.ProductsPage web/src/pages/ProductsPage.tsx:12
- FunctionTooLong: HomePage.HomePage web/src/pages/HomePage.tsx:10
- FunctionTooLong: OrderDetailPage.OrderDetailPage web/src/pages/OrderDetailPage.tsx:21
- FunctionTooLong: AdminOrdersPage.AdminOrdersPage web/src/pages/admin/AdminOrdersPage.tsx:21
- FunctionTooLong: PaymentPage.PaymentPage web/src/pages/PaymentPage.tsx:46
- FunctionTooLong: Navbar.Navbar web/src/components/Navbar.tsx:15
- FunctionTooLong: OrdersPage.OrdersPage web/src/pages/OrdersPage.tsx:22
- FunctionTooLong: CartPage.CartPage web/src/pages/CartPage.tsx:7
- FunctionTooLong: RegisterPage.RegisterPage web/src/pages/RegisterPage.tsx:22
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (7 lines × 2) internal/order/repository/product.go:50
- Duplicated block (7 lines × 2) pkg/redis/redis.go:94
- Duplicated block (7 lines × 2) internal/order/repository/product.go:37
- Duplicated block (7 lines × 2) internal/order/repository/user.go:22
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (14 lines × 2 locations) web/src/pages/CheckoutPage.tsx:152
- Duplicated block (14 lines × 2 locations) web/src/pages/OrderDetailPage.tsx:121
- Duplicated block (14 lines × 2 locations) web/src/pages/ProfilePage.tsx:480
- Duplicated block (10 lines × 2) internal/order/repository/order.go:122
- Duplicated block (10 lines × 2) internal/order/port/http/handlers.go:39
- Duplicated block (8 lines × 2) internal/order/port/grpc/handlers.go:53
- Duplicated block (8 lines × 2) internal/order/port/http/coupon_handlers.go:37
- Duplicated block (20 lines × 2 locations) web/src/pages/CheckoutPage.tsx:181
- Duplicated block (20 lines × 2 locations) web/src/pages/ProfilePage.tsx:539
- Duplicated block (11 lines × 2 locations) web/src/api/products.ts:32
- Duplicated block (11 lines × 2 locations) web/src/pages/admin/AdminOrdersPage.tsx:54
- Swallowed exception (caught, then discarded) internal/order/service/order.go:407
- Swallowed exception (caught, then discarded) internal/product/service/review.go:96
- Animation without a prefers-reduced-motion guard web/src/components/LoadingSpinner.tsx:18
- Low contrast Tailwind colour pair (2.5:1) web/src/components/ProductCard.tsx:81
- Low contrast Tailwind colour pair (2.3:1) web/src/pages/OrderDetailPage.tsx:91
- Focus outline removed in CSS without a :focus replacement web/src/index.css:29
- Accessibility enforcement below the top rung
- CheckoutPage.CheckoutPage (cyclomatic 37) web/src/pages/CheckoutPage.tsx:13
- PaymentPage.PaymentPage (cyclomatic 35) web/src/pages/PaymentPage.tsx:46
- ProductsPage.ProductsPage (cyclomatic 31) web/src/pages/ProductsPage.tsx:12
- ProductDetailPage.ProductDetailPage (cyclomatic 29) web/src/pages/ProductDetailPage.tsx:28
- ProfilePage.ProfilePage (cyclomatic 29) web/src/pages/ProfilePage.tsx:51
- AdminProductsPage.AdminProductsPage (cyclomatic 22) web/src/pages/admin/AdminProductsPage.tsx:25
- orderService.SweepExpiredReservations (cyclomatic 21) internal/order/service/order.go:335
- orderService.PlaceOrder (cyclomatic 20) internal/order/service/order.go:87
- AdminCouponsPage.AdminCouponsPage (cyclomatic 20) web/src/pages/admin/AdminCouponsPage.tsx:22
- paymentService.HandleWebhook (cyclomatic 19) internal/payment/service/service.go:107
- AdminCategoriesPage.AdminCategoriesPage (cyclomatic 19) web/src/pages/admin/AdminCategoriesPage.tsx:20
- CheckoutPage.CheckoutPage (cognitive 38) web/src/pages/CheckoutPage.tsx:13
- orderService.SweepExpiredReservations (cognitive 37) internal/order/service/order.go:335
- PaymentPage.PaymentPage (cognitive 32) web/src/pages/PaymentPage.tsx:46
- ProductsPage.ProductsPage (cognitive 30) web/src/pages/ProductsPage.tsx:12
- orderService.PlaceOrder (cognitive 25) internal/order/service/order.go:87
- paymentService.HandleWebhook (cognitive 23) internal/payment/service/service.go:107
- ProductDetailPage.ProductDetailPage (cognitive 23) web/src/pages/ProductDetailPage.tsx:28
- AdminProductsPage.AdminProductsPage (cognitive 20) web/src/pages/admin/AdminProductsPage.tsx:25
- AdminCategoriesPage.AdminCategoriesPage (cognitive 17) web/src/pages/admin/AdminCategoriesPage.tsx:20
- ProfilePage.ProfilePage (cognitive 16) web/src/pages/ProfilePage.tsx:51
- Cross-context type Order (order → payment) internal/payment/service/service.go:32
- REDACTED
- TooManyFields: Schema pkg/config/config.go:32
- FileTooLong: pages/ProfilePage.tsx web/src/pages/ProfilePage.tsx
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (13–14 lines × 2) internal/order/port/grpc/server.go:28
- Duplicated block (12 lines × 3) internal/product/port/http/handlers.go:123
- Duplicated block (11 lines × 2) internal/order/port/http/handlers.go:120
- Duplicated block (7 lines × 5) internal/order/domain/converters.go:43
- Duplicated block (10 lines × 3) internal/order/port/http/handlers.go:120
- Duplicated block (5 lines × 2) internal/user/port/http/handlers.go:35
- Coverage not measured — JavaScript/TypeScript suite
- Leaky repository contract: Database pkg/dbs/dbs.go:16
- Schema created by GORM AutoMigrate outside the migrations pkg/dbs/dbs.go:67
- Duplicated block with local edits (187 matched lines × 2 locations) web/src/pages/admin/AdminCategoriesPage.tsx:14
- Duplicated block with local edits (49 matched lines × 2 locations) web/src/pages/admin/AdminCouponsPage.tsx:149
- Duplicated block with local edits (40 matched lines × 2 locations) web/src/pages/OrdersPage.tsx:22
- Duplicated block (25 lines × 2 locations) web/src/pages/LoginPage.tsx:36
- Duplicated block (19 lines × 2 locations) web/src/pages/ProductDetailPage.tsx:277
- Duplicated block with local edits (13 matched lines × 2 locations) web/src/components/GuestRoute.tsx:10
- Duplicated block (12 lines × 2 locations) web/src/pages/CheckoutPage.tsx:273
- Duplicated block (11 lines × 3 locations) web/src/pages/admin/AdminCategoriesPage.tsx:142
- Duplicated block (10 lines × 2 locations) web/src/components/ProductCard.tsx:39
- Duplicated block (9 lines × 2 locations) web/src/pages/LoginPage.tsx:22
- Duplicated block (9 lines × 3 locations) web/src/pages/ProductsPage.tsx:65
- Duplicated block (8 lines × 3 locations) web/src/api/addresses.ts:2
- Duplicated block (8 lines × 2 locations) web/src/pages/admin/AdminOrdersPage.tsx:87
- Duplicated block (7 lines × 4 locations) web/src/pages/ProductsPage.tsx:174
- Duplicated block (7 lines × 2 locations) web/src/pages/ProfilePage.tsx:31
- Complex function PaymentPage (cyclomatic 23, cognitive 19) web/src/pages/PaymentPage.tsx:46
- Complex function ProfilePage (cyclomatic 22, cognitive 21) web/src/pages/ProfilePage.tsx:51
- Complex function CheckoutPage (cyclomatic 20, cognitive 19) web/src/pages/CheckoutPage.tsx:13
- Complex function ProductDetailPage (cyclomatic 20, cognitive 18) web/src/pages/ProductDetailPage.tsx:28
- Complex function ProductsPage (cyclomatic 19, cognitive 17) web/src/pages/ProductsPage.tsx:12
- Complex function AdminCouponsPage (cyclomatic 17, cognitive 16) web/src/pages/admin/AdminCouponsPage.tsx:22
- Complex function AdminProductsPage (cyclomatic 17, cognitive 14) web/src/pages/admin/AdminProductsPage.tsx:25
- Complex function AdminCategoriesPage (cyclomatic 14, cognitive 11) web/src/pages/admin/AdminCategoriesPage.tsx:20
- web/src/pages/ProfilePage.tsx: 563 lines of code web/src/pages/ProfilePage.tsx:1
Minor — 38 finding(s)
- README/code drift docs/authentik-integration-plan.md:15
- README/code drift docs/authentik-integration-plan.md:16
- README/code drift docs/authentik-integration-plan.md:17
- README/code drift docs/authentik-integration-plan.md:18
- README/code drift docs/authentik-integration-plan.md:19
- README/code drift docs/authentik-integration-plan.md:20
- README/code drift docs/authentik-integration-plan.md:21
- README/code drift docs/authentik-integration-plan.md:22
- README/code drift docs/authentik-integration-plan.md:23
- README/code drift docs/authentik-integration-plan.md:24
- README/code drift docs/authentik-integration-plan.md:25
- README/code drift docs/authentik-integration-plan.md:26
- README/code drift docs/authentik-integration-plan.md:184
- README/code drift docs/authentik-integration-plan.md:315
- README/code drift docs/authentik-integration-plan.md:368
- README/code drift docs/authentik-integration-plan.md:424
- README/code drift docs/authentik-integration-plan.md:424
- README/code drift docs/authentik-integration-plan.md:590
- REDACTED
- REDACTED
- No ADRs found
- Projects may be oversized for their cohesion
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No ADRs
- No changelog
- Unused export 'LOW_STOCK_THRESHOLD' web/src/components/StockBadge.tsx:3
- Unused export 'AuthTokens' web/src/types/index.ts:10
- Unused export 'Cart' web/src/types/index.ts:80
- Unused export 'ApiError' web/src/types/index.ts:147
- Unused export 'AddToCartRequest' web/src/types/index.ts:195
- No security response headers detected web/nginx.conf:1
- Duplicated predicate web/src/pages/admin/AdminCategoriesPage.tsx:257
- Null assertions (`!`) reduce the strict null checking score
Minor — 3 finding(s)
- Outdated: github.com/alicebob/miniredis/v2
- Outdated: github.com/redis/go-redis/v9
- Outdated: golang.org/x/crypto
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-882c155a988b468483ff2981a9041d6a/history.json --exit-code 0 --source . | 2 | 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-882c155a988b468483ff2981a9041d6a/tree.json --exit-code 0 --source . | 2 | 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 . | 30 | 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 | 12 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 11 | 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 1 file(s) — `web/src/pages/ProfilePage.tsx` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |