Executive summary
misiukanis/simple-shop scores 34 out of 100 and is rated Weak, while seven of its nine lenses score higher still: Event-Driven and Performance at 100, both rated Exemplary, Code Health at 86 and Architecture at 80, both rated Strong, Domain Modelling at 69 and Maturity at 61, both rated Adequate, and Security and Compliance at 40, rated Weak.
The score is lower than those seven because the weakest lens counts most, and here that is Accessibility, which scores 21 and is rated Critical. Its Keyboard semantics dimension scores 1 out of 10, and until that reaches 4, Accessibility can't be rated higher than Adequate. The first actions are to make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href and to 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, and if Accessibility rose to 70, the score would rise from 34 to about 43.
27 findings are critical: ten in Page structure, nine in Forms & labels, three in Text alternatives, two in Dependency Vulnerabilities, two in Keyboard semantics and one in Project dependency cycles.
Watchdog couldn't measure 4 dimensions in this code, among them Code Coverage, Dependency Hygiene and IL Efficiency, so they are left out of the score. The product code is 2,335 lines, which would take an estimated 0.1 person-years, around €2,200, to rebuild.
If Accessibility rose from 21 to 70, the lowest score rated Strong, the score would rise from 34 to about 43.
New since the last survey: 23 findings
- Explicit Debt · Dead code: FindAllAsync Shop/Shop.Domain/Interfaces/Repositories/IDbRepository.cs
- Access Controls · No authorization Shop/Shop/Controllers/CustomersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/CustomersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/CustomersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/CustomersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/OrdersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/OrdersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/OrdersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/OrdersController.cs
- Access Controls · No authorization Shop/Shop/Controllers/ProductsController.cs
- Access Controls · No authorization Shop/Shop/Controllers/ProductsController.cs
- Access Controls · No authorization Shop/Shop/Controllers/ProductsController.cs
- Access Controls · No authorization Shop/Shop/Controllers/ProductsController.cs
- Access Controls · No authorization Shop/Shop/Controllers/ProductsController.cs
- Cancellation propagation · Async method without CancellationToken: DispatchEventsAsync Shop/Shop.Infrastructure/Dispatchers/DomainEventDispatcher.cs
- Cancellation propagation · Async method without CancellationToken: LoadAsync Shop/Shop.Infrastructure/Repositories/EventStoreRepository.cs
- Cancellation propagation · Async method without CancellationToken: SaveAsync Shop/Shop.Infrastructure/Repositories/EventStoreRepository.cs
- Cancellation propagation · Async method without CancellationToken: FindAllAsync Shop/Shop.Infrastructure/Repositories/MongoDbRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetAllAsync Shop/Shop.Infrastructure/Repositories/MongoDbRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetByIdAsync Shop/Shop.Infrastructure/Repositories/MongoDbRepository.cs
- Outbound HTTP resilience · Outbound HTTP without resilience Shop/Shop/DependencyInjection.cs
- Visual & motion safety · Focus outline removed in CSS without a :focus replacement Shop/Shop/wwwroot/app.css
- Visual & motion safety · Animation without a prefers-reduced-motion guard Shop/Shop/wwwroot/app.css
Fixed since the last survey: 5 findings
- Static Analysis (SAST) · Medium: missing-or-broken-authorization Shop/Shop/Controllers/CustomersController.cs
- Static Analysis (SAST) · Medium: missing-or-broken-authorization Shop/Shop/Controllers/OrdersController.cs
- Static Analysis (SAST) · Medium: missing-or-broken-authorization Shop/Shop/Controllers/ProductsController.cs
- Async correctness · Sync-over-async (deadlock risk) Shop/Shop/Program.cs
- Outbound HTTP resilience · Outbound HTTP without resilience
Rebuild cost: about €2,200 · Estimate
| Cost to rebuild | €740 to €3,600, for 12 to 38 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Very 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 34. 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: 2,335 lines of product code, of which 63% is declarations and boilerplate, 29% straight logic and 8% logic with branches |
| Comment lines | The estimate prices 2,319 lines. Comment lines count towards the size of 2,335 lines but aren't priced as work. |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 (global) | 2 Shop | 3 Shop.Application | 4 Shop.Application.Automapper | 5 Shop.Application.Behaviors | 6 Shop.Application.Exceptions | 7 Shop.Automapper | 8 Shop.Domain.Core | 9 Shop.Domain.Interfaces.Dispatchers | 10 Shop.Domain.Interfaces.Repositories | 11 Shop.Models | 12 Shop.Models.Requests | 13 Shop.Shared.Settings | 14 Shop.Application.Commands.CreateCustomer | 15 Shop.Application.Commands.CreateOrder | 16 Shop.Application.Commands.CreateProduct | 17 Shop.Application.Commands.DeleteProduct | 18 Shop.Application.Commands.UpdateCustomer | 19 Shop.Application.Commands.UpdateProduct | 20 Shop.Domain.Aggregates.CustomerAggregate | 21 Shop.Domain.Aggregates.ProductAggregate | 22 Shop.Domain.Events | 23 Shop.Infrastructure.Persistence | 24 Shop.Infrastructure.Services | 25 Shop.Domain.Aggregates.OrderAggregate | 26 Shop.Infrastructure.Repositories | 27 Shop.Application.Commands.ChangeOrderStatus | 28 Shop.Application.DTOs | 29 Shop.Application.ReadModels | 30 Shop.Helpers | 31 Shop.Application.EventHandlers | 32 Shop.Application.Queries.GetCustomerById | 33 Shop.Application.Queries.GetCustomers | 34 Shop.Application.Queries.GetOrderById | 35 Shop.Application.Queries.GetOrders | 36 Shop.Application.Queries.GetProductById | 37 Shop.Application.Queries.GetProducts | 38 Shop.HttpClients | 39 Shop.Server.Controllers | 40 Shop.Services |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 (global) | ||||||||||||||||||||||||||||||||||||||||
| 2 Shop | ||||||||||||||||||||||||||||||||||||||||
| 3 Shop.Application | ||||||||||||||||||||||||||||||||||||||||
| 4 Shop.Application.Automapper | ||||||||||||||||||||||||||||||||||||||||
| 5 Shop.Application.Behaviors | ||||||||||||||||||||||||||||||||||||||||
| 6 Shop.Application.Exceptions | ||||||||||||||||||||||||||||||||||||||||
| 7 Shop.Automapper | ||||||||||||||||||||||||||||||||||||||||
| 8 Shop.Domain.Core | ||||||||||||||||||||||||||||||||||||||||
| 9 Shop.Domain.Interfaces.Dispatchers | ||||||||||||||||||||||||||||||||||||||||
| 10 Shop.Domain.Interfaces.Repositories | ||||||||||||||||||||||||||||||||||||||||
| 11 Shop.Models | ||||||||||||||||||||||||||||||||||||||||
| 12 Shop.Models.Requests | ||||||||||||||||||||||||||||||||||||||||
| 13 Shop.Shared.Settings | ||||||||||||||||||||||||||||||||||||||||
| 14 Shop.Application.Commands.CreateCustomer | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 15 Shop.Application.Commands.CreateOrder | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 16 Shop.Application.Commands.CreateProduct | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 17 Shop.Application.Commands.DeleteProduct | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 18 Shop.Application.Commands.UpdateCustomer | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 19 Shop.Application.Commands.UpdateProduct | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 20 Shop.Domain.Aggregates.CustomerAggregate | 2 | |||||||||||||||||||||||||||||||||||||||
| 21 Shop.Domain.Aggregates.ProductAggregate | 2 | |||||||||||||||||||||||||||||||||||||||
| 22 Shop.Domain.Events | 8 | 3 | ||||||||||||||||||||||||||||||||||||||
| 23 Shop.Infrastructure.Persistence | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 Shop.Infrastructure.Services | 1 | |||||||||||||||||||||||||||||||||||||||
| 25 Shop.Domain.Aggregates.OrderAggregate | 4 | 3 | ||||||||||||||||||||||||||||||||||||||
| 26 Shop.Infrastructure.Repositories | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 27 Shop.Application.Commands.ChangeOrderStatus | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 28 Shop.Application.DTOs | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 Shop.Application.ReadModels | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 Shop.Helpers | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 Shop.Application.EventHandlers | 8 | 8 | 10 | |||||||||||||||||||||||||||||||||||||
| 32 Shop.Application.Queries.GetCustomerById | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 33 Shop.Application.Queries.GetCustomers | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 34 Shop.Application.Queries.GetOrderById | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 35 Shop.Application.Queries.GetOrders | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 36 Shop.Application.Queries.GetProductById | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 37 Shop.Application.Queries.GetProducts | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 38 Shop.HttpClients | 5 | 1 | 3 | |||||||||||||||||||||||||||||||||||||
| 39 Shop.Server.Controllers | 5 | 1 | 3 | |||||||||||||||||||||||||||||||||||||
| 40 Shop.Services | 1 | 1 |
14→9 Shop.Application.Commands.CreateCustomer uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.CreateCustomer uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.CreateCustomer.CreateCustomerCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.CreateCustomer uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.CreateCustomer, while a change to Shop.Application.Commands.CreateCustomer can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.CreateCustomer uses a module listed above it, which is the healthy direction.
14→10 Shop.Application.Commands.CreateCustomer uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.CreateCustomer uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.CreateCustomer.CreateCustomerCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.CreateCustomer uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.CreateCustomer, while a change to Shop.Application.Commands.CreateCustomer can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.CreateCustomer uses a module listed above it, which is the healthy direction.
15→9 Shop.Application.Commands.CreateOrder uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.CreateOrder uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.CreateOrder.CreateOrderCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.CreateOrder uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.CreateOrder, while a change to Shop.Application.Commands.CreateOrder can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.CreateOrder uses a module listed above it, which is the healthy direction.
15→10 Shop.Application.Commands.CreateOrder uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.CreateOrder uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.CreateOrder.CreateOrderCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.CreateOrder uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.CreateOrder, while a change to Shop.Application.Commands.CreateOrder can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.CreateOrder uses a module listed above it, which is the healthy direction.
16→9 Shop.Application.Commands.CreateProduct uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.CreateProduct uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.CreateProduct.CreateProductCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.CreateProduct uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.CreateProduct, while a change to Shop.Application.Commands.CreateProduct can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.CreateProduct uses a module listed above it, which is the healthy direction.
16→10 Shop.Application.Commands.CreateProduct uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.CreateProduct uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.CreateProduct.CreateProductCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.CreateProduct uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.CreateProduct, while a change to Shop.Application.Commands.CreateProduct can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.CreateProduct uses a module listed above it, which is the healthy direction.
17→9 Shop.Application.Commands.DeleteProduct uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.DeleteProduct uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.DeleteProduct.DeleteProductCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.DeleteProduct uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.DeleteProduct, while a change to Shop.Application.Commands.DeleteProduct can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.DeleteProduct uses a module listed above it, which is the healthy direction.
17→10 Shop.Application.Commands.DeleteProduct uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.DeleteProduct uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.DeleteProduct.DeleteProductCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.DeleteProduct uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.DeleteProduct, while a change to Shop.Application.Commands.DeleteProduct can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.DeleteProduct uses a module listed above it, which is the healthy direction.
18→9 Shop.Application.Commands.UpdateCustomer uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.UpdateCustomer uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.UpdateCustomer.UpdateCustomerCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.UpdateCustomer uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.UpdateCustomer, while a change to Shop.Application.Commands.UpdateCustomer can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.UpdateCustomer uses a module listed above it, which is the healthy direction.
18→10 Shop.Application.Commands.UpdateCustomer uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.UpdateCustomer uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.UpdateCustomer.UpdateCustomerCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.UpdateCustomer uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.UpdateCustomer, while a change to Shop.Application.Commands.UpdateCustomer can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.UpdateCustomer uses a module listed above it, which is the healthy direction.
19→9 Shop.Application.Commands.UpdateProduct uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.UpdateProduct uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.UpdateProduct.UpdateProductCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.UpdateProduct uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.UpdateProduct, while a change to Shop.Application.Commands.UpdateProduct can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.UpdateProduct uses a module listed above it, which is the healthy direction.
19→10 Shop.Application.Commands.UpdateProduct uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.UpdateProduct uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.UpdateProduct.UpdateProductCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.UpdateProduct uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.UpdateProduct, while a change to Shop.Application.Commands.UpdateProduct can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.UpdateProduct uses a module listed above it, which is the healthy direction.
20→8 Shop.Domain.Aggregates.CustomerAggregate uses Shop.Domain.Core✕
- Connections
- 2 pairs of types, where a type in Shop.Domain.Aggregates.CustomerAggregate uses a type in Shop.Domain.Core.
- The types involved
Shop.Domain.Aggregates.CustomerAggregate.Customer→Shop.Domain.Core.AggregateRootShop.Domain.Aggregates.CustomerAggregate.Customer→Shop.Domain.Core.IDomainEvent
- Direction
- Shop.Domain.Aggregates.CustomerAggregate uses Shop.Domain.Core, so a change to Shop.Domain.Core can break Shop.Domain.Aggregates.CustomerAggregate, while a change to Shop.Domain.Aggregates.CustomerAggregate can't break Shop.Domain.Core.
- Position
- Below the diagonal: Shop.Domain.Aggregates.CustomerAggregate uses a module listed above it, which is the healthy direction.
21→8 Shop.Domain.Aggregates.ProductAggregate uses Shop.Domain.Core✕
- Connections
- 2 pairs of types, where a type in Shop.Domain.Aggregates.ProductAggregate uses a type in Shop.Domain.Core.
- The types involved
Shop.Domain.Aggregates.ProductAggregate.Product→Shop.Domain.Core.AggregateRootShop.Domain.Aggregates.ProductAggregate.Product→Shop.Domain.Core.IDomainEvent
- Direction
- Shop.Domain.Aggregates.ProductAggregate uses Shop.Domain.Core, so a change to Shop.Domain.Core can break Shop.Domain.Aggregates.ProductAggregate, while a change to Shop.Domain.Aggregates.ProductAggregate can't break Shop.Domain.Core.
- Position
- Below the diagonal: Shop.Domain.Aggregates.ProductAggregate uses a module listed above it, which is the healthy direction.
22→8 Shop.Domain.Events uses Shop.Domain.Core✕
- Connections
- 8 pairs of types, where a type in Shop.Domain.Events uses a type in Shop.Domain.Core.
- The types involved
Shop.Domain.Events.CustomerChangedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.CustomerCreatedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.OrderCreatedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.OrderItemAddedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.OrderStatusChangedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.ProductChangedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.ProductCreatedEvent→Shop.Domain.Core.DomainEventShop.Domain.Events.ProductDeletedEvent→Shop.Domain.Core.DomainEvent
- Direction
- Shop.Domain.Events uses Shop.Domain.Core, so a change to Shop.Domain.Core can break Shop.Domain.Events, while a change to Shop.Domain.Events can't break Shop.Domain.Core.
- Position
- Below the diagonal: Shop.Domain.Events uses a module listed above it, which is the healthy direction.
22→25 Shop.Domain.Events uses Shop.Domain.Aggregates.OrderAggregate part of a loop✕
- Connections
- 3 pairs of types, where a type in Shop.Domain.Events uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.Domain.Events.OrderCreatedEvent→Shop.Domain.Aggregates.OrderAggregate.AddressShop.Domain.Events.OrderCreatedEvent→Shop.Domain.Aggregates.OrderAggregate.OrderStatusShop.Domain.Events.OrderStatusChangedEvent→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.Domain.Events uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.Domain.Events, while a change to Shop.Domain.Events can't break Shop.Domain.Aggregates.OrderAggregate.
- 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.
23→13 Shop.Infrastructure.Persistence uses Shop.Shared.Settings✕
- Connections
- 1 pair of types, where a type in Shop.Infrastructure.Persistence uses a type in Shop.Shared.Settings.
- The types involved
Shop.Infrastructure.Persistence.MongoDbContext→Shop.Shared.Settings.DatabaseSettings
- Direction
- Shop.Infrastructure.Persistence uses Shop.Shared.Settings, so a change to Shop.Shared.Settings can break Shop.Infrastructure.Persistence, while a change to Shop.Infrastructure.Persistence can't break Shop.Shared.Settings.
- Position
- Below the diagonal: Shop.Infrastructure.Persistence uses a module listed above it, which is the healthy direction.
24→9 Shop.Infrastructure.Services uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Infrastructure.Services uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Infrastructure.Services.DomainEventDispatcher→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Infrastructure.Services uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Infrastructure.Services, while a change to Shop.Infrastructure.Services can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Infrastructure.Services uses a module listed above it, which is the healthy direction.
25→8 Shop.Domain.Aggregates.OrderAggregate uses Shop.Domain.Core✕
- Connections
- 4 pairs of types, where a type in Shop.Domain.Aggregates.OrderAggregate uses a type in Shop.Domain.Core.
- The types involved
Shop.Domain.Aggregates.OrderAggregate.Address→Shop.Domain.Core.ValueObjectShop.Domain.Aggregates.OrderAggregate.Order→Shop.Domain.Core.AggregateRootShop.Domain.Aggregates.OrderAggregate.Order→Shop.Domain.Core.IDomainEventShop.Domain.Aggregates.OrderAggregate.OrderItem→Shop.Domain.Core.Entity
- Direction
- Shop.Domain.Aggregates.OrderAggregate uses Shop.Domain.Core, so a change to Shop.Domain.Core can break Shop.Domain.Aggregates.OrderAggregate, while a change to Shop.Domain.Aggregates.OrderAggregate can't break Shop.Domain.Core.
- Position
- Below the diagonal: Shop.Domain.Aggregates.OrderAggregate uses a module listed above it, which is the healthy direction.
25→22 Shop.Domain.Aggregates.OrderAggregate uses Shop.Domain.Events✕
- Connections
- 3 pairs of types, where a type in Shop.Domain.Aggregates.OrderAggregate uses a type in Shop.Domain.Events.
- The types involved
Shop.Domain.Aggregates.OrderAggregate.Order→Shop.Domain.Events.OrderCreatedEventShop.Domain.Aggregates.OrderAggregate.Order→Shop.Domain.Events.OrderItemAddedEventShop.Domain.Aggregates.OrderAggregate.Order→Shop.Domain.Events.OrderStatusChangedEvent
- Direction
- Shop.Domain.Aggregates.OrderAggregate uses Shop.Domain.Events, so a change to Shop.Domain.Events can break Shop.Domain.Aggregates.OrderAggregate, while a change to Shop.Domain.Aggregates.OrderAggregate can't break Shop.Domain.Events.
- Position
- Below the diagonal: Shop.Domain.Aggregates.OrderAggregate uses a module listed above it, which is the healthy direction.
26→10 Shop.Infrastructure.Repositories uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 2 pairs of types, where a type in Shop.Infrastructure.Repositories uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Infrastructure.Repositories.EventStoreRepository→Shop.Domain.Interfaces.Repositories.IEventStoreRepositoryShop.Infrastructure.Repositories.MongoDbRepository→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Infrastructure.Repositories uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Infrastructure.Repositories, while a change to Shop.Infrastructure.Repositories can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Infrastructure.Repositories uses a module listed above it, which is the healthy direction.
26→23 Shop.Infrastructure.Repositories uses Shop.Infrastructure.Persistence✕
- Connections
- 1 pair of types, where a type in Shop.Infrastructure.Repositories uses a type in Shop.Infrastructure.Persistence.
- The types involved
Shop.Infrastructure.Repositories.MongoDbRepository→Shop.Infrastructure.Persistence.MongoDbContext
- Direction
- Shop.Infrastructure.Repositories uses Shop.Infrastructure.Persistence, so a change to Shop.Infrastructure.Persistence can break Shop.Infrastructure.Repositories, while a change to Shop.Infrastructure.Repositories can't break Shop.Infrastructure.Persistence.
- Position
- Below the diagonal: Shop.Infrastructure.Repositories uses a module listed above it, which is the healthy direction.
27→9 Shop.Application.Commands.ChangeOrderStatus uses Shop.Domain.Interfaces.Dispatchers✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.ChangeOrderStatus uses a type in Shop.Domain.Interfaces.Dispatchers.
- The types involved
Shop.Application.Commands.ChangeOrderStatus.ChangeOrderStatusCommandHandler→Shop.Domain.Interfaces.Dispatchers.IDomainEventDispatcher
- Direction
- Shop.Application.Commands.ChangeOrderStatus uses Shop.Domain.Interfaces.Dispatchers, so a change to Shop.Domain.Interfaces.Dispatchers can break Shop.Application.Commands.ChangeOrderStatus, while a change to Shop.Application.Commands.ChangeOrderStatus can't break Shop.Domain.Interfaces.Dispatchers.
- Position
- Below the diagonal: Shop.Application.Commands.ChangeOrderStatus uses a module listed above it, which is the healthy direction.
27→10 Shop.Application.Commands.ChangeOrderStatus uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.ChangeOrderStatus uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Commands.ChangeOrderStatus.ChangeOrderStatusCommandHandler→Shop.Domain.Interfaces.Repositories.IEventStoreRepository
- Direction
- Shop.Application.Commands.ChangeOrderStatus uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Commands.ChangeOrderStatus, while a change to Shop.Application.Commands.ChangeOrderStatus can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Commands.ChangeOrderStatus uses a module listed above it, which is the healthy direction.
27→25 Shop.Application.Commands.ChangeOrderStatus uses Shop.Domain.Aggregates.OrderAggregate✕
- Connections
- 1 pair of types, where a type in Shop.Application.Commands.ChangeOrderStatus uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.Application.Commands.ChangeOrderStatus.ChangeOrderStatusCommand→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.Application.Commands.ChangeOrderStatus uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.Application.Commands.ChangeOrderStatus, while a change to Shop.Application.Commands.ChangeOrderStatus can't break Shop.Domain.Aggregates.OrderAggregate.
- Position
- Below the diagonal: Shop.Application.Commands.ChangeOrderStatus uses a module listed above it, which is the healthy direction.
28→25 Shop.Application.DTOs uses Shop.Domain.Aggregates.OrderAggregate✕
- Connections
- 1 pair of types, where a type in Shop.Application.DTOs uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.Application.DTOs.OrderDTO→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.Application.DTOs uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.Application.DTOs, while a change to Shop.Application.DTOs can't break Shop.Domain.Aggregates.OrderAggregate.
- Position
- Below the diagonal: Shop.Application.DTOs uses a module listed above it, which is the healthy direction.
29→25 Shop.Application.ReadModels uses Shop.Domain.Aggregates.OrderAggregate✕
- Connections
- 1 pair of types, where a type in Shop.Application.ReadModels uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.Application.ReadModels.OrderReadModel→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.Application.ReadModels uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.Application.ReadModels, while a change to Shop.Application.ReadModels can't break Shop.Domain.Aggregates.OrderAggregate.
- Position
- Below the diagonal: Shop.Application.ReadModels uses a module listed above it, which is the healthy direction.
30→25 Shop.Helpers uses Shop.Domain.Aggregates.OrderAggregate✕
- Connections
- 1 pair of types, where a type in Shop.Helpers uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.Helpers.OrderStatusHelper→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.Helpers uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.Helpers, while a change to Shop.Helpers can't break Shop.Domain.Aggregates.OrderAggregate.
- Position
- Below the diagonal: Shop.Helpers uses a module listed above it, which is the healthy direction.
31→10 Shop.Application.EventHandlers uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 8 pairs of types, where a type in Shop.Application.EventHandlers uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.EventHandlers.CustomerChangedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.CustomerCreatedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.OrderCreatedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.OrderItemAddedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.OrderStatusChangedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.ProductChangedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.ProductCreatedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepositoryShop.Application.EventHandlers.ProductDeletedEventHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.EventHandlers uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.EventHandlers, while a change to Shop.Application.EventHandlers can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.EventHandlers uses a module listed above it, which is the healthy direction.
31→22 Shop.Application.EventHandlers uses Shop.Domain.Events✕
- Connections
- 8 pairs of types, where a type in Shop.Application.EventHandlers uses a type in Shop.Domain.Events.
- The types involved
Shop.Application.EventHandlers.CustomerChangedEventHandler→Shop.Domain.Events.CustomerChangedEventShop.Application.EventHandlers.CustomerCreatedEventHandler→Shop.Domain.Events.CustomerCreatedEventShop.Application.EventHandlers.OrderCreatedEventHandler→Shop.Domain.Events.OrderCreatedEventShop.Application.EventHandlers.OrderItemAddedEventHandler→Shop.Domain.Events.OrderItemAddedEventShop.Application.EventHandlers.OrderStatusChangedEventHandler→Shop.Domain.Events.OrderStatusChangedEventShop.Application.EventHandlers.ProductChangedEventHandler→Shop.Domain.Events.ProductChangedEventShop.Application.EventHandlers.ProductCreatedEventHandler→Shop.Domain.Events.ProductCreatedEventShop.Application.EventHandlers.ProductDeletedEventHandler→Shop.Domain.Events.ProductDeletedEvent
- Direction
- Shop.Application.EventHandlers uses Shop.Domain.Events, so a change to Shop.Domain.Events can break Shop.Application.EventHandlers, while a change to Shop.Application.EventHandlers can't break Shop.Domain.Events.
- Position
- Below the diagonal: Shop.Application.EventHandlers uses a module listed above it, which is the healthy direction.
31→29 Shop.Application.EventHandlers uses Shop.Application.ReadModels✕
- Connections
- 10 pairs of types, where a type in Shop.Application.EventHandlers uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.EventHandlers.CustomerChangedEventHandler→Shop.Application.ReadModels.CustomerReadModelShop.Application.EventHandlers.CustomerCreatedEventHandler→Shop.Application.ReadModels.CustomerReadModelShop.Application.EventHandlers.OrderCreatedEventHandler→Shop.Application.ReadModels.CustomerReadModelShop.Application.EventHandlers.OrderCreatedEventHandler→Shop.Application.ReadModels.OrderReadModelShop.Application.EventHandlers.OrderItemAddedEventHandler→Shop.Application.ReadModels.OrderReadModelShop.Application.EventHandlers.OrderItemAddedEventHandler→Shop.Application.ReadModels.ProductReadModelShop.Application.EventHandlers.OrderStatusChangedEventHandler→Shop.Application.ReadModels.OrderReadModelShop.Application.EventHandlers.ProductChangedEventHandler→Shop.Application.ReadModels.ProductReadModelShop.Application.EventHandlers.ProductCreatedEventHandler→Shop.Application.ReadModels.ProductReadModelShop.Application.EventHandlers.ProductDeletedEventHandler→Shop.Application.ReadModels.ProductReadModel
- Direction
- Shop.Application.EventHandlers uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.EventHandlers, while a change to Shop.Application.EventHandlers can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.EventHandlers uses a module listed above it, which is the healthy direction.
32→10 Shop.Application.Queries.GetCustomerById uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetCustomerById uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Queries.GetCustomerById.GetCustomerByIdQueryHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.Queries.GetCustomerById uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Queries.GetCustomerById, while a change to Shop.Application.Queries.GetCustomerById can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Queries.GetCustomerById uses a module listed above it, which is the healthy direction.
32→28 Shop.Application.Queries.GetCustomerById uses Shop.Application.DTOs✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetCustomerById uses a type in Shop.Application.DTOs.
- The types involved
Shop.Application.Queries.GetCustomerById.GetCustomerByIdQueryHandler→Shop.Application.DTOs.CustomerDTO
- Direction
- Shop.Application.Queries.GetCustomerById uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Application.Queries.GetCustomerById, while a change to Shop.Application.Queries.GetCustomerById can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Application.Queries.GetCustomerById uses a module listed above it, which is the healthy direction.
32→29 Shop.Application.Queries.GetCustomerById uses Shop.Application.ReadModels✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetCustomerById uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.Queries.GetCustomerById.GetCustomerByIdQueryHandler→Shop.Application.ReadModels.CustomerReadModel
- Direction
- Shop.Application.Queries.GetCustomerById uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.Queries.GetCustomerById, while a change to Shop.Application.Queries.GetCustomerById can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.Queries.GetCustomerById uses a module listed above it, which is the healthy direction.
33→10 Shop.Application.Queries.GetCustomers uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetCustomers uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Queries.GetCustomers.GetCustomersQueryHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.Queries.GetCustomers uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Queries.GetCustomers, while a change to Shop.Application.Queries.GetCustomers can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Queries.GetCustomers uses a module listed above it, which is the healthy direction.
33→28 Shop.Application.Queries.GetCustomers uses Shop.Application.DTOs✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetCustomers uses a type in Shop.Application.DTOs.
- The types involved
Shop.Application.Queries.GetCustomers.GetCustomersQueryHandler→Shop.Application.DTOs.CustomerDTO
- Direction
- Shop.Application.Queries.GetCustomers uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Application.Queries.GetCustomers, while a change to Shop.Application.Queries.GetCustomers can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Application.Queries.GetCustomers uses a module listed above it, which is the healthy direction.
33→29 Shop.Application.Queries.GetCustomers uses Shop.Application.ReadModels✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetCustomers uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.Queries.GetCustomers.GetCustomersQueryHandler→Shop.Application.ReadModels.CustomerReadModel
- Direction
- Shop.Application.Queries.GetCustomers uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.Queries.GetCustomers, while a change to Shop.Application.Queries.GetCustomers can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.Queries.GetCustomers uses a module listed above it, which is the healthy direction.
34→10 Shop.Application.Queries.GetOrderById uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetOrderById uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Queries.GetOrderById.GetOrderByIdQueryHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.Queries.GetOrderById uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Queries.GetOrderById, while a change to Shop.Application.Queries.GetOrderById can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Queries.GetOrderById uses a module listed above it, which is the healthy direction.
34→28 Shop.Application.Queries.GetOrderById uses Shop.Application.DTOs✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetOrderById uses a type in Shop.Application.DTOs.
- The types involved
Shop.Application.Queries.GetOrderById.GetOrderByIdQueryHandler→Shop.Application.DTOs.OrderDTO
- Direction
- Shop.Application.Queries.GetOrderById uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Application.Queries.GetOrderById, while a change to Shop.Application.Queries.GetOrderById can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Application.Queries.GetOrderById uses a module listed above it, which is the healthy direction.
34→29 Shop.Application.Queries.GetOrderById uses Shop.Application.ReadModels✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetOrderById uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.Queries.GetOrderById.GetOrderByIdQueryHandler→Shop.Application.ReadModels.OrderReadModel
- Direction
- Shop.Application.Queries.GetOrderById uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.Queries.GetOrderById, while a change to Shop.Application.Queries.GetOrderById can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.Queries.GetOrderById uses a module listed above it, which is the healthy direction.
35→10 Shop.Application.Queries.GetOrders uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetOrders uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Queries.GetOrders.GetOrdersQueryHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.Queries.GetOrders uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Queries.GetOrders, while a change to Shop.Application.Queries.GetOrders can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Queries.GetOrders uses a module listed above it, which is the healthy direction.
35→28 Shop.Application.Queries.GetOrders uses Shop.Application.DTOs✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetOrders uses a type in Shop.Application.DTOs.
- The types involved
Shop.Application.Queries.GetOrders.GetOrdersQueryHandler→Shop.Application.DTOs.OrderDTO
- Direction
- Shop.Application.Queries.GetOrders uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Application.Queries.GetOrders, while a change to Shop.Application.Queries.GetOrders can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Application.Queries.GetOrders uses a module listed above it, which is the healthy direction.
35→29 Shop.Application.Queries.GetOrders uses Shop.Application.ReadModels✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetOrders uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.Queries.GetOrders.GetOrdersQueryHandler→Shop.Application.ReadModels.OrderReadModel
- Direction
- Shop.Application.Queries.GetOrders uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.Queries.GetOrders, while a change to Shop.Application.Queries.GetOrders can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.Queries.GetOrders uses a module listed above it, which is the healthy direction.
36→10 Shop.Application.Queries.GetProductById uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetProductById uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Queries.GetProductById.GetProductByIdQueryHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.Queries.GetProductById uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Queries.GetProductById, while a change to Shop.Application.Queries.GetProductById can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Queries.GetProductById uses a module listed above it, which is the healthy direction.
36→28 Shop.Application.Queries.GetProductById uses Shop.Application.DTOs✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetProductById uses a type in Shop.Application.DTOs.
- The types involved
Shop.Application.Queries.GetProductById.GetProductByIdQueryHandler→Shop.Application.DTOs.ProductDTO
- Direction
- Shop.Application.Queries.GetProductById uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Application.Queries.GetProductById, while a change to Shop.Application.Queries.GetProductById can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Application.Queries.GetProductById uses a module listed above it, which is the healthy direction.
36→29 Shop.Application.Queries.GetProductById uses Shop.Application.ReadModels✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetProductById uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.Queries.GetProductById.GetProductByIdQueryHandler→Shop.Application.ReadModels.ProductReadModel
- Direction
- Shop.Application.Queries.GetProductById uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.Queries.GetProductById, while a change to Shop.Application.Queries.GetProductById can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.Queries.GetProductById uses a module listed above it, which is the healthy direction.
37→10 Shop.Application.Queries.GetProducts uses Shop.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetProducts uses a type in Shop.Domain.Interfaces.Repositories.
- The types involved
Shop.Application.Queries.GetProducts.GetProductsQueryHandler→Shop.Domain.Interfaces.Repositories.IDbRepository
- Direction
- Shop.Application.Queries.GetProducts uses Shop.Domain.Interfaces.Repositories, so a change to Shop.Domain.Interfaces.Repositories can break Shop.Application.Queries.GetProducts, while a change to Shop.Application.Queries.GetProducts can't break Shop.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: Shop.Application.Queries.GetProducts uses a module listed above it, which is the healthy direction.
37→28 Shop.Application.Queries.GetProducts uses Shop.Application.DTOs✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetProducts uses a type in Shop.Application.DTOs.
- The types involved
Shop.Application.Queries.GetProducts.GetProductsQueryHandler→Shop.Application.DTOs.ProductDTO
- Direction
- Shop.Application.Queries.GetProducts uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Application.Queries.GetProducts, while a change to Shop.Application.Queries.GetProducts can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Application.Queries.GetProducts uses a module listed above it, which is the healthy direction.
37→29 Shop.Application.Queries.GetProducts uses Shop.Application.ReadModels✕
- Connections
- 1 pair of types, where a type in Shop.Application.Queries.GetProducts uses a type in Shop.Application.ReadModels.
- The types involved
Shop.Application.Queries.GetProducts.GetProductsQueryHandler→Shop.Application.ReadModels.ProductReadModel
- Direction
- Shop.Application.Queries.GetProducts uses Shop.Application.ReadModels, so a change to Shop.Application.ReadModels can break Shop.Application.Queries.GetProducts, while a change to Shop.Application.Queries.GetProducts can't break Shop.Application.ReadModels.
- Position
- Below the diagonal: Shop.Application.Queries.GetProducts uses a module listed above it, which is the healthy direction.
38→12 Shop.HttpClients uses Shop.Models.Requests✕
- Connections
- 5 pairs of types, where a type in Shop.HttpClients uses a type in Shop.Models.Requests.
- The types involved
Shop.HttpClients.ShopHttpClient→Shop.Models.Requests.CreateCustomerRequestShop.HttpClients.ShopHttpClient→Shop.Models.Requests.CreateOrderRequestShop.HttpClients.ShopHttpClient→Shop.Models.Requests.CreateProductRequestShop.HttpClients.ShopHttpClient→Shop.Models.Requests.UpdateCustomerRequestShop.HttpClients.ShopHttpClient→Shop.Models.Requests.UpdateProductRequest
- Direction
- Shop.HttpClients uses Shop.Models.Requests, so a change to Shop.Models.Requests can break Shop.HttpClients, while a change to Shop.HttpClients can't break Shop.Models.Requests.
- Position
- Below the diagonal: Shop.HttpClients uses a module listed above it, which is the healthy direction.
38→25 Shop.HttpClients uses Shop.Domain.Aggregates.OrderAggregate✕
- Connections
- 1 pair of types, where a type in Shop.HttpClients uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.HttpClients.ShopHttpClient→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.HttpClients uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.HttpClients, while a change to Shop.HttpClients can't break Shop.Domain.Aggregates.OrderAggregate.
- Position
- Below the diagonal: Shop.HttpClients uses a module listed above it, which is the healthy direction.
38→28 Shop.HttpClients uses Shop.Application.DTOs✕
- Connections
- 3 pairs of types, where a type in Shop.HttpClients uses a type in Shop.Application.DTOs.
- The types involved
Shop.HttpClients.ShopHttpClient→Shop.Application.DTOs.CustomerDTOShop.HttpClients.ShopHttpClient→Shop.Application.DTOs.OrderDTOShop.HttpClients.ShopHttpClient→Shop.Application.DTOs.ProductDTO
- Direction
- Shop.HttpClients uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.HttpClients, while a change to Shop.HttpClients can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.HttpClients uses a module listed above it, which is the healthy direction.
39→12 Shop.Server.Controllers uses Shop.Models.Requests✕
- Connections
- 5 pairs of types, where a type in Shop.Server.Controllers uses a type in Shop.Models.Requests.
- The types involved
Shop.Server.Controllers.CustomersController→Shop.Models.Requests.CreateCustomerRequestShop.Server.Controllers.CustomersController→Shop.Models.Requests.UpdateCustomerRequestShop.Server.Controllers.OrdersController→Shop.Models.Requests.CreateOrderRequestShop.Server.Controllers.ProductsController→Shop.Models.Requests.CreateProductRequestShop.Server.Controllers.ProductsController→Shop.Models.Requests.UpdateProductRequest
- Direction
- Shop.Server.Controllers uses Shop.Models.Requests, so a change to Shop.Models.Requests can break Shop.Server.Controllers, while a change to Shop.Server.Controllers can't break Shop.Models.Requests.
- Position
- Below the diagonal: Shop.Server.Controllers uses a module listed above it, which is the healthy direction.
39→25 Shop.Server.Controllers uses Shop.Domain.Aggregates.OrderAggregate✕
- Connections
- 1 pair of types, where a type in Shop.Server.Controllers uses a type in Shop.Domain.Aggregates.OrderAggregate.
- The types involved
Shop.Server.Controllers.OrdersController→Shop.Domain.Aggregates.OrderAggregate.OrderStatus
- Direction
- Shop.Server.Controllers uses Shop.Domain.Aggregates.OrderAggregate, so a change to Shop.Domain.Aggregates.OrderAggregate can break Shop.Server.Controllers, while a change to Shop.Server.Controllers can't break Shop.Domain.Aggregates.OrderAggregate.
- Position
- Below the diagonal: Shop.Server.Controllers uses a module listed above it, which is the healthy direction.
39→28 Shop.Server.Controllers uses Shop.Application.DTOs✕
- Connections
- 3 pairs of types, where a type in Shop.Server.Controllers uses a type in Shop.Application.DTOs.
- The types involved
Shop.Server.Controllers.CustomersController→Shop.Application.DTOs.CustomerDTOShop.Server.Controllers.OrdersController→Shop.Application.DTOs.OrderDTOShop.Server.Controllers.ProductsController→Shop.Application.DTOs.ProductDTO
- Direction
- Shop.Server.Controllers uses Shop.Application.DTOs, so a change to Shop.Application.DTOs can break Shop.Server.Controllers, while a change to Shop.Server.Controllers can't break Shop.Application.DTOs.
- Position
- Below the diagonal: Shop.Server.Controllers uses a module listed above it, which is the healthy direction.
40→11 Shop.Services uses Shop.Models✕
- Connections
- 1 pair of types, where a type in Shop.Services uses a type in Shop.Models.
- The types involved
Shop.Services.CartService→Shop.Models.Cart
- Direction
- Shop.Services uses Shop.Models, so a change to Shop.Models can break Shop.Services, while a change to Shop.Services can't break Shop.Models.
- Position
- Below the diagonal: Shop.Services uses a module listed above it, which is the healthy direction.
40→38 Shop.Services uses Shop.HttpClients✕
- Connections
- 1 pair of types, where a type in Shop.Services uses a type in Shop.HttpClients.
- The types involved
Shop.Services.CartService→Shop.HttpClients.ShopHttpClient
- Direction
- Shop.Services uses Shop.HttpClients, so a change to Shop.HttpClients can break Shop.Services, while a change to Shop.Services can't break Shop.HttpClients.
- Position
- Below the diagonal: Shop.Services 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 |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 3 | High / Critical |
Roadmap
First, ensure all custom controls are fully keyboard-operable and anchors have valid hrefs to support navigation. Next, enforce visual safety by maintaining visible focus styles, respecting reduced motion preferences, and improving color contrast for readability. Simultaneously, secure all endpoints with default-deny authorization policies and implement a CI pipeline to automatically run tests on every change. Finally, provide comprehensive text alternatives for all images, media, and interactive elements to ensure content is accessible to all users.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. | +4.0 pts | Medium | Keyboard semantics |
| 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. | +4.0 pts | Medium | Visual & motion safety |
| Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler. | +3.8 pts | Medium | Access Controls |
| Add a CI workflow that builds and runs the test suite on every push/PR. | +3.6 pts | Medium | CI/CD gates |
| Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video. | +3.3 pts | Medium | Text alternatives |
| Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Shop.csproj. | +1.4 pts | Low | Platform End-of-Life |
| Add `AddStandardResilienceHandler()` (or a Polly policy and an explicit timeout) to each client registration flagged here, so a flaky dependency can't take the app down. | +2.4 pts | Medium | Outbound HTTP resilience |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +1.2 pts | Low | ADR Quality |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 3.7 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| Shop/Shop/Shop.csproj | 7.9 | Mixed | Platform End-of-Life: End-of-life runtime: .NET net9.0 |
| Shop/Shop.Domain/Interfaces/Repositories/IDbRepository.cs | 8.2 | Near-clean | Explicit Debt: Dead code: FindAllAsync |
| Shop/Shop.Application/DTOs/OrderDTO.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (11 lines × 2) |
| README.md | 9.3 | Near-clean | Documentation Quality: Documentation: no installation or build instructions |
| Shop/Shop.Infrastructure/DependencyInjection.cs | 9.5 | Near-clean | Comment Value: redundant comment |
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. 88 of 93 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.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 — 93 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, 114 of 129 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — 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. Coverage NOT MEASURED: the analyzer environment could not build/run the test suite (a target framework / SDK band or targeting pack the analyzer image doesn't carry). This is OUR limitation, not a defect in the repo — coverage is excluded from the score rather than counted as a near-zero. We track the analyzer-image gap so it can be closed; in the meantime, no coverage collector was found in your CI either, so there is no existing report to hand us — add a collector to your test run and commit (or publish into the working tree) its Cobertura/OpenCover/lcov output, and real coverage will be read. You can widen what we reach: optional: add a coverage collector to your test run and commit (or publish into the working tree) its Cobertura/OpenCover/lcov output, and the real number is read on the next scan.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: `dotnet list package` exited 1 with no output.
- D15 Churn × Complexity Hotspots — measured, with a gap in what it reached — 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. Git history depth insufficient — this repository has 10 commit(s), too few for a reliable trend signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- 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. Too few commits for a meaningful bus factor (10 commit(s) sampled, fewer than the 50 this dimension needs before a bus factor means anything).
- D22 Internal API Consistency — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The loaded project set declares no packable project and no `.Contracts` project, so there is no intentionally-exposed surface for API consistency to be judged over.
- 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. `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommand.cs`, `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommandHandler.cs`, `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommand.cs`, `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommandHandler.cs`, `Shop/Shop.Application/Commands/CreateOrder/CreateOrderCommand.cs`, … (+39 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- D34 Knowledge Freshness — 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. Too few commits to judge knowledge freshness (10 commit(s) sampled).
- D35 Change Coupling — measured, with a gap in what it reached — 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. Git history depth insufficient — this repository has 10 commit(s), too few for a reliable change-coupling signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- D39 IL Efficiency — 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. IL NOT MEASURED: the analyzer's own build of this repository failed for an ENVIRONMENT reason (exit 1) — MSBuild's engine or the CLR gave up, or our image does not carry the SDK band/targeting pack this repository needs. This is OUR limitation, not a defect in the repo, and it is not a statement that this repository fails to build. D18 owns the question of whether this repository builds; it was not answered here.
- 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 ToolchainServer (Shop/Shop). the service exited before it opened a port — `ASPNETCORE_URLS=http://127.0.0.1:0 ASPNETCORE_ENVIRONMENT=Development dotnet run --no-build --no-launch-profile --project 'Shop.csproj'`: .DatabaseInitializer.SeedDatabaseAsync(IServiceProvider serviceProvider) in Shop/Shop.Infrastructure/Persistence/DatabaseInitializer.cs:line 15…; runtime evidence skipped (launch chosen because Shop/Shop/Shop.csproj is a Microsoft.NET.Sdk.Web project).
- X2 Cancellation propagation — 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. 5 further occurrence(s) are not listed individually; the score already reflects all 45.
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.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
- 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.
- D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- 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.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
- AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
- AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
- AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- 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.
- ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
- 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.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
1 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with OrderDTO.cs. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Code Duplication in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
7 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
D6 · Cohesion (LCOM4)
0 of 11 classes have LCOM4 above 3.
D9 · Test Distribution
1 test methods: 1 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 0 zero-assertion, 1 mock references across 1 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). unit: measured (0 flaky).
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 252 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 20 direct `PackageReference`(s), and 230 further package(s) were reached beyond them by closing the graph over nuget.org's own nuspec dependency graph — so a banned licence pulled in only by a dependency's OWN dependencies is inside this verdict. A package whose licence nuget.org could not be asked for is not graded, and version ranges are taken at their lower bound, so this is the closure as that graph states it rather than a restored consumer's exact resolution.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted debt markers + 1 dead symbols across 2335 LoC in the .NET projects (0.1/KLoC) → score 9.9.
What to do
- Resolve the 1 Dead code finding(s) in Explicit Debt — start with IDbRepository.cs. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Explicit Debt in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
7 projects, 103 source files, 2390 hand-written lines of code (2335 production / 55 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), plus 143 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 8 inter-project edges.
D19 · Documentation Quality
The repository's root README is a single cohesive document that describes the project as 'A simple SHOP' with an overview of three pages (products, shopping cart, Order creation) and a brief architecture section plus a technologies list. It shows how to run the application by running EventStoreDB Docker and setting up MongoDB in the cloud, then ends with a star button and author info. The document is well-structured but lacks any installation/build instructions or usage examples for the shop pages (the 'How to run the application' section is shell/cmd-like rather than an actual runnable command), so it is borderline on the missing-installation/missing-usage criteria.
What to do
- Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). — One of this dimension's main actionable groups (2 recommendation-level).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
1 naming inconsistencies across 200 sampled symbols.
D24 · Comment Value
5 valuable / 1 redundant across 18 sampled comments; 1 shown with locations.
What to do
- Resolve the 1 redundant comment finding(s) in Comment Value — start with DependencyInjection.cs. — One of this dimension's main actionable groups (1 recommendation-level).
D26 · Project Cohesion
0 of 7 projects flagged as possibly oversized/incoherent.
D27 · Navigability
96 % of calls cross a namespace and 34 % go through an interface, but 80 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
What to do
- Resolve the 1 High interface indirection finding(s) in Navigability. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
semgrep found no security issues. semgrep hit a parse error in 44 file(s) — `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommand.cs` (line 6, line 8, line 10, …), `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommandHandler.cs` (lines 9–12, line 44), `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommand.cs` (line 5, line 7, line 9, …), `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommandHandler.cs` (lines 8–11, line 23), `Shop/Shop.Application/Commands/CreateOrder/CreateOrderCommand.cs` (line 5, line 10, line 12, …), … (+39 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. In 44 of those file(s) — `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommand.cs`, `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommandHandler.cs`, `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommand.cs`, `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommandHandler.cs`, `Shop/Shop.Application/Commands/CreateOrder/CreateOrderCommand.cs`, … (+39 more) — the break is a C# primary constructor, which semgrep's grammar cannot parse and which hides the type from every rule scoped to it; those files were re-scanned from a shadow copy with the constructor's parameter list blanked (line and column preserving), which restores the type to the rules, and 3 additional row(s) came from that pass. Only the header's own parameter list is unread in them.
D30 · Dependency Vulnerabilities
3 finding(s): 0 critical, 2 high, 1 medium, 0 low.
What to do
- Resolve the 2 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D44 · Platform End-of-Life
1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 7 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.
What to do
- Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Shop.csproj. — One of this dimension's main actionable groups (1 warning-level).
Frontend & cross-cutting dimensions
AC1 · Text alternatives
- An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. (×3) — Shop/Shop/Components/Pages/Products.razor:37, Shop/Shop/Components/Pages/ShoppingCartSummary.razor:25, Shop/Shop/Components/Pages/ShoppingCartSummary.razor:30
What to do
- Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels
- This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×9) — Shop/Shop/Components/Pages/CreateCustomer.razor:22, Shop/Shop/Components/Pages/CreateOrder.razor:50, Shop/Shop/Components/Pages/CreateOrder.razor:63, …
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
- A route with no <PageTitle> gives no name in the tab, history or screen-reader page list — the host's <HeadOutlet /> projects whatever title the routed component supplies, and this one supplies none. Add a <PageTitle> to this component (a literal <title> in the host document would be overwritten by the outlet). (×10) — Shop/Shop/Components/Pages/CreateCustomer.razor:12, Shop/Shop/Components/Pages/CreateOrder.razor:15, Shop/Shop/Components/Pages/CreateProduct.razor:13, …
What to do
- Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics
- The repo's own CSS styles .dismiss with `cursor: pointer`, so this <span> is a control — but it has no role, no tabindex="0" and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabindex="0" + a key handler. — Shop/Shop/Components/Layout/MainLayout.razor:24
- A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. — Shop/Shop/Components/Layout/NavMenu.razor:9
- An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. — Shop/Shop/Components/Layout/ShoppingCart.razor:11
What to do
- Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC6 · Visual & motion safety
- `.shopping-cart-details` sets color: orange on background-color: #fff5e1 — 1.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — Shop/Shop/wwwroot/app.css:104
- `.editor-field 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. — Shop/Shop/wwwroot/app.css:211
- `.shopping-cart-image` moves (`transition: transform 0.2s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — Shop/Shop/wwwroot/app.css:97
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 automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 16 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 test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
AX1 · Captive dependencies
AX10 · Code composition
AX2 · Stateful singletons
- `AppStateService` is a singleton (one shared instance) but mutates instance state outside any lock (TotalCartItemsQuantity, TotalCartItemsPrice; e.g. `TotalCartItemsQuantity` at line 12). — Shop/Shop/Services/AppStateService.cs:3
What to do
- Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
AX3 · Project dependency cycles
- The namespaces Shop.Domain.Aggregates.OrderAggregate ↔ Shop.Domain.Events depend on each other. The lightest dependency in the cycle is Shop.Domain.Aggregates.OrderAggregate → Shop.Domain.Events (Shop.Domain.Aggregates.OrderAggregate.Order → Shop.Domain.Events.OrderCreatedEvent, 3 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — Shop/Shop.Domain/Aggregates/OrderAggregate/Order.cs:2
What to do
- Break namespace cycles inside a project by moving the shared type to a namespace both sides can use, or by inverting the back edge behind an interface.
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
AX8 · Test isolation
AX9 · CQS / query purity
C2 · Access Controls
- No [Authorize]/policies and no imperative guard methods (throw-on-violation) were found — endpoints may be unprotected.
- `CustomersController.GetCustomers` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/CustomersController.cs:25
- `CustomersController.GetCustomerById` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/CustomersController.cs:36
- `CustomersController.CreateCustomer` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/CustomersController.cs:51
- `CustomersController.UpdateCustomer` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/CustomersController.cs:65
- `OrdersController.GetOrders` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/OrdersController.cs:29
- `OrdersController.GetOrderById` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/OrdersController.cs:40
- `OrdersController.CreateOrder` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/OrdersController.cs:55
- `OrdersController.ChangeOrderStatus` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/OrdersController.cs:69
- `ProductsController.GetProducts` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/ProductsController.cs:26
- `ProductsController.GetProductById` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/ProductsController.cs:37
- `ProductsController.CreateProduct` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/ProductsController.cs:52
- `ProductsController.UpdateProduct` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/ProductsController.cs:66
- `ProductsController.DeleteProduct` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Shop/Shop/Controllers/ProductsController.cs:84
What to do
- Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler.
DM1 · Aggregate boundaries
DM10 · One transaction, one aggregate
DM11 · Constructible invalid state
- `Customer`'s public constructor takes `name` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Customer` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — Shop/Shop.Domain/Aggregates/CustomerAggregate/Customer.cs:13
- `Product`'s public constructor takes `name`, `price` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Product` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — Shop/Shop.Domain/Aggregates/ProductAggregate/Product.cs:15
What to do
- Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
DM12 · Ambient inputs in the domain
DM2 · Strongly-typed ids
- `Order.CustomerId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — Shop/Shop.Domain/Aggregates/OrderAggregate/Order.cs:9
- `OrderCreatedEvent.CustomerId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — Shop/Shop.Domain/Events/OrderCreatedEvent.cs:14
- `OrderItemAddedEvent.OrderId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — Shop/Shop.Domain/Events/OrderItemAddedEvent.cs:11
- `OrderItemAddedEvent.ProductId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — Shop/Shop.Domain/Events/OrderItemAddedEvent.cs:12
What to do
- Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM4 · Rich vs anemic model
DM5 · Encapsulated state
- `Order` exposes its own state through a mutable collection (OrderItems) — a caller can add to or remove from it directly, without passing through the methods that enforce the invariants. — Shop/Shop.Domain/Aggregates/OrderAggregate/Order.cs:7
What to do
- Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary
DM8 · Value-object opportunities
- The parameters [id, name, price] travel together across 3 signatures — that's a missing value object. Extracting them into one type (e.g. `Address`, `Money`, `Coordinate`) removes repetition, prevents argument-order mistakes, and gives the concept a home for its rules. — Shop/Shop.Domain/Aggregates/ProductAggregate/Product.cs:15
What to do
- Extract recurring primitive parameter clusters into value objects so the concept (and its rules) lives in one place.
DM9 · Scattered domain decisions
ED1 · Handler temporal coupling
ED2 · Event/command shape
ED3 · Event naming
ED4 · Outbox / dual-write
ED5 · Idempotency
- `CreateCustomer.CreateCustomerCommandHandler.Handle` mutates persistent state (a database save) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. — Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommandHandler.cs:15
- `EventHandlers.CustomerChangedEventHandler.Handle` mutates persistent state (a repository write) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. — Shop/Shop.Application/EventHandlers/CustomerChangedEventHandler.cs:16
What to do
- Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- A placeholder value ("John Smith") is still in shipped code — sample/mock data that was never replaced with the real thing. — Shop/Shop.Infrastructure/Persistence/DatabaseInitializer.cs:27
What to do
- Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add a README to the 7 of 7 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
- Tests aren't grouped in a dedicated test folder — the test surface isn't separable from production code at a glance.
What to do
- Group tests in the folder your build system expects (tests/, test/, spec/, or your module's test source set) so the test surface is discoverable and CI can scope it.
M4 · Documentation accuracy
- README advertises Docker containerisation, but no Dockerfile/compose file exists — searched for: `dockerfile`, `docker-compose`, `compose.yaml`, `compose.yml`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (package.json and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong. — README.md:59
What to do
- Reconcile the README with reality: README advertises Docker containerisation, but no Dockerfile/compose file exists.
P1 · CI/CD gates
- No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
- Add a CI workflow that builds and runs the test suite on every push/PR.
P2 · Observability
What to do
- Consider OpenTelemetry tracing/metrics and a health-check endpoint for operability.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's csharp pack, or a .NET security analyzer package (or `semgrep --config=auto`, which runs on any language) — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Run what this repository's stack ships: CodeQL's csharp pack, or a .NET security analyzer package — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P7 · Outbound HTTP resilience
- `services.AddHttpClient<ShopHttpClient>(c => { c.BaseAddress = new Uri(applica...` registers an outbound HTTP client with no resilience handler, retry policy or timeout of its own in its builder chain. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — Shop/Shop/DependencyInjection.cs:12
What to do
- Add `AddStandardResilienceHandler()` (or a Polly policy and an explicit timeout) to each client registration flagged here, so a flaky dependency can't take the app down.
PF3 · Async & latency hygiene
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. (−2.0 on this card.)
- This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves. — Shop/Shop/Program.cs:19
- No UseHttpsRedirection/UseHsts and no reverse-proxy signal — transport security is unverified at the app layer. (−2.0 on this card.)
- This web host's pipeline is composed here with no UseHttpsRedirection/UseHsts, and nothing says a reverse proxy terminates TLS in front of it. — Shop/Shop/Program.cs:19
What to do
- Add security response headers (Content-Security-Policy first, then Strict-Transport-Security, X-Content-Type-Options and a frame policy) — defense in depth, even when a reverse proxy could set them.
- Enforce HTTPS at the app layer (UseHttpsRedirection / UseHsts) — only skip this if a reverse proxy demonstrably terminates TLS.
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
- `client` is a `MongoClient`, which implements `IDisposable`, and it is created here (line 13). Every use of it in `MongoDbContext` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var client = …;`), which releases it at the end of the scope on every path including a throw. — Shop/Shop.Infrastructure/Persistence/MongoDbContext.cs:13
What to do
- Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
X19 · Unrestored process-global state
X2 · Cancellation propagation
- Only 23/67 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
- No CancellationToken parameter — this work can't be stopped early once started. (×39) — Shop/Shop/Controllers/CustomersController.cs:25, Shop/Shop/Controllers/CustomersController.cs:36, Shop/Shop/Controllers/CustomersController.cs:51, …
What to do
- Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard
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
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X32 · Type resolved by simple name across every loaded assembly
X4 · Structured logging
X5 · Nullable reference types
- ~1.8 `!` suppressions per 1k syntax nodes — 19 suppression(s) across the 10786 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide.
What to do
- Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
WCAG coverage — what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC1 · Text alternatives | 1.1.1, 1.2.2, 1.2.5 | Partial signal |
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC4 · Keyboard semantics | 2.1.1, 2.4.3 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 86% | Strong | Solid. |
| Architecture | 80% | Strong | Solid. |
| Maturity | 61% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 28% | Weak — gated by P1, P3, P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 40% | Weak — gated by C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 69% | Adequate — gated by DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Event-Driven | 100% | Exemplary | Strongest area. |
| Accessibility | 21% | Critical — gated by AC1, AC4, AC6 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Solid. |
Unscored — 1 check(s) recorded observations but carry no score
- SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Not evidenced — 3 control(s) we could not find positive evidence for
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 37 check(s) not relevant to this codebase
- AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — the service exited before it opened a port — `ASPNETCORE_URLS=http://127.0.0.1:0 ASPNETCORE_ENVIRONMENT=Development dotnet run --no-build --no-launch-profile --project 'Shop.csproj'`: .DatabaseInitializer.SeedDatabaseAsync(IServiceProvider serviceProvider) in Shop/Shop.Infrastructure/Persistence/DatabaseInitializer.cs:line 15…; runtime evidence skipped (launch chosen because Shop/Shop/Shop.csproj is a Microsoft.NET.Sdk.Web project) 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 — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- D12 Dependency Hygiene — Dependency hygiene not measured
- D16 Bus Factor — too few commits for a meaningful bus factor
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D23 Boundary Type-Coupling — small single-context codebase (2,335 production LoC in the .NET projects) — bounded contexts are not needed at this size No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Aggregate roots were found in only one source directory (Shop), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D25 ADR Conformance — no ADRs to check
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — 44 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D34 Knowledge Freshness — too few commits to judge knowledge freshness
- D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — IL not measured — the analyzer's build of the target did not succeed
- 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.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
- D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
- D8 Code Coverage — Coverage not measured — analyzer environment
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- ES1 Event Sourcing — applicable but not scored (2 of 3 signals for this style — below the bar we score at): an event-store package (Marten/EventStore); 3 aggregate(s) with Apply/When folds
- P12 CI test-gate honesty — no CI workflow found
- P8 Schema migrations — no EF Core usage detected
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- 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 — 27 finding(s)
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/CreateCustomer.razor:12
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/CreateOrder.razor:15
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/CreateProduct.razor:13
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/Customers.razor:10
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/EditCustomer.razor:13
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/EditProduct.razor:13
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/Error.razor:3
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/Orders.razor:12
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/Products.razor:14
- Routed page without a <PageTitle> Shop/Shop/Components/Pages/ShoppingCartSummary.razor:11
- <label> that labels no control Shop/Shop/Components/Pages/CreateCustomer.razor:22
- <label> that labels no control Shop/Shop/Components/Pages/CreateOrder.razor:50
- <label> that labels no control Shop/Shop/Components/Pages/CreateOrder.razor:63
- <label> that labels no control Shop/Shop/Components/Pages/CreateOrder.razor:70
- <label> that labels no control Shop/Shop/Components/Pages/CreateProduct.razor:23
- <label> that labels no control Shop/Shop/Components/Pages/CreateProduct.razor:30
- <label> that labels no control Shop/Shop/Components/Pages/EditCustomer.razor:23
- <label> that labels no control Shop/Shop/Components/Pages/EditProduct.razor:23
- <label> that labels no control Shop/Shop/Components/Pages/EditProduct.razor:30
- <img> without a text alternative Shop/Shop/Components/Pages/Products.razor:37
- <img> without a text alternative Shop/Shop/Components/Pages/ShoppingCartSummary.razor:25
- <img> without a text alternative Shop/Shop/Components/Pages/ShoppingCartSummary.razor:30
- REDACTED
- REDACTED
- Clickable element isn't keyboard-operable Shop/Shop/Components/Layout/MainLayout.razor:24
- Click handler on a non-interactive <div> Shop/Shop/Components/Layout/NavMenu.razor:9
- Namespace dependency cycle Shop/Shop.Domain/Aggregates/OrderAggregate/Order.cs:2
Serious — 71 finding(s)
- Async method without CancellationToken: GetCustomers Shop/Shop/Controllers/CustomersController.cs:25
- Async method without CancellationToken: GetCustomerById Shop/Shop/Controllers/CustomersController.cs:36
- Async method without CancellationToken: CreateCustomer Shop/Shop/Controllers/CustomersController.cs:51
- Async method without CancellationToken: UpdateCustomer Shop/Shop/Controllers/CustomersController.cs:65
- Async method without CancellationToken: GetOrders Shop/Shop/Controllers/OrdersController.cs:29
- Async method without CancellationToken: GetOrderById Shop/Shop/Controllers/OrdersController.cs:40
- Async method without CancellationToken: CreateOrder Shop/Shop/Controllers/OrdersController.cs:55
- Async method without CancellationToken: ChangeOrderStatus Shop/Shop/Controllers/OrdersController.cs:69
- Async method without CancellationToken: GetProducts Shop/Shop/Controllers/ProductsController.cs:26
- Async method without CancellationToken: GetProductById Shop/Shop/Controllers/ProductsController.cs:37
- Async method without CancellationToken: CreateProduct Shop/Shop/Controllers/ProductsController.cs:52
- Async method without CancellationToken: UpdateProduct Shop/Shop/Controllers/ProductsController.cs:66
- Async method without CancellationToken: DeleteProduct Shop/Shop/Controllers/ProductsController.cs:84
- Async method without CancellationToken: GetOrdersAsync Shop/Shop/HttpClients/ShopHttpClient.cs:13
- Async method without CancellationToken: GetOrderByIdAsync Shop/Shop/HttpClients/ShopHttpClient.cs:24
- Async method without CancellationToken: ChangeOrderStatusAsync Shop/Shop/HttpClients/ShopHttpClient.cs:35
- Async method without CancellationToken: CreateOrderAsync Shop/Shop/HttpClients/ShopHttpClient.cs:41
- Async method without CancellationToken: GetProductsAsync Shop/Shop/HttpClients/ShopHttpClient.cs:51
- Async method without CancellationToken: GetProductByIdAsync Shop/Shop/HttpClients/ShopHttpClient.cs:57
- Async method without CancellationToken: FindProductByIdAsync Shop/Shop/HttpClients/ShopHttpClient.cs:63
- Async method without CancellationToken: CreateProductAsync Shop/Shop/HttpClients/ShopHttpClient.cs:74
- Async method without CancellationToken: UpdateProductAsync Shop/Shop/HttpClients/ShopHttpClient.cs:84
- Async method without CancellationToken: DeleteProductAsync Shop/Shop/HttpClients/ShopHttpClient.cs:90
- Async method without CancellationToken: GetCustomersAsync Shop/Shop/HttpClients/ShopHttpClient.cs:96
- Async method without CancellationToken: GetCustomerByIdAsync Shop/Shop/HttpClients/ShopHttpClient.cs:102
- No authorization
- No authorization Shop/Shop/Controllers/CustomersController.cs:25
- No authorization Shop/Shop/Controllers/CustomersController.cs:36
- No authorization Shop/Shop/Controllers/CustomersController.cs:51
- No authorization Shop/Shop/Controllers/CustomersController.cs:65
- No authorization Shop/Shop/Controllers/OrdersController.cs:29
- No authorization Shop/Shop/Controllers/OrdersController.cs:40
- No authorization Shop/Shop/Controllers/OrdersController.cs:55
- No authorization Shop/Shop/Controllers/OrdersController.cs:69
- No authorization Shop/Shop/Controllers/ProductsController.cs:26
- No authorization Shop/Shop/Controllers/ProductsController.cs:37
- No authorization Shop/Shop/Controllers/ProductsController.cs:52
- No authorization Shop/Shop/Controllers/ProductsController.cs:66
- No authorization Shop/Shop/Controllers/ProductsController.cs:84
- Constructible in an invalid state: Customer Shop/Shop.Domain/Aggregates/CustomerAggregate/Customer.cs:13
- Constructible in an invalid state: Product Shop/Shop.Domain/Aggregates/ProductAggregate/Product.cs:15
- Non-idempotent mutation: CreateCustomer.CreateCustomerCommandHandler.Handle Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommandHandler.cs:15
- Non-idempotent mutation: EventHandlers.CustomerChangedEventHandler.Handle Shop/Shop.Application/EventHandlers/CustomerChangedEventHandler.cs:16
- Anchor without href Shop/Shop/Components/Layout/ShoppingCart.razor:11
- Low contrast colour pair in CSS (1.8:1) Shop/Shop/wwwroot/app.css:104
- Focus outline removed in CSS without a :focus replacement Shop/Shop/wwwroot/app.css:211
- Animation without a prefers-reduced-motion guard Shop/Shop/wwwroot/app.css:97
- Accessibility enforcement below the top rung
- Stateful singleton: AppStateService Shop/Shop/Services/AppStateService.cs:3
- Dead code: FindAllAsync Shop/Shop.Domain/Interfaces/Repositories/IDbRepository.cs:7
- REDACTED
- Duplicated block (11 lines × 2) Shop/Shop.Application/DTOs/OrderDTO.cs:9
- End-of-life runtime: .NET net9.0 Shop/Shop/Shop.csproj:4
- No CI pipeline
- Outbound HTTP without resilience Shop/Shop/DependencyInjection.cs:12
- NuGet dependencies are not locked
- Disposable created and abandoned in the method that made it Shop/Shop.Infrastructure/Persistence/MongoDbContext.cs:13
Minor — 23 finding(s)
- Primitive id on a domain type: Order.CustomerId Shop/Shop.Domain/Aggregates/OrderAggregate/Order.cs:9
- Primitive id on a domain type: OrderCreatedEvent.CustomerId Shop/Shop.Domain/Events/OrderCreatedEvent.cs:14
- Primitive id on a domain type: OrderItemAddedEvent.OrderId Shop/Shop.Domain/Events/OrderItemAddedEvent.cs:11
- Primitive id on a domain type: OrderItemAddedEvent.ProductId Shop/Shop.Domain/Events/OrderItemAddedEvent.cs:12
- Documentation: no installation or build instructions README.md
- Documentation: no usage examples README.md
- No security response headers detected
- No security response headers detected Shop/Shop/Program.cs:19
- No app-layer HTTPS enforcement detected
- No app-layer HTTPS enforcement detected Shop/Shop/Program.cs:19
- No ADRs found
- Inconsistent verb usage for HTTP client methods performing similar CRUD operations. 'UpdateCustomerAsync' and 'CreateCustomerAsync' use standard CRUD verbs, while 'GetProductsAsync' uses 'Get', but 'GetProductByIdAsync' is named 'FindProductByIdAsync'. 'Find' and 'Get' are used interchangeably for the same concept (retrieving a single entity by ID).
- redundant comment Shop/Shop.Infrastructure/DependencyInjection.cs:16
- High interface indirection
- Mutable entity: Order Shop/Shop.Domain/Aggregates/OrderAggregate/Order.cs:7
- Primitive data clump: [id, name, price] Shop/Shop.Domain/Aggregates/ProductAggregate/Product.cs:15
- Placeholder data left in code Shop/Shop.Infrastructure/Persistence/DatabaseInitializer.cs:27
- No ADRs
- No tests/ separation
- README/code drift README.md:59
- No SAST
- Not all async methods take a CancellationToken
- Null-forgiving operator (`!`) suppressions reduce the NRT score
Minor — 8 finding(s)
- XML-doc coverage: Shop Shop/Shop/Shop.csproj
- XML-doc coverage: Shop.Domain Shop/Shop.Domain/Shop.Domain.csproj
- XML-doc coverage: Shop.Infrastructure Shop/Shop.Infrastructure/Shop.Infrastructure.csproj
- XML-doc coverage: Shop.Application REDACTED
- XML-doc coverage: Shop.Shared Shop/Shop.Shared/Shop.Shared.csproj
- XML-doc coverage: Shop.Resources Shop/Shop.Resources/Shop.Resources.csproj
- Mock framework: Moq
- Off the main sequence: Shop.Shared Shop/Shop.Shared/Shop.Shared.csproj:1
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-94dcefb58e084b7a830736015d4934c3/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-94dcefb58e084b7a830736015d4934c3/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 0 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list Shop/Shop.sln package --vulnerable --include-transitive --format json | 3 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 44 file(s) — `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommand.cs`, `Shop/Shop.Application/Commands/ChangeOrderStatus/ChangeOrderStatusCommandHandler.cs`, `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommand.cs`, `Shop/Shop.Application/Commands/CreateCustomer/CreateCustomerCommandHandler.cs`, `Shop/Shop.Application/Commands/CreateOrder/CreateOrderCommand.cs`, … (+39 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for. | 0 | — |
| D37 · Vulnerability-disclosure 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 | none (no readable dependency manifest) | — | none (no readable dependency manifest): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet). | 0 | — |