Executive summary
jeangatto/ASP.NET-Core-API-DDD-SOLID scores 49 out of 100 and is rated Weak, while five of its seven lenses score higher still: Performance at 100, rated Exemplary, Architecture at 78, rated Strong, and Security and Compliance at 69, Code Health at 62 and Maturity at 54, all rated Adequate.
The score is lower than those five because the weakest lens counts most, and here that is Production Readiness, which scores 43 and is rated Weak. Its REDACTED Scanning dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 9 Leaked secret finding(s) in REDACTED Scanning and to resolve the 1 No ADRs found finding(s) in ADR Quality, and if Production Readiness rose to 70, the score would rise from 49 to about 54.
47 findings are critical: 19 in Static Analysis (SAST), ten in Secrets (history), nine in REDACTED Scanning, three in Aggregate boundaries, two in Explicit Debt, two in IaC & Container Security, one in Coupling and one in Dependency direction.
Watchdog couldn't measure Dependency Hygiene and Runtime accessibility in this code, so those dimensions are left out of the score. The product code is 2,754 lines, which would take an estimated 0.1 person-years, around €4,500, to rebuild.
If Production Readiness rose from 43 to 70, the lowest score rated Strong, the score would rise from 49 to about 54.
New since the last survey: 51 findings
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- REDACTED Scanning · 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
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Change Coupling · Change coupling: Usuario.cs ↔ EntityTypeBuilderExtensions.cs src/SGP.Domain/Entities/Usuario.cs
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Cancellation propagation · Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs
- Cancellation propagation · Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs
- Cancellation propagation · Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs
- Cancellation propagation · Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/CidadeRequests/ObterTodosPorUfRequest.cs
- Cancellation propagation · Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/EstadoRequests/ObterTodosPorRegiaoRequest.cs
- Cancellation propagation · Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/GetByIdRequest.cs
- Cancellation propagation · Async method without CancellationToken: AuthenticateAsync src/SGP.Application/Services/AuthenticationService.cs
- Cancellation propagation · Async method without CancellationToken: RefreshTokenAsync src/SGP.Application/Services/AuthenticationService.cs
- Cancellation propagation · Async method without CancellationToken: ObterPorIbgeAsync src/SGP.Application/Services/CidadeService.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosPorUfAsync src/SGP.Application/Services/CidadeService.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosAsync src/SGP.Application/Services/EstadoService.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosPorRegiaoAsync src/SGP.Application/Services/EstadoService.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosAsync src/SGP.Application/Services/RegiaoService.cs
- Cancellation propagation · Async method without CancellationToken: ObterPorIbgeAsync src/SGP.Infrastructure/Data/Repositories/Cached/CidadeCachedRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosPorUfAsync src/SGP.Infrastructure/Data/Repositories/Cached/CidadeCachedRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/Cached/EstadoCachedRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosPorRegiaoAsync src/SGP.Infrastructure/Data/Repositories/Cached/EstadoCachedRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/Cached/RegiaoCachedRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterPorIbgeAsync src/SGP.Infrastructure/Data/Repositories/CidadeRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosPorUfAsync src/SGP.Infrastructure/Data/Repositories/CidadeRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetByIdAsync src/SGP.Infrastructure/Data/Repositories/Common/EfRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/EstadoRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosPorRegiaoAsync src/SGP.Infrastructure/Data/Repositories/EstadoRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/RegiaoRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetByIdAsync src/SGP.Infrastructure/Data/Repositories/UsuarioRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterPorEmailAsync src/SGP.Infrastructure/Data/Repositories/UsuarioRepository.cs
- Cancellation propagation · Async method without CancellationToken: ObterPorTokenAtualizacaoAsync src/SGP.Infrastructure/Data/Repositories/UsuarioRepository.cs
- Cancellation propagation · Async method without CancellationToken: VerificarSeEmailExisteAsync src/SGP.Infrastructure/Data/Repositories/UsuarioRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetOrCreateAsync src/SGP.Infrastructure/Services/DistributedCacheService.cs
- Cancellation propagation · Async method without CancellationToken: RemoveAsync src/SGP.Infrastructure/Services/DistributedCacheService.cs
- Outbound HTTP resilience · Outbound HTTP without resilience src/SGP.PublicApi/Program.cs
- Schema migrations · Schema created with EnsureCreated() outside the migrations src/SGP.PublicApi/Program.cs
Fixed since the last survey: 4 findings
- Supply-chain Provenance & Signing REDACTED
- Supply-chain Provenance & Signing REDACTED
- Outbound HTTP resilience · Outbound HTTP without resilience
- Repository granularity · Repository for a non-root entity: UsuarioRepository → Usuario src/SGP.Infrastructure/Data/Repositories/UsuarioRepository.cs
Rebuild cost: about €4,500 · Estimate
| Cost to rebuild | €1,500 to €7,500, for 26 to 79 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | High, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 49. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 2,754 lines of product code, of which 54% is declarations and boilerplate, 36% straight logic and 10% 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 (global) | 2 SGP.Application | 3 SGP.Application.Mapper | 4 SGP.Domain.ValueObjects | 5 SGP.Infrastructure | 6 SGP.Infrastructure.Extensions | 7 SGP.PublicApi.Extensions | 8 SGP.PublicApi.Filters | 9 SGP.PublicApi.Middlewares | 10 SGP.PublicApi.Models | 11 SGP.PublicApi.ObjectResults | 12 SGP.PublicApi.Options | 13 SGP.Shared | 14 SGP.Shared.Constants | 15 SGP.Shared.Extensions | 16 SGP.Shared.Messages | 17 SGP.Shared.Records | 18 SGP.Shared.ValidationAttributes | 19 SGP.Application.Requests | 20 SGP.Application.Requests.AuthenticationRequests | 21 SGP.Application.Requests.CidadeRequests | 22 SGP.Application.Requests.EstadoRequests | 23 SGP.Application.Responses | 24 SGP.Shared.Abstractions | 25 SGP.Application.Interfaces | 26 SGP.Domain.Entities | 27 SGP.Shared.AppSettings | 28 SGP.Domain.Repositories | 29 SGP.Infrastructure.Data.Context | 30 SGP.Infrastructure.Data.Mappings | 31 SGP.Infrastructure.Services | 32 SGP.PublicApi.Controllers | 33 SGP.Application.Services | 34 SGP.Infrastructure.Data | 35 SGP.Infrastructure.Data.Repositories.Common | 36 SGP.Infrastructure.Data.Repositories | 37 SGP.Infrastructure.Data.Repositories.Cached |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 (global) | |||||||||||||||||||||||||||||||||||||
| 2 SGP.Application | |||||||||||||||||||||||||||||||||||||
| 3 SGP.Application.Mapper | |||||||||||||||||||||||||||||||||||||
| 4 SGP.Domain.ValueObjects | |||||||||||||||||||||||||||||||||||||
| 5 SGP.Infrastructure | |||||||||||||||||||||||||||||||||||||
| 6 SGP.Infrastructure.Extensions | |||||||||||||||||||||||||||||||||||||
| 7 SGP.PublicApi.Extensions | |||||||||||||||||||||||||||||||||||||
| 8 SGP.PublicApi.Filters | |||||||||||||||||||||||||||||||||||||
| 9 SGP.PublicApi.Middlewares | |||||||||||||||||||||||||||||||||||||
| 10 SGP.PublicApi.Models | |||||||||||||||||||||||||||||||||||||
| 11 SGP.PublicApi.ObjectResults | |||||||||||||||||||||||||||||||||||||
| 12 SGP.PublicApi.Options | |||||||||||||||||||||||||||||||||||||
| 13 SGP.Shared | |||||||||||||||||||||||||||||||||||||
| 14 SGP.Shared.Constants | |||||||||||||||||||||||||||||||||||||
| 15 SGP.Shared.Extensions | |||||||||||||||||||||||||||||||||||||
| 16 SGP.Shared.Messages | |||||||||||||||||||||||||||||||||||||
| 17 SGP.Shared.Records | |||||||||||||||||||||||||||||||||||||
| 18 SGP.Shared.ValidationAttributes | |||||||||||||||||||||||||||||||||||||
| 19 SGP.Application.Requests | 1 | ||||||||||||||||||||||||||||||||||||
| 20 SGP.Application.Requests.AuthenticationRequests | 2 | ||||||||||||||||||||||||||||||||||||
| 21 SGP.Application.Requests.CidadeRequests | 2 | ||||||||||||||||||||||||||||||||||||
| 22 SGP.Application.Requests.EstadoRequests | 1 | ||||||||||||||||||||||||||||||||||||
| 23 SGP.Application.Responses | 4 | ||||||||||||||||||||||||||||||||||||
| 24 SGP.Shared.Abstractions | 1 | ||||||||||||||||||||||||||||||||||||
| 25 SGP.Application.Interfaces | 2 | 2 | 1 | 4 | 4 | ||||||||||||||||||||||||||||||||
| 26 SGP.Domain.Entities | 1 | 8 | |||||||||||||||||||||||||||||||||||
| 27 SGP.Shared.AppSettings | 5 | ||||||||||||||||||||||||||||||||||||
| 28 SGP.Domain.Repositories | 1 | 4 | 4 | ||||||||||||||||||||||||||||||||||
| 29 SGP.Infrastructure.Data.Context | 5 | 1 | |||||||||||||||||||||||||||||||||||
| 30 SGP.Infrastructure.Data.Mappings | 5 | ||||||||||||||||||||||||||||||||||||
| 31 SGP.Infrastructure.Services | 1 | 6 | 3 | ||||||||||||||||||||||||||||||||||
| 32 SGP.PublicApi.Controllers | 2 | 4 | |||||||||||||||||||||||||||||||||||
| 33 SGP.Application.Services | 2 | 2 | 1 | 4 | 4 | 4 | 1 | 1 | 4 | ||||||||||||||||||||||||||||
| 34 SGP.Infrastructure.Data | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 35 SGP.Infrastructure.Data.Repositories.Common | 2 | 2 | |||||||||||||||||||||||||||||||||||
| 36 SGP.Infrastructure.Data.Repositories | 1 | 4 | 4 | 4 | 4 | ||||||||||||||||||||||||||||||||
| 37 SGP.Infrastructure.Data.Repositories.Cached | 3 | 3 | 3 | 3 |
19→16 SGP.Application.Requests uses SGP.Shared.Messages✕
- Connections
- 1 pair of types, where a type in SGP.Application.Requests uses a type in SGP.Shared.Messages.
- The types involved
SGP.Application.Requests.GetByIdRequest→SGP.Shared.Messages.BaseRequestWithValidation
- Direction
- SGP.Application.Requests uses SGP.Shared.Messages, so a change to SGP.Shared.Messages can break SGP.Application.Requests, while a change to SGP.Application.Requests can't break SGP.Shared.Messages.
- Position
- Below the diagonal: SGP.Application.Requests uses a module listed above it, which is the healthy direction.
20→16 SGP.Application.Requests.AuthenticationRequests uses SGP.Shared.Messages✕
- Connections
- 2 pairs of types, where a type in SGP.Application.Requests.AuthenticationRequests uses a type in SGP.Shared.Messages.
- The types involved
SGP.Application.Requests.AuthenticationRequests.LogInRequest→SGP.Shared.Messages.BaseRequestWithValidationSGP.Application.Requests.AuthenticationRequests.RefreshTokenRequest→SGP.Shared.Messages.BaseRequestWithValidation
- Direction
- SGP.Application.Requests.AuthenticationRequests uses SGP.Shared.Messages, so a change to SGP.Shared.Messages can break SGP.Application.Requests.AuthenticationRequests, while a change to SGP.Application.Requests.AuthenticationRequests can't break SGP.Shared.Messages.
- Position
- Below the diagonal: SGP.Application.Requests.AuthenticationRequests uses a module listed above it, which is the healthy direction.
21→16 SGP.Application.Requests.CidadeRequests uses SGP.Shared.Messages✕
- Connections
- 2 pairs of types, where a type in SGP.Application.Requests.CidadeRequests uses a type in SGP.Shared.Messages.
- The types involved
SGP.Application.Requests.CidadeRequests.ObterPorIbgeRequest→SGP.Shared.Messages.BaseRequestWithValidationSGP.Application.Requests.CidadeRequests.ObterTodosPorUfRequest→SGP.Shared.Messages.BaseRequestWithValidation
- Direction
- SGP.Application.Requests.CidadeRequests uses SGP.Shared.Messages, so a change to SGP.Shared.Messages can break SGP.Application.Requests.CidadeRequests, while a change to SGP.Application.Requests.CidadeRequests can't break SGP.Shared.Messages.
- Position
- Below the diagonal: SGP.Application.Requests.CidadeRequests uses a module listed above it, which is the healthy direction.
22→16 SGP.Application.Requests.EstadoRequests uses SGP.Shared.Messages✕
- Connections
- 1 pair of types, where a type in SGP.Application.Requests.EstadoRequests uses a type in SGP.Shared.Messages.
- The types involved
SGP.Application.Requests.EstadoRequests.ObterTodosPorRegiaoRequest→SGP.Shared.Messages.BaseRequestWithValidation
- Direction
- SGP.Application.Requests.EstadoRequests uses SGP.Shared.Messages, so a change to SGP.Shared.Messages can break SGP.Application.Requests.EstadoRequests, while a change to SGP.Application.Requests.EstadoRequests can't break SGP.Shared.Messages.
- Position
- Below the diagonal: SGP.Application.Requests.EstadoRequests uses a module listed above it, which is the healthy direction.
23→16 SGP.Application.Responses uses SGP.Shared.Messages✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Responses uses a type in SGP.Shared.Messages.
- The types involved
SGP.Application.Responses.CidadeResponse→SGP.Shared.Messages.IResponseSGP.Application.Responses.EstadoResponse→SGP.Shared.Messages.IResponseSGP.Application.Responses.RegiaoResponse→SGP.Shared.Messages.IResponseSGP.Application.Responses.TokenResponse→SGP.Shared.Messages.IResponse
- Direction
- SGP.Application.Responses uses SGP.Shared.Messages, so a change to SGP.Shared.Messages can break SGP.Application.Responses, while a change to SGP.Application.Responses can't break SGP.Shared.Messages.
- Position
- Below the diagonal: SGP.Application.Responses uses a module listed above it, which is the healthy direction.
24→17 SGP.Shared.Abstractions uses SGP.Shared.Records✕
- Connections
- 1 pair of types, where a type in SGP.Shared.Abstractions uses a type in SGP.Shared.Records.
- The types involved
SGP.Shared.Abstractions.ITokenClaimsService→SGP.Shared.Records.AccessToken
- Direction
- SGP.Shared.Abstractions uses SGP.Shared.Records, so a change to SGP.Shared.Records can break SGP.Shared.Abstractions, while a change to SGP.Shared.Abstractions can't break SGP.Shared.Records.
- Position
- Below the diagonal: SGP.Shared.Abstractions uses a module listed above it, which is the healthy direction.
25→20 SGP.Application.Interfaces uses SGP.Application.Requests.AuthenticationRequests✕
- Connections
- 2 pairs of types, where a type in SGP.Application.Interfaces uses a type in SGP.Application.Requests.AuthenticationRequests.
- The types involved
SGP.Application.Interfaces.IAuthenticationService→SGP.Application.Requests.AuthenticationRequests.LogInRequestSGP.Application.Interfaces.IAuthenticationService→SGP.Application.Requests.AuthenticationRequests.RefreshTokenRequest
- Direction
- SGP.Application.Interfaces uses SGP.Application.Requests.AuthenticationRequests, so a change to SGP.Application.Requests.AuthenticationRequests can break SGP.Application.Interfaces, while a change to SGP.Application.Interfaces can't break SGP.Application.Requests.AuthenticationRequests.
- Position
- Below the diagonal: SGP.Application.Interfaces uses a module listed above it, which is the healthy direction.
25→21 SGP.Application.Interfaces uses SGP.Application.Requests.CidadeRequests✕
- Connections
- 2 pairs of types, where a type in SGP.Application.Interfaces uses a type in SGP.Application.Requests.CidadeRequests.
- The types involved
SGP.Application.Interfaces.ICidadeService→SGP.Application.Requests.CidadeRequests.ObterPorIbgeRequestSGP.Application.Interfaces.ICidadeService→SGP.Application.Requests.CidadeRequests.ObterTodosPorUfRequest
- Direction
- SGP.Application.Interfaces uses SGP.Application.Requests.CidadeRequests, so a change to SGP.Application.Requests.CidadeRequests can break SGP.Application.Interfaces, while a change to SGP.Application.Interfaces can't break SGP.Application.Requests.CidadeRequests.
- Position
- Below the diagonal: SGP.Application.Interfaces uses a module listed above it, which is the healthy direction.
25→22 SGP.Application.Interfaces uses SGP.Application.Requests.EstadoRequests✕
- Connections
- 1 pair of types, where a type in SGP.Application.Interfaces uses a type in SGP.Application.Requests.EstadoRequests.
- The types involved
SGP.Application.Interfaces.IEstadoService→SGP.Application.Requests.EstadoRequests.ObterTodosPorRegiaoRequest
- Direction
- SGP.Application.Interfaces uses SGP.Application.Requests.EstadoRequests, so a change to SGP.Application.Requests.EstadoRequests can break SGP.Application.Interfaces, while a change to SGP.Application.Interfaces can't break SGP.Application.Requests.EstadoRequests.
- Position
- Below the diagonal: SGP.Application.Interfaces uses a module listed above it, which is the healthy direction.
25→23 SGP.Application.Interfaces uses SGP.Application.Responses✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Interfaces uses a type in SGP.Application.Responses.
- The types involved
SGP.Application.Interfaces.IAuthenticationService→SGP.Application.Responses.TokenResponseSGP.Application.Interfaces.ICidadeService→SGP.Application.Responses.CidadeResponseSGP.Application.Interfaces.IEstadoService→SGP.Application.Responses.EstadoResponseSGP.Application.Interfaces.IRegiaoService→SGP.Application.Responses.RegiaoResponse
- Direction
- SGP.Application.Interfaces uses SGP.Application.Responses, so a change to SGP.Application.Responses can break SGP.Application.Interfaces, while a change to SGP.Application.Interfaces can't break SGP.Application.Responses.
- Position
- Below the diagonal: SGP.Application.Interfaces uses a module listed above it, which is the healthy direction.
25→24 SGP.Application.Interfaces uses SGP.Shared.Abstractions✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Interfaces uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Application.Interfaces.IAuthenticationService→SGP.Shared.Abstractions.IAppServiceSGP.Application.Interfaces.ICidadeService→SGP.Shared.Abstractions.IAppServiceSGP.Application.Interfaces.IEstadoService→SGP.Shared.Abstractions.IAppServiceSGP.Application.Interfaces.IRegiaoService→SGP.Shared.Abstractions.IAppService
- Direction
- SGP.Application.Interfaces uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Application.Interfaces, while a change to SGP.Application.Interfaces can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Application.Interfaces uses a module listed above it, which is the healthy direction.
26→4 SGP.Domain.Entities uses SGP.Domain.ValueObjects✕
- Connections
- 1 pair of types, where a type in SGP.Domain.Entities uses a type in SGP.Domain.ValueObjects.
- The types involved
SGP.Domain.Entities.Usuario→SGP.Domain.ValueObjects.Email
- Direction
- SGP.Domain.Entities uses SGP.Domain.ValueObjects, so a change to SGP.Domain.ValueObjects can break SGP.Domain.Entities, while a change to SGP.Domain.Entities can't break SGP.Domain.ValueObjects.
- Position
- Below the diagonal: SGP.Domain.Entities uses a module listed above it, which is the healthy direction.
26→24 SGP.Domain.Entities uses SGP.Shared.Abstractions✕
- Connections
- 8 pairs of types, where a type in SGP.Domain.Entities uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Domain.Entities.Cidade→SGP.Shared.Abstractions.BaseEntitySGP.Domain.Entities.Estado→SGP.Shared.Abstractions.BaseEntitySGP.Domain.Entities.Regiao→SGP.Shared.Abstractions.BaseEntitySGP.Domain.Entities.Token→SGP.Shared.Abstractions.BaseEntitySGP.Domain.Entities.Token→SGP.Shared.Abstractions.IDateTimeServiceSGP.Domain.Entities.Usuario→SGP.Shared.Abstractions.BaseEntitySGP.Domain.Entities.Usuario→SGP.Shared.Abstractions.IAggregateRootSGP.Domain.Entities.Usuario→SGP.Shared.Abstractions.IDateTimeService
- Direction
- SGP.Domain.Entities uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Domain.Entities, while a change to SGP.Domain.Entities can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Domain.Entities uses a module listed above it, which is the healthy direction.
27→24 SGP.Shared.AppSettings uses SGP.Shared.Abstractions✕
- Connections
- 5 pairs of types, where a type in SGP.Shared.AppSettings uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Shared.AppSettings.AuthOptions→SGP.Shared.Abstractions.IAppOptionsSGP.Shared.AppSettings.CacheOptions→SGP.Shared.Abstractions.IAppOptionsSGP.Shared.AppSettings.ConnectionStrings→SGP.Shared.Abstractions.IAppOptionsSGP.Shared.AppSettings.InMemoryOptions→SGP.Shared.Abstractions.IAppOptionsSGP.Shared.AppSettings.JwtOptions→SGP.Shared.Abstractions.IAppOptions
- Direction
- SGP.Shared.AppSettings uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Shared.AppSettings, while a change to SGP.Shared.AppSettings can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Shared.AppSettings uses a module listed above it, which is the healthy direction.
28→4 SGP.Domain.Repositories uses SGP.Domain.ValueObjects✕
- Connections
- 1 pair of types, where a type in SGP.Domain.Repositories uses a type in SGP.Domain.ValueObjects.
- The types involved
SGP.Domain.Repositories.IUsuarioRepository→SGP.Domain.ValueObjects.Email
- Direction
- SGP.Domain.Repositories uses SGP.Domain.ValueObjects, so a change to SGP.Domain.ValueObjects can break SGP.Domain.Repositories, while a change to SGP.Domain.Repositories can't break SGP.Domain.ValueObjects.
- Position
- Below the diagonal: SGP.Domain.Repositories uses a module listed above it, which is the healthy direction.
28→24 SGP.Domain.Repositories uses SGP.Shared.Abstractions✕
- Connections
- 4 pairs of types, where a type in SGP.Domain.Repositories uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Domain.Repositories.ICidadeRepository→SGP.Shared.Abstractions.IRepositorySGP.Domain.Repositories.IEstadoRepository→SGP.Shared.Abstractions.IRepositorySGP.Domain.Repositories.IRegiaoRepository→SGP.Shared.Abstractions.IRepositorySGP.Domain.Repositories.IUsuarioRepository→SGP.Shared.Abstractions.IAsyncRepository
- Direction
- SGP.Domain.Repositories uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Domain.Repositories, while a change to SGP.Domain.Repositories can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Domain.Repositories uses a module listed above it, which is the healthy direction.
28→26 SGP.Domain.Repositories uses SGP.Domain.Entities✕
- Connections
- 4 pairs of types, where a type in SGP.Domain.Repositories uses a type in SGP.Domain.Entities.
- The types involved
SGP.Domain.Repositories.ICidadeRepository→SGP.Domain.Entities.CidadeSGP.Domain.Repositories.IEstadoRepository→SGP.Domain.Entities.EstadoSGP.Domain.Repositories.IRegiaoRepository→SGP.Domain.Entities.RegiaoSGP.Domain.Repositories.IUsuarioRepository→SGP.Domain.Entities.Usuario
- Direction
- SGP.Domain.Repositories uses SGP.Domain.Entities, so a change to SGP.Domain.Entities can break SGP.Domain.Repositories, while a change to SGP.Domain.Repositories can't break SGP.Domain.Entities.
- Position
- Below the diagonal: SGP.Domain.Repositories uses a module listed above it, which is the healthy direction.
29→26 SGP.Infrastructure.Data.Context uses SGP.Domain.Entities✕
- Connections
- 5 pairs of types, where a type in SGP.Infrastructure.Data.Context uses a type in SGP.Domain.Entities.
- The types involved
SGP.Infrastructure.Data.Context.SgpContext→SGP.Domain.Entities.CidadeSGP.Infrastructure.Data.Context.SgpContext→SGP.Domain.Entities.EstadoSGP.Infrastructure.Data.Context.SgpContext→SGP.Domain.Entities.RegiaoSGP.Infrastructure.Data.Context.SgpContext→SGP.Domain.Entities.TokenSGP.Infrastructure.Data.Context.SgpContext→SGP.Domain.Entities.Usuario
- Direction
- SGP.Infrastructure.Data.Context uses SGP.Domain.Entities, so a change to SGP.Domain.Entities can break SGP.Infrastructure.Data.Context, while a change to SGP.Infrastructure.Data.Context can't break SGP.Domain.Entities.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Context uses a module listed above it, which is the healthy direction.
29→27 SGP.Infrastructure.Data.Context uses SGP.Shared.AppSettings✕
- Connections
- 1 pair of types, where a type in SGP.Infrastructure.Data.Context uses a type in SGP.Shared.AppSettings.
- The types involved
SGP.Infrastructure.Data.Context.SgpContext→SGP.Shared.AppSettings.ConnectionStrings
- Direction
- SGP.Infrastructure.Data.Context uses SGP.Shared.AppSettings, so a change to SGP.Shared.AppSettings can break SGP.Infrastructure.Data.Context, while a change to SGP.Infrastructure.Data.Context can't break SGP.Shared.AppSettings.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Context uses a module listed above it, which is the healthy direction.
30→26 SGP.Infrastructure.Data.Mappings uses SGP.Domain.Entities✕
- Connections
- 5 pairs of types, where a type in SGP.Infrastructure.Data.Mappings uses a type in SGP.Domain.Entities.
- The types involved
SGP.Infrastructure.Data.Mappings.CidadeMap→SGP.Domain.Entities.CidadeSGP.Infrastructure.Data.Mappings.EstadoMap→SGP.Domain.Entities.EstadoSGP.Infrastructure.Data.Mappings.RegiaoMap→SGP.Domain.Entities.RegiaoSGP.Infrastructure.Data.Mappings.TokenMap→SGP.Domain.Entities.TokenSGP.Infrastructure.Data.Mappings.UsuarioMap→SGP.Domain.Entities.Usuario
- Direction
- SGP.Infrastructure.Data.Mappings uses SGP.Domain.Entities, so a change to SGP.Domain.Entities can break SGP.Infrastructure.Data.Mappings, while a change to SGP.Infrastructure.Data.Mappings can't break SGP.Domain.Entities.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Mappings uses a module listed above it, which is the healthy direction.
31→17 SGP.Infrastructure.Services uses SGP.Shared.Records✕
- Connections
- 1 pair of types, where a type in SGP.Infrastructure.Services uses a type in SGP.Shared.Records.
- The types involved
SGP.Infrastructure.Services.JwtClaimService→SGP.Shared.Records.AccessToken
- Direction
- SGP.Infrastructure.Services uses SGP.Shared.Records, so a change to SGP.Shared.Records can break SGP.Infrastructure.Services, while a change to SGP.Infrastructure.Services can't break SGP.Shared.Records.
- Position
- Below the diagonal: SGP.Infrastructure.Services uses a module listed above it, which is the healthy direction.
31→24 SGP.Infrastructure.Services uses SGP.Shared.Abstractions✕
- Connections
- 6 pairs of types, where a type in SGP.Infrastructure.Services uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Infrastructure.Services.BCryptHashService→SGP.Shared.Abstractions.IHashServiceSGP.Infrastructure.Services.DateTimeService→SGP.Shared.Abstractions.IDateTimeServiceSGP.Infrastructure.Services.DistributedCacheService→SGP.Shared.Abstractions.ICacheServiceSGP.Infrastructure.Services.JwtClaimService→SGP.Shared.Abstractions.IDateTimeServiceSGP.Infrastructure.Services.JwtClaimService→SGP.Shared.Abstractions.ITokenClaimsServiceSGP.Infrastructure.Services.MemoryCacheService→SGP.Shared.Abstractions.ICacheService
- Direction
- SGP.Infrastructure.Services uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Infrastructure.Services, while a change to SGP.Infrastructure.Services can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Infrastructure.Services uses a module listed above it, which is the healthy direction.
31→27 SGP.Infrastructure.Services uses SGP.Shared.AppSettings✕
- Connections
- 3 pairs of types, where a type in SGP.Infrastructure.Services uses a type in SGP.Shared.AppSettings.
- The types involved
SGP.Infrastructure.Services.DistributedCacheService→SGP.Shared.AppSettings.CacheOptionsSGP.Infrastructure.Services.JwtClaimService→SGP.Shared.AppSettings.JwtOptionsSGP.Infrastructure.Services.MemoryCacheService→SGP.Shared.AppSettings.CacheOptions
- Direction
- SGP.Infrastructure.Services uses SGP.Shared.AppSettings, so a change to SGP.Shared.AppSettings can break SGP.Infrastructure.Services, while a change to SGP.Infrastructure.Services can't break SGP.Shared.AppSettings.
- Position
- Below the diagonal: SGP.Infrastructure.Services uses a module listed above it, which is the healthy direction.
32→20 SGP.PublicApi.Controllers uses SGP.Application.Requests.AuthenticationRequests✕
- Connections
- 2 pairs of types, where a type in SGP.PublicApi.Controllers uses a type in SGP.Application.Requests.AuthenticationRequests.
- The types involved
SGP.PublicApi.Controllers.AuthController→SGP.Application.Requests.AuthenticationRequests.LogInRequestSGP.PublicApi.Controllers.AuthController→SGP.Application.Requests.AuthenticationRequests.RefreshTokenRequest
- Direction
- SGP.PublicApi.Controllers uses SGP.Application.Requests.AuthenticationRequests, so a change to SGP.Application.Requests.AuthenticationRequests can break SGP.PublicApi.Controllers, while a change to SGP.PublicApi.Controllers can't break SGP.Application.Requests.AuthenticationRequests.
- Position
- Below the diagonal: SGP.PublicApi.Controllers uses a module listed above it, which is the healthy direction.
32→25 SGP.PublicApi.Controllers uses SGP.Application.Interfaces✕
- Connections
- 4 pairs of types, where a type in SGP.PublicApi.Controllers uses a type in SGP.Application.Interfaces.
- The types involved
SGP.PublicApi.Controllers.AuthController→SGP.Application.Interfaces.IAuthenticationServiceSGP.PublicApi.Controllers.CidadesController→SGP.Application.Interfaces.ICidadeServiceSGP.PublicApi.Controllers.EstadosController→SGP.Application.Interfaces.IEstadoServiceSGP.PublicApi.Controllers.RegioesController→SGP.Application.Interfaces.IRegiaoService
- Direction
- SGP.PublicApi.Controllers uses SGP.Application.Interfaces, so a change to SGP.Application.Interfaces can break SGP.PublicApi.Controllers, while a change to SGP.PublicApi.Controllers can't break SGP.Application.Interfaces.
- Position
- Below the diagonal: SGP.PublicApi.Controllers uses a module listed above it, which is the healthy direction.
33→20 SGP.Application.Services uses SGP.Application.Requests.AuthenticationRequests✕
- Connections
- 2 pairs of types, where a type in SGP.Application.Services uses a type in SGP.Application.Requests.AuthenticationRequests.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Application.Requests.AuthenticationRequests.LogInRequestSGP.Application.Services.AuthenticationService→SGP.Application.Requests.AuthenticationRequests.RefreshTokenRequest
- Direction
- SGP.Application.Services uses SGP.Application.Requests.AuthenticationRequests, so a change to SGP.Application.Requests.AuthenticationRequests can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Application.Requests.AuthenticationRequests.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→21 SGP.Application.Services uses SGP.Application.Requests.CidadeRequests✕
- Connections
- 2 pairs of types, where a type in SGP.Application.Services uses a type in SGP.Application.Requests.CidadeRequests.
- The types involved
SGP.Application.Services.CidadeService→SGP.Application.Requests.CidadeRequests.ObterPorIbgeRequestSGP.Application.Services.CidadeService→SGP.Application.Requests.CidadeRequests.ObterTodosPorUfRequest
- Direction
- SGP.Application.Services uses SGP.Application.Requests.CidadeRequests, so a change to SGP.Application.Requests.CidadeRequests can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Application.Requests.CidadeRequests.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→22 SGP.Application.Services uses SGP.Application.Requests.EstadoRequests✕
- Connections
- 1 pair of types, where a type in SGP.Application.Services uses a type in SGP.Application.Requests.EstadoRequests.
- The types involved
SGP.Application.Services.EstadoService→SGP.Application.Requests.EstadoRequests.ObterTodosPorRegiaoRequest
- Direction
- SGP.Application.Services uses SGP.Application.Requests.EstadoRequests, so a change to SGP.Application.Requests.EstadoRequests can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Application.Requests.EstadoRequests.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→23 SGP.Application.Services uses SGP.Application.Responses✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Services uses a type in SGP.Application.Responses.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Application.Responses.TokenResponseSGP.Application.Services.CidadeService→SGP.Application.Responses.CidadeResponseSGP.Application.Services.EstadoService→SGP.Application.Responses.EstadoResponseSGP.Application.Services.RegiaoService→SGP.Application.Responses.RegiaoResponse
- Direction
- SGP.Application.Services uses SGP.Application.Responses, so a change to SGP.Application.Responses can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Application.Responses.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→24 SGP.Application.Services uses SGP.Shared.Abstractions✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Services uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Shared.Abstractions.IDateTimeServiceSGP.Application.Services.AuthenticationService→SGP.Shared.Abstractions.IHashServiceSGP.Application.Services.AuthenticationService→SGP.Shared.Abstractions.ITokenClaimsServiceSGP.Application.Services.AuthenticationService→SGP.Shared.Abstractions.IUnitOfWork
- Direction
- SGP.Application.Services uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→25 SGP.Application.Services uses SGP.Application.Interfaces✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Services uses a type in SGP.Application.Interfaces.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Application.Interfaces.IAuthenticationServiceSGP.Application.Services.CidadeService→SGP.Application.Interfaces.ICidadeServiceSGP.Application.Services.EstadoService→SGP.Application.Interfaces.IEstadoServiceSGP.Application.Services.RegiaoService→SGP.Application.Interfaces.IRegiaoService
- Direction
- SGP.Application.Services uses SGP.Application.Interfaces, so a change to SGP.Application.Interfaces can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Application.Interfaces.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→26 SGP.Application.Services uses SGP.Domain.Entities✕
- Connections
- 1 pair of types, where a type in SGP.Application.Services uses a type in SGP.Domain.Entities.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Domain.Entities.Usuario
- Direction
- SGP.Application.Services uses SGP.Domain.Entities, so a change to SGP.Domain.Entities can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Domain.Entities.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→27 SGP.Application.Services uses SGP.Shared.AppSettings✕
- Connections
- 1 pair of types, where a type in SGP.Application.Services uses a type in SGP.Shared.AppSettings.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Shared.AppSettings.AuthOptions
- Direction
- SGP.Application.Services uses SGP.Shared.AppSettings, so a change to SGP.Shared.AppSettings can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Shared.AppSettings.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
33→28 SGP.Application.Services uses SGP.Domain.Repositories✕
- Connections
- 4 pairs of types, where a type in SGP.Application.Services uses a type in SGP.Domain.Repositories.
- The types involved
SGP.Application.Services.AuthenticationService→SGP.Domain.Repositories.IUsuarioRepositorySGP.Application.Services.CidadeService→SGP.Domain.Repositories.ICidadeRepositorySGP.Application.Services.EstadoService→SGP.Domain.Repositories.IEstadoRepositorySGP.Application.Services.RegiaoService→SGP.Domain.Repositories.IRegiaoRepository
- Direction
- SGP.Application.Services uses SGP.Domain.Repositories, so a change to SGP.Domain.Repositories can break SGP.Application.Services, while a change to SGP.Application.Services can't break SGP.Domain.Repositories.
- Position
- Below the diagonal: SGP.Application.Services uses a module listed above it, which is the healthy direction.
34→24 SGP.Infrastructure.Data uses SGP.Shared.Abstractions✕
- Connections
- 1 pair of types, where a type in SGP.Infrastructure.Data uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Infrastructure.Data.UnitOfWork→SGP.Shared.Abstractions.IUnitOfWork
- Direction
- SGP.Infrastructure.Data uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Infrastructure.Data, while a change to SGP.Infrastructure.Data can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Infrastructure.Data uses a module listed above it, which is the healthy direction.
34→29 SGP.Infrastructure.Data uses SGP.Infrastructure.Data.Context✕
- Connections
- 1 pair of types, where a type in SGP.Infrastructure.Data uses a type in SGP.Infrastructure.Data.Context.
- The types involved
SGP.Infrastructure.Data.UnitOfWork→SGP.Infrastructure.Data.Context.SgpContext
- Direction
- SGP.Infrastructure.Data uses SGP.Infrastructure.Data.Context, so a change to SGP.Infrastructure.Data.Context can break SGP.Infrastructure.Data, while a change to SGP.Infrastructure.Data can't break SGP.Infrastructure.Data.Context.
- Position
- Below the diagonal: SGP.Infrastructure.Data uses a module listed above it, which is the healthy direction.
35→24 SGP.Infrastructure.Data.Repositories.Common uses SGP.Shared.Abstractions✕
- Connections
- 2 pairs of types, where a type in SGP.Infrastructure.Data.Repositories.Common uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Infrastructure.Data.Repositories.Common.CachedRepositoryBase→SGP.Shared.Abstractions.ICacheServiceSGP.Infrastructure.Data.Repositories.Common.EfRepository→SGP.Shared.Abstractions.IAsyncRepository
- Direction
- SGP.Infrastructure.Data.Repositories.Common uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Infrastructure.Data.Repositories.Common, while a change to SGP.Infrastructure.Data.Repositories.Common can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories.Common uses a module listed above it, which is the healthy direction.
35→29 SGP.Infrastructure.Data.Repositories.Common uses SGP.Infrastructure.Data.Context✕
- Connections
- 2 pairs of types, where a type in SGP.Infrastructure.Data.Repositories.Common uses a type in SGP.Infrastructure.Data.Context.
- The types involved
SGP.Infrastructure.Data.Repositories.Common.EfRepository→SGP.Infrastructure.Data.Context.SgpContextSGP.Infrastructure.Data.Repositories.Common.RepositoryBase→SGP.Infrastructure.Data.Context.SgpContext
- Direction
- SGP.Infrastructure.Data.Repositories.Common uses SGP.Infrastructure.Data.Context, so a change to SGP.Infrastructure.Data.Context can break SGP.Infrastructure.Data.Repositories.Common, while a change to SGP.Infrastructure.Data.Repositories.Common can't break SGP.Infrastructure.Data.Context.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories.Common uses a module listed above it, which is the healthy direction.
36→4 SGP.Infrastructure.Data.Repositories uses SGP.Domain.ValueObjects✕
- Connections
- 1 pair of types, where a type in SGP.Infrastructure.Data.Repositories uses a type in SGP.Domain.ValueObjects.
- The types involved
SGP.Infrastructure.Data.Repositories.UsuarioRepository→SGP.Domain.ValueObjects.Email
- Direction
- SGP.Infrastructure.Data.Repositories uses SGP.Domain.ValueObjects, so a change to SGP.Domain.ValueObjects can break SGP.Infrastructure.Data.Repositories, while a change to SGP.Infrastructure.Data.Repositories can't break SGP.Domain.ValueObjects.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories uses a module listed above it, which is the healthy direction.
36→26 SGP.Infrastructure.Data.Repositories uses SGP.Domain.Entities✕
- Connections
- 4 pairs of types, where a type in SGP.Infrastructure.Data.Repositories uses a type in SGP.Domain.Entities.
- The types involved
SGP.Infrastructure.Data.Repositories.CidadeRepository→SGP.Domain.Entities.CidadeSGP.Infrastructure.Data.Repositories.EstadoRepository→SGP.Domain.Entities.EstadoSGP.Infrastructure.Data.Repositories.RegiaoRepository→SGP.Domain.Entities.RegiaoSGP.Infrastructure.Data.Repositories.UsuarioRepository→SGP.Domain.Entities.Usuario
- Direction
- SGP.Infrastructure.Data.Repositories uses SGP.Domain.Entities, so a change to SGP.Domain.Entities can break SGP.Infrastructure.Data.Repositories, while a change to SGP.Infrastructure.Data.Repositories can't break SGP.Domain.Entities.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories uses a module listed above it, which is the healthy direction.
36→28 SGP.Infrastructure.Data.Repositories uses SGP.Domain.Repositories✕
- Connections
- 4 pairs of types, where a type in SGP.Infrastructure.Data.Repositories uses a type in SGP.Domain.Repositories.
- The types involved
SGP.Infrastructure.Data.Repositories.CidadeRepository→SGP.Domain.Repositories.ICidadeRepositorySGP.Infrastructure.Data.Repositories.EstadoRepository→SGP.Domain.Repositories.IEstadoRepositorySGP.Infrastructure.Data.Repositories.RegiaoRepository→SGP.Domain.Repositories.IRegiaoRepositorySGP.Infrastructure.Data.Repositories.UsuarioRepository→SGP.Domain.Repositories.IUsuarioRepository
- Direction
- SGP.Infrastructure.Data.Repositories uses SGP.Domain.Repositories, so a change to SGP.Domain.Repositories can break SGP.Infrastructure.Data.Repositories, while a change to SGP.Infrastructure.Data.Repositories can't break SGP.Domain.Repositories.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories uses a module listed above it, which is the healthy direction.
36→29 SGP.Infrastructure.Data.Repositories uses SGP.Infrastructure.Data.Context✕
- Connections
- 4 pairs of types, where a type in SGP.Infrastructure.Data.Repositories uses a type in SGP.Infrastructure.Data.Context.
- The types involved
SGP.Infrastructure.Data.Repositories.CidadeRepository→SGP.Infrastructure.Data.Context.SgpContextSGP.Infrastructure.Data.Repositories.EstadoRepository→SGP.Infrastructure.Data.Context.SgpContextSGP.Infrastructure.Data.Repositories.RegiaoRepository→SGP.Infrastructure.Data.Context.SgpContextSGP.Infrastructure.Data.Repositories.UsuarioRepository→SGP.Infrastructure.Data.Context.SgpContext
- Direction
- SGP.Infrastructure.Data.Repositories uses SGP.Infrastructure.Data.Context, so a change to SGP.Infrastructure.Data.Context can break SGP.Infrastructure.Data.Repositories, while a change to SGP.Infrastructure.Data.Repositories can't break SGP.Infrastructure.Data.Context.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories uses a module listed above it, which is the healthy direction.
36→35 SGP.Infrastructure.Data.Repositories uses SGP.Infrastructure.Data.Repositories.Common✕
- Connections
- 4 pairs of types, where a type in SGP.Infrastructure.Data.Repositories uses a type in SGP.Infrastructure.Data.Repositories.Common.
- The types involved
SGP.Infrastructure.Data.Repositories.CidadeRepository→SGP.Infrastructure.Data.Repositories.Common.RepositoryBaseSGP.Infrastructure.Data.Repositories.EstadoRepository→SGP.Infrastructure.Data.Repositories.Common.RepositoryBaseSGP.Infrastructure.Data.Repositories.RegiaoRepository→SGP.Infrastructure.Data.Repositories.Common.RepositoryBaseSGP.Infrastructure.Data.Repositories.UsuarioRepository→SGP.Infrastructure.Data.Repositories.Common.EfRepository
- Direction
- SGP.Infrastructure.Data.Repositories uses SGP.Infrastructure.Data.Repositories.Common, so a change to SGP.Infrastructure.Data.Repositories.Common can break SGP.Infrastructure.Data.Repositories, while a change to SGP.Infrastructure.Data.Repositories can't break SGP.Infrastructure.Data.Repositories.Common.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories uses a module listed above it, which is the healthy direction.
37→24 SGP.Infrastructure.Data.Repositories.Cached uses SGP.Shared.Abstractions✕
- Connections
- 3 pairs of types, where a type in SGP.Infrastructure.Data.Repositories.Cached uses a type in SGP.Shared.Abstractions.
- The types involved
SGP.Infrastructure.Data.Repositories.Cached.CidadeCachedRepository→SGP.Shared.Abstractions.ICacheServiceSGP.Infrastructure.Data.Repositories.Cached.EstadoCachedRepository→SGP.Shared.Abstractions.ICacheServiceSGP.Infrastructure.Data.Repositories.Cached.RegiaoCachedRepository→SGP.Shared.Abstractions.ICacheService
- Direction
- SGP.Infrastructure.Data.Repositories.Cached uses SGP.Shared.Abstractions, so a change to SGP.Shared.Abstractions can break SGP.Infrastructure.Data.Repositories.Cached, while a change to SGP.Infrastructure.Data.Repositories.Cached can't break SGP.Shared.Abstractions.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories.Cached uses a module listed above it, which is the healthy direction.
37→26 SGP.Infrastructure.Data.Repositories.Cached uses SGP.Domain.Entities✕
- Connections
- 3 pairs of types, where a type in SGP.Infrastructure.Data.Repositories.Cached uses a type in SGP.Domain.Entities.
- The types involved
SGP.Infrastructure.Data.Repositories.Cached.CidadeCachedRepository→SGP.Domain.Entities.CidadeSGP.Infrastructure.Data.Repositories.Cached.EstadoCachedRepository→SGP.Domain.Entities.EstadoSGP.Infrastructure.Data.Repositories.Cached.RegiaoCachedRepository→SGP.Domain.Entities.Regiao
- Direction
- SGP.Infrastructure.Data.Repositories.Cached uses SGP.Domain.Entities, so a change to SGP.Domain.Entities can break SGP.Infrastructure.Data.Repositories.Cached, while a change to SGP.Infrastructure.Data.Repositories.Cached can't break SGP.Domain.Entities.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories.Cached uses a module listed above it, which is the healthy direction.
37→28 SGP.Infrastructure.Data.Repositories.Cached uses SGP.Domain.Repositories✕
- Connections
- 3 pairs of types, where a type in SGP.Infrastructure.Data.Repositories.Cached uses a type in SGP.Domain.Repositories.
- The types involved
SGP.Infrastructure.Data.Repositories.Cached.CidadeCachedRepository→SGP.Domain.Repositories.ICidadeRepositorySGP.Infrastructure.Data.Repositories.Cached.EstadoCachedRepository→SGP.Domain.Repositories.IEstadoRepositorySGP.Infrastructure.Data.Repositories.Cached.RegiaoCachedRepository→SGP.Domain.Repositories.IRegiaoRepository
- Direction
- SGP.Infrastructure.Data.Repositories.Cached uses SGP.Domain.Repositories, so a change to SGP.Domain.Repositories can break SGP.Infrastructure.Data.Repositories.Cached, while a change to SGP.Infrastructure.Data.Repositories.Cached can't break SGP.Domain.Repositories.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories.Cached uses a module listed above it, which is the healthy direction.
37→35 SGP.Infrastructure.Data.Repositories.Cached uses SGP.Infrastructure.Data.Repositories.Common✕
- Connections
- 3 pairs of types, where a type in SGP.Infrastructure.Data.Repositories.Cached uses a type in SGP.Infrastructure.Data.Repositories.Common.
- The types involved
SGP.Infrastructure.Data.Repositories.Cached.CidadeCachedRepository→SGP.Infrastructure.Data.Repositories.Common.CachedRepositoryBaseSGP.Infrastructure.Data.Repositories.Cached.EstadoCachedRepository→SGP.Infrastructure.Data.Repositories.Common.CachedRepositoryBaseSGP.Infrastructure.Data.Repositories.Cached.RegiaoCachedRepository→SGP.Infrastructure.Data.Repositories.Common.CachedRepositoryBase
- Direction
- SGP.Infrastructure.Data.Repositories.Cached uses SGP.Infrastructure.Data.Repositories.Common, so a change to SGP.Infrastructure.Data.Repositories.Common can break SGP.Infrastructure.Data.Repositories.Cached, while a change to SGP.Infrastructure.Data.Repositories.Cached can't break SGP.Infrastructure.Data.Repositories.Common.
- Position
- Below the diagonal: SGP.Infrastructure.Data.Repositories.Cached 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 — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 25 | High / Critical |
| A07:2025 — Authentication Failures | 20 | High / Critical |
| A02:2025 — Security Misconfiguration | 5 | High / Critical |
Roadmap
Immediately resolve the nine leaked secrets in configuration files to secure the application. Strengthen domain integrity by enforcing strongly-typed identifiers, referencing aggregates via IDs rather than object references, and ensuring every aggregate has a single entry point that prevents invalid states. Finally, document these architectural decisions and design choices to maintain clarity and consistency for the team.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 9 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4), REDACTED (2), REDACTED (2). | +5.7 pts | Low | REDACTED Scanning |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +2.0 pts | Low | ADR Quality |
| Reference other aggregates by their strongly-typed id, never by object reference, so each aggregate stays an independent consistency boundary. | +2.9 pts | Medium | Aggregate boundaries |
| Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. | +1.2 pts | Low | Documentation Quality |
| Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure. | +2.2 pts | Medium | Constructible invalid state |
| Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs. | +2.2 pts | Medium | Strongly-typed ids |
| 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. | +2.2 pts | Medium | Architecture documentation |
| Add `AddStandardResilienceHandler()` (or a Polly policy and an explicit timeout) to each client registration flagged here, so a flaky dependency can't take the app down. | +2.2 pts | Medium | Outbound HTTP resilience |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 2.3 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.5 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 3.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 3.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 3.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 6.2 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.2 | Mixed | Secrets (history): REDACTED: REDACTED |
| REDACTED | 7.2 | Mixed | Secrets (history): REDACTED: REDACTED |
| Directory.Packages.props | 7.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Directory.Build.props | 7.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| src/SGP.Application/SGP.Application.csproj | 8.0 | Near-clean | Coupling: Layer violation: Application → Infrastructure |
| src/SGP.Application/ConfigureServices.cs | 8.2 | Near-clean | Explicit Debt: CoverageExclusion |
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. 82 of 86 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 86 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, 132 of 148 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
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT MEASURED: the test run produced no results for any test tier, so no test ever ran and flakiness could not be exercised. The cause could not be attributed, so it is excluded from the score rather than read as an absence of tests.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: tests/SGP.Tests/SGP.Tests.csproj : error NU1109: Detected package downgrade: System.IdentityModel.Tokens.Jwt from 8.19.2 to centrally defined 8.16.0. Update the centrally managed package version to a higher version. [/tmp/codehealth-iso-c98be5ce7….
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 811 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- D17 Explicit Debt — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The C# workspace loaded this repository's projects but reported a load failure, and the dead-code reference search is unreliable over a graph that did not load cleanly, so it was skipped. The other debt markers on this row were read; dead symbols were not, and their absence from the score is not a finding that the code has none. First load diagnostic: Failure: Cannot open project 'docker-compose.dcproj' because the file extension '.dcproj' is not associated with a language.
- D18 Solution Shape — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The build did not finish within its budget on this run; structural metrics are reported, build/warning status is unknown.
- D22 Internal API Consistency — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The loaded project set declares no packable project and no `.Contracts` project, so there is no intentionally-exposed surface for API consistency to be judged over.
- D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs`, `src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs`, `src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs`, `src/SGP.Application/Requests/CidadeRequests/ObterTodosPorUfRequest.cs`, `src/SGP.Application/Requests/EstadoRequests/ObterTodosPorRegiaoRequest.cs`, … (+33 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- D39 IL Efficiency — 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. `dotnet build` exited 1 with a compiler/MSBuild diagnostic, so there were no assemblies to read IL from. The build itself is D18's row, with the ask; nothing further is charged here.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — sgp-redis Pulling sgp-sql-server Pulling sgp-webapi Pulling sgp-webapi Warning Get "https://registry-1.docker.io/v2/": Forbidden sgp-redis Error Get "https://registry-1.docker.io/v2/": Forbidden sgp-sql-server Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: sgp-sql-server Pulling sgp-redis Pulling sgp-webapi Pulling sgp-redis Error Get "https://registry-1.docker.io/v2/": Forbidden sgp-webapi Warning context canceled sgp-sql-server Error context canceled WARNING: Some service image(s) must be built from source by running: docker compose build sgp-webapi Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
- X2 Cancellation propagation — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 3 further occurrence(s) are not listed individually; the score already reflects all 43.
- Package restore incomplete — third-party types were unresolved in part of the solution — NuGet restore did not complete for src/SGP.PublicApi/SGP.PublicApi.csproj, tests/SGP.Tests/SGP.Tests.csproj, so those projects were analysed with framework references only: every check keyed on a third-party type saw an error type there and reported nothing. Findings on those projects are a lower bound; run `dotnet restore` on them and rescan.
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.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- 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").
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- 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.
- C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
1 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with AuthenticationService.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
6 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
What to do
- Resolve the 1 Layer violation finding(s) in Coupling — start with SGP.Application.csproj. — One of this dimension's main actionable groups (1 issue-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 16 classes have LCOM4 above 3.
D9 · Test Distribution
62 test methods: 62 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 0 zero-assertion, 1 mock references across 62 tests.
D13 · REDACTED Scanning
8 secret(s) detected.
What to do
- Resolve the 9 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (9 issue-level).
- Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 7 packages use a banned license. ★ DEPTH: every package graded here is one this repository's MSBuild projects declare as a direct `PackageReference` (62 declared), and nothing beyond them was reached — this is the DECLARATION-SITE set, NOT the transitive closure. .NET has no lockfile a checkout is guaranteed to carry and this pass grades an unrestored tree, so a banned licence that only a direct dependency's OWN dependencies pull in is outside this verdict, exactly as the JVM arm's declaration-site verdict is.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
9 deducted debt markers + unmeasured dead symbols across 2754 LoC in the .NET projects (1.2/KLoC) → score 7.7. Dead code not measured: the solution did not load cleanly, so the reference search was skipped.
What to do
- Resolve the 2 NoWarnInCsproj finding(s) in Explicit Debt — start with Directory.Packages.props, Directory.Build.props. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 7 CoverageExclusion finding(s) in Explicit Debt — start with ConfigureServices.cs (3), CacheExtensions.cs, DbContextExtensions.cs. — One of this dimension's main actionable groups (7 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
6 projects, 139 source files, 4454 hand-written lines of code (2754 production / 1700 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 744 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 14 inter-project edges (build status unknown — did not finish).
D19 · Documentation Quality
The repository's single README is a comprehensive overview of the project (Sistema Gerenciador de Pedidos/SGP) with badges for CI/CD, SonarCloud quality metrics, and a license. It also links to an external LICENSE file but does not itself state what the SGP is or how to use it; this leaves the README's own scope unexplained by the document. The visible content is clipped mid-sentence, so any sections named in the outline (Visão geral; Recursos principais; Pré-requisitos; Executando localmente; ...) are present and must not be flagged as missing.
What to do
- Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
1 naming inconsistencies across 200 sampled symbols.
D24 · Comment Value
42 valuable / 2 redundant across 200 sampled comments; 2 shown with locations.
What to do
- Resolve the 2 redundant comment finding(s) in Comment Value — start with AuthenticationControllerTests.cs, LazyValidatorTests.cs. — One of this dimension's main actionable groups (2 recommendation-level).
D26 · Project Cohesion
0 of 6 projects flagged as possibly oversized/incoherent.
D27 · Navigability
96 % of calls cross a namespace and 4 % 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)
10 finding(s): 0 critical, 10 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 (5), REDACTED, REDACTED. — One of this dimension's main actionable groups (8 issue-level).
- Resolve the 2 REDACTED finding(s) in Secrets (history) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
25 finding(s): 0 critical, 19 high, 6 medium, 0 low. 16 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 38 file(s) — `src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs` (line 8), `src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs` (line 8), `src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs` (line 7), `src/SGP.Application/Requests/CidadeRequests/ObterTodosPorUfRequest.cs` (line 7), `src/SGP.Application/Requests/EstadoRequests/ObterTodosPorRegiaoRequest.cs` (line 7), … (+33 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. In 32 of those file(s) — `src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs`, `src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs`, `src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs`, `src/SGP.Application/Requests/CidadeRequests/ObterTodosPorUfRequest.cs`, `src/SGP.Application/Requests/EstadoRequests/ObterTodosPorRegiaoRequest.cs`, … (+27 more) — the break is a C# primary constructor, which semgrep's grammar cannot parse and which hides the type from every rule scoped to it; those files were re-scanned from a shadow copy with the constructor's parameter list blanked (line and column preserving), which restores the type to the rules, and 0 additional row(s) came from that pass. Only the header's own parameter list is unread in them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 16 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (16 issue-level, 0 of them charged here).
D31 · IaC & Container Security
5 finding(s): 0 critical, 2 high, 2 medium, 1 low.
What to do
- Resolve the 2 High IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 2 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 9 of the 110 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
Strongest change-coupling: CidadeService.cs↔EstadoService.cs 80%; Usuario.cs↔EntityTypeBuilderExtensions.cs 54%
What to do
- Resolve the 2 Change coupling finding(s) in Change Coupling — start with CidadeService.cs, Usuario.cs. — One of this dimension's main actionable groups (2 warning-level).
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 6 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX1 · Captive dependencies
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
- `SGP.Application` is a Application project but references `SGP.Infrastructure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one. — src/SGP.Application/SGP.Application.csproj:38
What to do
- Keep dependencies pointing inward: domain/application define interfaces, infrastructure/web implement them (Dependency Inversion).
AX5 · Architecture & structure
AX6 · Interface segregation
AX8 · Test isolation
C1 · Data Protection
What to do
- Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
C2 · Access Controls
C4 · Data Retention
- A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a scheduled purge / cleanup job (PurgeOlderThan / CleanupJob), a documented retention period / data-expiry.
What to do
- Complete the data-lifecycle story: an expiry limit (a declared maximum age for the stored data — a retention-age setting, or a store-level TTL where your storage offers one), a scheduled purge/cleanup job that enforces it, and a documented retention period covering the personal data.
DM1 · Aggregate boundaries
- `Token` references the aggregate root `Usuario` directly (via `Usuario`) — hold its `UsuarioId` instead. — src/SGP.Domain/Entities/Token.cs:50
- `Usuario` references the aggregate root `Token` directly (via `_tokens`) — hold its `TokenId` instead. — src/SGP.Domain/Entities/Usuario.cs:10
- `Usuario` references the aggregate root `Token` directly (via `Tokens`) — hold its `TokenId` instead. — src/SGP.Domain/Entities/Usuario.cs:30
What to do
- Reference other aggregates by their strongly-typed id, never by object reference, so each aggregate stays an independent consistency boundary.
DM10 · One transaction, one aggregate
DM11 · Constructible invalid state
- `Cidade`'s public constructor takes `nome`, `ibge` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Cidade` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — src/SGP.Domain/Entities/Cidade.cs:8
- `Estado`'s public constructor takes `nome`, `uf` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Estado` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — src/SGP.Domain/Entities/Estado.cs:9
- `Regiao`'s public constructor takes `nome` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Regiao` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — src/SGP.Domain/Entities/Regiao.cs:8
- `Token`'s public constructor takes `acesso`, `atualizacao` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Token` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — src/SGP.Domain/Entities/Token.cs:8
- `Usuario`'s public constructor takes `nome`, `hashSenha` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule` or `Requires.` — a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type's OWN static members were read, and only names beginning `Create`, `Of`, `From`, `New` or `Build` — one inherited from a base type, one on a companion builder, or one called `Parse`, `Make` or `Rehydrate` is not seen. If either exists, this row is wrong. If neither does, a caller can build a `Usuario` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — src/SGP.Domain/Entities/Usuario.cs:12
What to do
- Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
DM12 · Ambient inputs in the domain
DM2 · Strongly-typed ids
- `Cidade.EstadoId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — src/SGP.Domain/Entities/Cidade.cs:19
- `Estado.RegiaoId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — src/SGP.Domain/Entities/Estado.cs:20
- `Token.UsuarioId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — src/SGP.Domain/Entities/Token.cs:23
What to do
- Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM4 · Rich vs anemic model
- `Cidade` is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/SGP.Domain/Entities/Cidade.cs:6
- `Estado` is an aggregate/entity with 5 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/SGP.Domain/Entities/Estado.cs:7
- `Regiao` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/SGP.Domain/Entities/Regiao.cs:6
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
DM6 · Domain ↔ infrastructure boundary
DM7 · Repository granularity
DM8 · Value-object opportunities
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 6 of 6 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
What to do
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment is orchestrated by compose, 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.
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
- `builder .Services .AddHttpClient()` 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/SGP.PublicApi/Program.cs:41
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
- This repository evolves its schema with versioned migrations, but `EnsureCreated()` here builds a schema straight from the model instead — with no migrations-history row, so a database it creates can't be upgraded by `Migrate()` afterwards and the two paths can disagree about the shape. Apply the migrations here (`Migrate()` / a migrations bundle) rather than creating the schema. — src/SGP.PublicApi/Program.cs:145
What to do
- Replace each EnsureCreated() in production code with the migrations the rest of the repository already uses (`Database.Migrate()` or a migrations bundle), so every database gets its schema from the one versioned path.
PF3 · Async & latency hygiene
S1 · Web-Security Posture
- None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
- This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves. — src/SGP.PublicApi/Program.cs:31
What to do
- Add security response headers (Content-Security-Policy first, then Strict-Transport-Security, X-Content-Type-Options and a frame policy) — defense in depth, even when a reverse proxy could set them.
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
- `context` is never created by `RepositoryBase` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 34). Its declared type `SgpContext` is an interface, so the instance came from whoever resolved it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — src/SGP.Infrastructure/Data/Repositories/Common/RepositoryBase.cs:34
- `context` is never created by `UnitOfWork` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 58). Its declared type `SgpContext` is an interface, so the instance came from whoever resolved it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — src/SGP.Infrastructure/Data/UnitOfWork.cs:58
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 1/42 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
- No CancellationToken parameter — this work can't be stopped early once started. (×39) — src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs:20, src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs:16, src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs:11, …
What to do
- Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X26 · Unsynchronised callback handoff
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X32 · Type resolved by simple name across every loaded assembly
X4 · Structured logging
X5 · Nullable reference types
- 0/5 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 | 62% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 78% | Strong | Solid. |
| Maturity | 54% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 43% | Weak — gated by D13, P7, P8 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 69% | Adequate — gated by D28 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 46% | Weak — gated by DM1, DM2, DM11 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 2 check(s) recorded observations but carry no score
- D36 Supply-chain Provenance & Signing — 3 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 — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
Not evidenced — 3 control(s) we could not find positive evidence for
- C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) 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.
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 40 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.
- AX2 Stateful singletons — no singleton implementations detected
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — sgp-redis Pulling sgp-sql-server Pulling sgp-webapi Pulling sgp-webapi Warning Get "https://registry-1.docker.io/v2/": Forbidden sgp-redis Error Get "https://registry-1.docker.io/v2/": Forbidden sgp-sql-server Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: sgp-sql-server Pulling sgp-redis Pulling sgp-webapi Pulling sgp-redis Error Get "https://registry-1.docker.io/v2/": Forbidden sgp-webapi Warning context canceled sgp-sql-server Error context canceled WARNING: Some service image(s) must be built from source by running: docker compose build sgp-webapi Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- D11 Test Reliability — Test reliability not measured — no test run produced results
- D12 Dependency Hygiene — Dependency hygiene not measured
- D16 Bus Factor — single-contributor 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,754 production LoC in the .NET projects) — bounded contexts are not needed at this size No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Aggregate roots were found in only one source directory (SGP.Domain), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D25 ADR Conformance — no ADRs to check
- D30 Dependency Vulnerabilities — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan
- D32 Data Compliance (PII/GDPR) — 38 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — IL not measured — the target did not build
- 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: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- ED1 Event-Driven — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 3 integration event(s); a message-bus package
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- 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.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- 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 — 47 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Aggregate holds a reference to another aggregate: Token.Usuario src/SGP.Domain/Entities/Token.cs:50
- Aggregate holds a reference to another aggregate: Usuario._tokens src/SGP.Domain/Entities/Usuario.cs:10
- Aggregate holds a reference to another aggregate: Usuario.Tokens src/SGP.Domain/Entities/Usuario.cs:30
- NoWarnInCsproj Directory.Packages.props:10
- NoWarnInCsproj Directory.Build.props:18
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Dependency-rule violation: SGP.Application (Application) → SGP.Infrastructure (Infrastructure) src/SGP.Application/SGP.Application.csproj:38
- REDACTED
- REDACTED
- REDACTED
- Layer violation: Application → Infrastructure src/SGP.Application/SGP.Application.csproj:38
Serious — 75 finding(s)
- Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs:20
- Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs:16
- Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs:11
- Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/CidadeRequests/ObterTodosPorUfRequest.cs:11
- Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/EstadoRequests/ObterTodosPorRegiaoRequest.cs:11
- Async method without CancellationToken: ValidateAsync src/SGP.Application/Requests/GetByIdRequest.cs:18
- Async method without CancellationToken: AuthenticateAsync src/SGP.Application/Services/AuthenticationService.cs:40
- Async method without CancellationToken: RefreshTokenAsync src/SGP.Application/Services/AuthenticationService.cs:86
- Async method without CancellationToken: ObterPorIbgeAsync src/SGP.Application/Services/CidadeService.cs:16
- Async method without CancellationToken: ObterTodosPorUfAsync src/SGP.Application/Services/CidadeService.cs:28
- Async method without CancellationToken: ObterTodosAsync src/SGP.Application/Services/EstadoService.cs:16
- Async method without CancellationToken: ObterTodosPorRegiaoAsync src/SGP.Application/Services/EstadoService.cs:22
- Async method without CancellationToken: ObterTodosAsync src/SGP.Application/Services/RegiaoService.cs:13
- Async method without CancellationToken: ValidateAsync src/SGP.Shared/LazyValidator.cs:21
- Async method without CancellationToken: EnsureSeedDataAsync src/SGP.Infrastructure/Data/Context/SgpContextSeed.cs:38
- Async method without CancellationToken: AddEntitiesIfNotExistsAsync src/SGP.Infrastructure/Data/Context/SgpContextSeed.cs:56
- Async method without CancellationToken: ObterPorIbgeAsync src/SGP.Infrastructure/Data/Repositories/Cached/CidadeCachedRepository.cs:17
- Async method without CancellationToken: ObterTodosPorUfAsync src/SGP.Infrastructure/Data/Repositories/Cached/CidadeCachedRepository.cs:23
- Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/Cached/EstadoCachedRepository.cs:17
- Async method without CancellationToken: ObterTodosPorRegiaoAsync src/SGP.Infrastructure/Data/Repositories/Cached/EstadoCachedRepository.cs:20
- Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/Cached/RegiaoCachedRepository.cs:16
- Async method without CancellationToken: ObterPorIbgeAsync src/SGP.Infrastructure/Data/Repositories/CidadeRepository.cs:14
- Async method without CancellationToken: ObterTodosPorUfAsync src/SGP.Infrastructure/Data/Repositories/CidadeRepository.cs:21
- Async method without CancellationToken: GetByIdAsync src/SGP.Infrastructure/Data/Repositories/Common/EfRepository.cs:31
- Async method without CancellationToken: ObterTodosAsync src/SGP.Infrastructure/Data/Repositories/EstadoRepository.cs:14
- CoverageExclusion src/SGP.Application/ConfigureServices.cs:11
- CoverageExclusion src/SGP.Infrastructure/ConfigureServices.cs:12
- CoverageExclusion src/SGP.Shared/ConfigureServices.cs:8
- CoverageExclusion src/SGP.PublicApi/Extensions/CacheExtensions.cs:10
- CoverageExclusion src/SGP.PublicApi/Extensions/DbContextExtensions.cs:19
- CoverageExclusion src/SGP.PublicApi/Extensions/JwtBearerExtensions.cs:14
- CoverageExclusion src/SGP.PublicApi/Extensions/SwaggerExtensions.cs:17
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Constructible in an invalid state: Cidade src/SGP.Domain/Entities/Cidade.cs:8
- Constructible in an invalid state: Estado src/SGP.Domain/Entities/Estado.cs:9
- Constructible in an invalid state: Regiao src/SGP.Domain/Entities/Regiao.cs:8
- Constructible in an invalid state: Token src/SGP.Domain/Entities/Token.cs:8
- Constructible in an invalid state: Usuario src/SGP.Domain/Entities/Usuario.cs:12
- Anemic entity: Cidade src/SGP.Domain/Entities/Cidade.cs:6
- Anemic entity: Estado src/SGP.Domain/Entities/Estado.cs:7
- Anemic entity: Regiao src/SGP.Domain/Entities/Regiao.cs:6
- REDACTED
- REDACTED
- Change coupling: CidadeService.cs ↔ EstadoService.cs src/SGP.Application/Services/CidadeService.cs:1
- Change coupling: Usuario.cs ↔ EntityTypeBuilderExtensions.cs src/SGP.Domain/Entities/Usuario.cs:1
- REDACTED
- REDACTED
- Disposes a dependency it does not own src/SGP.Infrastructure/Data/Repositories/Common/RepositoryBase.cs:34
- Disposes a dependency it does not own src/SGP.Infrastructure/Data/UnitOfWork.cs:58
- REDACTED
- REDACTED
- Duplicated block (5 lines × 2) src/SGP.Application/Services/AuthenticationService.cs:69
- Coverage not measured — test suite did not build
- Coverage collected but not gated
- Outbound HTTP without resilience src/SGP.PublicApi/Program.cs:41
- Schema created with EnsureCreated() outside the migrations src/SGP.PublicApi/Program.cs:145
Minor — 20 finding(s)
- Primitive id on a domain type: Cidade.EstadoId src/SGP.Domain/Entities/Cidade.cs:19
- Primitive id on a domain type: Estado.RegiaoId src/SGP.Domain/Entities/Estado.cs:20
- Primitive id on a domain type: Token.UsuarioId src/SGP.Domain/Entities/Token.cs:23
- redundant comment tests/SGP.Tests/IntegrationTests/Controllers/AuthenticationControllerTests.cs:54
- redundant comment tests/SGP.Tests/UnitTests/Shared/LazyValidatorTests.cs:49
- No security response headers detected
- No security response headers detected src/SGP.PublicApi/Program.cs:31
- Partial data-retention evidence
- Documentation: no project overview README.md
- No ADRs found
- Migration classes use inconsistent naming prefixes. One uses 'Inicial' (Initial) and the other uses 'EF_Update'. There is no consistent pattern (e.g., always using 'Migration_' or always using descriptive action nouns) for the migration class names.
- REDACTED
- REDACTED
- REDACTED
- No ADRs
- No architecture diagram/doc
- No rollback/health safety
- No changelog
- Not all async methods take a CancellationToken
- Nullable reference types not enabled everywhere
Minor — 6 finding(s)
- XML-doc coverage: SGP.Application src/SGP.Application/SGP.Application.csproj
- XML-doc coverage: SGP.Domain src/SGP.Domain/SGP.Domain.csproj
- XML-doc coverage: SGP.Shared src/SGP.Shared/SGP.Shared.csproj
- XML-doc coverage: SGP.Infrastructure src/SGP.Infrastructure/SGP.Infrastructure.csproj
- XML-doc coverage: SGP.PublicApi src/SGP.PublicApi/SGP.PublicApi.csproj
- Mock framework: NSubstitute
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-f3429dd8f6cf457ab80bb7f1c6f7ae5d/history.json --exit-code 0 --source . | 18 | 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-f3429dd8f6cf457ab80bb7f1c6f7ae5d/tree.json --exit-code 0 --source . | 3 | 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 . | 25 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | nuget | — | nuget: not applicable — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan | 0 | — |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 5 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 38 file(s) — `src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs`, `src/SGP.Application/Requests/AuthenticationRequests/RefreshTokenRequest.cs`, `src/SGP.Application/Requests/CidadeRequests/ObterPorIbgeRequest.cs`, `src/SGP.Application/Requests/CidadeRequests/ObterTodosPorUfRequest.cs`, `src/SGP.Application/Requests/EstadoRequests/ObterTodosPorRegiaoRequest.cs`, … (+33 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | 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)
- LogInRequest.Email src/SGP.Application/Requests/AuthenticationRequests/LogInRequest.cs:13
- Usuario.Email src/SGP.Domain/Entities/Usuario.cs:24