Executive summary
iayti/CleanArchitecture scores 44 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 27 and is rated Weak. Its Secret Scanning dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 4 Leaked secret finding(s) in Secret Scanning and to resolve the 2 Vulnerable finding(s) in Dependency Hygiene, and if Production Readiness rose to 70, the score would rise from 44 to about 57.
37 findings are critical: 18 in Dependency Vulnerabilities, eight in Secrets (history), four in Secret Scanning, four in Static Analysis (SAST), two in Dependency Hygiene and one in IaC & Container Security.
Watchdog couldn't measure Runtime accessibility in this code, so that dimension is left out of the score. The product code is 2,965 lines, which would take an estimated 0.1 person-years, around €7,500, to rebuild.
If Production Readiness rose from 27 to 70, the lowest score rated Strong, the score would rise from 44 to about 57.
New since the last survey: 31 findings
- Test Quality · No assertions: ShouldRequireMinimumFields tests/CleanArchitecture.Application.IntegrationTests/Cities/Commands/CreateCityTests.cs
- Test Quality · No assertions: ShouldRequireValidCityId tests/CleanArchitecture.Application.IntegrationTests/Cities/Commands/DeleteCityTests.cs
- Test Quality · No assertions: ShouldRequireValidCityId tests/CleanArchitecture.Application.IntegrationTests/Cities/Commands/UpdateCityTests.cs
- Test Quality · No assertions: ShouldRequireMinimumFields tests/CleanArchitecture.Application.IntegrationTests/Districts/Commands/CreateDistrictTests.cs
- Secret Scanning · REDACTED
- Secret Scanning · REDACTED
- Secret Scanning · REDACTED
- Secret Scanning · REDACTED
- Explicit Debt · Dead code: CreateUserAsync src/Common/CleanArchitecture.Application/Common/Interfaces/IIdentityService.cs
- Explicit Debt · Dead code: ProjectToListAsync src/Common/CleanArchitecture.Application/Common/Mapping/MappingExtensions.cs
- Explicit Debt · Dead code: ModelStateError src/Common/CleanArchitecture.Application/Common/Models/ServiceError.cs
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Data Compliance (PII/GDPR) · REDACTED
- Data Compliance (PII/GDPR) · REDACTED
- Data Compliance (PII/GDPR) · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Cancellation propagation · Async method without CancellationToken: GetUserNameAsync src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs
- Cancellation propagation · Async method without CancellationToken: CheckUserPassword src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs
- Cancellation propagation · Async method without CancellationToken: Publish src/Common/CleanArchitecture.Infrastructure/Services/DomainEventService.cs
- Cancellation propagation · Async method without CancellationToken: SendAsync src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs
- Outbound HTTP resilience · Outbound HTTP without resilience src/Common/CleanArchitecture.Infrastructure/DependencyInjection.cs
Fixed since the last survey: 4 findings
- Supply-chain Provenance & Signing REDACTED
- Dependency direction · Dependency-rule violation: CleanArchitecture.Application.IntegrationTests (Application) → CleanArchitecture.Api (Web)
- Dependency direction · Dependency-rule violation: CleanArchitecture.Application.IntegrationTests (Application) → CleanArchitecture.Infrastructure (Infrastructure)
- Outbound HTTP resilience · Outbound HTTP without resilience
Rebuild cost: about €7,500 · Estimate
| Cost to rebuild | €2,500 to €12,000, for 42 to 131 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 44. 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,965 lines of product code, of which 33% is declarations and boilerplate, 61% straight logic and 6% logic with branches |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 Api | 2 Api.Filters | 3 Application | 4 Application.Common.Exceptions | 5 Application.Common.Models | 6 Application.Common.Security | 7 Application.Dto | 8 Application.ExternalServices.OpenWeather.Request | 9 Application.ExternalServices.OpenWeather.Response | 10 Application.WeatherForecasts.Queries.GetWeatherForecastQuery | 11 Domain.Common | 12 Domain.Enums | 13 Infrastructure | 14 Infrastructure.Files.Maps | 15 Application.Common.Mapping | 16 Domain.Entities | 17 Application.Common.Interfaces | 18 Domain.Event | 19 Infrastructure.Persistence.Configurations | 20 Api.Services | 21 Application.ApplicationUser.Queries.GetToken | 22 Application.Cities.Commands.Create | 23 Application.Cities.Commands.Delete | 24 Application.Cities.Commands.Update | 25 Application.Cities.EventHandler | 26 Application.Cities.Queries.GetCities | 27 Application.Cities.Queries.GetCityById | 28 Application.Common.Behaviours | 29 Application.Districts.Commands.Create | 30 Application.Districts.Queries | 31 Application.Villages.Queries.GetVillagesWithPagination | 32 Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery | 33 Infrastructure.Files | 34 Infrastructure.Identity | 35 Infrastructure.Services | 36 Infrastructure.Services.Handlers | 37 Api.Controllers | 38 Infrastructure.Persistence |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 Api | ||||||||||||||||||||||||||||||||||||||
| 2 Api.Filters | ||||||||||||||||||||||||||||||||||||||
| 3 Application | ||||||||||||||||||||||||||||||||||||||
| 4 Application.Common.Exceptions | ||||||||||||||||||||||||||||||||||||||
| 5 Application.Common.Models | ||||||||||||||||||||||||||||||||||||||
| 6 Application.Common.Security | ||||||||||||||||||||||||||||||||||||||
| 7 Application.Dto | ||||||||||||||||||||||||||||||||||||||
| 8 Application.ExternalServices.OpenWeather.Request | ||||||||||||||||||||||||||||||||||||||
| 9 Application.ExternalServices.OpenWeather.Response | ||||||||||||||||||||||||||||||||||||||
| 10 Application.WeatherForecasts.Queries.GetWeatherForecastQuery | ||||||||||||||||||||||||||||||||||||||
| 11 Domain.Common | ||||||||||||||||||||||||||||||||||||||
| 12 Domain.Enums | ||||||||||||||||||||||||||||||||||||||
| 13 Infrastructure | ||||||||||||||||||||||||||||||||||||||
| 14 Infrastructure.Files.Maps | ||||||||||||||||||||||||||||||||||||||
| 15 Application.Common.Mapping | 1 | |||||||||||||||||||||||||||||||||||||
| 16 Domain.Entities | 5 | |||||||||||||||||||||||||||||||||||||
| 17 Application.Common.Interfaces | 4 | 2 | 1 | 1 | 1 | 1 | 3 | |||||||||||||||||||||||||||||||
| 18 Domain.Event | 2 | 2 | ||||||||||||||||||||||||||||||||||||
| 19 Infrastructure.Persistence.Configurations | 3 | |||||||||||||||||||||||||||||||||||||
| 20 Api.Services | 1 | |||||||||||||||||||||||||||||||||||||
| 21 Application.ApplicationUser.Queries.GetToken | 1 | 1 | 4 | |||||||||||||||||||||||||||||||||||
| 22 Application.Cities.Commands.Create | 1 | 1 | 4 | |||||||||||||||||||||||||||||||||||
| 23 Application.Cities.Commands.Delete | 1 | 1 | 3 | |||||||||||||||||||||||||||||||||||
| 24 Application.Cities.Commands.Update | 1 | 1 | 4 | |||||||||||||||||||||||||||||||||||
| 25 Application.Cities.EventHandler | 2 | 2 | 2 | |||||||||||||||||||||||||||||||||||
| 26 Application.Cities.Queries.GetCities | 1 | 1 | 3 | |||||||||||||||||||||||||||||||||||
| 27 Application.Cities.Queries.GetCityById | 1 | 1 | 3 | |||||||||||||||||||||||||||||||||||
| 28 Application.Common.Behaviours | 6 | |||||||||||||||||||||||||||||||||||||
| 29 Application.Districts.Commands.Create | 1 | 1 | 3 | |||||||||||||||||||||||||||||||||||
| 30 Application.Districts.Queries | 1 | 2 | ||||||||||||||||||||||||||||||||||||
| 31 Application.Villages.Queries.GetVillagesWithPagination | 2 | 1 | 3 | |||||||||||||||||||||||||||||||||||
| 32 Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery | 1 | 1 | 3 | |||||||||||||||||||||||||||||||||||
| 33 Infrastructure.Files | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 34 Infrastructure.Identity | 2 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 35 Infrastructure.Services | 2 | 1 | 1 | 1 | 6 | |||||||||||||||||||||||||||||||||
| 36 Infrastructure.Services.Handlers | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 37 Api.Controllers | 6 | 4 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||
| 38 Infrastructure.Persistence | 3 | 4 | 1 |
15→5 Application.Common.Mapping uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Common.Mapping uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Common.Mapping.MappingExtensions→CleanArchitecture.Application.Common.Models.PaginatedList
- Direction
- Application.Common.Mapping uses Application.Common.Models, so a change to Application.Common.Models can break Application.Common.Mapping, while a change to Application.Common.Mapping can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Common.Mapping uses a module listed above it, which is the healthy direction.
16→11 Domain.Entities uses Domain.Common✕
- Connections
- 5 pairs of types, where a type in Domain.Entities uses a type in Domain.Common.
- The types involved
CleanArchitecture.Domain.Entities.City→CleanArchitecture.Domain.Common.AuditableEntityCleanArchitecture.Domain.Entities.City→CleanArchitecture.Domain.Common.DomainEventCleanArchitecture.Domain.Entities.City→CleanArchitecture.Domain.Common.IHasDomainEventCleanArchitecture.Domain.Entities.District→CleanArchitecture.Domain.Common.AuditableEntityCleanArchitecture.Domain.Entities.Village→CleanArchitecture.Domain.Common.AuditableEntity
- Direction
- Domain.Entities uses Domain.Common, so a change to Domain.Common can break Domain.Entities, while a change to Domain.Entities can't break Domain.Common.
- Position
- Below the diagonal: Domain.Entities uses a module listed above it, which is the healthy direction.
17→5 Application.Common.Interfaces uses Application.Common.Models✕
- Connections
- 4 pairs of types, where a type in Application.Common.Interfaces uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Common.Interfaces.IEmailService→CleanArchitecture.Application.Common.Models.EmailRequestCleanArchitecture.Application.Common.Interfaces.IHttpClientHandler→CleanArchitecture.Application.Common.Models.ServiceResultCleanArchitecture.Application.Common.Interfaces.IIdentityService→CleanArchitecture.Application.Common.Models.ResultCleanArchitecture.Application.Common.Interfaces.IOpenWeatherService→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Common.Interfaces uses Application.Common.Models, so a change to Application.Common.Models can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
17→7 Application.Common.Interfaces uses Application.Dto✕
- Connections
- 2 pairs of types, where a type in Application.Common.Interfaces uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Common.Interfaces.ICsvFileBuilder→CleanArchitecture.Application.Dto.DistrictDtoCleanArchitecture.Application.Common.Interfaces.IIdentityService→CleanArchitecture.Application.Dto.ApplicationUserDto
- Direction
- Application.Common.Interfaces uses Application.Dto, so a change to Application.Dto can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Application.Dto.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
17→8 Application.Common.Interfaces uses Application.ExternalServices.OpenWeather.Request✕
- Connections
- 1 pair of types, where a type in Application.Common.Interfaces uses a type in Application.ExternalServices.OpenWeather.Request.
- The types involved
CleanArchitecture.Application.Common.Interfaces.IOpenWeatherService→CleanArchitecture.Application.ExternalServices.OpenWeather.Request.OpenWeatherRequest
- Direction
- Application.Common.Interfaces uses Application.ExternalServices.OpenWeather.Request, so a change to Application.ExternalServices.OpenWeather.Request can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Application.ExternalServices.OpenWeather.Request.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
17→9 Application.Common.Interfaces uses Application.ExternalServices.OpenWeather.Response✕
- Connections
- 1 pair of types, where a type in Application.Common.Interfaces uses a type in Application.ExternalServices.OpenWeather.Response.
- The types involved
CleanArchitecture.Application.Common.Interfaces.IOpenWeatherService→CleanArchitecture.Application.ExternalServices.OpenWeather.Response.OpenWeatherResponse
- Direction
- Application.Common.Interfaces uses Application.ExternalServices.OpenWeather.Response, so a change to Application.ExternalServices.OpenWeather.Response can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Application.ExternalServices.OpenWeather.Response.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
17→11 Application.Common.Interfaces uses Domain.Common✕
- Connections
- 1 pair of types, where a type in Application.Common.Interfaces uses a type in Domain.Common.
- The types involved
CleanArchitecture.Application.Common.Interfaces.IDomainEventService→CleanArchitecture.Domain.Common.DomainEvent
- Direction
- Application.Common.Interfaces uses Domain.Common, so a change to Domain.Common can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Domain.Common.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
17→12 Application.Common.Interfaces uses Domain.Enums✕
- Connections
- 1 pair of types, where a type in Application.Common.Interfaces uses a type in Domain.Enums.
- The types involved
CleanArchitecture.Application.Common.Interfaces.IHttpClientHandler→CleanArchitecture.Domain.Enums.MethodType
- Direction
- Application.Common.Interfaces uses Domain.Enums, so a change to Domain.Enums can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Domain.Enums.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
17→16 Application.Common.Interfaces uses Domain.Entities✕
- Connections
- 3 pairs of types, where a type in Application.Common.Interfaces uses a type in Domain.Entities.
- The types involved
CleanArchitecture.Application.Common.Interfaces.IApplicationDbContext→CleanArchitecture.Domain.Entities.CityCleanArchitecture.Application.Common.Interfaces.IApplicationDbContext→CleanArchitecture.Domain.Entities.DistrictCleanArchitecture.Application.Common.Interfaces.IApplicationDbContext→CleanArchitecture.Domain.Entities.Village
- Direction
- Application.Common.Interfaces uses Domain.Entities, so a change to Domain.Entities can break Application.Common.Interfaces, while a change to Application.Common.Interfaces can't break Domain.Entities.
- Position
- Below the diagonal: Application.Common.Interfaces uses a module listed above it, which is the healthy direction.
18→11 Domain.Event uses Domain.Common✕
- Connections
- 2 pairs of types, where a type in Domain.Event uses a type in Domain.Common.
- The types involved
CleanArchitecture.Domain.Event.CityActivatedEvent→CleanArchitecture.Domain.Common.DomainEventCleanArchitecture.Domain.Event.CityCreatedEvent→CleanArchitecture.Domain.Common.DomainEvent
- Direction
- Domain.Event uses Domain.Common, so a change to Domain.Common can break Domain.Event, while a change to Domain.Event can't break Domain.Common.
- Position
- Below the diagonal: Domain.Event uses a module listed above it, which is the healthy direction.
18→16 Domain.Event uses Domain.Entities✕
- Connections
- 2 pairs of types, where a type in Domain.Event uses a type in Domain.Entities.
- The types involved
CleanArchitecture.Domain.Event.CityActivatedEvent→CleanArchitecture.Domain.Entities.CityCleanArchitecture.Domain.Event.CityCreatedEvent→CleanArchitecture.Domain.Entities.City
- Direction
- Domain.Event uses Domain.Entities, so a change to Domain.Entities can break Domain.Event, while a change to Domain.Event can't break Domain.Entities.
- Position
- Below the diagonal: Domain.Event uses a module listed above it, which is the healthy direction.
19→16 Infrastructure.Persistence.Configurations uses Domain.Entities✕
- Connections
- 3 pairs of types, where a type in Infrastructure.Persistence.Configurations uses a type in Domain.Entities.
- The types involved
CleanArchitecture.Infrastructure.Persistence.Configurations.CityConfiguration→CleanArchitecture.Domain.Entities.CityCleanArchitecture.Infrastructure.Persistence.Configurations.DistrictConfiguration→CleanArchitecture.Domain.Entities.DistrictCleanArchitecture.Infrastructure.Persistence.Configurations.VillageConfiguration→CleanArchitecture.Domain.Entities.Village
- Direction
- Infrastructure.Persistence.Configurations uses Domain.Entities, so a change to Domain.Entities can break Infrastructure.Persistence.Configurations, while a change to Infrastructure.Persistence.Configurations can't break Domain.Entities.
- Position
- Below the diagonal: Infrastructure.Persistence.Configurations uses a module listed above it, which is the healthy direction.
20→17 Api.Services uses Application.Common.Interfaces✕
- Connections
- 1 pair of types, where a type in Api.Services uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Api.Services.CurrentUserService→CleanArchitecture.Application.Common.Interfaces.ICurrentUserService
- Direction
- Api.Services uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Api.Services, while a change to Api.Services can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Api.Services uses a module listed above it, which is the healthy direction.
21→5 Application.ApplicationUser.Queries.GetToken uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.ApplicationUser.Queries.GetToken uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.ApplicationUser.Queries.GetToken.GetTokenQueryHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.ApplicationUser.Queries.GetToken uses Application.Common.Models, so a change to Application.Common.Models can break Application.ApplicationUser.Queries.GetToken, while a change to Application.ApplicationUser.Queries.GetToken can't break Application.Common.Models.
- Position
- Below the diagonal: Application.ApplicationUser.Queries.GetToken uses a module listed above it, which is the healthy direction.
21→7 Application.ApplicationUser.Queries.GetToken uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.ApplicationUser.Queries.GetToken uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.ApplicationUser.Queries.GetToken.LoginResponse→CleanArchitecture.Application.Dto.ApplicationUserDto
- Direction
- Application.ApplicationUser.Queries.GetToken uses Application.Dto, so a change to Application.Dto can break Application.ApplicationUser.Queries.GetToken, while a change to Application.ApplicationUser.Queries.GetToken can't break Application.Dto.
- Position
- Below the diagonal: Application.ApplicationUser.Queries.GetToken uses a module listed above it, which is the healthy direction.
21→17 Application.ApplicationUser.Queries.GetToken uses Application.Common.Interfaces✕
- Connections
- 4 pairs of types, where a type in Application.ApplicationUser.Queries.GetToken uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.ApplicationUser.Queries.GetToken.GetTokenQuery→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.ApplicationUser.Queries.GetToken.GetTokenQueryHandler→CleanArchitecture.Application.Common.Interfaces.IIdentityServiceCleanArchitecture.Application.ApplicationUser.Queries.GetToken.GetTokenQueryHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapperCleanArchitecture.Application.ApplicationUser.Queries.GetToken.GetTokenQueryHandler→CleanArchitecture.Application.Common.Interfaces.ITokenService
- Direction
- Application.ApplicationUser.Queries.GetToken uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.ApplicationUser.Queries.GetToken, while a change to Application.ApplicationUser.Queries.GetToken can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.ApplicationUser.Queries.GetToken uses a module listed above it, which is the healthy direction.
22→5 Application.Cities.Commands.Create uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Cities.Commands.Create uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Cities.Commands.Create.CreateCityCommandHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Cities.Commands.Create uses Application.Common.Models, so a change to Application.Common.Models can break Application.Cities.Commands.Create, while a change to Application.Cities.Commands.Create can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Cities.Commands.Create uses a module listed above it, which is the healthy direction.
22→7 Application.Cities.Commands.Create uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Cities.Commands.Create uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Cities.Commands.Create.CreateCityCommandHandler→CleanArchitecture.Application.Dto.CityDto
- Direction
- Application.Cities.Commands.Create uses Application.Dto, so a change to Application.Dto can break Application.Cities.Commands.Create, while a change to Application.Cities.Commands.Create can't break Application.Dto.
- Position
- Below the diagonal: Application.Cities.Commands.Create uses a module listed above it, which is the healthy direction.
22→17 Application.Cities.Commands.Create uses Application.Common.Interfaces✕
- Connections
- 4 pairs of types, where a type in Application.Cities.Commands.Create uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Cities.Commands.Create.CreateCityCommand→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Cities.Commands.Create.CreateCityCommandHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Cities.Commands.Create.CreateCityCommandHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapperCleanArchitecture.Application.Cities.Commands.Create.CreateCityCommandValidator→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContext
- Direction
- Application.Cities.Commands.Create uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Cities.Commands.Create, while a change to Application.Cities.Commands.Create can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Cities.Commands.Create uses a module listed above it, which is the healthy direction.
23→5 Application.Cities.Commands.Delete uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Cities.Commands.Delete uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Cities.Commands.Delete.DeleteCityCommandHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Cities.Commands.Delete uses Application.Common.Models, so a change to Application.Common.Models can break Application.Cities.Commands.Delete, while a change to Application.Cities.Commands.Delete can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Cities.Commands.Delete uses a module listed above it, which is the healthy direction.
23→7 Application.Cities.Commands.Delete uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Cities.Commands.Delete uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Cities.Commands.Delete.DeleteCityCommandHandler→CleanArchitecture.Application.Dto.CityDto
- Direction
- Application.Cities.Commands.Delete uses Application.Dto, so a change to Application.Dto can break Application.Cities.Commands.Delete, while a change to Application.Cities.Commands.Delete can't break Application.Dto.
- Position
- Below the diagonal: Application.Cities.Commands.Delete uses a module listed above it, which is the healthy direction.
23→17 Application.Cities.Commands.Delete uses Application.Common.Interfaces✕
- Connections
- 3 pairs of types, where a type in Application.Cities.Commands.Delete uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Cities.Commands.Delete.DeleteCityCommand→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Cities.Commands.Delete.DeleteCityCommandHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Cities.Commands.Delete.DeleteCityCommandHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapper
- Direction
- Application.Cities.Commands.Delete uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Cities.Commands.Delete, while a change to Application.Cities.Commands.Delete can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Cities.Commands.Delete uses a module listed above it, which is the healthy direction.
24→5 Application.Cities.Commands.Update uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Cities.Commands.Update uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommandHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Cities.Commands.Update uses Application.Common.Models, so a change to Application.Common.Models can break Application.Cities.Commands.Update, while a change to Application.Cities.Commands.Update can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Cities.Commands.Update uses a module listed above it, which is the healthy direction.
24→7 Application.Cities.Commands.Update uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Cities.Commands.Update uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommandHandler→CleanArchitecture.Application.Dto.CityDto
- Direction
- Application.Cities.Commands.Update uses Application.Dto, so a change to Application.Dto can break Application.Cities.Commands.Update, while a change to Application.Cities.Commands.Update can't break Application.Dto.
- Position
- Below the diagonal: Application.Cities.Commands.Update uses a module listed above it, which is the healthy direction.
24→17 Application.Cities.Commands.Update uses Application.Common.Interfaces✕
- Connections
- 4 pairs of types, where a type in Application.Cities.Commands.Update uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommand→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommandHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommandHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapperCleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommandValidator→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContext
- Direction
- Application.Cities.Commands.Update uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Cities.Commands.Update, while a change to Application.Cities.Commands.Update can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Cities.Commands.Update uses a module listed above it, which is the healthy direction.
25→5 Application.Cities.EventHandler uses Application.Common.Models✕
- Connections
- 2 pairs of types, where a type in Application.Cities.EventHandler uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Cities.EventHandler.CityActivatedEventHandler→CleanArchitecture.Application.Common.Models.DomainEventNotificationCleanArchitecture.Application.Cities.EventHandler.CityCreatedEventHandler→CleanArchitecture.Application.Common.Models.DomainEventNotification
- Direction
- Application.Cities.EventHandler uses Application.Common.Models, so a change to Application.Common.Models can break Application.Cities.EventHandler, while a change to Application.Cities.EventHandler can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Cities.EventHandler uses a module listed above it, which is the healthy direction.
25→17 Application.Cities.EventHandler uses Application.Common.Interfaces✕
- Connections
- 2 pairs of types, where a type in Application.Cities.EventHandler uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Cities.EventHandler.CityActivatedEventHandler→CleanArchitecture.Application.Common.Interfaces.IEmailServiceCleanArchitecture.Application.Cities.EventHandler.CityCreatedEventHandler→CleanArchitecture.Application.Common.Interfaces.IEmailService
- Direction
- Application.Cities.EventHandler uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Cities.EventHandler, while a change to Application.Cities.EventHandler can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Cities.EventHandler uses a module listed above it, which is the healthy direction.
25→18 Application.Cities.EventHandler uses Domain.Event✕
- Connections
- 2 pairs of types, where a type in Application.Cities.EventHandler uses a type in Domain.Event.
- The types involved
CleanArchitecture.Application.Cities.EventHandler.CityActivatedEventHandler→CleanArchitecture.Domain.Event.CityActivatedEventCleanArchitecture.Application.Cities.EventHandler.CityCreatedEventHandler→CleanArchitecture.Domain.Event.CityCreatedEvent
- Direction
- Application.Cities.EventHandler uses Domain.Event, so a change to Domain.Event can break Application.Cities.EventHandler, while a change to Application.Cities.EventHandler can't break Domain.Event.
- Position
- Below the diagonal: Application.Cities.EventHandler uses a module listed above it, which is the healthy direction.
26→5 Application.Cities.Queries.GetCities uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Cities.Queries.GetCities uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Cities.Queries.GetCities.GetCitiesQueryHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Cities.Queries.GetCities uses Application.Common.Models, so a change to Application.Common.Models can break Application.Cities.Queries.GetCities, while a change to Application.Cities.Queries.GetCities can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Cities.Queries.GetCities uses a module listed above it, which is the healthy direction.
26→7 Application.Cities.Queries.GetCities uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Cities.Queries.GetCities uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Cities.Queries.GetCities.GetCitiesQueryHandler→CleanArchitecture.Application.Dto.CityDto
- Direction
- Application.Cities.Queries.GetCities uses Application.Dto, so a change to Application.Dto can break Application.Cities.Queries.GetCities, while a change to Application.Cities.Queries.GetCities can't break Application.Dto.
- Position
- Below the diagonal: Application.Cities.Queries.GetCities uses a module listed above it, which is the healthy direction.
26→17 Application.Cities.Queries.GetCities uses Application.Common.Interfaces✕
- Connections
- 3 pairs of types, where a type in Application.Cities.Queries.GetCities uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Cities.Queries.GetCities.GetAllCitiesQuery→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Cities.Queries.GetCities.GetCitiesQueryHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Cities.Queries.GetCities.GetCitiesQueryHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapper
- Direction
- Application.Cities.Queries.GetCities uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Cities.Queries.GetCities, while a change to Application.Cities.Queries.GetCities can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Cities.Queries.GetCities uses a module listed above it, which is the healthy direction.
27→5 Application.Cities.Queries.GetCityById uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Cities.Queries.GetCityById uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Cities.Queries.GetCityById.GetCityByIdQueryHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Cities.Queries.GetCityById uses Application.Common.Models, so a change to Application.Common.Models can break Application.Cities.Queries.GetCityById, while a change to Application.Cities.Queries.GetCityById can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Cities.Queries.GetCityById uses a module listed above it, which is the healthy direction.
27→7 Application.Cities.Queries.GetCityById uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Cities.Queries.GetCityById uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Cities.Queries.GetCityById.GetCityByIdQueryHandler→CleanArchitecture.Application.Dto.CityDto
- Direction
- Application.Cities.Queries.GetCityById uses Application.Dto, so a change to Application.Dto can break Application.Cities.Queries.GetCityById, while a change to Application.Cities.Queries.GetCityById can't break Application.Dto.
- Position
- Below the diagonal: Application.Cities.Queries.GetCityById uses a module listed above it, which is the healthy direction.
27→17 Application.Cities.Queries.GetCityById uses Application.Common.Interfaces✕
- Connections
- 3 pairs of types, where a type in Application.Cities.Queries.GetCityById uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Cities.Queries.GetCityById.GetCityByIdQuery→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Cities.Queries.GetCityById.GetCityByIdQueryHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Cities.Queries.GetCityById.GetCityByIdQueryHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapper
- Direction
- Application.Cities.Queries.GetCityById uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Cities.Queries.GetCityById, while a change to Application.Cities.Queries.GetCityById can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Cities.Queries.GetCityById uses a module listed above it, which is the healthy direction.
28→17 Application.Common.Behaviours uses Application.Common.Interfaces✕
- Connections
- 6 pairs of types, where a type in Application.Common.Behaviours uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Common.Behaviours.AuthorizationBehaviour→CleanArchitecture.Application.Common.Interfaces.ICurrentUserServiceCleanArchitecture.Application.Common.Behaviours.AuthorizationBehaviour→CleanArchitecture.Application.Common.Interfaces.IIdentityServiceCleanArchitecture.Application.Common.Behaviours.LoggingBehaviour→CleanArchitecture.Application.Common.Interfaces.ICurrentUserServiceCleanArchitecture.Application.Common.Behaviours.LoggingBehaviour→CleanArchitecture.Application.Common.Interfaces.IIdentityServiceCleanArchitecture.Application.Common.Behaviours.PerformanceBehaviour→CleanArchitecture.Application.Common.Interfaces.ICurrentUserServiceCleanArchitecture.Application.Common.Behaviours.PerformanceBehaviour→CleanArchitecture.Application.Common.Interfaces.IIdentityService
- Direction
- Application.Common.Behaviours uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Common.Behaviours, while a change to Application.Common.Behaviours can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Common.Behaviours uses a module listed above it, which is the healthy direction.
29→5 Application.Districts.Commands.Create uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.Districts.Commands.Create uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Districts.Commands.Create.CreateDistrictCommandHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Districts.Commands.Create uses Application.Common.Models, so a change to Application.Common.Models can break Application.Districts.Commands.Create, while a change to Application.Districts.Commands.Create can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Districts.Commands.Create uses a module listed above it, which is the healthy direction.
29→7 Application.Districts.Commands.Create uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Districts.Commands.Create uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Districts.Commands.Create.CreateDistrictCommandHandler→CleanArchitecture.Application.Dto.DistrictDto
- Direction
- Application.Districts.Commands.Create uses Application.Dto, so a change to Application.Dto can break Application.Districts.Commands.Create, while a change to Application.Districts.Commands.Create can't break Application.Dto.
- Position
- Below the diagonal: Application.Districts.Commands.Create uses a module listed above it, which is the healthy direction.
29→17 Application.Districts.Commands.Create uses Application.Common.Interfaces✕
- Connections
- 3 pairs of types, where a type in Application.Districts.Commands.Create uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Districts.Commands.Create.CreateDistrictCommand→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Districts.Commands.Create.CreateDistrictCommandHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Districts.Commands.Create.CreateDistrictCommandHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapper
- Direction
- Application.Districts.Commands.Create uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Districts.Commands.Create, while a change to Application.Districts.Commands.Create can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Districts.Commands.Create uses a module listed above it, which is the healthy direction.
30→7 Application.Districts.Queries uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Districts.Queries uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Districts.Queries.ExportDistrictsQueryHandler→CleanArchitecture.Application.Dto.ExportDto
- Direction
- Application.Districts.Queries uses Application.Dto, so a change to Application.Dto can break Application.Districts.Queries, while a change to Application.Districts.Queries can't break Application.Dto.
- Position
- Below the diagonal: Application.Districts.Queries uses a module listed above it, which is the healthy direction.
30→17 Application.Districts.Queries uses Application.Common.Interfaces✕
- Connections
- 2 pairs of types, where a type in Application.Districts.Queries uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Districts.Queries.ExportDistrictsQueryHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Districts.Queries.ExportDistrictsQueryHandler→CleanArchitecture.Application.Common.Interfaces.ICsvFileBuilder
- Direction
- Application.Districts.Queries uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Districts.Queries, while a change to Application.Districts.Queries can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Districts.Queries uses a module listed above it, which is the healthy direction.
31→5 Application.Villages.Queries.GetVillagesWithPagination uses Application.Common.Models✕
- Connections
- 2 pairs of types, where a type in Application.Villages.Queries.GetVillagesWithPagination uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQueryHandler→CleanArchitecture.Application.Common.Models.PaginatedListCleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQueryHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.Villages.Queries.GetVillagesWithPagination uses Application.Common.Models, so a change to Application.Common.Models can break Application.Villages.Queries.GetVillagesWithPagination, while a change to Application.Villages.Queries.GetVillagesWithPagination can't break Application.Common.Models.
- Position
- Below the diagonal: Application.Villages.Queries.GetVillagesWithPagination uses a module listed above it, which is the healthy direction.
31→7 Application.Villages.Queries.GetVillagesWithPagination uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.Villages.Queries.GetVillagesWithPagination uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQueryHandler→CleanArchitecture.Application.Dto.VillageDto
- Direction
- Application.Villages.Queries.GetVillagesWithPagination uses Application.Dto, so a change to Application.Dto can break Application.Villages.Queries.GetVillagesWithPagination, while a change to Application.Villages.Queries.GetVillagesWithPagination can't break Application.Dto.
- Position
- Below the diagonal: Application.Villages.Queries.GetVillagesWithPagination uses a module listed above it, which is the healthy direction.
31→17 Application.Villages.Queries.GetVillagesWithPagination uses Application.Common.Interfaces✕
- Connections
- 3 pairs of types, where a type in Application.Villages.Queries.GetVillagesWithPagination uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQuery→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQueryHandler→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQueryHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapper
- Direction
- Application.Villages.Queries.GetVillagesWithPagination uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.Villages.Queries.GetVillagesWithPagination, while a change to Application.Villages.Queries.GetVillagesWithPagination can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.Villages.Queries.GetVillagesWithPagination uses a module listed above it, which is the healthy direction.
32→5 Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.GetCurrentWeatherForecastQueryHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses Application.Common.Models, so a change to Application.Common.Models can break Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery, while a change to Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery can't break Application.Common.Models.
- Position
- Below the diagonal: Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses a module listed above it, which is the healthy direction.
32→7 Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses a type in Application.Dto.
- The types involved
CleanArchitecture.Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.GetCurrentWeatherForecastQueryHandler→CleanArchitecture.Application.Dto.CurrentWeatherForecastDto
- Direction
- Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses Application.Dto, so a change to Application.Dto can break Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery, while a change to Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery can't break Application.Dto.
- Position
- Below the diagonal: Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses a module listed above it, which is the healthy direction.
32→17 Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses Application.Common.Interfaces✕
- Connections
- 3 pairs of types, where a type in Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.GetCurrentWeatherForecastQuery→CleanArchitecture.Application.Common.Interfaces.IRequestWrapperCleanArchitecture.Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.GetCurrentWeatherForecastQueryHandler→CleanArchitecture.Application.Common.Interfaces.IOpenWeatherServiceCleanArchitecture.Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.GetCurrentWeatherForecastQueryHandler→CleanArchitecture.Application.Common.Interfaces.IRequestHandlerWrapper
- Direction
- Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery, while a change to Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery uses a module listed above it, which is the healthy direction.
33→7 Infrastructure.Files uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Infrastructure.Files uses a type in Application.Dto.
- The types involved
CleanArchitecture.Infrastructure.Files.CsvFileBuilder→CleanArchitecture.Application.Dto.DistrictDto
- Direction
- Infrastructure.Files uses Application.Dto, so a change to Application.Dto can break Infrastructure.Files, while a change to Infrastructure.Files can't break Application.Dto.
- Position
- Below the diagonal: Infrastructure.Files uses a module listed above it, which is the healthy direction.
33→17 Infrastructure.Files uses Application.Common.Interfaces✕
- Connections
- 1 pair of types, where a type in Infrastructure.Files uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Infrastructure.Files.CsvFileBuilder→CleanArchitecture.Application.Common.Interfaces.ICsvFileBuilder
- Direction
- Infrastructure.Files uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Infrastructure.Files, while a change to Infrastructure.Files can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Infrastructure.Files uses a module listed above it, which is the healthy direction.
34→5 Infrastructure.Identity uses Application.Common.Models✕
- Connections
- 2 pairs of types, where a type in Infrastructure.Identity uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Infrastructure.Identity.IdentityResultExtensions→CleanArchitecture.Application.Common.Models.ResultCleanArchitecture.Infrastructure.Identity.IdentityService→CleanArchitecture.Application.Common.Models.Result
- Direction
- Infrastructure.Identity uses Application.Common.Models, so a change to Application.Common.Models can break Infrastructure.Identity, while a change to Infrastructure.Identity can't break Application.Common.Models.
- Position
- Below the diagonal: Infrastructure.Identity uses a module listed above it, which is the healthy direction.
34→7 Infrastructure.Identity uses Application.Dto✕
- Connections
- 1 pair of types, where a type in Infrastructure.Identity uses a type in Application.Dto.
- The types involved
CleanArchitecture.Infrastructure.Identity.IdentityService→CleanArchitecture.Application.Dto.ApplicationUserDto
- Direction
- Infrastructure.Identity uses Application.Dto, so a change to Application.Dto can break Infrastructure.Identity, while a change to Infrastructure.Identity can't break Application.Dto.
- Position
- Below the diagonal: Infrastructure.Identity uses a module listed above it, which is the healthy direction.
34→17 Infrastructure.Identity uses Application.Common.Interfaces✕
- Connections
- 1 pair of types, where a type in Infrastructure.Identity uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Infrastructure.Identity.IdentityService→CleanArchitecture.Application.Common.Interfaces.IIdentityService
- Direction
- Infrastructure.Identity uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Infrastructure.Identity, while a change to Infrastructure.Identity can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Infrastructure.Identity uses a module listed above it, which is the healthy direction.
35→5 Infrastructure.Services uses Application.Common.Models✕
- Connections
- 2 pairs of types, where a type in Infrastructure.Services uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Infrastructure.Services.EmailService→CleanArchitecture.Application.Common.Models.EmailRequestCleanArchitecture.Infrastructure.Services.OpenWeatherService→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Infrastructure.Services uses Application.Common.Models, so a change to Application.Common.Models can break Infrastructure.Services, while a change to Infrastructure.Services can't break Application.Common.Models.
- Position
- Below the diagonal: Infrastructure.Services uses a module listed above it, which is the healthy direction.
35→8 Infrastructure.Services uses Application.ExternalServices.OpenWeather.Request✕
- Connections
- 1 pair of types, where a type in Infrastructure.Services uses a type in Application.ExternalServices.OpenWeather.Request.
- The types involved
CleanArchitecture.Infrastructure.Services.OpenWeatherService→CleanArchitecture.Application.ExternalServices.OpenWeather.Request.OpenWeatherRequest
- Direction
- Infrastructure.Services uses Application.ExternalServices.OpenWeather.Request, so a change to Application.ExternalServices.OpenWeather.Request can break Infrastructure.Services, while a change to Infrastructure.Services can't break Application.ExternalServices.OpenWeather.Request.
- Position
- Below the diagonal: Infrastructure.Services uses a module listed above it, which is the healthy direction.
35→9 Infrastructure.Services uses Application.ExternalServices.OpenWeather.Response✕
- Connections
- 1 pair of types, where a type in Infrastructure.Services uses a type in Application.ExternalServices.OpenWeather.Response.
- The types involved
CleanArchitecture.Infrastructure.Services.OpenWeatherService→CleanArchitecture.Application.ExternalServices.OpenWeather.Response.OpenWeatherResponse
- Direction
- Infrastructure.Services uses Application.ExternalServices.OpenWeather.Response, so a change to Application.ExternalServices.OpenWeather.Response can break Infrastructure.Services, while a change to Infrastructure.Services can't break Application.ExternalServices.OpenWeather.Response.
- Position
- Below the diagonal: Infrastructure.Services uses a module listed above it, which is the healthy direction.
35→11 Infrastructure.Services uses Domain.Common✕
- Connections
- 1 pair of types, where a type in Infrastructure.Services uses a type in Domain.Common.
- The types involved
CleanArchitecture.Infrastructure.Services.DomainEventService→CleanArchitecture.Domain.Common.DomainEvent
- Direction
- Infrastructure.Services uses Domain.Common, so a change to Domain.Common can break Infrastructure.Services, while a change to Infrastructure.Services can't break Domain.Common.
- Position
- Below the diagonal: Infrastructure.Services uses a module listed above it, which is the healthy direction.
35→17 Infrastructure.Services uses Application.Common.Interfaces✕
- Connections
- 6 pairs of types, where a type in Infrastructure.Services uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Infrastructure.Services.DateTimeService→CleanArchitecture.Application.Common.Interfaces.IDateTimeCleanArchitecture.Infrastructure.Services.DomainEventService→CleanArchitecture.Application.Common.Interfaces.IDomainEventServiceCleanArchitecture.Infrastructure.Services.EmailService→CleanArchitecture.Application.Common.Interfaces.IEmailServiceCleanArchitecture.Infrastructure.Services.OpenWeatherService→CleanArchitecture.Application.Common.Interfaces.IHttpClientHandlerCleanArchitecture.Infrastructure.Services.OpenWeatherService→CleanArchitecture.Application.Common.Interfaces.IOpenWeatherServiceCleanArchitecture.Infrastructure.Services.TokenService→CleanArchitecture.Application.Common.Interfaces.ITokenService
- Direction
- Infrastructure.Services uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Infrastructure.Services, while a change to Infrastructure.Services can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Infrastructure.Services uses a module listed above it, which is the healthy direction.
36→5 Infrastructure.Services.Handlers uses Application.Common.Models✕
- Connections
- 1 pair of types, where a type in Infrastructure.Services.Handlers uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Infrastructure.Services.Handlers.HttpClientHandler→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Infrastructure.Services.Handlers uses Application.Common.Models, so a change to Application.Common.Models can break Infrastructure.Services.Handlers, while a change to Infrastructure.Services.Handlers can't break Application.Common.Models.
- Position
- Below the diagonal: Infrastructure.Services.Handlers uses a module listed above it, which is the healthy direction.
36→12 Infrastructure.Services.Handlers uses Domain.Enums✕
- Connections
- 1 pair of types, where a type in Infrastructure.Services.Handlers uses a type in Domain.Enums.
- The types involved
CleanArchitecture.Infrastructure.Services.Handlers.HttpClientHandler→CleanArchitecture.Domain.Enums.MethodType
- Direction
- Infrastructure.Services.Handlers uses Domain.Enums, so a change to Domain.Enums can break Infrastructure.Services.Handlers, while a change to Infrastructure.Services.Handlers can't break Domain.Enums.
- Position
- Below the diagonal: Infrastructure.Services.Handlers uses a module listed above it, which is the healthy direction.
36→17 Infrastructure.Services.Handlers uses Application.Common.Interfaces✕
- Connections
- 1 pair of types, where a type in Infrastructure.Services.Handlers uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Infrastructure.Services.Handlers.HttpClientHandler→CleanArchitecture.Application.Common.Interfaces.IHttpClientHandler
- Direction
- Infrastructure.Services.Handlers uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Infrastructure.Services.Handlers, while a change to Infrastructure.Services.Handlers can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Infrastructure.Services.Handlers uses a module listed above it, which is the healthy direction.
37→5 Api.Controllers uses Application.Common.Models✕
- Connections
- 6 pairs of types, where a type in Api.Controllers uses a type in Application.Common.Models.
- The types involved
CleanArchitecture.Api.Controllers.CitiesController→CleanArchitecture.Application.Common.Models.ServiceResultCleanArchitecture.Api.Controllers.DistrictsController→CleanArchitecture.Application.Common.Models.ServiceResultCleanArchitecture.Api.Controllers.LoginController→CleanArchitecture.Application.Common.Models.ServiceResultCleanArchitecture.Api.Controllers.VillagesController→CleanArchitecture.Application.Common.Models.PaginatedListCleanArchitecture.Api.Controllers.VillagesController→CleanArchitecture.Application.Common.Models.ServiceResultCleanArchitecture.Api.Controllers.WeatherForecastController→CleanArchitecture.Application.Common.Models.ServiceResult
- Direction
- Api.Controllers uses Application.Common.Models, so a change to Application.Common.Models can break Api.Controllers, while a change to Api.Controllers can't break Application.Common.Models.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→7 Api.Controllers uses Application.Dto✕
- Connections
- 4 pairs of types, where a type in Api.Controllers uses a type in Application.Dto.
- The types involved
CleanArchitecture.Api.Controllers.CitiesController→CleanArchitecture.Application.Dto.CityDtoCleanArchitecture.Api.Controllers.DistrictsController→CleanArchitecture.Application.Dto.DistrictDtoCleanArchitecture.Api.Controllers.VillagesController→CleanArchitecture.Application.Dto.VillageDtoCleanArchitecture.Api.Controllers.WeatherForecastController→CleanArchitecture.Application.Dto.CurrentWeatherForecastDto
- Direction
- Api.Controllers uses Application.Dto, so a change to Application.Dto can break Api.Controllers, while a change to Api.Controllers can't break Application.Dto.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→10 Api.Controllers uses Application.WeatherForecasts.Queries.GetWeatherForecastQuery✕
- Connections
- 1 pair of types, where a type in Api.Controllers uses a type in Application.WeatherForecasts.Queries.GetWeatherForecastQuery.
- The types involved
CleanArchitecture.Api.Controllers.WeatherForecastController→CleanArchitecture.Application.WeatherForecasts.Queries.GetWeatherForecastQuery.WeatherForecast
- Direction
- Api.Controllers uses Application.WeatherForecasts.Queries.GetWeatherForecastQuery, so a change to Application.WeatherForecasts.Queries.GetWeatherForecastQuery can break Api.Controllers, while a change to Api.Controllers can't break Application.WeatherForecasts.Queries.GetWeatherForecastQuery.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→21 Api.Controllers uses Application.ApplicationUser.Queries.GetToken✕
- Connections
- 2 pairs of types, where a type in Api.Controllers uses a type in Application.ApplicationUser.Queries.GetToken.
- The types involved
CleanArchitecture.Api.Controllers.LoginController→CleanArchitecture.Application.ApplicationUser.Queries.GetToken.GetTokenQueryCleanArchitecture.Api.Controllers.LoginController→CleanArchitecture.Application.ApplicationUser.Queries.GetToken.LoginResponse
- Direction
- Api.Controllers uses Application.ApplicationUser.Queries.GetToken, so a change to Application.ApplicationUser.Queries.GetToken can break Api.Controllers, while a change to Api.Controllers can't break Application.ApplicationUser.Queries.GetToken.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→22 Api.Controllers uses Application.Cities.Commands.Create✕
- Connections
- 1 pair of types, where a type in Api.Controllers uses a type in Application.Cities.Commands.Create.
- The types involved
CleanArchitecture.Api.Controllers.CitiesController→CleanArchitecture.Application.Cities.Commands.Create.CreateCityCommand
- Direction
- Api.Controllers uses Application.Cities.Commands.Create, so a change to Application.Cities.Commands.Create can break Api.Controllers, while a change to Api.Controllers can't break Application.Cities.Commands.Create.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→24 Api.Controllers uses Application.Cities.Commands.Update✕
- Connections
- 1 pair of types, where a type in Api.Controllers uses a type in Application.Cities.Commands.Update.
- The types involved
CleanArchitecture.Api.Controllers.CitiesController→CleanArchitecture.Application.Cities.Commands.Update.UpdateCityCommand
- Direction
- Api.Controllers uses Application.Cities.Commands.Update, so a change to Application.Cities.Commands.Update can break Api.Controllers, while a change to Api.Controllers can't break Application.Cities.Commands.Update.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→29 Api.Controllers uses Application.Districts.Commands.Create✕
- Connections
- 1 pair of types, where a type in Api.Controllers uses a type in Application.Districts.Commands.Create.
- The types involved
CleanArchitecture.Api.Controllers.DistrictsController→CleanArchitecture.Application.Districts.Commands.Create.CreateDistrictCommand
- Direction
- Api.Controllers uses Application.Districts.Commands.Create, so a change to Application.Districts.Commands.Create can break Api.Controllers, while a change to Api.Controllers can't break Application.Districts.Commands.Create.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→31 Api.Controllers uses Application.Villages.Queries.GetVillagesWithPagination✕
- Connections
- 1 pair of types, where a type in Api.Controllers uses a type in Application.Villages.Queries.GetVillagesWithPagination.
- The types involved
CleanArchitecture.Api.Controllers.VillagesController→CleanArchitecture.Application.Villages.Queries.GetVillagesWithPagination.GetAllVillagesWithPaginationQuery
- Direction
- Api.Controllers uses Application.Villages.Queries.GetVillagesWithPagination, so a change to Application.Villages.Queries.GetVillagesWithPagination can break Api.Controllers, while a change to Api.Controllers can't break Application.Villages.Queries.GetVillagesWithPagination.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
37→32 Api.Controllers uses Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery✕
- Connections
- 1 pair of types, where a type in Api.Controllers uses a type in Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.
- The types involved
CleanArchitecture.Api.Controllers.WeatherForecastController→CleanArchitecture.Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.GetCurrentWeatherForecastQuery
- Direction
- Api.Controllers uses Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery, so a change to Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery can break Api.Controllers, while a change to Api.Controllers can't break Application.WeatherForecasts.Queries.GetCurrentWeatherForecastQuery.
- Position
- Below the diagonal: Api.Controllers uses a module listed above it, which is the healthy direction.
38→16 Infrastructure.Persistence uses Domain.Entities✕
- Connections
- 3 pairs of types, where a type in Infrastructure.Persistence uses a type in Domain.Entities.
- The types involved
CleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Domain.Entities.CityCleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Domain.Entities.DistrictCleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Domain.Entities.Village
- Direction
- Infrastructure.Persistence uses Domain.Entities, so a change to Domain.Entities can break Infrastructure.Persistence, while a change to Infrastructure.Persistence can't break Domain.Entities.
- Position
- Below the diagonal: Infrastructure.Persistence uses a module listed above it, which is the healthy direction.
38→17 Infrastructure.Persistence uses Application.Common.Interfaces✕
- Connections
- 4 pairs of types, where a type in Infrastructure.Persistence uses a type in Application.Common.Interfaces.
- The types involved
CleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Application.Common.Interfaces.IApplicationDbContextCleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Application.Common.Interfaces.ICurrentUserServiceCleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Application.Common.Interfaces.IDateTimeCleanArchitecture.Infrastructure.Persistence.ApplicationDbContext→CleanArchitecture.Application.Common.Interfaces.IDomainEventService
- Direction
- Infrastructure.Persistence uses Application.Common.Interfaces, so a change to Application.Common.Interfaces can break Infrastructure.Persistence, while a change to Infrastructure.Persistence can't break Application.Common.Interfaces.
- Position
- Below the diagonal: Infrastructure.Persistence uses a module listed above it, which is the healthy direction.
38→34 Infrastructure.Persistence uses Infrastructure.Identity✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence uses a type in Infrastructure.Identity.
- The types involved
CleanArchitecture.Infrastructure.Persistence.ApplicationDbContextSeed→CleanArchitecture.Infrastructure.Identity.ApplicationUser
- Direction
- Infrastructure.Persistence uses Infrastructure.Identity, so a change to Infrastructure.Identity can break Infrastructure.Persistence, while a change to Infrastructure.Persistence can't break Infrastructure.Identity.
- Position
- Below the diagonal: Infrastructure.Persistence 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 — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 20 | High / Critical |
| A07:2025 — Authentication Failures | 13 | High / Critical |
| A05:2025 — Injection | 12 | High / Critical |
| A02:2025 — Security Misconfiguration | 7 | High / Critical |
| A01:2025 — Broken Access Control | 3 | Medium |
Roadmap
Immediately resolve the four leaked secrets in configuration files and address the eighteen outdated dependencies, prioritizing the infrastructure, API, and application projects. Next, remediate the two vulnerable dependencies and remove the eleven orphaned files to improve codebase hygiene. Finally, document significant design decisions in a dedicated folder to ensure architectural knowledge remains current and accessible.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 4 Leaked secret finding(s) in Secret Scanning — start with REDACTED (2), REDACTED (2). | +13.3 pts | Low | Secret Scanning |
| Resolve the 2 Vulnerable finding(s) in Dependency Hygiene. | +8.5 pts | Low | Dependency Hygiene |
| Resolve the 18 Outdated finding(s) in Dependency Hygiene — start with REDACTED (7), REDACTED (6), REDACTED (4). | +12.4 pts | Medium | Dependency Hygiene |
| Resolve the 5 No assertions finding(s) in Test Quality — start with MappingTests.cs, CreateCityTests.cs, DeleteCityTests.cs. | +4.9 pts | Low | Test Quality |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +4.6 pts | Low | ADR Quality |
| Resolve the 4 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (3), REDACTED. | +4.3 pts | Low | Dependency Hygiene |
| Resolve the 11 Orphaned file finding(s) in Knowledge Freshness — start with ApplicationDbContextSeed.cs, Startup.cs, ServiceError.cs. | +6.5 pts | Medium | Knowledge Freshness |
| 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. | +5.3 pts | Medium | Architecture documentation |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Secret Scanning: Leaked secret: REDACTED |
| REDACTED | 0.5 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 0.6 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.0 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 2.1 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 3.4 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 4.1 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 5.8 | Mixed | Secret Scanning: Leaked secret: REDACTED |
| REDACTED | 5.8 | Mixed | Secrets (history): High secret: REDACTED |
| REDACTED | 6.4 | Mixed | Data Compliance (PII/GDPR): REDACTED |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.2 | Mixed | Secrets (history): High secret: REDACTED |
| REDACTED | 7.2 | Mixed | Secrets (history): High secret: REDACTED |
| REDACTED | 7.2 | Mixed | Secrets (history): High secret: REDACTED |
| REDACTED | 7.2 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| tests/CleanArchitecture.Application.IntegrationTests/WeatherForecast/Queries/GetCurrentWeatherTests.cs | 7.3 | Mixed | Explicit Debt: CommentedOutCode |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.9 | Mixed | Data Compliance (PII/GDPR): REDACTED |
| REDACTED | 7.9 | Mixed | Data Compliance (PII/GDPR): REDACTED |
| tests/CleanArchitecture.Domain.UnitTests/CleanArchitecture.Domain.UnitTests.csproj | 7.9 | Mixed | Platform End-of-Life: End-of-life runtime: .NET net6.0 |
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, 139 of 180 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (4 contributor(s) across 175 commit(s) sampled, automation and bot accounts excluded). One of them holds 97% of the history; the other 3 hold 1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- 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.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — sql-server-db Pulling kib01 Pulling es01 Pulling webapi Pulling webapi Warning Get "https://registry-1.docker.io/v2/": Forbidden es01 Error Get "https://docker.elastic.co/v2/": Forbidden sql-server-db Error context canceled kib01 Error context canceled Error response from daemon: Get "https://docker.elastic.co/v2/": Forbidden; the earlier `compose pull` step reported: kib01 Pulling es01 Pulling webapi Warning Get "https://registry-1.docker.io/v2/": Forbidden es01 Error Get "https://docker.elastic.co/v2/": Forbidden kib01 Error context canceled sql-server-db Error context canceled WARNING: Some service image(s) must be built from source by running: docker compose build webapi Error response from daemon: Get "https://docker.elastic.co/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 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.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D32 Data Compliance (PII/GDPR): PII/GDPR signals are heuristic pattern matches in code — they flag likely handling concerns, not legal compliance, and cannot trace where data actually flows at runtime.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (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.
- 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.
- C3 Audit Trail: This control is scored from in-repo evidence only — a working control configured outside the repository leaves no signal a static scan can credit.
- 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.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
1 method(s) exceeded the cognitive complexity threshold of 15; the worst was AuthorizationBehaviour.Handle at 21.
What to do
- Bring the 1 body over 15 down to 15 or less in Cognitive Complexity — start with AuthorizationBehaviour.Handle (cognitive 21). — Refactoring it lifts Cognitive Complexity from 9.6 to about 10.0/10.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
1 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (15 lines × 2) finding(s) in Code Duplication — start with CurrentWeatherForecastDto.cs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
10 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 6 classes have LCOM4 above 3.
D9 · Test Distribution
23 test methods: 8 unit, 15 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 5 zero-assertion, 2 mock references across 23 tests.
What to do
- Resolve the 5 No assertions finding(s) in Test Quality — start with MappingTests.cs, CreateCityTests.cs, DeleteCityTests.cs. — One of this dimension's main actionable groups (5 warning-level).
- Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D11 · Test Reliability
0 flaky across 2 measured tier(s). unit: measured (0 flaky); integration: measured (0 flaky).
D12 · Dependency Hygiene
36 outdated, 2 vulnerable, 4 deprecated packages.
What to do
- Resolve the 18 Outdated finding(s) in Dependency Hygiene — start with REDACTED (7), REDACTED (6), REDACTED (4). — One of this dimension's main actionable groups (18 recommendation-level).
- Resolve the 2 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 4 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 warning-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
2 secret(s) detected.
What to do
- Resolve the 4 Leaked secret finding(s) in Secret Scanning — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 issue-level).
- Enforce Secret Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 260 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 36 direct `PackageReference`(s), and 214 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
4 deducted debt markers + 4 dead symbols across 2965 LoC in the .NET projects (0.3/KLoC) → score 9.4.
What to do
- Resolve the 4 Dead code finding(s) in Explicit Debt — start with IIdentityService.cs, MappingExtensions.cs, ServiceError.cs. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 3 TodoComment finding(s) in Explicit Debt — start with CreateCityCommandValidator.cs, UpdateCityCommandValidator.cs, EmailService.cs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 CommentedOutCode finding(s) in Explicit Debt — start with GetCurrentWeatherTests.cs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
10 projects, 110 source files, 3614 hand-written lines of code (2965 production / 649 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 3488 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 15 inter-project edges.
D19 · Documentation Quality
The repository's single README is a clean root-level template README that describes itself as the ASP.NET Core API project created by the Matech.Clean.Architecture.Template NuGet package and links to the .NET, NuGet, and prerequisites. It lists technologies (ASP.NET Core 6, EF Core 6, MediatR, Mapster, FluentValidation, NUnit/FluentAssertions/Moq/Respawn, Elasticsearch, Serilog, Kibana, Docker), a Getting Started install sequence that is mostly correct but omits the actual NuGet package installation step and ends in an unshown clipped clip marker (steps 5-6 plus Swagg open are visible), and a one-line License section. The document is self-describing and complete for its role as a template README, with no architecture or design documentation present.
What to do
- Improve Documentation Quality — currently 6.0/10. — The repository's single README is a clean root-level template README that describes itself as the ASP.NET Core API project created by the Matech.Clean.Architecture.Template NuGet package and links to the .NET, NuGet, and prerequisites. It lists technologies (ASP.NET Core 6, EF Core 6, MediatR, Mapster, FluentValidation, NUnit/FluentAssertions/Moq/Respawn, Elasticsearch, Serilog, Kibana, Docker), a Getting Started install sequence that is mostly correct but omits the actual NuGet package installation step and ends in an unshown clipped clip marker (steps 5-6 plus Swagg open are visible), and a one-line License section. The document is self-describing and complete for its role as a template README, with no architecture or design documentation present.
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
18 valuable / 2 redundant across 25 sampled comments; 2 shown with locations.
D26 · Project Cohesion
0 of 10 projects flagged as possibly oversized/incoherent.
D27 · Navigability
99 % of calls cross a namespace and 2 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.
D28 · Secrets (history)
8 finding(s): 0 critical, 8 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 8 High secret finding(s) in Secrets (history) — start with REDACTED (3), REDACTED (3), REDACTED (2). — One of this dimension's main actionable groups (8 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
12 finding(s): 0 critical, 4 high, 8 medium, 0 low. 4 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens.
What to do
- Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- No action in Static Analysis (SAST) — all 4 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (4 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
20 finding(s): 2 critical, 16 high, 2 medium, 0 low.
What to do
- Resolve the 16 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (6), REDACTED (5), REDACTED (4). — One of this dimension's main actionable groups (16 issue-level).
- Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 2 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
D31 · IaC & Container Security
7 finding(s): 0 critical, 1 high, 5 medium, 1 low.
What to do
- Resolve the 1 High IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 5 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (3), REDACTED (2). — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
D32 · Data Compliance (PII/GDPR)
3 finding(s): 0 critical, 0 high, 3 medium, 0 low.
What to do
- Resolve the 3 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 warning-level).
D34 · Knowledge Freshness
11 of 11 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContextSeed.cs. Counted over 11 of the 96 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 11 Orphaned file finding(s) in Knowledge Freshness — start with ApplicationDbContextSeed.cs, Startup.cs, ServiceError.cs. — One of this dimension's main actionable groups (11 recommendation-level).
- Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D39 · IL Efficiency
0 of 228 first-party methods have an oversized IL body.
D44 · Platform End-of-Life
1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 10 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 CleanArchitecture.Domain.UnitTests.csproj. — One of this dimension's main actionable groups (1 warning-level).
Frontend & cross-cutting dimensions
AX1 · Captive dependencies
AX10 · Code composition
What to do
- The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
AX2 · Stateful singletons
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
AX8 · Test isolation
AX9 · CQS / query purity
C1 · Data Protection
- No data-protection or encryption usage (ASP.NET Data Protection, AES, column encryption, PBKDF2) was found — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore.
What to do
- Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
C2 · Access Controls
- Authorization IS enforced here (via [Authorize]/guards) — this is NOT a claim that endpoints are unprotected. What's missing is NAMED policies (AddAuthorization/AddPolicy, RequireRole/RequireClaim, RequireAuthorization): the access rules are implicit rather than named and testable. Recommendation, not a defect — name the rules so they're reviewable.
- This `[Authorize]` names no policy, role or scheme, so the rule it enforces (any authenticated caller) is implicit here and cannot be listed or tested apart from this attribute. Name the rule — `[Authorize(Policy = "…")]` over a policy registered with AddAuthorization — so the access rule set is reviewable. (×3) — src/Apps/CleanArchitecture.Api/Controllers/CitiesController.cs:19, src/Apps/CleanArchitecture.Api/Controllers/DistrictsController.cs:15, src/Apps/CleanArchitecture.Api/Controllers/VillagesController.cs:14
What to do
- Add policy-based authorization — name the access rules (AddAuthorization(o => o.AddPolicy(…))) and apply them via [Authorize(Policy = …)] or RequireAuthorization.
C3 · Audit Trail
- An audit mechanism is present, but the trail is not yet complete — missing: an immutable audit-log / audit-trail type to write to, [Audited] per-entity coverage.
What to do
- Back the audit convention with a structural mechanism: an EF SaveChanges interceptor (or equivalent) writing every sensitive change to an immutable audit log, and apply [Audited] to the entities that need a who-changed-what trail.
DM10 · One transaction, one aggregate
DM12 · Ambient inputs in the domain
DM6 · Domain ↔ infrastructure boundary
DM8 · Value-object opportunities
DM9 · Scattered domain decisions
ED1 · Handler temporal coupling
ED2 · Event/command shape
ED3 · Event naming
- `DomainEventNotification` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — src/Common/CleanArchitecture.Application/Common/Models/DomainEventNotification.cs:6
What to do
- Name events in the past tense — they record facts that already happened.
ED4 · Outbox / dual-write
ED5 · Idempotency
- `Handlers.HttpClientHandler.GenericRequest` mutates persistent state (an outbound HTTP POST — state created in the system it calls) 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. — src/Common/CleanArchitecture.Infrastructure/Services/Handlers/HttpClientHandler.cs:24
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 e-mail address ("test@test.com") is still in shipped code — its domain is reserved for documentation, so anything sent here is undeliverable by construction. Replace it with the real address, or take it from configuration. (×3) — src/Common/CleanArchitecture.Application/Cities/EventHandler/CityActivatedEventHandler.cs:36, src/Common/CleanArchitecture.Application/Cities/EventHandler/CityCreatedEventHandler.cs:36, src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContextSeed.cs:20
- A placeholder e-mail address ("to@test.com") is still in shipped code — its domain is reserved for documentation, so anything sent here is undeliverable by construction. Replace it with the real address, or take it from configuration. (×2) — src/Common/CleanArchitecture.Application/Cities/EventHandler/CityActivatedEventHandler.cs:37, src/Common/CleanArchitecture.Application/Cities/EventHandler/CityCreatedEventHandler.cs:37
- A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). — src/Common/CleanArchitecture.Application/Dto/CurrentWeatherForecastDto.cs:87
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 10 of 10 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record 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.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P2 · Observability
What to do
- Add OpenTelemetry tracing/metrics (ActivitySource / AddMetrics) so requests are traceable across the system, not just health-probable.
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) as a CI step. What was searched, so you can tell an absence from a miss: the 1266 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: CodeQL's csharp pack, or a .NET security analyzer package — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
What to do
- Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P7 · Outbound HTTP resilience
- `services.AddHttpClient("open-weather-api", c => { c.BaseAddress = new Uri(con...` 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). — src/Common/CleanArchitecture.Infrastructure/DependencyInjection.cs:62
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.
P8 · Schema migrations
PF3 · Async & latency hygiene
S1 · Web-Security Posture
- `RequireHttpsMetadata = false` allows the OIDC discovery doc to be fetched over plain HTTP. Safe for loopback-only fetches (Aspire / on-host); risky for any other path. — src/Common/CleanArchitecture.Infrastructure/DependencyInjection.cs:88
- 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. — src/Apps/CleanArchitecture.Api/Program.cs:65
What to do
- Set RequireHttpsMetadata = true in prod (or pin MetadataAddress to a localhost URL the API can hit directly).
- 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.
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
- `emailClient` is a `SmtpClient`, which implements `IDisposable`, and it is created here (line 21). Every use of it in `SendAsync` 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 emailClient = …;`), which releases it at the end of the scope on every path including a throw. — src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs:21
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 33/41 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. (×8) — src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:24, src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:36, src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:68, …
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
- Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it. — src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs:45
What to do
- Interpolated log message defeats structured logging
X5 · Nullable reference types
- 3/7 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
What to do
- Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 76% | Strong | Solid. |
| Architecture | 88% | Strong | Solid. |
| Maturity | 44% | Weak — gated by D34, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 27% | Weak — gated by D13, P3, P5, P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 54% | Adequate — gated by D28, D30, C1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 100% | Exemplary | Strongest area. |
| Event-Driven | 100% | Exemplary | Solid. |
| Performance | 100% | Exemplary | Solid. |
Unscored — 3 check(s) recorded observations but carry no score
- D36 Supply-chain Provenance & Signing — 1 observation(s) recorded · The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- 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 — 2 control(s) we could not find positive evidence for
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
Not included — 36 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- 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 — compose up failed (exit 18 — an image could not be pulled) — sql-server-db Pulling kib01 Pulling es01 Pulling webapi Pulling webapi Warning Get "https://registry-1.docker.io/v2/": Forbidden es01 Error Get "https://docker.elastic.co/v2/": Forbidden sql-server-db Error context canceled kib01 Error context canceled Error response from daemon: Get "https://docker.elastic.co/v2/": Forbidden; the earlier `compose pull` step reported: kib01 Pulling es01 Pulling webapi Warning Get "https://registry-1.docker.io/v2/": Forbidden es01 Error Get "https://docker.elastic.co/v2/": Forbidden kib01 Error context canceled sql-server-db Error context canceled WARNING: Some service image(s) must be built from source by running: docker compose build webapi Error response from daemon: Get "https://docker.elastic.co/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D23 Boundary Type-Coupling — small single-context codebase (2,965 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. 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
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- 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: `--collect:"XPlat Code Coverage"` names a data collector that ships in the `coverlet.collector` package, and this repository wires up none — no test project references it and no runsettings declares one. The absence of coverage here is therefore not evidence about the suite or about our analyzer environment: without a collector, `--collect` produces nothing even from a suite that builds and passes. Add a `coverlet.collector` PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect.
- DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
- DM11 Constructible invalid state — no entities detected — construction-time invariants not assessable
- DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
- DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- 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 — 37 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Vulnerable: Microsoft.IdentityModel.JsonWebTokens
- Vulnerable: System.IdentityModel.Tokens.Jwt
- REDACTED
- REDACTED
- REDACTED
Serious — 56 finding(s)
- Async method without CancellationToken: GetUserNameAsync src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:24
- Async method without CancellationToken: CheckUserPassword src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:36
- Async method without CancellationToken: DeleteUserAsync src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:68
- Async method without CancellationToken: DispatchEvents src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContext.cs:70
- Async method without CancellationToken: SeedSampleCityDataAsync src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContextSeed.cs:29
- Async method without CancellationToken: Publish src/Common/CleanArchitecture.Infrastructure/Services/DomainEventService.cs:22
- Async method without CancellationToken: SendAsync src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs:19
- Async method without CancellationToken: Get REDACTED:22
- No assertions: ShouldSupportMappingFromSourceToDestination tests/Aplication.UnitTests/Common/Mappings/MappingTests.cs:31
- No assertions: ShouldRequireMinimumFields tests/CleanArchitecture.Application.IntegrationTests/Cities/Commands/CreateCityTests.cs:15
- No assertions: ShouldRequireValidCityId tests/CleanArchitecture.Application.IntegrationTests/Cities/Commands/DeleteCityTests.cs:14
- No assertions: ShouldRequireValidCityId tests/CleanArchitecture.Application.IntegrationTests/Cities/Commands/UpdateCityTests.cs:16
- No assertions: ShouldRequireMinimumFields tests/CleanArchitecture.Application.IntegrationTests/Districts/Commands/CreateDistrictTests.cs:16
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Deprecated: Microsoft.AspNetCore.Mvc.Core REDACTED:13
- Deprecated: Microsoft.IdentityModel.JsonWebTokens REDACTED:16
- Deprecated: System.IdentityModel.Tokens.Jwt REDACTED:17
- Deprecated: FluentValidation.AspNetCore REDACTED:24
- Dead code: CreateUserAsync src/Common/CleanArchitecture.Application/Common/Interfaces/IIdentityService.cs:13
- Dead code: ProjectToListAsync src/Common/CleanArchitecture.Application/Common/Mapping/MappingExtensions.cs:16
- Dead code: ModelStateError src/Common/CleanArchitecture.Application/Common/Models/ServiceError.cs:42
- Dead code: GetCurrentWeatherTests tests/CleanArchitecture.Application.IntegrationTests/WeatherForecast/Queries/GetCurrentWeatherTests.cs:9
- TodoComment src/Common/CleanArchitecture.Application/Cities/Commands/Create/CreateCityCommandValidator.cs:25
- TodoComment src/Common/CleanArchitecture.Application/Cities/Commands/Update/UpdateCityCommandValidator.cs:25
- TodoComment src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs:35
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No data-protection/encryption
- CommentedOutCode tests/CleanArchitecture.Application.IntegrationTests/WeatherForecast/Queries/GetCurrentWeatherTests.cs:13
- AuthorizationBehaviour.Handle (cognitive 21) REDACTED:31
- REDACTED
- REDACTED
- Duplicated block (15 lines × 2) src/Common/CleanArchitecture.Application/Dto/CurrentWeatherForecastDto.cs:69
- End-of-life runtime: .NET net6.0 tests/CleanArchitecture.Domain.UnitTests/CleanArchitecture.Domain.UnitTests.csproj:4
- Off the main sequence: CleanArchitecture.Infrastructure REDACTED:1
- Coverage not measured — no coverage collector is wired up
- Non-idempotent mutation: Handlers.HttpClientHandler.GenericRequest src/Common/CleanArchitecture.Infrastructure/Services/Handlers/HttpClientHandler.cs:24
- Test sources removed from compilation REDACTED:10
- No DR/backup evidence
- Outbound HTTP without resilience src/Common/CleanArchitecture.Infrastructure/DependencyInjection.cs:62
- NuGet dependencies are not locked
- Disposable created and abandoned in the method that made it src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs:21
Minor — 60 finding(s)
- Outdated: Mapster REDACTED:10
- Outdated: Mapster.DependencyInjection REDACTED:11
- Outdated: Microsoft.EntityFrameworkCore REDACTED:14
- Outdated: Microsoft.Extensions.Identity.Core REDACTED:15
- Outdated: CsvHelper REDACTED:8
- Outdated: Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore REDACTED:10
- Outdated: Microsoft.AspNetCore.Identity.EntityFrameworkCore REDACTED:11
- Outdated: Microsoft.EntityFrameworkCore.InMemory REDACTED:12
- Outdated: Microsoft.EntityFrameworkCore.Sqlite REDACTED:16
- Outdated: Microsoft.EntityFrameworkCore.SqlServer REDACTED:13
- Outdated: Npgsql.EntityFrameworkCore.PostgreSQL REDACTED:14
- Outdated: Microsoft.AspNetCore.Mvc.NewtonsoftJson REDACTED:25
- Outdated: Microsoft.EntityFrameworkCore.Tools REDACTED:26
- Outdated: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore REDACTED:30
- Outdated: Microsoft.VisualStudio.Web.CodeGeneration.Design REDACTED:32
- Outdated: Serilog.AspNetCore REDACTED:33
- Outdated: Swashbuckle.AspNetCore REDACTED:36
- Outdated: Microsoft.Data.Sqlite.Core REDACTED:36
- Orphaned file src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContextSeed.cs:1
- Orphaned file src/Apps/CleanArchitecture.Api/Startup.cs:1
- Orphaned file src/Common/CleanArchitecture.Application/Common/Models/ServiceError.cs:1
- Orphaned file src/Common/CleanArchitecture.Infrastructure/DependencyInjection.cs:1
- Orphaned file src/Apps/CleanArchitecture.Api/Filters/ApiExceptionFilterAttribute.cs:1
- Orphaned file src/Apps/CleanArchitecture.Api/Program.cs:1
- Orphaned file src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContext.cs:1
- Orphaned file src/Apps/CleanArchitecture.Api/Controllers/CitiesController.cs:1
- Orphaned file REDACTED:1
- Orphaned file src/Common/CleanArchitecture.Infrastructure/Identity/IdentityService.cs:1
- Orphaned file src/Common/CleanArchitecture.Infrastructure/Services/Handlers/HttpClientHandler.cs:1
- Placeholder data left in code src/Common/CleanArchitecture.Application/Cities/EventHandler/CityActivatedEventHandler.cs:36
- Placeholder data left in code src/Common/CleanArchitecture.Application/Cities/EventHandler/CityActivatedEventHandler.cs:37
- Placeholder data left in code src/Common/CleanArchitecture.Application/Cities/EventHandler/CityCreatedEventHandler.cs:36
- Placeholder data left in code src/Common/CleanArchitecture.Application/Cities/EventHandler/CityCreatedEventHandler.cs:37
- Placeholder data left in code src/Common/CleanArchitecture.Infrastructure/Persistence/ApplicationDbContextSeed.cs:20
- No named authorization policies
- No named authorization policies src/Apps/CleanArchitecture.Api/Controllers/CitiesController.cs:19
- No named authorization policies src/Apps/CleanArchitecture.Api/Controllers/DistrictsController.cs:15
- No named authorization policies src/Apps/CleanArchitecture.Api/Controllers/VillagesController.cs:14
- redundant comment src/Apps/CleanArchitecture.Api/Controllers/CitiesController.cs:30
- redundant comment src/Apps/CleanArchitecture.Api/Filters/ApiExceptionFilterAttribute.cs:23
- No security response headers detected
- No security response headers detected src/Apps/CleanArchitecture.Api/Program.cs:65
- Partial audit-trail evidence
- No ADRs found
- Two distinct exception types, `ValidationException` and `ValidateModelException`, both expose a property named `Errors` containing validation failures. While the property name is consistent, the existence of two separate exception classes for what appears to be the same concept (model validation errors) suggests a naming inconsistency in the exception types themselves. One uses the noun 'Validation' and the other the verb form 'Validate' as part of the class name, which is semantically inconsistent for the same domain concept.
- REDACTED
- REDACTED
- Orphaned files with no living knowledge
- REDACTED
- Event not named in past tense: DomainEventNotification src/Common/CleanArchitecture.Application/Common/Models/DomainEventNotification.cs:6
- Commented-out code src/Common/CleanArchitecture.Application/Dto/CurrentWeatherForecastDto.cs:87
- No ADRs
- No architecture diagram/doc
- No SAST
- No rollback/health safety
- No changelog
- OIDC metadata fetched over HTTP src/Common/CleanArchitecture.Infrastructure/DependencyInjection.cs:88
- Not all async methods take a CancellationToken
- Interpolated log message defeats structured logging src/Common/CleanArchitecture.Infrastructure/Services/EmailService.cs:45
- Nullable reference types not enabled everywhere
Minor — 27 finding(s)
- Outdated: FluentValidation
- Outdated: FluentValidation.DependencyInjectionExtensions
- Outdated: MediatR.Extensions.Microsoft.DependencyInjection
- Outdated: Microsoft.AspNetCore.Mvc.Core
- Outdated: Microsoft.IdentityModel.JsonWebTokens
- Outdated: System.IdentityModel.Tokens.Jwt
- Outdated: Microsoft.AspNetCore.ApiAuthorization.IdentityServer
- Outdated: System.Data.SQLite
- Outdated: FluentValidation.AspNetCore
- Outdated: Microsoft.VisualStudio.Azure.Containers.Tools.Targets
- Outdated: Serilog.Enrichers.Environment
- Outdated: Serilog.Sinks.Elasticsearch
- Outdated: FluentAssertions
- Outdated: Microsoft.NET.Test.Sdk
- Outdated: Moq
- Outdated: NUnit
- Outdated: NUnit3TestAdapter
- Outdated: Respawn
- XML-doc coverage: CleanArchitecture.Application REDACTED
- XML-doc coverage: CleanArchitecture.Domain src/Common/CleanArchitecture.Domain/CleanArchitecture.Domain.csproj
- XML-doc coverage: CleanArchitecture.Infrastructure REDACTED
- XML-doc coverage: CleanArchitecture.Api REDACTED
- XML-doc coverage: CleanArchitecture.Infrastructure.Sqlite src/Common/CleanArchitecture.Infrastructure.Sqlite/CleanArchitecture.Infrastructure.Sqlite.csproj
- XML-doc coverage: CleanArchitecture.Infrastructure.SqlServer src/Common/CleanArchitecture.Infrastructure.SqlServer/CleanArchitecture.Infrastructure.SqlServer.csproj
- XML-doc coverage: CleanArchitecture.Infrastructure.Npgsql src/Common/CleanArchitecture.Infrastructure.Npgsql/CleanArchitecture.Infrastructure.Npgsql.csproj
- Mock framework: Moq
- Mock framework: Moq
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-8596e7b584cf4aa5b35b4bd8ea9f5c2d/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-8596e7b584cf4aa5b35b4bd8ea9f5c2d/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 . | 12 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list CleanArchitecture.sln package --vulnerable --include-transitive --format json | 20 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 7 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep --config /opt/semgrep-rules/gdpr.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 3 | artifacts/raw/semgrep-gdpr.json |
| 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 | — |
Appendix C — Personal-data map
Email — 2 field(s)
- GetTokenQuery.Email src/Common/CleanArchitecture.Application/ApplicationUser/Queries/GetToken/GetTokenQuery.cs:10
- ApplicationUserDto.Email src/Common/CleanArchitecture.Application/Dto/ApplicationUserDto.cs:9
Name — 1 field(s)
- ApplicationUser.LastName src/Common/CleanArchitecture.Infrastructure/Identity/ApplicationUser.cs:9