Executive summary
CollatzConjecture/nestjs-clean-architecture-postgres scores 39 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 22 and is rated Critical. Its CI/CD gates dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 3 Deprecated finding(s) in Dependency Hygiene and to resolve the 3 Outdated (npm) finding(s) in Dependency Hygiene, and if Production Readiness rose to 70, the score would rise from 39 to about 54.
35 findings are critical: 26 in Dependency Vulnerabilities, three in IaC & Container Security, two in Dependency Hygiene, two in Web-Security Posture, one in Circular Imports and one in Static Analysis (SAST).
Watchdog couldn't measure 5 dimensions in this code, among them Internal API Consistency, Navigability and Structured logging, so they are left out of the score. The product code is 4,261 lines, which would take an estimated 0.1 person-years, around €7,500, to rebuild.
If Production Readiness rose from 22 to 70, the lowest score rated Strong, the score would rise from 39 to about 54.
New since the last survey: 12 findings
- Dependency Hygiene · Deprecated: prom-client package.json
- Dependency Hygiene · Deprecated: uuid package.json
- Dependency Hygiene · Deprecated: eslint package.json
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Large Files · src/application/services/auth.service.ts: 684 lines of code src/application/services/auth.service.ts
- Web-Security Posture · TLS certificate validation disabled src/infrastructure/database/database.providers.ts
- Exception handling · Swallowed exception (empty catch) src/application/services/auth.service.ts
- Outbound HTTP resilience · Outbound HTTP without resilience src/application/services/auth.service.ts
- Outbound HTTP resilience · Outbound HTTP without resilience src/application/services/auth.service.ts
- Outbound HTTP resilience · Outbound HTTP without resilience src/application/services/mobile-token-validation.service.ts
- Outbound HTTP resilience · Outbound HTTP without resilience src/application/services/mobile-token-validation.service.ts
Fixed since the last survey: 2 findings
- Outbound HTTP resilience · Outbound HTTP without resilience src/application/services/auth.service.ts
- Outbound HTTP resilience · Outbound HTTP without resilience src/application/services/mobile-token-validation.service.ts
Rebuild cost: about €7,500 · Estimate
| Cost to rebuild | €2,500 to €12,000, for 41 to 131 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 39. 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: 4,261 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 api.dto.auth.change-password_dto | 2 api.dto.auth.login-auth_dto | 3 api.dto.auth.mobile-apple-auth_dto | 4 api.dto.auth.mobile-google-auth_dto | 5 api.dto.auth.refresh-token_dto | 6 api.dto.auth.register-auth_dto | 7 api.dto.common.api-response_dto | 8 api.dto.create-profile_dto | 9 api.dto.update-profile_dto | 10 application.auth.command.create-apple-auth-user_command | 11 application.services.apple-oauth-config_service | 12 application.services.logger_service | 13 domain.entities.Auth | 14 domain.entities.Profile | 15 domain.entities.enums.role_enum | 16 infrastructure.entities.base.soft-deletable_entity | 17 application.auth.command.create-auth-user_command | 18 application.services.mobile-oauth-config_service | 19 application.services.response_service | 20 domain.interfaces.repositories.auth-repository_interface | 21 domain.interfaces.repositories.profile-repository_interface | 22 domain.services.auth-domain_service | 23 domain.services.profile-domain_service | 24 infrastructure.entities.profile_entity | 25 api.controllers.hello_controller | 26 application.auth.command.handler.create-apple-auth-user_handler | 27 application.auth.command.handler.create-auth-user_handler | 28 application.auth.command.handler.create-google-auth-user_handler | 29 application.auth.command.handler.delete-auth-user_handler | 30 application.profile.command.handler.create-profile_handler | 31 application.services.apple-token-validation_service | 32 application.services.jwks-token-validation_service | 33 application.services.profile_service | 34 infrastructure.entities.auth_entity | 35 infrastructure.repository.profile_repository | 36 api.controllers.profile_controller | 37 application.services.mobile-token-validation_service | 38 infrastructure.repository.auth_repository | 39 application.services.auth_service | 40 api.controllers.auth_controller |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 api.dto.auth.change-password_dto | ||||||||||||||||||||||||||||||||||||||||
| 2 api.dto.auth.login-auth_dto | ||||||||||||||||||||||||||||||||||||||||
| 3 api.dto.auth.mobile-apple-auth_dto | ||||||||||||||||||||||||||||||||||||||||
| 4 api.dto.auth.mobile-google-auth_dto | ||||||||||||||||||||||||||||||||||||||||
| 5 api.dto.auth.refresh-token_dto | ||||||||||||||||||||||||||||||||||||||||
| 6 api.dto.auth.register-auth_dto | ||||||||||||||||||||||||||||||||||||||||
| 7 api.dto.common.api-response_dto | ||||||||||||||||||||||||||||||||||||||||
| 8 api.dto.create-profile_dto | ||||||||||||||||||||||||||||||||||||||||
| 9 api.dto.update-profile_dto | ||||||||||||||||||||||||||||||||||||||||
| 10 application.auth.command.create-apple-auth-user_command | ||||||||||||||||||||||||||||||||||||||||
| 11 application.services.apple-oauth-config_service | ||||||||||||||||||||||||||||||||||||||||
| 12 application.services.logger_service | ||||||||||||||||||||||||||||||||||||||||
| 13 domain.entities.Auth | ||||||||||||||||||||||||||||||||||||||||
| 14 domain.entities.Profile | ||||||||||||||||||||||||||||||||||||||||
| 15 domain.entities.enums.role_enum | ||||||||||||||||||||||||||||||||||||||||
| 16 infrastructure.entities.base.soft-deletable_entity | ||||||||||||||||||||||||||||||||||||||||
| 17 application.auth.command.create-auth-user_command | 1 | |||||||||||||||||||||||||||||||||||||||
| 18 application.services.mobile-oauth-config_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 application.services.response_service | 4 | |||||||||||||||||||||||||||||||||||||||
| 20 domain.interfaces.repositories.auth-repository_interface | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 domain.interfaces.repositories.profile-repository_interface | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 22 domain.services.auth-domain_service | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 23 domain.services.profile-domain_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 infrastructure.entities.profile_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 25 api.controllers.hello_controller | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 26 application.auth.command.handler.create-apple-auth-user_handler | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 27 application.auth.command.handler.create-auth-user_handler | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 28 application.auth.command.handler.create-google-auth-user_handler | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 29 application.auth.command.handler.delete-auth-user_handler | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 30 application.profile.command.handler.create-profile_handler | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 31 application.services.apple-token-validation_service | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 32 application.services.jwks-token-validation_service | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 33 application.services.profile_service | 1 | 1 | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||
| 34 infrastructure.entities.auth_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 35 infrastructure.repository.profile_repository | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 36 api.controllers.profile_controller | 1 | 1 | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||
| 37 application.services.mobile-token-validation_service | 1 | 1 | 1 | 2 | ||||||||||||||||||||||||||||||||||||
| 38 infrastructure.repository.auth_repository | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 39 application.services.auth_service | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 40 api.controllers.auth_controller | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
17→6 application.auth.command.create-auth-user_command uses api.dto.auth.register-auth_dto✕
- Connections
- 1 pair of types, where a type in application.auth.command.create-auth-user_command uses a type in api.dto.auth.register-auth_dto.
- The types involved
src.application.auth.command.create-auth-user_command.CreateAuthUserCommand→src.api.dto.auth.register-auth_dto.RegisterAuthDto
- Direction
- application.auth.command.create-auth-user_command uses api.dto.auth.register-auth_dto, so a change to api.dto.auth.register-auth_dto can break application.auth.command.create-auth-user_command, while a change to application.auth.command.create-auth-user_command can't break api.dto.auth.register-auth_dto.
- Position
- Below the diagonal: application.auth.command.create-auth-user_command uses a module listed above it, which is the healthy direction.
18→12 application.services.mobile-oauth-config_service uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.services.mobile-oauth-config_service uses a type in application.services.logger_service.
- The types involved
src.application.services.mobile-oauth-config_service.MobileOAuthConfigService→src.application.services.logger_service.LoggerService
- Direction
- application.services.mobile-oauth-config_service uses application.services.logger_service, so a change to application.services.logger_service can break application.services.mobile-oauth-config_service, while a change to application.services.mobile-oauth-config_service can't break application.services.logger_service.
- Position
- Below the diagonal: application.services.mobile-oauth-config_service uses a module listed above it, which is the healthy direction.
19→7 application.services.response_service uses api.dto.common.api-response_dto✕
- Connections
- 4 pairs of types, where a type in application.services.response_service uses a type in api.dto.common.api-response_dto.
- The types involved
src.application.services.response_service.ResponseService→src.api.dto.common.api-response_dto.ApiResponsesrc.application.services.response_service.ResponseService→src.api.dto.common.api-response_dto.ErrorResponseDtosrc.application.services.response_service.ResponseService→src.api.dto.common.api-response_dto.PaginatedResponseDtosrc.application.services.response_service.ResponseService→src.api.dto.common.api-response_dto.SuccessResponseDto
- Direction
- application.services.response_service uses api.dto.common.api-response_dto, so a change to api.dto.common.api-response_dto can break application.services.response_service, while a change to application.services.response_service can't break api.dto.common.api-response_dto.
- Position
- Below the diagonal: application.services.response_service uses a module listed above it, which is the healthy direction.
20→13 domain.interfaces.repositories.auth-repository_interface uses domain.entities.Auth✕
- Connections
- 1 pair of types, where a type in domain.interfaces.repositories.auth-repository_interface uses a type in domain.entities.Auth.
- The types involved
src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository→src.domain.entities.Auth.AuthUser
- Direction
- domain.interfaces.repositories.auth-repository_interface uses domain.entities.Auth, so a change to domain.entities.Auth can break domain.interfaces.repositories.auth-repository_interface, while a change to domain.interfaces.repositories.auth-repository_interface can't break domain.entities.Auth.
- Position
- Below the diagonal: domain.interfaces.repositories.auth-repository_interface uses a module listed above it, which is the healthy direction.
21→14 domain.interfaces.repositories.profile-repository_interface uses domain.entities.Profile✕
- Connections
- 1 pair of types, where a type in domain.interfaces.repositories.profile-repository_interface uses a type in domain.entities.Profile.
- The types involved
src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository→src.domain.entities.Profile.Profile
- Direction
- domain.interfaces.repositories.profile-repository_interface uses domain.entities.Profile, so a change to domain.entities.Profile can break domain.interfaces.repositories.profile-repository_interface, while a change to domain.interfaces.repositories.profile-repository_interface can't break domain.entities.Profile.
- Position
- Below the diagonal: domain.interfaces.repositories.profile-repository_interface uses a module listed above it, which is the healthy direction.
21→15 domain.interfaces.repositories.profile-repository_interface uses domain.entities.enums.role_enum✕
- Connections
- 1 pair of types, where a type in domain.interfaces.repositories.profile-repository_interface uses a type in domain.entities.enums.role_enum.
- The types involved
src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository→src.domain.entities.enums.role_enum.Role
- Direction
- domain.interfaces.repositories.profile-repository_interface uses domain.entities.enums.role_enum, so a change to domain.entities.enums.role_enum can break domain.interfaces.repositories.profile-repository_interface, while a change to domain.interfaces.repositories.profile-repository_interface can't break domain.entities.enums.role_enum.
- Position
- Below the diagonal: domain.interfaces.repositories.profile-repository_interface uses a module listed above it, which is the healthy direction.
22→13 domain.services.auth-domain_service uses domain.entities.Auth✕
- Connections
- 1 pair of types, where a type in domain.services.auth-domain_service uses a type in domain.entities.Auth.
- The types involved
src.domain.services.auth-domain_service.AuthDomainService→src.domain.entities.Auth.AuthUser
- Direction
- domain.services.auth-domain_service uses domain.entities.Auth, so a change to domain.entities.Auth can break domain.services.auth-domain_service, while a change to domain.services.auth-domain_service can't break domain.entities.Auth.
- Position
- Below the diagonal: domain.services.auth-domain_service uses a module listed above it, which is the healthy direction.
22→15 domain.services.auth-domain_service uses domain.entities.enums.role_enum✕
- Connections
- 1 pair of types, where a type in domain.services.auth-domain_service uses a type in domain.entities.enums.role_enum.
- The types involved
src.domain.services.auth-domain_service.AuthDomainService→src.domain.entities.enums.role_enum.Role
- Direction
- domain.services.auth-domain_service uses domain.entities.enums.role_enum, so a change to domain.entities.enums.role_enum can break domain.services.auth-domain_service, while a change to domain.services.auth-domain_service can't break domain.entities.enums.role_enum.
- Position
- Below the diagonal: domain.services.auth-domain_service uses a module listed above it, which is the healthy direction.
23→14 domain.services.profile-domain_service uses domain.entities.Profile✕
- Connections
- 1 pair of types, where a type in domain.services.profile-domain_service uses a type in domain.entities.Profile.
- The types involved
src.domain.services.profile-domain_service.ProfileDomainService→src.domain.entities.Profile.Profile
- Direction
- domain.services.profile-domain_service uses domain.entities.Profile, so a change to domain.entities.Profile can break domain.services.profile-domain_service, while a change to domain.services.profile-domain_service can't break domain.entities.Profile.
- Position
- Below the diagonal: domain.services.profile-domain_service uses a module listed above it, which is the healthy direction.
24→16 infrastructure.entities.profile_entity uses infrastructure.entities.base.soft-deletable_entity✕
- Connections
- 1 pair of types, where a type in infrastructure.entities.profile_entity uses a type in infrastructure.entities.base.soft-deletable_entity.
- The types involved
src.infrastructure.entities.profile_entity.ProfileEntity→src.infrastructure.entities.base.soft-deletable_entity.SoftDeletableEntity
- Direction
- infrastructure.entities.profile_entity uses infrastructure.entities.base.soft-deletable_entity, so a change to infrastructure.entities.base.soft-deletable_entity can break infrastructure.entities.profile_entity, while a change to infrastructure.entities.profile_entity can't break infrastructure.entities.base.soft-deletable_entity.
- Position
- Below the diagonal: infrastructure.entities.profile_entity uses a module listed above it, which is the healthy direction.
24→34 infrastructure.entities.profile_entity uses infrastructure.entities.auth_entity part of a loop✕
- Connections
- 1 pair of types, where a type in infrastructure.entities.profile_entity uses a type in infrastructure.entities.auth_entity.
- The types involved
src.infrastructure.entities.profile_entity.ProfileEntity→src.infrastructure.entities.auth_entity.AuthEntity
- Direction
- infrastructure.entities.profile_entity uses infrastructure.entities.auth_entity, so a change to infrastructure.entities.auth_entity can break infrastructure.entities.profile_entity, while a change to infrastructure.entities.profile_entity can't break infrastructure.entities.auth_entity.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
25→7 api.controllers.hello_controller uses api.dto.common.api-response_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.hello_controller uses a type in api.dto.common.api-response_dto.
- The types involved
src.api.controllers.hello_controller.HelloController→src.api.dto.common.api-response_dto.SuccessResponseDto
- Direction
- api.controllers.hello_controller uses api.dto.common.api-response_dto, so a change to api.dto.common.api-response_dto can break api.controllers.hello_controller, while a change to api.controllers.hello_controller can't break api.dto.common.api-response_dto.
- Position
- Below the diagonal: api.controllers.hello_controller uses a module listed above it, which is the healthy direction.
25→12 api.controllers.hello_controller uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in api.controllers.hello_controller uses a type in application.services.logger_service.
- The types involved
src.api.controllers.hello_controller.HelloController→src.application.services.logger_service.LoggerService
- Direction
- api.controllers.hello_controller uses application.services.logger_service, so a change to application.services.logger_service can break api.controllers.hello_controller, while a change to api.controllers.hello_controller can't break application.services.logger_service.
- Position
- Below the diagonal: api.controllers.hello_controller uses a module listed above it, which is the healthy direction.
25→19 api.controllers.hello_controller uses application.services.response_service✕
- Connections
- 1 pair of types, where a type in api.controllers.hello_controller uses a type in application.services.response_service.
- The types involved
src.api.controllers.hello_controller.HelloController→src.application.services.response_service.ResponseService
- Direction
- api.controllers.hello_controller uses application.services.response_service, so a change to application.services.response_service can break api.controllers.hello_controller, while a change to api.controllers.hello_controller can't break application.services.response_service.
- Position
- Below the diagonal: api.controllers.hello_controller uses a module listed above it, which is the healthy direction.
26→10 application.auth.command.handler.create-apple-auth-user_handler uses application.auth.command.create-apple-auth-user_command✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-apple-auth-user_handler uses a type in application.auth.command.create-apple-auth-user_command.
- The types involved
src.application.auth.command.handler.create-apple-auth-user_handler.CreateAppleAuthUserHandler→src.application.auth.command.create-apple-auth-user_command.CreateAppleAuthUserCommand
- Direction
- application.auth.command.handler.create-apple-auth-user_handler uses application.auth.command.create-apple-auth-user_command, so a change to application.auth.command.create-apple-auth-user_command can break application.auth.command.handler.create-apple-auth-user_handler, while a change to application.auth.command.handler.create-apple-auth-user_handler can't break application.auth.command.create-apple-auth-user_command.
- Position
- Below the diagonal: application.auth.command.handler.create-apple-auth-user_handler uses a module listed above it, which is the healthy direction.
26→12 application.auth.command.handler.create-apple-auth-user_handler uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-apple-auth-user_handler uses a type in application.services.logger_service.
- The types involved
src.application.auth.command.handler.create-apple-auth-user_handler.CreateAppleAuthUserHandler→src.application.services.logger_service.LoggerService
- Direction
- application.auth.command.handler.create-apple-auth-user_handler uses application.services.logger_service, so a change to application.services.logger_service can break application.auth.command.handler.create-apple-auth-user_handler, while a change to application.auth.command.handler.create-apple-auth-user_handler can't break application.services.logger_service.
- Position
- Below the diagonal: application.auth.command.handler.create-apple-auth-user_handler uses a module listed above it, which is the healthy direction.
26→20 application.auth.command.handler.create-apple-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-apple-auth-user_handler uses a type in domain.interfaces.repositories.auth-repository_interface.
- The types involved
src.application.auth.command.handler.create-apple-auth-user_handler.CreateAppleAuthUserHandler→src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository
- Direction
- application.auth.command.handler.create-apple-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface, so a change to domain.interfaces.repositories.auth-repository_interface can break application.auth.command.handler.create-apple-auth-user_handler, while a change to application.auth.command.handler.create-apple-auth-user_handler can't break domain.interfaces.repositories.auth-repository_interface.
- Position
- Below the diagonal: application.auth.command.handler.create-apple-auth-user_handler uses a module listed above it, which is the healthy direction.
26→22 application.auth.command.handler.create-apple-auth-user_handler uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-apple-auth-user_handler uses a type in domain.services.auth-domain_service.
- The types involved
src.application.auth.command.handler.create-apple-auth-user_handler.CreateAppleAuthUserHandler→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.auth.command.handler.create-apple-auth-user_handler uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.auth.command.handler.create-apple-auth-user_handler, while a change to application.auth.command.handler.create-apple-auth-user_handler can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.auth.command.handler.create-apple-auth-user_handler uses a module listed above it, which is the healthy direction.
27→12 application.auth.command.handler.create-auth-user_handler uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-auth-user_handler uses a type in application.services.logger_service.
- The types involved
src.application.auth.command.handler.create-auth-user_handler.CreateAuthUserHandler→src.application.services.logger_service.LoggerService
- Direction
- application.auth.command.handler.create-auth-user_handler uses application.services.logger_service, so a change to application.services.logger_service can break application.auth.command.handler.create-auth-user_handler, while a change to application.auth.command.handler.create-auth-user_handler can't break application.services.logger_service.
- Position
- Below the diagonal: application.auth.command.handler.create-auth-user_handler uses a module listed above it, which is the healthy direction.
27→17 application.auth.command.handler.create-auth-user_handler uses application.auth.command.create-auth-user_command✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-auth-user_handler uses a type in application.auth.command.create-auth-user_command.
- The types involved
src.application.auth.command.handler.create-auth-user_handler.CreateAuthUserHandler→src.application.auth.command.create-auth-user_command.CreateAuthUserCommand
- Direction
- application.auth.command.handler.create-auth-user_handler uses application.auth.command.create-auth-user_command, so a change to application.auth.command.create-auth-user_command can break application.auth.command.handler.create-auth-user_handler, while a change to application.auth.command.handler.create-auth-user_handler can't break application.auth.command.create-auth-user_command.
- Position
- Below the diagonal: application.auth.command.handler.create-auth-user_handler uses a module listed above it, which is the healthy direction.
27→20 application.auth.command.handler.create-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-auth-user_handler uses a type in domain.interfaces.repositories.auth-repository_interface.
- The types involved
src.application.auth.command.handler.create-auth-user_handler.CreateAuthUserHandler→src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository
- Direction
- application.auth.command.handler.create-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface, so a change to domain.interfaces.repositories.auth-repository_interface can break application.auth.command.handler.create-auth-user_handler, while a change to application.auth.command.handler.create-auth-user_handler can't break domain.interfaces.repositories.auth-repository_interface.
- Position
- Below the diagonal: application.auth.command.handler.create-auth-user_handler uses a module listed above it, which is the healthy direction.
27→22 application.auth.command.handler.create-auth-user_handler uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-auth-user_handler uses a type in domain.services.auth-domain_service.
- The types involved
src.application.auth.command.handler.create-auth-user_handler.CreateAuthUserHandler→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.auth.command.handler.create-auth-user_handler uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.auth.command.handler.create-auth-user_handler, while a change to application.auth.command.handler.create-auth-user_handler can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.auth.command.handler.create-auth-user_handler uses a module listed above it, which is the healthy direction.
28→12 application.auth.command.handler.create-google-auth-user_handler uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-google-auth-user_handler uses a type in application.services.logger_service.
- The types involved
src.application.auth.command.handler.create-google-auth-user_handler.CreateGoogleAuthUserHandler→src.application.services.logger_service.LoggerService
- Direction
- application.auth.command.handler.create-google-auth-user_handler uses application.services.logger_service, so a change to application.services.logger_service can break application.auth.command.handler.create-google-auth-user_handler, while a change to application.auth.command.handler.create-google-auth-user_handler can't break application.services.logger_service.
- Position
- Below the diagonal: application.auth.command.handler.create-google-auth-user_handler uses a module listed above it, which is the healthy direction.
28→20 application.auth.command.handler.create-google-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-google-auth-user_handler uses a type in domain.interfaces.repositories.auth-repository_interface.
- The types involved
src.application.auth.command.handler.create-google-auth-user_handler.CreateGoogleAuthUserHandler→src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository
- Direction
- application.auth.command.handler.create-google-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface, so a change to domain.interfaces.repositories.auth-repository_interface can break application.auth.command.handler.create-google-auth-user_handler, while a change to application.auth.command.handler.create-google-auth-user_handler can't break domain.interfaces.repositories.auth-repository_interface.
- Position
- Below the diagonal: application.auth.command.handler.create-google-auth-user_handler uses a module listed above it, which is the healthy direction.
28→22 application.auth.command.handler.create-google-auth-user_handler uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.create-google-auth-user_handler uses a type in domain.services.auth-domain_service.
- The types involved
src.application.auth.command.handler.create-google-auth-user_handler.CreateGoogleAuthUserHandler→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.auth.command.handler.create-google-auth-user_handler uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.auth.command.handler.create-google-auth-user_handler, while a change to application.auth.command.handler.create-google-auth-user_handler can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.auth.command.handler.create-google-auth-user_handler uses a module listed above it, which is the healthy direction.
29→12 application.auth.command.handler.delete-auth-user_handler uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.delete-auth-user_handler uses a type in application.services.logger_service.
- The types involved
src.application.auth.command.handler.delete-auth-user_handler.DeleteAuthUserHandler→src.application.services.logger_service.LoggerService
- Direction
- application.auth.command.handler.delete-auth-user_handler uses application.services.logger_service, so a change to application.services.logger_service can break application.auth.command.handler.delete-auth-user_handler, while a change to application.auth.command.handler.delete-auth-user_handler can't break application.services.logger_service.
- Position
- Below the diagonal: application.auth.command.handler.delete-auth-user_handler uses a module listed above it, which is the healthy direction.
29→20 application.auth.command.handler.delete-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.delete-auth-user_handler uses a type in domain.interfaces.repositories.auth-repository_interface.
- The types involved
src.application.auth.command.handler.delete-auth-user_handler.DeleteAuthUserHandler→src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository
- Direction
- application.auth.command.handler.delete-auth-user_handler uses domain.interfaces.repositories.auth-repository_interface, so a change to domain.interfaces.repositories.auth-repository_interface can break application.auth.command.handler.delete-auth-user_handler, while a change to application.auth.command.handler.delete-auth-user_handler can't break domain.interfaces.repositories.auth-repository_interface.
- Position
- Below the diagonal: application.auth.command.handler.delete-auth-user_handler uses a module listed above it, which is the healthy direction.
29→21 application.auth.command.handler.delete-auth-user_handler uses domain.interfaces.repositories.profile-repository_interface✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.delete-auth-user_handler uses a type in domain.interfaces.repositories.profile-repository_interface.
- The types involved
src.application.auth.command.handler.delete-auth-user_handler.DeleteAuthUserHandler→src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository
- Direction
- application.auth.command.handler.delete-auth-user_handler uses domain.interfaces.repositories.profile-repository_interface, so a change to domain.interfaces.repositories.profile-repository_interface can break application.auth.command.handler.delete-auth-user_handler, while a change to application.auth.command.handler.delete-auth-user_handler can't break domain.interfaces.repositories.profile-repository_interface.
- Position
- Below the diagonal: application.auth.command.handler.delete-auth-user_handler uses a module listed above it, which is the healthy direction.
29→22 application.auth.command.handler.delete-auth-user_handler uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.auth.command.handler.delete-auth-user_handler uses a type in domain.services.auth-domain_service.
- The types involved
src.application.auth.command.handler.delete-auth-user_handler.DeleteAuthUserHandler→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.auth.command.handler.delete-auth-user_handler uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.auth.command.handler.delete-auth-user_handler, while a change to application.auth.command.handler.delete-auth-user_handler can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.auth.command.handler.delete-auth-user_handler uses a module listed above it, which is the healthy direction.
30→12 application.profile.command.handler.create-profile_handler uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.profile.command.handler.create-profile_handler uses a type in application.services.logger_service.
- The types involved
src.application.profile.command.handler.create-profile_handler.CreateProfileHandler→src.application.services.logger_service.LoggerService
- Direction
- application.profile.command.handler.create-profile_handler uses application.services.logger_service, so a change to application.services.logger_service can break application.profile.command.handler.create-profile_handler, while a change to application.profile.command.handler.create-profile_handler can't break application.services.logger_service.
- Position
- Below the diagonal: application.profile.command.handler.create-profile_handler uses a module listed above it, which is the healthy direction.
30→21 application.profile.command.handler.create-profile_handler uses domain.interfaces.repositories.profile-repository_interface✕
- Connections
- 1 pair of types, where a type in application.profile.command.handler.create-profile_handler uses a type in domain.interfaces.repositories.profile-repository_interface.
- The types involved
src.application.profile.command.handler.create-profile_handler.CreateProfileHandler→src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository
- Direction
- application.profile.command.handler.create-profile_handler uses domain.interfaces.repositories.profile-repository_interface, so a change to domain.interfaces.repositories.profile-repository_interface can break application.profile.command.handler.create-profile_handler, while a change to application.profile.command.handler.create-profile_handler can't break domain.interfaces.repositories.profile-repository_interface.
- Position
- Below the diagonal: application.profile.command.handler.create-profile_handler uses a module listed above it, which is the healthy direction.
31→11 application.services.apple-token-validation_service uses application.services.apple-oauth-config_service✕
- Connections
- 1 pair of types, where a type in application.services.apple-token-validation_service uses a type in application.services.apple-oauth-config_service.
- The types involved
src.application.services.apple-token-validation_service.AppleTokenValidationService→src.application.services.apple-oauth-config_service.AppleOAuthConfigService
- Direction
- application.services.apple-token-validation_service uses application.services.apple-oauth-config_service, so a change to application.services.apple-oauth-config_service can break application.services.apple-token-validation_service, while a change to application.services.apple-token-validation_service can't break application.services.apple-oauth-config_service.
- Position
- Below the diagonal: application.services.apple-token-validation_service uses a module listed above it, which is the healthy direction.
31→12 application.services.apple-token-validation_service uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.services.apple-token-validation_service uses a type in application.services.logger_service.
- The types involved
src.application.services.apple-token-validation_service.AppleTokenValidationService→src.application.services.logger_service.LoggerService
- Direction
- application.services.apple-token-validation_service uses application.services.logger_service, so a change to application.services.logger_service can break application.services.apple-token-validation_service, while a change to application.services.apple-token-validation_service can't break application.services.logger_service.
- Position
- Below the diagonal: application.services.apple-token-validation_service uses a module listed above it, which is the healthy direction.
31→22 application.services.apple-token-validation_service uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.services.apple-token-validation_service uses a type in domain.services.auth-domain_service.
- The types involved
src.application.services.apple-token-validation_service.AppleTokenValidationService→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.services.apple-token-validation_service uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.services.apple-token-validation_service, while a change to application.services.apple-token-validation_service can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.services.apple-token-validation_service uses a module listed above it, which is the healthy direction.
32→12 application.services.jwks-token-validation_service uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.services.jwks-token-validation_service uses a type in application.services.logger_service.
- The types involved
src.application.services.jwks-token-validation_service.JWKSTokenValidationService→src.application.services.logger_service.LoggerService
- Direction
- application.services.jwks-token-validation_service uses application.services.logger_service, so a change to application.services.logger_service can break application.services.jwks-token-validation_service, while a change to application.services.jwks-token-validation_service can't break application.services.logger_service.
- Position
- Below the diagonal: application.services.jwks-token-validation_service uses a module listed above it, which is the healthy direction.
32→18 application.services.jwks-token-validation_service uses application.services.mobile-oauth-config_service✕
- Connections
- 1 pair of types, where a type in application.services.jwks-token-validation_service uses a type in application.services.mobile-oauth-config_service.
- The types involved
src.application.services.jwks-token-validation_service.JWKSTokenValidationService→src.application.services.mobile-oauth-config_service.MobileOAuthConfigService
- Direction
- application.services.jwks-token-validation_service uses application.services.mobile-oauth-config_service, so a change to application.services.mobile-oauth-config_service can break application.services.jwks-token-validation_service, while a change to application.services.jwks-token-validation_service can't break application.services.mobile-oauth-config_service.
- Position
- Below the diagonal: application.services.jwks-token-validation_service uses a module listed above it, which is the healthy direction.
33→8 application.services.profile_service uses api.dto.create-profile_dto✕
- Connections
- 1 pair of types, where a type in application.services.profile_service uses a type in api.dto.create-profile_dto.
- The types involved
src.application.services.profile_service.ProfileService→src.api.dto.create-profile_dto.CreateProfileDto
- Direction
- application.services.profile_service uses api.dto.create-profile_dto, so a change to api.dto.create-profile_dto can break application.services.profile_service, while a change to application.services.profile_service can't break api.dto.create-profile_dto.
- Position
- Below the diagonal: application.services.profile_service uses a module listed above it, which is the healthy direction.
33→12 application.services.profile_service uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.services.profile_service uses a type in application.services.logger_service.
- The types involved
src.application.services.profile_service.ProfileService→src.application.services.logger_service.LoggerService
- Direction
- application.services.profile_service uses application.services.logger_service, so a change to application.services.logger_service can break application.services.profile_service, while a change to application.services.profile_service can't break application.services.logger_service.
- Position
- Below the diagonal: application.services.profile_service uses a module listed above it, which is the healthy direction.
33→14 application.services.profile_service uses domain.entities.Profile✕
- Connections
- 1 pair of types, where a type in application.services.profile_service uses a type in domain.entities.Profile.
- The types involved
src.application.services.profile_service.ProfileService→src.domain.entities.Profile.Profile
- Direction
- application.services.profile_service uses domain.entities.Profile, so a change to domain.entities.Profile can break application.services.profile_service, while a change to application.services.profile_service can't break domain.entities.Profile.
- Position
- Below the diagonal: application.services.profile_service uses a module listed above it, which is the healthy direction.
33→15 application.services.profile_service uses domain.entities.enums.role_enum✕
- Connections
- 1 pair of types, where a type in application.services.profile_service uses a type in domain.entities.enums.role_enum.
- The types involved
src.application.services.profile_service.ProfileService→src.domain.entities.enums.role_enum.Role
- Direction
- application.services.profile_service uses domain.entities.enums.role_enum, so a change to domain.entities.enums.role_enum can break application.services.profile_service, while a change to application.services.profile_service can't break domain.entities.enums.role_enum.
- Position
- Below the diagonal: application.services.profile_service uses a module listed above it, which is the healthy direction.
33→21 application.services.profile_service uses domain.interfaces.repositories.profile-repository_interface✕
- Connections
- 1 pair of types, where a type in application.services.profile_service uses a type in domain.interfaces.repositories.profile-repository_interface.
- The types involved
src.application.services.profile_service.ProfileService→src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository
- Direction
- application.services.profile_service uses domain.interfaces.repositories.profile-repository_interface, so a change to domain.interfaces.repositories.profile-repository_interface can break application.services.profile_service, while a change to application.services.profile_service can't break domain.interfaces.repositories.profile-repository_interface.
- Position
- Below the diagonal: application.services.profile_service uses a module listed above it, which is the healthy direction.
33→23 application.services.profile_service uses domain.services.profile-domain_service✕
- Connections
- 1 pair of types, where a type in application.services.profile_service uses a type in domain.services.profile-domain_service.
- The types involved
src.application.services.profile_service.ProfileService→src.domain.services.profile-domain_service.ProfileDomainService
- Direction
- application.services.profile_service uses domain.services.profile-domain_service, so a change to domain.services.profile-domain_service can break application.services.profile_service, while a change to application.services.profile_service can't break domain.services.profile-domain_service.
- Position
- Below the diagonal: application.services.profile_service uses a module listed above it, which is the healthy direction.
34→16 infrastructure.entities.auth_entity uses infrastructure.entities.base.soft-deletable_entity✕
- Connections
- 1 pair of types, where a type in infrastructure.entities.auth_entity uses a type in infrastructure.entities.base.soft-deletable_entity.
- The types involved
src.infrastructure.entities.auth_entity.AuthEntity→src.infrastructure.entities.base.soft-deletable_entity.SoftDeletableEntity
- Direction
- infrastructure.entities.auth_entity uses infrastructure.entities.base.soft-deletable_entity, so a change to infrastructure.entities.base.soft-deletable_entity can break infrastructure.entities.auth_entity, while a change to infrastructure.entities.auth_entity can't break infrastructure.entities.base.soft-deletable_entity.
- Position
- Below the diagonal: infrastructure.entities.auth_entity uses a module listed above it, which is the healthy direction.
34→24 infrastructure.entities.auth_entity uses infrastructure.entities.profile_entity✕
- Connections
- 1 pair of types, where a type in infrastructure.entities.auth_entity uses a type in infrastructure.entities.profile_entity.
- The types involved
src.infrastructure.entities.auth_entity.AuthEntity→src.infrastructure.entities.profile_entity.ProfileEntity
- Direction
- infrastructure.entities.auth_entity uses infrastructure.entities.profile_entity, so a change to infrastructure.entities.profile_entity can break infrastructure.entities.auth_entity, while a change to infrastructure.entities.auth_entity can't break infrastructure.entities.profile_entity.
- Position
- Below the diagonal: infrastructure.entities.auth_entity uses a module listed above it, which is the healthy direction.
35→14 infrastructure.repository.profile_repository uses domain.entities.Profile✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.profile_repository uses a type in domain.entities.Profile.
- The types involved
src.infrastructure.repository.profile_repository.ProfileRepository→src.domain.entities.Profile.Profile
- Direction
- infrastructure.repository.profile_repository uses domain.entities.Profile, so a change to domain.entities.Profile can break infrastructure.repository.profile_repository, while a change to infrastructure.repository.profile_repository can't break domain.entities.Profile.
- Position
- Below the diagonal: infrastructure.repository.profile_repository uses a module listed above it, which is the healthy direction.
35→15 infrastructure.repository.profile_repository uses domain.entities.enums.role_enum✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.profile_repository uses a type in domain.entities.enums.role_enum.
- The types involved
src.infrastructure.repository.profile_repository.ProfileRepository→src.domain.entities.enums.role_enum.Role
- Direction
- infrastructure.repository.profile_repository uses domain.entities.enums.role_enum, so a change to domain.entities.enums.role_enum can break infrastructure.repository.profile_repository, while a change to infrastructure.repository.profile_repository can't break domain.entities.enums.role_enum.
- Position
- Below the diagonal: infrastructure.repository.profile_repository uses a module listed above it, which is the healthy direction.
35→21 infrastructure.repository.profile_repository uses domain.interfaces.repositories.profile-repository_interface✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.profile_repository uses a type in domain.interfaces.repositories.profile-repository_interface.
- The types involved
src.infrastructure.repository.profile_repository.ProfileRepository→src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository
- Direction
- infrastructure.repository.profile_repository uses domain.interfaces.repositories.profile-repository_interface, so a change to domain.interfaces.repositories.profile-repository_interface can break infrastructure.repository.profile_repository, while a change to infrastructure.repository.profile_repository can't break domain.interfaces.repositories.profile-repository_interface.
- Position
- Below the diagonal: infrastructure.repository.profile_repository uses a module listed above it, which is the healthy direction.
35→24 infrastructure.repository.profile_repository uses infrastructure.entities.profile_entity✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.profile_repository uses a type in infrastructure.entities.profile_entity.
- The types involved
src.infrastructure.repository.profile_repository.ProfileRepository→src.infrastructure.entities.profile_entity.ProfileEntity
- Direction
- infrastructure.repository.profile_repository uses infrastructure.entities.profile_entity, so a change to infrastructure.entities.profile_entity can break infrastructure.repository.profile_repository, while a change to infrastructure.repository.profile_repository can't break infrastructure.entities.profile_entity.
- Position
- Below the diagonal: infrastructure.repository.profile_repository uses a module listed above it, which is the healthy direction.
36→7 api.controllers.profile_controller uses api.dto.common.api-response_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.profile_controller uses a type in api.dto.common.api-response_dto.
- The types involved
src.api.controllers.profile_controller.ProfileController→src.api.dto.common.api-response_dto.SuccessResponseDto
- Direction
- api.controllers.profile_controller uses api.dto.common.api-response_dto, so a change to api.dto.common.api-response_dto can break api.controllers.profile_controller, while a change to api.controllers.profile_controller can't break api.dto.common.api-response_dto.
- Position
- Below the diagonal: api.controllers.profile_controller uses a module listed above it, which is the healthy direction.
36→8 api.controllers.profile_controller uses api.dto.create-profile_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.profile_controller uses a type in api.dto.create-profile_dto.
- The types involved
src.api.controllers.profile_controller.ProfileController→src.api.dto.create-profile_dto.CreateProfileDto
- Direction
- api.controllers.profile_controller uses api.dto.create-profile_dto, so a change to api.dto.create-profile_dto can break api.controllers.profile_controller, while a change to api.controllers.profile_controller can't break api.dto.create-profile_dto.
- Position
- Below the diagonal: api.controllers.profile_controller uses a module listed above it, which is the healthy direction.
36→9 api.controllers.profile_controller uses api.dto.update-profile_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.profile_controller uses a type in api.dto.update-profile_dto.
- The types involved
src.api.controllers.profile_controller.ProfileController→src.api.dto.update-profile_dto.UpdateProfileDto
- Direction
- api.controllers.profile_controller uses api.dto.update-profile_dto, so a change to api.dto.update-profile_dto can break api.controllers.profile_controller, while a change to api.controllers.profile_controller can't break api.dto.update-profile_dto.
- Position
- Below the diagonal: api.controllers.profile_controller uses a module listed above it, which is the healthy direction.
36→14 api.controllers.profile_controller uses domain.entities.Profile✕
- Connections
- 1 pair of types, where a type in api.controllers.profile_controller uses a type in domain.entities.Profile.
- The types involved
src.api.controllers.profile_controller.ProfileController→src.domain.entities.Profile.Profile
- Direction
- api.controllers.profile_controller uses domain.entities.Profile, so a change to domain.entities.Profile can break api.controllers.profile_controller, while a change to api.controllers.profile_controller can't break domain.entities.Profile.
- Position
- Below the diagonal: api.controllers.profile_controller uses a module listed above it, which is the healthy direction.
36→19 api.controllers.profile_controller uses application.services.response_service✕
- Connections
- 1 pair of types, where a type in api.controllers.profile_controller uses a type in application.services.response_service.
- The types involved
src.api.controllers.profile_controller.ProfileController→src.application.services.response_service.ResponseService
- Direction
- api.controllers.profile_controller uses application.services.response_service, so a change to application.services.response_service can break api.controllers.profile_controller, while a change to api.controllers.profile_controller can't break application.services.response_service.
- Position
- Below the diagonal: api.controllers.profile_controller uses a module listed above it, which is the healthy direction.
36→33 api.controllers.profile_controller uses application.services.profile_service✕
- Connections
- 1 pair of types, where a type in api.controllers.profile_controller uses a type in application.services.profile_service.
- The types involved
src.api.controllers.profile_controller.ProfileController→src.application.services.profile_service.ProfileService
- Direction
- api.controllers.profile_controller uses application.services.profile_service, so a change to application.services.profile_service can break api.controllers.profile_controller, while a change to api.controllers.profile_controller can't break application.services.profile_service.
- Position
- Below the diagonal: api.controllers.profile_controller uses a module listed above it, which is the healthy direction.
37→12 application.services.mobile-token-validation_service uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.services.mobile-token-validation_service uses a type in application.services.logger_service.
- The types involved
src.application.services.mobile-token-validation_service.MobileTokenValidationService→src.application.services.logger_service.LoggerService
- Direction
- application.services.mobile-token-validation_service uses application.services.logger_service, so a change to application.services.logger_service can break application.services.mobile-token-validation_service, while a change to application.services.mobile-token-validation_service can't break application.services.logger_service.
- Position
- Below the diagonal: application.services.mobile-token-validation_service uses a module listed above it, which is the healthy direction.
37→18 application.services.mobile-token-validation_service uses application.services.mobile-oauth-config_service✕
- Connections
- 1 pair of types, where a type in application.services.mobile-token-validation_service uses a type in application.services.mobile-oauth-config_service.
- The types involved
src.application.services.mobile-token-validation_service.MobileTokenValidationService→src.application.services.mobile-oauth-config_service.MobileOAuthConfigService
- Direction
- application.services.mobile-token-validation_service uses application.services.mobile-oauth-config_service, so a change to application.services.mobile-oauth-config_service can break application.services.mobile-token-validation_service, while a change to application.services.mobile-token-validation_service can't break application.services.mobile-oauth-config_service.
- Position
- Below the diagonal: application.services.mobile-token-validation_service uses a module listed above it, which is the healthy direction.
37→22 application.services.mobile-token-validation_service uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.services.mobile-token-validation_service uses a type in domain.services.auth-domain_service.
- The types involved
src.application.services.mobile-token-validation_service.MobileTokenValidationService→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.services.mobile-token-validation_service uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.services.mobile-token-validation_service, while a change to application.services.mobile-token-validation_service can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.services.mobile-token-validation_service uses a module listed above it, which is the healthy direction.
37→32 application.services.mobile-token-validation_service uses application.services.jwks-token-validation_service✕
- Connections
- 2 pairs of types, where a type in application.services.mobile-token-validation_service uses a type in application.services.jwks-token-validation_service.
- The types involved
src.application.services.mobile-token-validation_service.MobileTokenValidationService→src.application.services.jwks-token-validation_service.GoogleUserInfosrc.application.services.mobile-token-validation_service.MobileTokenValidationService→src.application.services.jwks-token-validation_service.JWKSTokenValidationService
- Direction
- application.services.mobile-token-validation_service uses application.services.jwks-token-validation_service, so a change to application.services.jwks-token-validation_service can break application.services.mobile-token-validation_service, while a change to application.services.mobile-token-validation_service can't break application.services.jwks-token-validation_service.
- Position
- Below the diagonal: application.services.mobile-token-validation_service uses a module listed above it, which is the healthy direction.
38→13 infrastructure.repository.auth_repository uses domain.entities.Auth✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.auth_repository uses a type in domain.entities.Auth.
- The types involved
src.infrastructure.repository.auth_repository.AuthRepository→src.domain.entities.Auth.AuthUser
- Direction
- infrastructure.repository.auth_repository uses domain.entities.Auth, so a change to domain.entities.Auth can break infrastructure.repository.auth_repository, while a change to infrastructure.repository.auth_repository can't break domain.entities.Auth.
- Position
- Below the diagonal: infrastructure.repository.auth_repository uses a module listed above it, which is the healthy direction.
38→20 infrastructure.repository.auth_repository uses domain.interfaces.repositories.auth-repository_interface✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.auth_repository uses a type in domain.interfaces.repositories.auth-repository_interface.
- The types involved
src.infrastructure.repository.auth_repository.AuthRepository→src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository
- Direction
- infrastructure.repository.auth_repository uses domain.interfaces.repositories.auth-repository_interface, so a change to domain.interfaces.repositories.auth-repository_interface can break infrastructure.repository.auth_repository, while a change to infrastructure.repository.auth_repository can't break domain.interfaces.repositories.auth-repository_interface.
- Position
- Below the diagonal: infrastructure.repository.auth_repository uses a module listed above it, which is the healthy direction.
38→34 infrastructure.repository.auth_repository uses infrastructure.entities.auth_entity✕
- Connections
- 1 pair of types, where a type in infrastructure.repository.auth_repository uses a type in infrastructure.entities.auth_entity.
- The types involved
src.infrastructure.repository.auth_repository.AuthRepository→src.infrastructure.entities.auth_entity.AuthEntity
- Direction
- infrastructure.repository.auth_repository uses infrastructure.entities.auth_entity, so a change to infrastructure.entities.auth_entity can break infrastructure.repository.auth_repository, while a change to infrastructure.repository.auth_repository can't break infrastructure.entities.auth_entity.
- Position
- Below the diagonal: infrastructure.repository.auth_repository uses a module listed above it, which is the healthy direction.
39→2 application.services.auth_service uses api.dto.auth.login-auth_dto✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in api.dto.auth.login-auth_dto.
- The types involved
src.application.services.auth_service.AuthService→src.api.dto.auth.login-auth_dto.LoginAuthDto
- Direction
- application.services.auth_service uses api.dto.auth.login-auth_dto, so a change to api.dto.auth.login-auth_dto can break application.services.auth_service, while a change to application.services.auth_service can't break api.dto.auth.login-auth_dto.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→3 application.services.auth_service uses api.dto.auth.mobile-apple-auth_dto✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in api.dto.auth.mobile-apple-auth_dto.
- The types involved
src.application.services.auth_service.AuthService→src.api.dto.auth.mobile-apple-auth_dto.MobileAppleAuthDto
- Direction
- application.services.auth_service uses api.dto.auth.mobile-apple-auth_dto, so a change to api.dto.auth.mobile-apple-auth_dto can break application.services.auth_service, while a change to application.services.auth_service can't break api.dto.auth.mobile-apple-auth_dto.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→4 application.services.auth_service uses api.dto.auth.mobile-google-auth_dto✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in api.dto.auth.mobile-google-auth_dto.
- The types involved
src.application.services.auth_service.AuthService→src.api.dto.auth.mobile-google-auth_dto.MobileGoogleAuthDto
- Direction
- application.services.auth_service uses api.dto.auth.mobile-google-auth_dto, so a change to api.dto.auth.mobile-google-auth_dto can break application.services.auth_service, while a change to application.services.auth_service can't break api.dto.auth.mobile-google-auth_dto.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→6 application.services.auth_service uses api.dto.auth.register-auth_dto✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in api.dto.auth.register-auth_dto.
- The types involved
src.application.services.auth_service.AuthService→src.api.dto.auth.register-auth_dto.RegisterAuthDto
- Direction
- application.services.auth_service uses api.dto.auth.register-auth_dto, so a change to api.dto.auth.register-auth_dto can break application.services.auth_service, while a change to application.services.auth_service can't break api.dto.auth.register-auth_dto.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→10 application.services.auth_service uses application.auth.command.create-apple-auth-user_command✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in application.auth.command.create-apple-auth-user_command.
- The types involved
src.application.services.auth_service.AuthService→src.application.auth.command.create-apple-auth-user_command.AppleAuthUserPayload
- Direction
- application.services.auth_service uses application.auth.command.create-apple-auth-user_command, so a change to application.auth.command.create-apple-auth-user_command can break application.services.auth_service, while a change to application.services.auth_service can't break application.auth.command.create-apple-auth-user_command.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→11 application.services.auth_service uses application.services.apple-oauth-config_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in application.services.apple-oauth-config_service.
- The types involved
src.application.services.auth_service.AuthService→src.application.services.apple-oauth-config_service.AppleOAuthConfigService
- Direction
- application.services.auth_service uses application.services.apple-oauth-config_service, so a change to application.services.apple-oauth-config_service can break application.services.auth_service, while a change to application.services.auth_service can't break application.services.apple-oauth-config_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→12 application.services.auth_service uses application.services.logger_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in application.services.logger_service.
- The types involved
src.application.services.auth_service.AuthService→src.application.services.logger_service.LoggerService
- Direction
- application.services.auth_service uses application.services.logger_service, so a change to application.services.logger_service can break application.services.auth_service, while a change to application.services.auth_service can't break application.services.logger_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→13 application.services.auth_service uses domain.entities.Auth✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in domain.entities.Auth.
- The types involved
src.application.services.auth_service.AuthService→src.domain.entities.Auth.AuthUser
- Direction
- application.services.auth_service uses domain.entities.Auth, so a change to domain.entities.Auth can break application.services.auth_service, while a change to application.services.auth_service can't break domain.entities.Auth.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→18 application.services.auth_service uses application.services.mobile-oauth-config_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in application.services.mobile-oauth-config_service.
- The types involved
src.application.services.auth_service.AuthService→src.application.services.mobile-oauth-config_service.MobileOAuthConfigService
- Direction
- application.services.auth_service uses application.services.mobile-oauth-config_service, so a change to application.services.mobile-oauth-config_service can break application.services.auth_service, while a change to application.services.auth_service can't break application.services.mobile-oauth-config_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→20 application.services.auth_service uses domain.interfaces.repositories.auth-repository_interface✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in domain.interfaces.repositories.auth-repository_interface.
- The types involved
src.application.services.auth_service.AuthService→src.domain.interfaces.repositories.auth-repository_interface.IAuthRepository
- Direction
- application.services.auth_service uses domain.interfaces.repositories.auth-repository_interface, so a change to domain.interfaces.repositories.auth-repository_interface can break application.services.auth_service, while a change to application.services.auth_service can't break domain.interfaces.repositories.auth-repository_interface.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→21 application.services.auth_service uses domain.interfaces.repositories.profile-repository_interface✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in domain.interfaces.repositories.profile-repository_interface.
- The types involved
src.application.services.auth_service.AuthService→src.domain.interfaces.repositories.profile-repository_interface.IProfileRepository
- Direction
- application.services.auth_service uses domain.interfaces.repositories.profile-repository_interface, so a change to domain.interfaces.repositories.profile-repository_interface can break application.services.auth_service, while a change to application.services.auth_service can't break domain.interfaces.repositories.profile-repository_interface.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→22 application.services.auth_service uses domain.services.auth-domain_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in domain.services.auth-domain_service.
- The types involved
src.application.services.auth_service.AuthService→src.domain.services.auth-domain_service.AuthDomainService
- Direction
- application.services.auth_service uses domain.services.auth-domain_service, so a change to domain.services.auth-domain_service can break application.services.auth_service, while a change to application.services.auth_service can't break domain.services.auth-domain_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→23 application.services.auth_service uses domain.services.profile-domain_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in domain.services.profile-domain_service.
- The types involved
src.application.services.auth_service.AuthService→src.domain.services.profile-domain_service.ProfileDomainService
- Direction
- application.services.auth_service uses domain.services.profile-domain_service, so a change to domain.services.profile-domain_service can break application.services.auth_service, while a change to application.services.auth_service can't break domain.services.profile-domain_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→31 application.services.auth_service uses application.services.apple-token-validation_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in application.services.apple-token-validation_service.
- The types involved
src.application.services.auth_service.AuthService→src.application.services.apple-token-validation_service.AppleTokenValidationService
- Direction
- application.services.auth_service uses application.services.apple-token-validation_service, so a change to application.services.apple-token-validation_service can break application.services.auth_service, while a change to application.services.auth_service can't break application.services.apple-token-validation_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
39→37 application.services.auth_service uses application.services.mobile-token-validation_service✕
- Connections
- 1 pair of types, where a type in application.services.auth_service uses a type in application.services.mobile-token-validation_service.
- The types involved
src.application.services.auth_service.AuthService→src.application.services.mobile-token-validation_service.MobileTokenValidationService
- Direction
- application.services.auth_service uses application.services.mobile-token-validation_service, so a change to application.services.mobile-token-validation_service can break application.services.auth_service, while a change to application.services.auth_service can't break application.services.mobile-token-validation_service.
- Position
- Below the diagonal: application.services.auth_service uses a module listed above it, which is the healthy direction.
40→1 api.controllers.auth_controller uses api.dto.auth.change-password_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in api.dto.auth.change-password_dto.
- The types involved
src.api.controllers.auth_controller.AuthController→src.api.dto.auth.change-password_dto.ChangePasswordDto
- Direction
- api.controllers.auth_controller uses api.dto.auth.change-password_dto, so a change to api.dto.auth.change-password_dto can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break api.dto.auth.change-password_dto.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→2 api.controllers.auth_controller uses api.dto.auth.login-auth_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in api.dto.auth.login-auth_dto.
- The types involved
src.api.controllers.auth_controller.AuthController→src.api.dto.auth.login-auth_dto.LoginAuthDto
- Direction
- api.controllers.auth_controller uses api.dto.auth.login-auth_dto, so a change to api.dto.auth.login-auth_dto can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break api.dto.auth.login-auth_dto.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→3 api.controllers.auth_controller uses api.dto.auth.mobile-apple-auth_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in api.dto.auth.mobile-apple-auth_dto.
- The types involved
src.api.controllers.auth_controller.AuthController→src.api.dto.auth.mobile-apple-auth_dto.MobileAppleAuthDto
- Direction
- api.controllers.auth_controller uses api.dto.auth.mobile-apple-auth_dto, so a change to api.dto.auth.mobile-apple-auth_dto can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break api.dto.auth.mobile-apple-auth_dto.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→4 api.controllers.auth_controller uses api.dto.auth.mobile-google-auth_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in api.dto.auth.mobile-google-auth_dto.
- The types involved
src.api.controllers.auth_controller.AuthController→src.api.dto.auth.mobile-google-auth_dto.MobileGoogleAuthDto
- Direction
- api.controllers.auth_controller uses api.dto.auth.mobile-google-auth_dto, so a change to api.dto.auth.mobile-google-auth_dto can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break api.dto.auth.mobile-google-auth_dto.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→5 api.controllers.auth_controller uses api.dto.auth.refresh-token_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in api.dto.auth.refresh-token_dto.
- The types involved
src.api.controllers.auth_controller.AuthController→src.api.dto.auth.refresh-token_dto.RefreshTokenDto
- Direction
- api.controllers.auth_controller uses api.dto.auth.refresh-token_dto, so a change to api.dto.auth.refresh-token_dto can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break api.dto.auth.refresh-token_dto.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→6 api.controllers.auth_controller uses api.dto.auth.register-auth_dto✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in api.dto.auth.register-auth_dto.
- The types involved
src.api.controllers.auth_controller.AuthController→src.api.dto.auth.register-auth_dto.RegisterAuthDto
- Direction
- api.controllers.auth_controller uses api.dto.auth.register-auth_dto, so a change to api.dto.auth.register-auth_dto can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break api.dto.auth.register-auth_dto.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→19 api.controllers.auth_controller uses application.services.response_service✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in application.services.response_service.
- The types involved
src.api.controllers.auth_controller.AuthController→src.application.services.response_service.ResponseService
- Direction
- api.controllers.auth_controller uses application.services.response_service, so a change to application.services.response_service can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break application.services.response_service.
- Position
- Below the diagonal: api.controllers.auth_controller uses a module listed above it, which is the healthy direction.
40→39 api.controllers.auth_controller uses application.services.auth_service✕
- Connections
- 1 pair of types, where a type in api.controllers.auth_controller uses a type in application.services.auth_service.
- The types involved
src.api.controllers.auth_controller.AuthController→src.application.services.auth_service.AuthService
- Direction
- api.controllers.auth_controller uses application.services.auth_service, so a change to application.services.auth_service can break api.controllers.auth_controller, while a change to api.controllers.auth_controller can't break application.services.auth_service.
- Position
- Below the diagonal: api.controllers.auth_controller 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 |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 42 | High / Critical |
| A02:2025 — Security Misconfiguration | 6 | High / Critical |
| A05:2025 — Injection | 3 | High / Critical |
Roadmap
Begin by cleaning up package.json to resolve deprecated and outdated dependencies, ensuring a stable foundation. Next, establish a CI pipeline that builds and tests every push, integrating security scanning to block regressions immediately. Finally, codify disaster recovery by documenting RTO/RPO and implementing automated backups within your infrastructure as code.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 3 Deprecated finding(s) in Dependency Hygiene — start with package.json (3). | +4.7 pts | Low | Dependency Hygiene |
| Resolve the 3 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json (3). | +4.7 pts | Low | Dependency Hygiene |
| Add a CI workflow that builds and runs the test suite on every push/PR. | +3.7 pts | Medium | CI/CD gates |
| Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing. | +3.7 pts | Medium | Security & performance tooling |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +3.7 pts | Medium | DR & Backup |
| Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters). | +2.7 pts | Medium | Encapsulated state |
| Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs. | +2.3 pts | Medium | Strongly-typed ids |
| Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services. | +2.3 pts | Medium | Rich vs anemic model |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 3.7 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 4.4 | Mixed | IaC & Container Security: High IaC: REDACTED |
| package.json | 6.5 | Mixed | Dependency Hygiene: Deprecated: prom-client |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| src/application/middlewere/logger.middleware.ts | 7.8 | Mixed | Cyclomatic Complexity: LoggerMiddleware.use (cyclomatic 23) |
| src/application/services/apple-token-validation.service.ts | 7.8 | Mixed | Cyclomatic Complexity: AppleTokenValidationService.validateIdToken (cyclomatic 19) |
| src/application/services/jwks-token-validation.service.ts | 7.8 | Mixed | Cyclomatic Complexity: JWKSTokenValidationService.verifyIdToken (cyclomatic 19) |
| src/application/filters/api-exception.filter.ts | 7.8 | Mixed | Cyclomatic Complexity: ApiExceptionFilter.catch (cyclomatic 16) |
| src/application/services/auth.service.ts | 7.8 | Mixed | God Classes: ClassTooLong: AuthService |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 81 of 85 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 — 85 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, 164 of 197 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
- D15 Churn × Complexity Hotspots — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Git history depth insufficient — this repository has 18 commit(s), too few for a reliable trend signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 18 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D34 Knowledge Freshness — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Too few commits to judge knowledge freshness (18 commit(s) sampled).
- D35 Change Coupling — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Git history depth insufficient — this repository has 18 commit(s), too few for a reliable change-coupling signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- 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) — prometheus Pulling grafana Pulling postgres Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden prometheus Error Get "https://registry-1.docker.io/v2/": Forbidden grafana Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: time="2026-10-22T13:09:40Z" level=warning msg="The \"GRAFANA_PASSWORD\" variable is not set. Defaulting to a blank string." grafana Pulling prometheus Pulling postgres Pulling grafana Error Get "https://registry-1.docker.io/v2/": Forbidden prometheus Error context canceled postgres Error context canceled 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.
- DM9 Scattered domain decisions — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Arm two tells a construction that PRODUCES a measurement from one that merely passes it along, and this repository's frontend does not compute that fact. A measurement built independently in two places would not appear above.
- P8 Schema migrations — 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. The schema may be created by a runner, a deploy script or a config file outside what this check reads, so an absence here is our blind spot rather than a missing migration strategy. The card abstains instead of scoring. You can widen what we reach: if the schema is created and evolved by a tool this check does not name, naming it lets us teach the detector to read it.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP log through no library that carries a message's values as fields (pino, winston, bunyan, tslog, LogTape, roarr; Python's logging, structlog; PHP's PSR-3 loggers), so its log calls cannot be judged, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- 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.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- 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.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (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.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
4 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was LoggerMiddleware.use at 23.
What to do
- Bring the 4 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with LoggerMiddleware.use (cyclomatic 23), AppleTokenValidationService.validateIdToken (cyclomatic 19), JWKSTokenValidationService.verifyIdToken (cyclomatic 19). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 4 together lifts Cyclomatic Complexity from 9.2 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Stand up a CI pipeline, then gate Cyclomatic Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
4 method(s) exceeded the cognitive complexity threshold of 15; the worst was AppleTokenValidationService.validateIdToken at 29.
What to do
- Bring the 4 bodies over 15 down to 15 or less in Cognitive Complexity — start with AppleTokenValidationService.validateIdToken (cognitive 29), LoggerMiddleware.use (cognitive 28), JWKSTokenValidationService.verifyIdToken (cognitive 27). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 4 together lifts Cognitive Complexity from 9.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Stand up a CI pipeline, then gate Cognitive Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
2 god class(es) detected.
What to do
- Resolve the 1 ClassTooLong finding(s) in God Classes — start with auth.service.ts. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 FileTooLong finding(s) in God Classes — start with auth.service.ts. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate God Classes in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 12 classes have LCOM4 above 3.
D8 · Code Coverage
Line coverage 94.6%. Measured from the JavaScript/TypeScript suite (jest via `pnpm install --frozen-lockfile --ignore-scripts` in the repository root).
D9 · Test Distribution
115 test methods: 105 unit, 0 integration, 0 BDD, 10 e2e. The JavaScript/TypeScript suite contributes 115 `it`/`test` case(s) across 9 test file(s) declaring at least one; its tier split is read from package names and paths only.
What to do
- Improve Test Distribution — currently 8.9/10. — 115 test methods: 105 unit, 0 integration, 0 BDD, 10 e2e. The JavaScript/TypeScript suite contributes 115 `it`/`test` case(s) across 9 test file(s) declaring at least one; its tier split is read from package names and paths only.
D10 · Test Quality
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 115 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `pnpm install --frozen-lockfile --ignore-scripts` in the repository root (84 tests)): measured (0 flaky).
D12 · Dependency Hygiene
25 outdated direct production npm dependency(ies) of 37 graded, 0 pinning defect(s), across 1 package.json (1 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 3 direct dependency(ies) — production, development or optional — are marked DEPRECATED by their publisher (the registry's per-version mark, or the lockfile's copy of it when the registry could not be asked); deprecated transitive packages are listed but not charged. Whether any is UNMAINTAINED is not graded — the registry publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.
What to do
- Resolve the 3 Deprecated finding(s) in Dependency Hygiene — start with package.json (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json (3). — One of this dimension's main actionable groups (3 recommendation-level).
- Resolve the 2 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (2). — One of this dimension's main actionable groups (2 recommendation-level).
- Stand up a CI pipeline, then gate Dependency Hygiene in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 37 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 37 production dependency(ies) this repository's committed lockfile resolves, across 1 product package.json manifest(s). Its 28 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. This repository publishes itself under MIT, which is its own choice and is not judged here.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted task-comment markers across 4261 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The repository's root README is a well-written overview of an advanced NestJS project implementing Clean Architecture with DDD, CQRS, Event Sourcing, and PostgreSQL. It states what the project is (an enterprise boilerplate) and gives links to external resources, plus a brief note about the MongoDB version. The document begins with an overview heading and then a bulleted list of features ('Core Architecture', 'Proper Layer Separation'), followed by a full outline that all sections exist in the visible text; it is clear but not yet complete for its stated scope.
What to do
- Improve Documentation Quality — currently 6.0/10. — The repository's root README is a well-written overview of an advanced NestJS project implementing Clean Architecture with DDD, CQRS, Event Sourcing, and PostgreSQL. It states what the project is (an enterprise boilerplate) and gives links to external resources, plus a brief note about the MongoDB version. The document begins with an overview heading and then a bulleted list of features ('Core Architecture', 'Proper Layer Separation'), followed by a full outline that all sections exist in the visible text; it is clear but not yet complete for its stated scope.
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 · Project Cohesion
0 of 1 build units (npm) flagged as possibly oversized/incoherent.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
3 finding(s): 0 critical, 1 high, 2 medium, 0 low.
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 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
D30 · Dependency Vulnerabilities
42 finding(s): 2 critical, 24 high, 14 medium, 2 low.
What to do
- Resolve the 24 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (24). — One of this dimension's main actionable groups (24 issue-level).
- Resolve the 13 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (13). — One of this dimension's main actionable groups (13 warning-level).
- Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
D31 · IaC & Container Security
6 finding(s): 0 critical, 3 high, 2 medium, 1 low.
What to do
- Resolve the 3 High IaC finding(s) in IaC & Container Security — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
- Resolve the 2 Medium IaC finding(s) in IaC & Container Security — start with REDACTED, REDACTED. — 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).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 37 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
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
C1 · Data Protection
What to do
- Strengthen data-at-rest protection: vault your keys (AWS KMS / Secrets Manager, Azure Key Vault, GCP KMS / Secret Manager, HashiCorp Vault) and encrypt the most sensitive columns (typeorm-encrypted, prisma-field-encryption, mongoose-field-encryption or MongoDB CSFLE) — partial coverage still leaves gaps.
- Enforce HTTPS (serve through https.createServer / NestJS httpsOptions, or redirect plain HTTP with express-sslify behind your TLS terminator) so data in transit is always encrypted.
C2 · Access Controls
DM1 · Aggregate boundaries
DM11 · Constructible invalid state
DM2 · Strongly-typed ids
- `AuthUser.googleId` is a raw `string` — give it a strongly-typed id: a dedicated single-field type wrapping the `string`, in whatever form your language spells that. — src/domain/entities/Auth.ts:7
- `AuthUser.appleId` is a raw `string` — give it a strongly-typed id: a dedicated single-field type wrapping the `string`, in whatever form your language spells that. — src/domain/entities/Auth.ts:8
- `Profile.authId` is a raw `string` — give it a strongly-typed id: a dedicated single-field type wrapping the `string`, in whatever form your language spells that. — src/domain/entities/Profile.ts:3
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
- `AuthUser` is an aggregate/entity with 11 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/domain/entities/Auth.ts:3
- `Profile` is an aggregate/entity with 8 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/domain/entities/Profile.ts:1
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
- `AuthUser` exposes publicly writable state (email, password, googleId, appleId, role, currentHashedRefreshToken, and 4 more). — src/domain/entities/Auth.ts:3
- `Profile` exposes publicly writable state (name, lastname, age, createdAt, updatedAt, deletedAt). — src/domain/entities/Profile.ts:1
What to do
- Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary
DM7 · Repository granularity
DM9 · Scattered domain decisions
ED5 · Idempotency
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `googleAuth` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/api/controllers/auth.controller.ts:148
- `initializeJWKS` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. (×2) — src/application/services/apple-token-validation.service.ts:28, src/application/services/jwks-token-validation.service.ts:33
What to do
- Remove the dead code that still moves this score: delete dead if(false) branches and either do the real async work or drop the async keyword from fake-async functions.
M1 · Documentation (README)
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
- No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
- Add a CI workflow that builds and runs the test suite on every push/PR.
P2 · Observability
- `src/application/interceptors/logging.interceptor.ts` reports through `console.*` at line 12 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/application/interceptors/logging.interceptor.ts:12
What to do
- Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
What to do
- Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P7 · Outbound HTTP resilience
- `axios.post(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — src/application/services/auth.service.ts:307, src/application/services/mobile-token-validation.service.ts:144
- `axios.get(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — src/application/services/auth.service.ts:322, src/application/services/mobile-token-validation.service.ts:217
What to do
- Bound every outbound call: pass `signal: AbortSignal.timeout(ms)` to `fetch`, set `timeout` on the axios instance (`axios.create({ timeout })`), and add retries with back-off (`axios-retry`, `p-retry`) and a breaker (`opossum`, `cockatiel`) around dependencies that fail.
P9 · Domain vs controller coverage
What to do
- Raise domain coverage toward 100% — cover the remaining aggregates / value objects / domain services where the business invariants and costly bugs live.
PF3 · Async & latency hygiene
R1 · Type Safety
R10 · Code Duplication
- src/application/services/auth.service.ts:477 · src/application/services/auth.service.ts:607 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/application/services/auth.service.ts:477
- src/application/services/apple-token-validation.service.ts:22 · src/application/services/jwks-token-validation.service.ts:27 — the two spans are one implementation copied and then locally edited — 511 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/application/services/apple-token-validation.service.ts:22
- src/infrastructure/repository/auth.repository.ts:8 · src/infrastructure/repository/profile.repository.ts:9 — the two spans are one implementation copied and then locally edited — 381 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/infrastructure/repository/auth.repository.ts:8
- src/application/auth/command/handler/create-apple-auth-user.handler.ts:10 · src/application/auth/command/handler/create-google-auth-user.handler.ts:10 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — src/application/auth/command/handler/create-apple-auth-user.handler.ts:10
- src/application/services/mobile-token-validation.service.ts:87 · src/application/services/mobile-token-validation.service.ts:159 — the two spans are one implementation copied and then locally edited — 93 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/application/services/mobile-token-validation.service.ts:87
- src/application/auth/command/handler/create-apple-auth-user.handler.ts:8 · src/application/auth/command/handler/create-auth-user.handler.ts:7 · src/application/auth/command/handler/create-google-auth-user.handler.ts:8 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/application/auth/command/handler/create-apple-auth-user.handler.ts:8
- src/domain/services/auth-domain.service.ts:257 · src/domain/services/auth-domain.service.ts:274 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/domain/services/auth-domain.service.ts:257
- src/api/controllers/auth.controller.ts:178 · src/api/controllers/auth.controller.ts:196 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/api/controllers/auth.controller.ts:178
- src/api/dto/common/api-response.dto.ts:25 · src/api/dto/common/api-response.dto.ts:62 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/api/dto/common/api-response.dto.ts:25
- src/application/auth/sagas/registration.saga.ts:12 · src/application/auth/sagas/registration.saga.ts:32 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/application/auth/sagas/registration.saga.ts:12
- src/application/services/logger.service.ts:11 · src/application/services/logger.service.ts:23 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/application/services/logger.service.ts:11
- src/infrastructure/utils/encryption.util.ts:8 · src/infrastructure/utils/encryption.util.ts:28 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/infrastructure/utils/encryption.util.ts:8
- src/api/controllers/auth.controller.ts:119 · src/api/controllers/auth.controller.ts:179 · src/api/controllers/auth.controller.ts:197 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/api/controllers/auth.controller.ts:119
- src/application/middlewere/logger.middleware.ts:61 · src/application/middlewere/logger.middleware.ts:69 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/application/middlewere/logger.middleware.ts:61
- src/application/services/auth.service.ts:168 · src/application/services/auth.service.ts:535 · src/application/services/auth.service.ts:665 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — src/application/services/auth.service.ts:168
- src/api/controllers/auth.controller.ts:185 · src/api/controllers/profile.controller.ts:96 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/api/controllers/auth.controller.ts:185
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries
- src/application/__test__/profile.controller.spec.ts:1 imports src/api/controllers/profile.controller.ts against the layered-src rules. — src/application/__test__/profile.controller.spec.ts:1
- src/application/__test__/profile.controller.spec.ts:2 imports src/api/dto/create-profile.dto.ts against the layered-src rules. — src/application/__test__/profile.controller.spec.ts:2
- src/application/application.module.ts:3 imports src/infrastructure/database/database.module.ts against the layered-src rules. — src/application/application.module.ts:3
- src/application/auth/auth.module.ts:17 imports src/infrastructure/database/database.module.ts against the layered-src rules. — src/application/auth/auth.module.ts:17
- src/application/auth/auth.module.ts:18 imports src/infrastructure/entities/auth.entity.ts against the layered-src rules. — src/application/auth/auth.module.ts:18
- src/application/auth/auth.module.ts:19 imports src/infrastructure/repository/auth.repository.ts against the layered-src rules. — src/application/auth/auth.module.ts:19
- src/application/auth/command/create-auth-user.command.ts:1 imports src/api/dto/auth/register-auth.dto.ts against the layered-src rules. — src/application/auth/command/create-auth-user.command.ts:1
- src/application/profile/profile.module.ts:5 imports src/infrastructure/database/database.module.ts against the layered-src rules. — src/application/profile/profile.module.ts:5
- src/application/profile/profile.module.ts:6 imports src/infrastructure/entities/profile.entity.ts against the layered-src rules. — src/application/profile/profile.module.ts:6
- src/application/profile/profile.module.ts:7 imports src/infrastructure/repository/profile.repository.ts against the layered-src rules. — src/application/profile/profile.module.ts:7
- src/application/services/auth.service.ts:14 imports src/api/dto/auth/login-auth.dto.ts against the layered-src rules. — src/application/services/auth.service.ts:14
- src/application/services/auth.service.ts:15 imports src/api/dto/auth/mobile-apple-auth.dto.ts against the layered-src rules. — src/application/services/auth.service.ts:15
- src/application/services/auth.service.ts:16 imports src/api/dto/auth/mobile-google-auth.dto.ts against the layered-src rules. — src/application/services/auth.service.ts:16
- src/application/services/auth.service.ts:17 imports src/api/dto/auth/register-auth.dto.ts against the layered-src rules. — src/application/services/auth.service.ts:17
- src/application/services/profile.service.ts:3 imports src/api/dto/create-profile.dto.ts against the layered-src rules. — src/application/services/profile.service.ts:3
- src/application/services/response.service.ts:3 imports src/api/dto/common/api-response.dto.ts against the layered-src rules. — src/application/services/response.service.ts:3
- src/domain/__test__/profile.service.spec.ts:1 imports src/application/services/logger.service.ts against the layered-src rules. — src/domain/__test__/profile.service.spec.ts:1
- src/domain/__test__/profile.service.spec.ts:2 imports src/application/services/profile.service.ts against the layered-src rules. — src/domain/__test__/profile.service.spec.ts:2
What to do
- Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (18 rows).
R2 · Cyclomatic Complexity
- validateIdToken has cyclomatic complexity 19 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/application/services/apple-token-validation.service.ts:47
- (anonymous) has cyclomatic complexity 19 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/application/middlewere/logger.middleware.ts:25
- verifyIdToken has cyclomatic complexity 19 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/application/services/jwks-token-validation.service.ts:53
- (top-level) has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:1
- mobileGoogleAuth has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/application/services/auth.service.ts:347
- validateAuthorizationCode has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/application/services/mobile-token-validation.service.ts:113
- validateMobileOAuthData has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/domain/services/auth-domain.service.ts:192
R3 · Large Files
- src/application/services/auth.service.ts has 684 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/application/services/auth.service.ts:1
What to do
- Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage
- No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×5) — src/main.ts:1, src/infrastructure/utils/encryption.util.ts:1, src/infrastructure/database/database.providers.ts:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling
R7 · Dead Code
- Unreachable from the 1 application, 1 tooling and 10 test entry point(s) detected in this repo. Gate removals on `pnpm run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (1 application, 1 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×4) — src/infrastructure/utils/encryption.util.ts, src/infrastructure/database/database.providers.ts, src/application/middlewere/request-id.middlerware.ts, …
- Nothing imports this binding — it is safe to review for removal. (×15) — src/application/interfaces/authenticated-request.interface.ts:12, src/application/services/jwks-token-validation.service.ts:14, src/application/services/logger.service.ts:4, …
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
- Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×2) — eslint.config.mjs:1, src/api/controllers/auth.controller.ts:35
- Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
- Only test files import it (first: src/application/__test__/profile.controller.spec.ts:9) — move it to devDependencies. — package.json:53
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
- src/infrastructure/entities/auth.entity.ts → src/infrastructure/entities/profile.entity.ts → src/infrastructure/entities/auth.entity.ts — src/infrastructure/entities/auth.entity.ts:2
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture
- `rejectUnauthorized: false` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the option so Node validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: pass its CA as `ca` (or set `NODE_EXTRA_CA_CERTS`), which keeps the chain and hostname checks on. A managed database or broker that documents `rejectUnauthorized: false` publishes a CA bundle for exactly this purpose. (×2) — src/infrastructure/database/database.module.ts:15, src/infrastructure/database/database.providers.ts:16
- `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.) — src/main.ts:53
What to do
- Stop accepting every TLS certificate: delete `rejectUnauthorized: false` / `NODE_TLS_REJECT_UNAUTHORIZED=0` so the chain, hostname and expiry are verified, and trust a self-signed or private server by passing its CA (`ca`, or `NODE_EXTRA_CA_CERTS`) — never by switching verification off. This repository constructs a TLS client that accepts any certificate at 2 sites, not one: `src/infrastructure/database/database.module.ts:15` (`rejectUnauthorized: false`), `src/infrastructure/database/database.providers.ts:16` (`rejectUnauthorized: false`). Each is a separate decision — fixing only the line this row cites leaves the others in place.
- Enforce HTTPS on each listed server: serve TLS itself, or redirect plain requests to `https://` and send `Strict-Transport-Security` (`helmet()` does by default) behind the TLS-terminating proxy — and commit that proxy's configuration beside the service. A server only this machine reaches should bind `127.0.0.1`.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X2 · Cancellation propagation
- Only 0/3 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
- `validateAuthorizationCode` awaits `axios.post(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.post(url, { signal })`. — src/application/services/mobile-token-validation.service.ts:113
- `getUserInfoFromAccessToken` awaits `axios.get(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.get(url, { signal })`. — src/application/services/mobile-token-validation.service.ts:206
- `handleGoogleRedirect` awaits `axios.post(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.post(url, { signal })`. — src/application/services/auth.service.ts:298
What to do
- Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
- An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. — src/application/services/auth.service.ts:107
What to do
- Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
- 0/1 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 57% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 63% | Adequate — gated by R11 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 65% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 22% | Critical — gated by R8, P1, P3, P5, P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 55% | Adequate — gated by D30, C1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 48% | Weak — gated by DM4, DM5, DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 3 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — Repo shows no audit-logging mechanism (an audit-log table or model, an ORM write hook that records changes — a TypeORM/MikroORM subscriber, a Sequelize or Mongoose hook, Prisma middleware — or a change-history plugin such as mongoose-history or sequelize-paper-trail) 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.
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 50 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.
- AX1 Captive dependencies — Not applicable: NestJS makes a provider that injects a request-scoped one request-scoped itself (scope bubbles up the injection chain), and gives every consumer its own transient instance by contract.
- AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — prometheus Pulling grafana Pulling postgres Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden prometheus Error Get "https://registry-1.docker.io/v2/": Forbidden grafana Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: time="2026-10-22T13:09:40Z" level=warning msg="The \"GRAFANA_PASSWORD\" variable is not set. Defaulting to a blank string." grafana Pulling prometheus Pulling postgres Pulling grafana Error Get "https://registry-1.docker.io/v2/": Forbidden prometheus Error context canceled postgres Error context canceled 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.
- D16 Bus Factor — single-contributor repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.ts), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D32 Data Compliance (PII/GDPR) — 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.
- D34 Knowledge Freshness — too few commits to judge knowledge freshness
- D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D4 Code Duplication — This repository's production source (.ts) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- 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.
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- DM10 One transaction, one aggregate — no repository writes detected — no operation to judge against the one-aggregate rule
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this lens looks for (5 CQRS handler(s))
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- P12 CI test-gate honesty — no CI workflow found
- P8 Schema migrations — TypeORM is declared, but the schema-migration mechanism could not be identified. Our limit, not a verdict on this repository.
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- R5 Dependency Freshness — uses a pnpm lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 35 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
- TLS certificate validation disabled src/infrastructure/database/database.module.ts:15
- TLS certificate validation disabled src/infrastructure/database/database.providers.ts:16
- REDACTED
- Unlisted import '@eslint/js' eslint.config.mjs:1
- Unlisted import 'express' src/api/controllers/auth.controller.ts:35
- Import cycle (2 files) src/infrastructure/entities/auth.entity.ts:2
Serious — 102 finding(s)
- Boundary violation [layered:upward-import] src/application/__test__/profile.controller.spec.ts:1
- Boundary violation [layered:upward-import] src/application/__test__/profile.controller.spec.ts:2
- Boundary violation [layered:upward-import] src/application/application.module.ts:3
- Boundary violation [layered:upward-import] src/application/auth/auth.module.ts:17
- Boundary violation [layered:upward-import] src/application/auth/auth.module.ts:18
- Boundary violation [layered:upward-import] src/application/auth/auth.module.ts:19
- Boundary violation [layered:upward-import] src/application/auth/command/create-auth-user.command.ts:1
- Boundary violation [layered:upward-import] src/application/profile/profile.module.ts:5
- Boundary violation [layered:upward-import] src/application/profile/profile.module.ts:6
- Boundary violation [layered:upward-import] src/application/profile/profile.module.ts:7
- Boundary violation [layered:upward-import] src/application/services/auth.service.ts:14
- Boundary violation [layered:upward-import] src/application/services/auth.service.ts:15
- Boundary violation [layered:upward-import] src/application/services/auth.service.ts:16
- Boundary violation [layered:upward-import] src/application/services/auth.service.ts:17
- Boundary violation [layered:upward-import] src/application/services/profile.service.ts:3
- Boundary violation [layered:upward-import] src/application/services/response.service.ts:3
- Boundary violation [layered:upward-import] src/domain/__test__/profile.service.spec.ts:1
- Boundary violation [layered:upward-import] src/domain/__test__/profile.service.spec.ts:2
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No test reaches this file src/main.ts:1
- No test reaches this file src/infrastructure/utils/encryption.util.ts:1
- No test reaches this file src/infrastructure/database/database.providers.ts:1
- No test reaches this file src/application/middlewere/request-id.middlerware.ts:1
- No test reaches this file src/infrastructure/entities/base/base.entity.ts:1
- Outbound HTTP without resilience src/application/services/auth.service.ts:307
- Outbound HTTP without resilience src/application/services/auth.service.ts:322
- Outbound HTTP without resilience src/application/services/mobile-token-validation.service.ts:144
- Outbound HTTP without resilience src/application/services/mobile-token-validation.service.ts:217
- Duplicated block (11 lines × 2 locations) src/api/controllers/auth.controller.ts:178
- Duplicated block (11 lines × 2 locations) src/api/dto/common/api-response.dto.ts:25
- Duplicated block (11 lines × 2 locations) src/application/auth/sagas/registration.saga.ts:12
- Duplicated block (11 lines × 2 locations) src/application/services/logger.service.ts:11
- Deprecated: prom-client package.json:61
- Deprecated: uuid package.json:67
- Deprecated: eslint package.json:86
- Fake-async — async method never awaits src/api/controllers/auth.controller.ts:148
- Fake-async — async method never awaits src/application/services/apple-token-validation.service.ts:28
- Fake-async — async method never awaits src/application/services/jwks-token-validation.service.ts:33
- Async function without AbortSignal: validateAuthorizationCode src/application/services/mobile-token-validation.service.ts:113
- Async function without AbortSignal: getUserInfoFromAccessToken src/application/services/mobile-token-validation.service.ts:206
- Async function without AbortSignal: handleGoogleRedirect src/application/services/auth.service.ts:298
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Anemic entity: AuthUser src/domain/entities/Auth.ts:3
- Anemic entity: Profile src/domain/entities/Profile.ts:1
- Mutable entity: AuthUser src/domain/entities/Auth.ts:3
- Mutable entity: Profile src/domain/entities/Profile.ts:1
- LoggerMiddleware.use (cyclomatic 23) src/application/middlewere/logger.middleware.ts:13
- AppleTokenValidationService.validateIdToken (cyclomatic 19) src/application/services/apple-token-validation.service.ts:47
- JWKSTokenValidationService.verifyIdToken (cyclomatic 19) src/application/services/jwks-token-validation.service.ts:53
- ApiExceptionFilter.catch (cyclomatic 16) src/application/filters/api-exception.filter.ts:16
- AppleTokenValidationService.validateIdToken (cognitive 29) src/application/services/apple-token-validation.service.ts:47
- LoggerMiddleware.use (cognitive 28) src/application/middlewere/logger.middleware.ts:13
- JWKSTokenValidationService.verifyIdToken (cognitive 27) src/application/services/jwks-token-validation.service.ts:53
- ApiExceptionFilter.catch (cognitive 18) src/application/filters/api-exception.filter.ts:16
- ClassTooLong: AuthService src/application/services/auth.service.ts:46
- FileTooLong: services/auth.service.ts src/application/services/auth.service.ts
- REDACTED
- No CI pipeline
- No DR/backup evidence
- Duplicated block (101 lines × 2 locations) src/application/services/auth.service.ts:477
- Duplicated block with local edits (87 matched lines × 2 locations) src/application/services/apple-token-validation.service.ts:22
- Duplicated block with local edits (59 matched lines × 2 locations) src/infrastructure/repository/auth.repository.ts:8
- Duplicated block (36 lines × 2 locations) src/application/auth/command/handler/create-apple-auth-user.handler.ts:10
- Duplicated block with local edits (24 matched lines × 2 locations) src/application/services/mobile-token-validation.service.ts:87
- Duplicated block (13 lines × 3 locations) src/application/auth/command/handler/create-apple-auth-user.handler.ts:8
- Duplicated block (13 lines × 2 locations) src/domain/services/auth-domain.service.ts:257
- Duplicated block (9 lines × 2 locations) src/infrastructure/utils/encryption.util.ts:8
- Duplicated block (8 lines × 3 locations) src/api/controllers/auth.controller.ts:119
- Duplicated block (8 lines × 2 locations) src/application/middlewere/logger.middleware.ts:61
- Duplicated block (6 lines × 3 locations) src/application/services/auth.service.ts:168
- Duplicated block (5 lines × 2 locations) src/api/controllers/auth.controller.ts:185
- Complex function validateIdToken (cyclomatic 19, cognitive 29) src/application/services/apple-token-validation.service.ts:47
- Complex function (anonymous) (cyclomatic 19, cognitive 26) src/application/middlewere/logger.middleware.ts:25
- Complex function verifyIdToken (cyclomatic 19, cognitive 26) src/application/services/jwks-token-validation.service.ts:53
- Complex function (top-level) (cyclomatic 18, cognitive 17) REDACTED:1
- Complex function mobileGoogleAuth (cyclomatic 13, cognitive 13) src/application/services/auth.service.ts:347
- Complex function validateAuthorizationCode (cyclomatic 12, cognitive 15) src/application/services/mobile-token-validation.service.ts:113
- Complex function validateMobileOAuthData (cyclomatic 11, cognitive 10) src/domain/services/auth-domain.service.ts:192
- src/application/services/auth.service.ts: 684 lines of code src/application/services/auth.service.ts:1
- Dead file (~47 LoC) src/infrastructure/utils/encryption.util.ts
- Dead file (~22 LoC) src/infrastructure/database/database.providers.ts
- Dead file (~20 LoC) src/application/middlewere/request-id.middlerware.ts
- Dead file (~12 LoC) src/infrastructure/entities/base/base.entity.ts
- Unused dependency '@godaddy/terminus'
- Unused dependency '@nestjs/event-emitter'
- Unused dependency 'moment'
- Swallowed exception (empty catch) src/application/services/auth.service.ts:107
Minor — 38 finding(s)
- Outdated (npm): @nestjs/axios package.json:32
- Outdated (npm): @nestjs/event-emitter package.json:36
- Outdated (npm): uuid package.json:67
- Primitive id on a domain type: AuthUser.googleId src/domain/entities/Auth.ts:7
- Primitive id on a domain type: AuthUser.appleId src/domain/entities/Auth.ts:8
- Primitive id on a domain type: Profile.authId src/domain/entities/Profile.ts:3
- Duplicated predicate src/application/services/apple-token-validation.service.ts:170
- Duplicated predicate src/application/services/jwks-token-validation.service.ts:114
- Duplicated predicate src/application/services/mobile-oauth-config.service.ts:115
- Deprecated: glob REDACTED:1695
- Deprecated: inflight REDACTED:1782
- REDACTED
- REDACTED
- No ADRs found
- REDACTED
- No ADRs
- Console output used as the logging channel src/application/interceptors/logging.interceptor.ts:12
- No SAST
- No rollback/health safety
- Unused export 'AuthenticatedRequest' src/application/interfaces/authenticated-request.interface.ts:12
- Unused export 'JWKSTokenValidationResult' src/application/services/jwks-token-validation.service.ts:14
- Unused export 'Context' src/application/services/logger.service.ts:4
- Unused export 'SERVICE' REDACTED:8
- Unused export 'DATABASE_SERVICE' REDACTED:9
- Unused export 'APP_NAME' REDACTED:13
- Unused export 'POSTGRES_PORT' REDACTED:22
- Unused export 'GOOGLE_IOS_CLIENT_ID' REDACTED:39
- Unused export 'GOOGLE_ANDROID_CLIENT_ID' REDACTED:40
- Unused export 'GOOGLE_MOBILE_CALLBACK_IOS_URL' REDACTED:41
- Unused export 'GOOGLE_MOBILE_CALLBACK_ANDROID_URL' REDACTED:43
- Unused export 'GRAFANA_USER' REDACTED:73
- Unused export 'GRAFANA_PASSWORD' REDACTED:74
- Unused export 'PROMETHEUS_PORT' REDACTED:77
- Unused export 'GRAFANA_PORT' REDACTED:81
- Test-only dependency 'lodash' in production deps package.json:53
- No app-layer HTTPS enforcement detected src/main.ts:53
- Not all async functions that make a request accept an AbortSignal
- Strict null checking is not enabled everywhere the repository type-checks
Minor — 22 finding(s)
- Outdated (npm): @nestjs/common
- Outdated (npm): @nestjs/core
- Outdated (npm): @nestjs/cqrs
- Outdated (npm): @nestjs/jwt
- Outdated (npm): @nestjs/passport
- Outdated (npm): @nestjs/platform-express
- Outdated (npm): @nestjs/swagger
- Outdated (npm): @nestjs/terminus
- Outdated (npm): @nestjs/throttler
- Outdated (npm): @nestjs/typeorm
- Outdated (npm): @types/uuid
- Outdated (npm): @willsoto/nestjs-prometheus
- Outdated (npm): axios
- Outdated (npm): class-validator
- Outdated (npm): dotenv
- Outdated (npm): jose
- Outdated (npm): lodash
- Outdated (npm): module-alias
- Outdated (npm): moment
- Outdated (npm): pg
- Outdated (npm): rimraf
- Outdated (npm): typeorm
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-a48155057f78435aa483c2b2bc11e179/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-a48155057f78435aa483c2b2bc11e179/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 3 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 42 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 6 | 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. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |