Executive summary
Sairyss/domain-driven-hexagon scores 42 out of 100 and is rated Weak, while six of its seven lenses score higher still: Code Health at 93, rated Exemplary, Performance at 85, rated Strong, and Architecture at 77, Domain Modelling at 63, Maturity at 53 and Security and Compliance at 50, all rated Adequate.
The score is lower than those six because the weakest lens counts most, and here that is Production Readiness, which scores 24 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 1 Inverted test pyramid finding(s) in Test Distribution and to resolve the 1 No assertions finding(s) in Test Quality, and if Production Readiness rose to 70, the score would rise from 42 to about 57.
Seven findings are critical: four in Circular Imports, one in IaC & Container Security, one in Knowledge Freshness and one in Test Reliability.
Watchdog couldn't measure 5 dimensions in this code, among them License Compliance, Navigability and Cancellation propagation, so they are left out of the score. The product code is 3,018 lines, which would take an estimated 0.1 person-years, around €4,300, to rebuild.
If Production Readiness rose from 24 to 70, the lowest score rated Strong, the score would rise from 42 to about 57.
Rebuild cost: about €4,300 · Estimate
| Cost to rebuild | €1,400 to €7,300, for 24 to 76 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 42. 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: 3,018 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 src.libs.api.id_response_dto | 2 src.libs.ddd.domain-event_base | 3 src.libs.ddd.entity_base | 4 src.libs.ddd.mapper_interface | 5 src.libs.exceptions.exception_base | 6 src.libs.ports.logger_port | 7 src.modules.user.commands.create-user.create-user_command | 8 src.modules.user.commands.create-user.create-user_request_dto | 9 src.modules.user.commands.create-user.graphql-example.create-user_graphql-resolver | 10 src.modules.user.database.user_repository_port | 11 src.modules.user.domain.value-objects.address_value-object | 12 src.modules.wallet.database.wallet_repository_port | 13 src.libs.api.response_base | 14 src.libs.ddd.aggregate-root_base | 15 src.libs.ddd.repository_port | 16 src.libs.exceptions.exceptions | 17 src.modules.user.commands.create-user.create-user_http_controller | 18 src.modules.user.commands.create-user.create-user_message_controller | 19 src.modules.user.domain.events.user-created_domain-event | 20 src.modules.user.domain.user_errors | 21 src.modules.user.domain.user_types | 22 src.modules.wallet.domain.wallet_errors | 23 src.libs.api.paginated_response_base | 24 src.libs.db.sql-repository_base | 25 src.modules.user.commands.create-user.create-user_service | 26 src.modules.user.commands.delete-user.delete-user_service | 27 src.modules.user.domain.events.user-role-changed_domain-event | 28 src.modules.user.domain.user_entity | 29 src.modules.user.dtos.user_response_dto | 30 src.modules.user.queries.find-users.find-users_query-handler | 31 src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler | 32 src.modules.wallet.domain.wallet_entity | 33 src.modules.user.dtos.user_paginated_response_dto | 34 src.modules.user.queries.find-users.find-users_graphql-resolver | 35 src.modules.user.user_mapper | 36 src.modules.wallet.wallet_mapper | 37 src.modules.user.database.user_repository | 38 src.modules.user.queries.find-users.find-users_http_controller | 39 src.modules.wallet.database.wallet_repository | 40 tests.test-utils.ApiClient |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 src.libs.api.id_response_dto | ||||||||||||||||||||||||||||||||||||||||
| 2 src.libs.ddd.domain-event_base | ||||||||||||||||||||||||||||||||||||||||
| 3 src.libs.ddd.entity_base | ||||||||||||||||||||||||||||||||||||||||
| 4 src.libs.ddd.mapper_interface | ||||||||||||||||||||||||||||||||||||||||
| 5 src.libs.exceptions.exception_base | ||||||||||||||||||||||||||||||||||||||||
| 6 src.libs.ports.logger_port | ||||||||||||||||||||||||||||||||||||||||
| 7 src.modules.user.commands.create-user.create-user_command | ||||||||||||||||||||||||||||||||||||||||
| 8 src.modules.user.commands.create-user.create-user_request_dto | ||||||||||||||||||||||||||||||||||||||||
| 9 src.modules.user.commands.create-user.graphql-example.create-user_graphql-resolver | ||||||||||||||||||||||||||||||||||||||||
| 10 src.modules.user.database.user_repository_port | ||||||||||||||||||||||||||||||||||||||||
| 11 src.modules.user.domain.value-objects.address_value-object | ||||||||||||||||||||||||||||||||||||||||
| 12 src.modules.wallet.database.wallet_repository_port | ||||||||||||||||||||||||||||||||||||||||
| 13 src.libs.api.response_base | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 src.libs.ddd.aggregate-root_base | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 15 src.libs.ddd.repository_port | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 src.libs.exceptions.exceptions | 6 | |||||||||||||||||||||||||||||||||||||||
| 17 src.modules.user.commands.create-user.create-user_http_controller | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 18 src.modules.user.commands.create-user.create-user_message_controller | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 19 src.modules.user.domain.events.user-created_domain-event | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 src.modules.user.domain.user_errors | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 src.modules.user.domain.user_types | 2 | |||||||||||||||||||||||||||||||||||||||
| 22 src.modules.wallet.domain.wallet_errors | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 src.libs.api.paginated_response_base | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 src.libs.db.sql-repository_base | 1 | 1 | 2 | |||||||||||||||||||||||||||||||||||||
| 25 src.modules.user.commands.create-user.create-user_service | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 26 src.modules.user.commands.delete-user.delete-user_service | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 27 src.modules.user.domain.events.user-role-changed_domain-event | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 28 src.modules.user.domain.user_entity | 1 | 3 | ||||||||||||||||||||||||||||||||||||||
| 29 src.modules.user.dtos.user_response_dto | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 src.modules.user.queries.find-users.find-users_query-handler | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 32 src.modules.wallet.domain.wallet_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 33 src.modules.user.dtos.user_paginated_response_dto | 1 | |||||||||||||||||||||||||||||||||||||||
| 34 src.modules.user.queries.find-users.find-users_graphql-resolver | 1 | |||||||||||||||||||||||||||||||||||||||
| 35 src.modules.user.user_mapper | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 36 src.modules.wallet.wallet_mapper | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 37 src.modules.user.database.user_repository | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 38 src.modules.user.queries.find-users.find-users_http_controller | 1 | |||||||||||||||||||||||||||||||||||||||
| 39 src.modules.wallet.database.wallet_repository | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 40 tests.test-utils.ApiClient | 1 | 1 | 1 |
13→1 src.libs.api.response_base uses src.libs.api.id_response_dto✕
- Connections
- 1 pair of types, where a type in src.libs.api.response_base uses a type in src.libs.api.id_response_dto.
- The types involved
src.libs.api.response_base.ResponseBase→src.libs.api.id_response_dto.IdResponse
- Direction
- src.libs.api.response_base uses src.libs.api.id_response_dto, so a change to src.libs.api.id_response_dto can break src.libs.api.response_base, while a change to src.libs.api.response_base can't break src.libs.api.id_response_dto.
- Position
- Below the diagonal: src.libs.api.response_base uses a module listed above it, which is the healthy direction.
14→2 src.libs.ddd.aggregate-root_base uses src.libs.ddd.domain-event_base✕
- Connections
- 1 pair of types, where a type in src.libs.ddd.aggregate-root_base uses a type in src.libs.ddd.domain-event_base.
- The types involved
src.libs.ddd.aggregate-root_base.AggregateRoot→src.libs.ddd.domain-event_base.DomainEvent
- Direction
- src.libs.ddd.aggregate-root_base uses src.libs.ddd.domain-event_base, so a change to src.libs.ddd.domain-event_base can break src.libs.ddd.aggregate-root_base, while a change to src.libs.ddd.aggregate-root_base can't break src.libs.ddd.domain-event_base.
- Position
- Below the diagonal: src.libs.ddd.aggregate-root_base uses a module listed above it, which is the healthy direction.
14→3 src.libs.ddd.aggregate-root_base uses src.libs.ddd.entity_base✕
- Connections
- 1 pair of types, where a type in src.libs.ddd.aggregate-root_base uses a type in src.libs.ddd.entity_base.
- The types involved
src.libs.ddd.aggregate-root_base.AggregateRoot→src.libs.ddd.entity_base.Entity
- Direction
- src.libs.ddd.aggregate-root_base uses src.libs.ddd.entity_base, so a change to src.libs.ddd.entity_base can break src.libs.ddd.aggregate-root_base, while a change to src.libs.ddd.aggregate-root_base can't break src.libs.ddd.entity_base.
- Position
- Below the diagonal: src.libs.ddd.aggregate-root_base uses a module listed above it, which is the healthy direction.
14→6 src.libs.ddd.aggregate-root_base uses src.libs.ports.logger_port✕
- Connections
- 1 pair of types, where a type in src.libs.ddd.aggregate-root_base uses a type in src.libs.ports.logger_port.
- The types involved
src.libs.ddd.aggregate-root_base.AggregateRoot→src.libs.ports.logger_port.LoggerPort
- Direction
- src.libs.ddd.aggregate-root_base uses src.libs.ports.logger_port, so a change to src.libs.ports.logger_port can break src.libs.ddd.aggregate-root_base, while a change to src.libs.ddd.aggregate-root_base can't break src.libs.ports.logger_port.
- Position
- Below the diagonal: src.libs.ddd.aggregate-root_base uses a module listed above it, which is the healthy direction.
15→3 src.libs.ddd.repository_port uses src.libs.ddd.entity_base✕
- Connections
- 1 pair of types, where a type in src.libs.ddd.repository_port uses a type in src.libs.ddd.entity_base.
- The types involved
src.libs.ddd.repository_port.RepositoryPort→src.libs.ddd.entity_base.Entity
- Direction
- src.libs.ddd.repository_port uses src.libs.ddd.entity_base, so a change to src.libs.ddd.entity_base can break src.libs.ddd.repository_port, while a change to src.libs.ddd.repository_port can't break src.libs.ddd.entity_base.
- Position
- Below the diagonal: src.libs.ddd.repository_port uses a module listed above it, which is the healthy direction.
16→5 src.libs.exceptions.exceptions uses src.libs.exceptions.exception_base✕
- Connections
- 6 pairs of types, where a type in src.libs.exceptions.exceptions uses a type in src.libs.exceptions.exception_base.
- The types involved
src.libs.exceptions.exceptions.ArgumentInvalidException→src.libs.exceptions.exception_base.ExceptionBasesrc.libs.exceptions.exceptions.ArgumentNotProvidedException→src.libs.exceptions.exception_base.ExceptionBasesrc.libs.exceptions.exceptions.ArgumentOutOfRangeException→src.libs.exceptions.exception_base.ExceptionBasesrc.libs.exceptions.exceptions.ConflictException→src.libs.exceptions.exception_base.ExceptionBasesrc.libs.exceptions.exceptions.InternalServerErrorException→src.libs.exceptions.exception_base.ExceptionBasesrc.libs.exceptions.exceptions.NotFoundException→src.libs.exceptions.exception_base.ExceptionBase
- Direction
- src.libs.exceptions.exceptions uses src.libs.exceptions.exception_base, so a change to src.libs.exceptions.exception_base can break src.libs.exceptions.exceptions, while a change to src.libs.exceptions.exceptions can't break src.libs.exceptions.exception_base.
- Position
- Below the diagonal: src.libs.exceptions.exceptions uses a module listed above it, which is the healthy direction.
17→1 src.modules.user.commands.create-user.create-user_http_controller uses src.libs.api.id_response_dto✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_http_controller uses a type in src.libs.api.id_response_dto.
- The types involved
src.modules.user.commands.create-user.create-user_http_controller.CreateUserHttpController→src.libs.api.id_response_dto.IdResponse
- Direction
- src.modules.user.commands.create-user.create-user_http_controller uses src.libs.api.id_response_dto, so a change to src.libs.api.id_response_dto can break src.modules.user.commands.create-user.create-user_http_controller, while a change to src.modules.user.commands.create-user.create-user_http_controller can't break src.libs.api.id_response_dto.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_http_controller uses a module listed above it, which is the healthy direction.
17→8 src.modules.user.commands.create-user.create-user_http_controller uses src.modules.user.commands.create-user.create-user_request_dto✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_http_controller uses a type in src.modules.user.commands.create-user.create-user_request_dto.
- The types involved
src.modules.user.commands.create-user.create-user_http_controller.CreateUserHttpController→src.modules.user.commands.create-user.create-user_request_dto.CreateUserRequestDto
- Direction
- src.modules.user.commands.create-user.create-user_http_controller uses src.modules.user.commands.create-user.create-user_request_dto, so a change to src.modules.user.commands.create-user.create-user_request_dto can break src.modules.user.commands.create-user.create-user_http_controller, while a change to src.modules.user.commands.create-user.create-user_http_controller can't break src.modules.user.commands.create-user.create-user_request_dto.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_http_controller uses a module listed above it, which is the healthy direction.
18→1 src.modules.user.commands.create-user.create-user_message_controller uses src.libs.api.id_response_dto✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_message_controller uses a type in src.libs.api.id_response_dto.
- The types involved
src.modules.user.commands.create-user.create-user_message_controller.CreateUserMessageController→src.libs.api.id_response_dto.IdResponse
- Direction
- src.modules.user.commands.create-user.create-user_message_controller uses src.libs.api.id_response_dto, so a change to src.libs.api.id_response_dto can break src.modules.user.commands.create-user.create-user_message_controller, while a change to src.modules.user.commands.create-user.create-user_message_controller can't break src.libs.api.id_response_dto.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_message_controller uses a module listed above it, which is the healthy direction.
18→8 src.modules.user.commands.create-user.create-user_message_controller uses src.modules.user.commands.create-user.create-user_request_dto✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_message_controller uses a type in src.modules.user.commands.create-user.create-user_request_dto.
- The types involved
src.modules.user.commands.create-user.create-user_message_controller.CreateUserMessageController→src.modules.user.commands.create-user.create-user_request_dto.CreateUserRequestDto
- Direction
- src.modules.user.commands.create-user.create-user_message_controller uses src.modules.user.commands.create-user.create-user_request_dto, so a change to src.modules.user.commands.create-user.create-user_request_dto can break src.modules.user.commands.create-user.create-user_message_controller, while a change to src.modules.user.commands.create-user.create-user_message_controller can't break src.modules.user.commands.create-user.create-user_request_dto.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_message_controller uses a module listed above it, which is the healthy direction.
19→2 src.modules.user.domain.events.user-created_domain-event uses src.libs.ddd.domain-event_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.domain.events.user-created_domain-event uses a type in src.libs.ddd.domain-event_base.
- The types involved
src.modules.user.domain.events.user-created_domain-event.UserCreatedDomainEvent→src.libs.ddd.domain-event_base.DomainEvent
- Direction
- src.modules.user.domain.events.user-created_domain-event uses src.libs.ddd.domain-event_base, so a change to src.libs.ddd.domain-event_base can break src.modules.user.domain.events.user-created_domain-event, while a change to src.modules.user.domain.events.user-created_domain-event can't break src.libs.ddd.domain-event_base.
- Position
- Below the diagonal: src.modules.user.domain.events.user-created_domain-event uses a module listed above it, which is the healthy direction.
20→5 src.modules.user.domain.user_errors uses src.libs.exceptions.exception_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.domain.user_errors uses a type in src.libs.exceptions.exception_base.
- The types involved
src.modules.user.domain.user_errors.UserAlreadyExistsError→src.libs.exceptions.exception_base.ExceptionBase
- Direction
- src.modules.user.domain.user_errors uses src.libs.exceptions.exception_base, so a change to src.libs.exceptions.exception_base can break src.modules.user.domain.user_errors, while a change to src.modules.user.domain.user_errors can't break src.libs.exceptions.exception_base.
- Position
- Below the diagonal: src.modules.user.domain.user_errors uses a module listed above it, which is the healthy direction.
21→11 src.modules.user.domain.user_types uses src.modules.user.domain.value-objects.address_value-object✕
- Connections
- 2 pairs of types, where a type in src.modules.user.domain.user_types uses a type in src.modules.user.domain.value-objects.address_value-object.
- The types involved
src.modules.user.domain.user_types.CreateUserProps→src.modules.user.domain.value-objects.address_value-object.Addresssrc.modules.user.domain.user_types.UserProps→src.modules.user.domain.value-objects.address_value-object.Address
- Direction
- src.modules.user.domain.user_types uses src.modules.user.domain.value-objects.address_value-object, so a change to src.modules.user.domain.value-objects.address_value-object can break src.modules.user.domain.user_types, while a change to src.modules.user.domain.user_types can't break src.modules.user.domain.value-objects.address_value-object.
- Position
- Below the diagonal: src.modules.user.domain.user_types uses a module listed above it, which is the healthy direction.
22→5 src.modules.wallet.domain.wallet_errors uses src.libs.exceptions.exception_base✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.domain.wallet_errors uses a type in src.libs.exceptions.exception_base.
- The types involved
src.modules.wallet.domain.wallet_errors.WalletNotEnoughBalanceError→src.libs.exceptions.exception_base.ExceptionBase
- Direction
- src.modules.wallet.domain.wallet_errors uses src.libs.exceptions.exception_base, so a change to src.libs.exceptions.exception_base can break src.modules.wallet.domain.wallet_errors, while a change to src.modules.wallet.domain.wallet_errors can't break src.libs.exceptions.exception_base.
- Position
- Below the diagonal: src.modules.wallet.domain.wallet_errors uses a module listed above it, which is the healthy direction.
23→15 src.libs.api.paginated_response_base uses src.libs.ddd.repository_port✕
- Connections
- 1 pair of types, where a type in src.libs.api.paginated_response_base uses a type in src.libs.ddd.repository_port.
- The types involved
src.libs.api.paginated_response_base.PaginatedResponseDto→src.libs.ddd.repository_port.Paginated
- Direction
- src.libs.api.paginated_response_base uses src.libs.ddd.repository_port, so a change to src.libs.ddd.repository_port can break src.libs.api.paginated_response_base, while a change to src.libs.api.paginated_response_base can't break src.libs.ddd.repository_port.
- Position
- Below the diagonal: src.libs.api.paginated_response_base uses a module listed above it, which is the healthy direction.
24→4 src.libs.db.sql-repository_base uses src.libs.ddd.mapper_interface✕
- Connections
- 1 pair of types, where a type in src.libs.db.sql-repository_base uses a type in src.libs.ddd.mapper_interface.
- The types involved
src.libs.db.sql-repository_base.SqlRepositoryBase→src.libs.ddd.mapper_interface.Mapper
- Direction
- src.libs.db.sql-repository_base uses src.libs.ddd.mapper_interface, so a change to src.libs.ddd.mapper_interface can break src.libs.db.sql-repository_base, while a change to src.libs.db.sql-repository_base can't break src.libs.ddd.mapper_interface.
- Position
- Below the diagonal: src.libs.db.sql-repository_base uses a module listed above it, which is the healthy direction.
24→6 src.libs.db.sql-repository_base uses src.libs.ports.logger_port✕
- Connections
- 1 pair of types, where a type in src.libs.db.sql-repository_base uses a type in src.libs.ports.logger_port.
- The types involved
src.libs.db.sql-repository_base.SqlRepositoryBase→src.libs.ports.logger_port.LoggerPort
- Direction
- src.libs.db.sql-repository_base uses src.libs.ports.logger_port, so a change to src.libs.ports.logger_port can break src.libs.db.sql-repository_base, while a change to src.libs.db.sql-repository_base can't break src.libs.ports.logger_port.
- Position
- Below the diagonal: src.libs.db.sql-repository_base uses a module listed above it, which is the healthy direction.
24→15 src.libs.db.sql-repository_base uses src.libs.ddd.repository_port✕
- Connections
- 2 pairs of types, where a type in src.libs.db.sql-repository_base uses a type in src.libs.ddd.repository_port.
- The types involved
src.libs.db.sql-repository_base.SqlRepositoryBase→src.libs.ddd.repository_port.Paginatedsrc.libs.db.sql-repository_base.SqlRepositoryBase→src.libs.ddd.repository_port.RepositoryPort
- Direction
- src.libs.db.sql-repository_base uses src.libs.ddd.repository_port, so a change to src.libs.ddd.repository_port can break src.libs.db.sql-repository_base, while a change to src.libs.db.sql-repository_base can't break src.libs.ddd.repository_port.
- Position
- Below the diagonal: src.libs.db.sql-repository_base uses a module listed above it, which is the healthy direction.
25→7 src.modules.user.commands.create-user.create-user_service uses src.modules.user.commands.create-user.create-user_command✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_service uses a type in src.modules.user.commands.create-user.create-user_command.
- The types involved
src.modules.user.commands.create-user.create-user_service.CreateUserService→src.modules.user.commands.create-user.create-user_command.CreateUserCommand
- Direction
- src.modules.user.commands.create-user.create-user_service uses src.modules.user.commands.create-user.create-user_command, so a change to src.modules.user.commands.create-user.create-user_command can break src.modules.user.commands.create-user.create-user_service, while a change to src.modules.user.commands.create-user.create-user_service can't break src.modules.user.commands.create-user.create-user_command.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_service uses a module listed above it, which is the healthy direction.
25→10 src.modules.user.commands.create-user.create-user_service uses src.modules.user.database.user_repository_port✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_service uses a type in src.modules.user.database.user_repository_port.
- The types involved
src.modules.user.commands.create-user.create-user_service.CreateUserService→src.modules.user.database.user_repository_port.UserRepositoryPort
- Direction
- src.modules.user.commands.create-user.create-user_service uses src.modules.user.database.user_repository_port, so a change to src.modules.user.database.user_repository_port can break src.modules.user.commands.create-user.create-user_service, while a change to src.modules.user.commands.create-user.create-user_service can't break src.modules.user.database.user_repository_port.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_service uses a module listed above it, which is the healthy direction.
25→20 src.modules.user.commands.create-user.create-user_service uses src.modules.user.domain.user_errors✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.create-user.create-user_service uses a type in src.modules.user.domain.user_errors.
- The types involved
src.modules.user.commands.create-user.create-user_service.CreateUserService→src.modules.user.domain.user_errors.UserAlreadyExistsError
- Direction
- src.modules.user.commands.create-user.create-user_service uses src.modules.user.domain.user_errors, so a change to src.modules.user.domain.user_errors can break src.modules.user.commands.create-user.create-user_service, while a change to src.modules.user.commands.create-user.create-user_service can't break src.modules.user.domain.user_errors.
- Position
- Below the diagonal: src.modules.user.commands.create-user.create-user_service uses a module listed above it, which is the healthy direction.
26→10 src.modules.user.commands.delete-user.delete-user_service uses src.modules.user.database.user_repository_port✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.delete-user.delete-user_service uses a type in src.modules.user.database.user_repository_port.
- The types involved
src.modules.user.commands.delete-user.delete-user_service.DeleteUserService→src.modules.user.database.user_repository_port.UserRepositoryPort
- Direction
- src.modules.user.commands.delete-user.delete-user_service uses src.modules.user.database.user_repository_port, so a change to src.modules.user.database.user_repository_port can break src.modules.user.commands.delete-user.delete-user_service, while a change to src.modules.user.commands.delete-user.delete-user_service can't break src.modules.user.database.user_repository_port.
- Position
- Below the diagonal: src.modules.user.commands.delete-user.delete-user_service uses a module listed above it, which is the healthy direction.
26→16 src.modules.user.commands.delete-user.delete-user_service uses src.libs.exceptions.exceptions✕
- Connections
- 1 pair of types, where a type in src.modules.user.commands.delete-user.delete-user_service uses a type in src.libs.exceptions.exceptions.
- The types involved
src.modules.user.commands.delete-user.delete-user_service.DeleteUserService→src.libs.exceptions.exceptions.NotFoundException
- Direction
- src.modules.user.commands.delete-user.delete-user_service uses src.libs.exceptions.exceptions, so a change to src.libs.exceptions.exceptions can break src.modules.user.commands.delete-user.delete-user_service, while a change to src.modules.user.commands.delete-user.delete-user_service can't break src.libs.exceptions.exceptions.
- Position
- Below the diagonal: src.modules.user.commands.delete-user.delete-user_service uses a module listed above it, which is the healthy direction.
27→2 src.modules.user.domain.events.user-role-changed_domain-event uses src.libs.ddd.domain-event_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.domain.events.user-role-changed_domain-event uses a type in src.libs.ddd.domain-event_base.
- The types involved
src.modules.user.domain.events.user-role-changed_domain-event.UserRoleChangedDomainEvent→src.libs.ddd.domain-event_base.DomainEvent
- Direction
- src.modules.user.domain.events.user-role-changed_domain-event uses src.libs.ddd.domain-event_base, so a change to src.libs.ddd.domain-event_base can break src.modules.user.domain.events.user-role-changed_domain-event, while a change to src.modules.user.domain.events.user-role-changed_domain-event can't break src.libs.ddd.domain-event_base.
- Position
- Below the diagonal: src.modules.user.domain.events.user-role-changed_domain-event uses a module listed above it, which is the healthy direction.
27→21 src.modules.user.domain.events.user-role-changed_domain-event uses src.modules.user.domain.user_types✕
- Connections
- 1 pair of types, where a type in src.modules.user.domain.events.user-role-changed_domain-event uses a type in src.modules.user.domain.user_types.
- The types involved
src.modules.user.domain.events.user-role-changed_domain-event.UserRoleChangedDomainEvent→src.modules.user.domain.user_types.UserRoles
- Direction
- src.modules.user.domain.events.user-role-changed_domain-event uses src.modules.user.domain.user_types, so a change to src.modules.user.domain.user_types can break src.modules.user.domain.events.user-role-changed_domain-event, while a change to src.modules.user.domain.events.user-role-changed_domain-event can't break src.modules.user.domain.user_types.
- Position
- Below the diagonal: src.modules.user.domain.events.user-role-changed_domain-event uses a module listed above it, which is the healthy direction.
28→14 src.modules.user.domain.user_entity uses src.libs.ddd.aggregate-root_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.domain.user_entity uses a type in src.libs.ddd.aggregate-root_base.
- The types involved
src.modules.user.domain.user_entity.UserEntity→src.libs.ddd.aggregate-root_base.AggregateRoot
- Direction
- src.modules.user.domain.user_entity uses src.libs.ddd.aggregate-root_base, so a change to src.libs.ddd.aggregate-root_base can break src.modules.user.domain.user_entity, while a change to src.modules.user.domain.user_entity can't break src.libs.ddd.aggregate-root_base.
- Position
- Below the diagonal: src.modules.user.domain.user_entity uses a module listed above it, which is the healthy direction.
28→21 src.modules.user.domain.user_entity uses src.modules.user.domain.user_types✕
- Connections
- 3 pairs of types, where a type in src.modules.user.domain.user_entity uses a type in src.modules.user.domain.user_types.
- The types involved
src.modules.user.domain.user_entity.UserEntity→src.modules.user.domain.user_types.CreateUserPropssrc.modules.user.domain.user_entity.UserEntity→src.modules.user.domain.user_types.UpdateUserAddressPropssrc.modules.user.domain.user_entity.UserEntity→src.modules.user.domain.user_types.UserRoles
- Direction
- src.modules.user.domain.user_entity uses src.modules.user.domain.user_types, so a change to src.modules.user.domain.user_types can break src.modules.user.domain.user_entity, while a change to src.modules.user.domain.user_entity can't break src.modules.user.domain.user_types.
- Position
- Below the diagonal: src.modules.user.domain.user_entity uses a module listed above it, which is the healthy direction.
29→13 src.modules.user.dtos.user_response_dto uses src.libs.api.response_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.dtos.user_response_dto uses a type in src.libs.api.response_base.
- The types involved
src.modules.user.dtos.user_response_dto.UserResponseDto→src.libs.api.response_base.ResponseBase
- Direction
- src.modules.user.dtos.user_response_dto uses src.libs.api.response_base, so a change to src.libs.api.response_base can break src.modules.user.dtos.user_response_dto, while a change to src.modules.user.dtos.user_response_dto can't break src.libs.api.response_base.
- Position
- Below the diagonal: src.modules.user.dtos.user_response_dto uses a module listed above it, which is the healthy direction.
30→15 src.modules.user.queries.find-users.find-users_query-handler uses src.libs.ddd.repository_port✕
- Connections
- 1 pair of types, where a type in src.modules.user.queries.find-users.find-users_query-handler uses a type in src.libs.ddd.repository_port.
- The types involved
src.modules.user.queries.find-users.find-users_query-handler.FindUsersQueryHandler→src.libs.ddd.repository_port.Paginated
- Direction
- src.modules.user.queries.find-users.find-users_query-handler uses src.libs.ddd.repository_port, so a change to src.libs.ddd.repository_port can break src.modules.user.queries.find-users.find-users_query-handler, while a change to src.modules.user.queries.find-users.find-users_query-handler can't break src.libs.ddd.repository_port.
- Position
- Below the diagonal: src.modules.user.queries.find-users.find-users_query-handler uses a module listed above it, which is the healthy direction.
31→12 src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses src.modules.wallet.database.wallet_repository_port✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses a type in src.modules.wallet.database.wallet_repository_port.
- The types involved
src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler.CreateWalletWhenUserIsCreatedDomainEventHandler→src.modules.wallet.database.wallet_repository_port.WalletRepositoryPort
- Direction
- src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses src.modules.wallet.database.wallet_repository_port, so a change to src.modules.wallet.database.wallet_repository_port can break src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler, while a change to src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler can't break src.modules.wallet.database.wallet_repository_port.
- Position
- Below the diagonal: src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses a module listed above it, which is the healthy direction.
31→19 src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses src.modules.user.domain.events.user-created_domain-event✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses a type in src.modules.user.domain.events.user-created_domain-event.
- The types involved
src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler.CreateWalletWhenUserIsCreatedDomainEventHandler→src.modules.user.domain.events.user-created_domain-event.UserCreatedDomainEvent
- Direction
- src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses src.modules.user.domain.events.user-created_domain-event, so a change to src.modules.user.domain.events.user-created_domain-event can break src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler, while a change to src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler can't break src.modules.user.domain.events.user-created_domain-event.
- Position
- Below the diagonal: src.modules.wallet.application.event-handlers.create-wallet-when-user-is-created_domain-event-handler uses a module listed above it, which is the healthy direction.
32→14 src.modules.wallet.domain.wallet_entity uses src.libs.ddd.aggregate-root_base✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.domain.wallet_entity uses a type in src.libs.ddd.aggregate-root_base.
- The types involved
src.modules.wallet.domain.wallet_entity.WalletEntity→src.libs.ddd.aggregate-root_base.AggregateRoot
- Direction
- src.modules.wallet.domain.wallet_entity uses src.libs.ddd.aggregate-root_base, so a change to src.libs.ddd.aggregate-root_base can break src.modules.wallet.domain.wallet_entity, while a change to src.modules.wallet.domain.wallet_entity can't break src.libs.ddd.aggregate-root_base.
- Position
- Below the diagonal: src.modules.wallet.domain.wallet_entity uses a module listed above it, which is the healthy direction.
32→22 src.modules.wallet.domain.wallet_entity uses src.modules.wallet.domain.wallet_errors✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.domain.wallet_entity uses a type in src.modules.wallet.domain.wallet_errors.
- The types involved
src.modules.wallet.domain.wallet_entity.WalletEntity→src.modules.wallet.domain.wallet_errors.WalletNotEnoughBalanceError
- Direction
- src.modules.wallet.domain.wallet_entity uses src.modules.wallet.domain.wallet_errors, so a change to src.modules.wallet.domain.wallet_errors can break src.modules.wallet.domain.wallet_entity, while a change to src.modules.wallet.domain.wallet_entity can't break src.modules.wallet.domain.wallet_errors.
- Position
- Below the diagonal: src.modules.wallet.domain.wallet_entity uses a module listed above it, which is the healthy direction.
33→23 src.modules.user.dtos.user_paginated_response_dto uses src.libs.api.paginated_response_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.dtos.user_paginated_response_dto uses a type in src.libs.api.paginated_response_base.
- The types involved
src.modules.user.dtos.user_paginated_response_dto.UserPaginatedResponseDto→src.libs.api.paginated_response_base.PaginatedResponseDto
- Direction
- src.modules.user.dtos.user_paginated_response_dto uses src.libs.api.paginated_response_base, so a change to src.libs.api.paginated_response_base can break src.modules.user.dtos.user_paginated_response_dto, while a change to src.modules.user.dtos.user_paginated_response_dto can't break src.libs.api.paginated_response_base.
- Position
- Below the diagonal: src.modules.user.dtos.user_paginated_response_dto uses a module listed above it, which is the healthy direction.
34→30 src.modules.user.queries.find-users.find-users_graphql-resolver uses src.modules.user.queries.find-users.find-users_query-handler✕
- Connections
- 1 pair of types, where a type in src.modules.user.queries.find-users.find-users_graphql-resolver uses a type in src.modules.user.queries.find-users.find-users_query-handler.
- The types involved
src.modules.user.queries.find-users.find-users_graphql-resolver.FindUsersGraphqlResolver→src.modules.user.queries.find-users.find-users_query-handler.FindUsersQuery
- Direction
- src.modules.user.queries.find-users.find-users_graphql-resolver uses src.modules.user.queries.find-users.find-users_query-handler, so a change to src.modules.user.queries.find-users.find-users_query-handler can break src.modules.user.queries.find-users.find-users_graphql-resolver, while a change to src.modules.user.queries.find-users.find-users_graphql-resolver can't break src.modules.user.queries.find-users.find-users_query-handler.
- Position
- Below the diagonal: src.modules.user.queries.find-users.find-users_graphql-resolver uses a module listed above it, which is the healthy direction.
35→4 src.modules.user.user_mapper uses src.libs.ddd.mapper_interface✕
- Connections
- 1 pair of types, where a type in src.modules.user.user_mapper uses a type in src.libs.ddd.mapper_interface.
- The types involved
src.modules.user.user_mapper.UserMapper→src.libs.ddd.mapper_interface.Mapper
- Direction
- src.modules.user.user_mapper uses src.libs.ddd.mapper_interface, so a change to src.libs.ddd.mapper_interface can break src.modules.user.user_mapper, while a change to src.modules.user.user_mapper can't break src.libs.ddd.mapper_interface.
- Position
- Below the diagonal: src.modules.user.user_mapper uses a module listed above it, which is the healthy direction.
35→28 src.modules.user.user_mapper uses src.modules.user.domain.user_entity✕
- Connections
- 1 pair of types, where a type in src.modules.user.user_mapper uses a type in src.modules.user.domain.user_entity.
- The types involved
src.modules.user.user_mapper.UserMapper→src.modules.user.domain.user_entity.UserEntity
- Direction
- src.modules.user.user_mapper uses src.modules.user.domain.user_entity, so a change to src.modules.user.domain.user_entity can break src.modules.user.user_mapper, while a change to src.modules.user.user_mapper can't break src.modules.user.domain.user_entity.
- Position
- Below the diagonal: src.modules.user.user_mapper uses a module listed above it, which is the healthy direction.
35→29 src.modules.user.user_mapper uses src.modules.user.dtos.user_response_dto✕
- Connections
- 1 pair of types, where a type in src.modules.user.user_mapper uses a type in src.modules.user.dtos.user_response_dto.
- The types involved
src.modules.user.user_mapper.UserMapper→src.modules.user.dtos.user_response_dto.UserResponseDto
- Direction
- src.modules.user.user_mapper uses src.modules.user.dtos.user_response_dto, so a change to src.modules.user.dtos.user_response_dto can break src.modules.user.user_mapper, while a change to src.modules.user.user_mapper can't break src.modules.user.dtos.user_response_dto.
- Position
- Below the diagonal: src.modules.user.user_mapper uses a module listed above it, which is the healthy direction.
36→4 src.modules.wallet.wallet_mapper uses src.libs.ddd.mapper_interface✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.wallet_mapper uses a type in src.libs.ddd.mapper_interface.
- The types involved
src.modules.wallet.wallet_mapper.WalletMapper→src.libs.ddd.mapper_interface.Mapper
- Direction
- src.modules.wallet.wallet_mapper uses src.libs.ddd.mapper_interface, so a change to src.libs.ddd.mapper_interface can break src.modules.wallet.wallet_mapper, while a change to src.modules.wallet.wallet_mapper can't break src.libs.ddd.mapper_interface.
- Position
- Below the diagonal: src.modules.wallet.wallet_mapper uses a module listed above it, which is the healthy direction.
36→32 src.modules.wallet.wallet_mapper uses src.modules.wallet.domain.wallet_entity✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.wallet_mapper uses a type in src.modules.wallet.domain.wallet_entity.
- The types involved
src.modules.wallet.wallet_mapper.WalletMapper→src.modules.wallet.domain.wallet_entity.WalletEntity
- Direction
- src.modules.wallet.wallet_mapper uses src.modules.wallet.domain.wallet_entity, so a change to src.modules.wallet.domain.wallet_entity can break src.modules.wallet.wallet_mapper, while a change to src.modules.wallet.wallet_mapper can't break src.modules.wallet.domain.wallet_entity.
- Position
- Below the diagonal: src.modules.wallet.wallet_mapper uses a module listed above it, which is the healthy direction.
37→10 src.modules.user.database.user_repository uses src.modules.user.database.user_repository_port✕
- Connections
- 1 pair of types, where a type in src.modules.user.database.user_repository uses a type in src.modules.user.database.user_repository_port.
- The types involved
src.modules.user.database.user_repository.UserRepository→src.modules.user.database.user_repository_port.UserRepositoryPort
- Direction
- src.modules.user.database.user_repository uses src.modules.user.database.user_repository_port, so a change to src.modules.user.database.user_repository_port can break src.modules.user.database.user_repository, while a change to src.modules.user.database.user_repository can't break src.modules.user.database.user_repository_port.
- Position
- Below the diagonal: src.modules.user.database.user_repository uses a module listed above it, which is the healthy direction.
37→24 src.modules.user.database.user_repository uses src.libs.db.sql-repository_base✕
- Connections
- 1 pair of types, where a type in src.modules.user.database.user_repository uses a type in src.libs.db.sql-repository_base.
- The types involved
src.modules.user.database.user_repository.UserRepository→src.libs.db.sql-repository_base.SqlRepositoryBase
- Direction
- src.modules.user.database.user_repository uses src.libs.db.sql-repository_base, so a change to src.libs.db.sql-repository_base can break src.modules.user.database.user_repository, while a change to src.modules.user.database.user_repository can't break src.libs.db.sql-repository_base.
- Position
- Below the diagonal: src.modules.user.database.user_repository uses a module listed above it, which is the healthy direction.
37→28 src.modules.user.database.user_repository uses src.modules.user.domain.user_entity✕
- Connections
- 1 pair of types, where a type in src.modules.user.database.user_repository uses a type in src.modules.user.domain.user_entity.
- The types involved
src.modules.user.database.user_repository.UserRepository→src.modules.user.domain.user_entity.UserEntity
- Direction
- src.modules.user.database.user_repository uses src.modules.user.domain.user_entity, so a change to src.modules.user.domain.user_entity can break src.modules.user.database.user_repository, while a change to src.modules.user.database.user_repository can't break src.modules.user.domain.user_entity.
- Position
- Below the diagonal: src.modules.user.database.user_repository uses a module listed above it, which is the healthy direction.
37→35 src.modules.user.database.user_repository uses src.modules.user.user_mapper✕
- Connections
- 1 pair of types, where a type in src.modules.user.database.user_repository uses a type in src.modules.user.user_mapper.
- The types involved
src.modules.user.database.user_repository.UserRepository→src.modules.user.user_mapper.UserMapper
- Direction
- src.modules.user.database.user_repository uses src.modules.user.user_mapper, so a change to src.modules.user.user_mapper can break src.modules.user.database.user_repository, while a change to src.modules.user.database.user_repository can't break src.modules.user.user_mapper.
- Position
- Below the diagonal: src.modules.user.database.user_repository uses a module listed above it, which is the healthy direction.
38→33 src.modules.user.queries.find-users.find-users_http_controller uses src.modules.user.dtos.user_paginated_response_dto✕
- Connections
- 1 pair of types, where a type in src.modules.user.queries.find-users.find-users_http_controller uses a type in src.modules.user.dtos.user_paginated_response_dto.
- The types involved
src.modules.user.queries.find-users.find-users_http_controller.FindUsersHttpController→src.modules.user.dtos.user_paginated_response_dto.UserPaginatedResponseDto
- Direction
- src.modules.user.queries.find-users.find-users_http_controller uses src.modules.user.dtos.user_paginated_response_dto, so a change to src.modules.user.dtos.user_paginated_response_dto can break src.modules.user.queries.find-users.find-users_http_controller, while a change to src.modules.user.queries.find-users.find-users_http_controller can't break src.modules.user.dtos.user_paginated_response_dto.
- Position
- Below the diagonal: src.modules.user.queries.find-users.find-users_http_controller uses a module listed above it, which is the healthy direction.
39→12 src.modules.wallet.database.wallet_repository uses src.modules.wallet.database.wallet_repository_port✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.database.wallet_repository uses a type in src.modules.wallet.database.wallet_repository_port.
- The types involved
src.modules.wallet.database.wallet_repository.WalletRepository→src.modules.wallet.database.wallet_repository_port.WalletRepositoryPort
- Direction
- src.modules.wallet.database.wallet_repository uses src.modules.wallet.database.wallet_repository_port, so a change to src.modules.wallet.database.wallet_repository_port can break src.modules.wallet.database.wallet_repository, while a change to src.modules.wallet.database.wallet_repository can't break src.modules.wallet.database.wallet_repository_port.
- Position
- Below the diagonal: src.modules.wallet.database.wallet_repository uses a module listed above it, which is the healthy direction.
39→24 src.modules.wallet.database.wallet_repository uses src.libs.db.sql-repository_base✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.database.wallet_repository uses a type in src.libs.db.sql-repository_base.
- The types involved
src.modules.wallet.database.wallet_repository.WalletRepository→src.libs.db.sql-repository_base.SqlRepositoryBase
- Direction
- src.modules.wallet.database.wallet_repository uses src.libs.db.sql-repository_base, so a change to src.libs.db.sql-repository_base can break src.modules.wallet.database.wallet_repository, while a change to src.modules.wallet.database.wallet_repository can't break src.libs.db.sql-repository_base.
- Position
- Below the diagonal: src.modules.wallet.database.wallet_repository uses a module listed above it, which is the healthy direction.
39→36 src.modules.wallet.database.wallet_repository uses src.modules.wallet.wallet_mapper✕
- Connections
- 1 pair of types, where a type in src.modules.wallet.database.wallet_repository uses a type in src.modules.wallet.wallet_mapper.
- The types involved
src.modules.wallet.database.wallet_repository.WalletRepository→src.modules.wallet.wallet_mapper.WalletMapper
- Direction
- src.modules.wallet.database.wallet_repository uses src.modules.wallet.wallet_mapper, so a change to src.modules.wallet.wallet_mapper can break src.modules.wallet.database.wallet_repository, while a change to src.modules.wallet.database.wallet_repository can't break src.modules.wallet.wallet_mapper.
- Position
- Below the diagonal: src.modules.wallet.database.wallet_repository uses a module listed above it, which is the healthy direction.
40→1 tests.test-utils.ApiClient uses src.libs.api.id_response_dto✕
- Connections
- 1 pair of types, where a type in tests.test-utils.ApiClient uses a type in src.libs.api.id_response_dto.
- The types involved
tests.test-utils.ApiClient.ApiClient→src.libs.api.id_response_dto.IdResponse
- Direction
- tests.test-utils.ApiClient uses src.libs.api.id_response_dto, so a change to src.libs.api.id_response_dto can break tests.test-utils.ApiClient, while a change to tests.test-utils.ApiClient can't break src.libs.api.id_response_dto.
- Position
- Below the diagonal: tests.test-utils.ApiClient uses a module listed above it, which is the healthy direction.
40→8 tests.test-utils.ApiClient uses src.modules.user.commands.create-user.create-user_request_dto✕
- Connections
- 1 pair of types, where a type in tests.test-utils.ApiClient uses a type in src.modules.user.commands.create-user.create-user_request_dto.
- The types involved
tests.test-utils.ApiClient.ApiClient→src.modules.user.commands.create-user.create-user_request_dto.CreateUserRequestDto
- Direction
- tests.test-utils.ApiClient uses src.modules.user.commands.create-user.create-user_request_dto, so a change to src.modules.user.commands.create-user.create-user_request_dto can break tests.test-utils.ApiClient, while a change to tests.test-utils.ApiClient can't break src.modules.user.commands.create-user.create-user_request_dto.
- Position
- Below the diagonal: tests.test-utils.ApiClient uses a module listed above it, which is the healthy direction.
40→33 tests.test-utils.ApiClient uses src.modules.user.dtos.user_paginated_response_dto✕
- Connections
- 1 pair of types, where a type in tests.test-utils.ApiClient uses a type in src.modules.user.dtos.user_paginated_response_dto.
- The types involved
tests.test-utils.ApiClient.ApiClient→src.modules.user.dtos.user_paginated_response_dto.UserPaginatedResponseDto
- Direction
- tests.test-utils.ApiClient uses src.modules.user.dtos.user_paginated_response_dto, so a change to src.modules.user.dtos.user_paginated_response_dto can break tests.test-utils.ApiClient, while a change to tests.test-utils.ApiClient can't break src.modules.user.dtos.user_paginated_response_dto.
- Position
- Below the diagonal: tests.test-utils.ApiClient 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 |
|---|---|---|
| A02:2025 — Security Misconfiguration | 2 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 1 | Medium |
| A08:2025 — Software or Data Integrity Failures | 1 | Medium |
Roadmap
Begin by fixing the inverted test pyramid in Test Distribution and addressing missing assertions in the create-user end-to-end test. Next, establish a CI workflow to automatically build and run tests on every push or pull request. Finally, implement a default-deny authentication strategy for all endpoints and codify disaster recovery procedures, including backups and recovery documentation, into your infrastructure as code.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 Inverted test pyramid finding(s) in Test Distribution. | +14.1 pts | Low | Test Distribution |
| Resolve the 1 No assertions finding(s) in Test Quality — start with create-user.e2e-spec.ts. | +4.3 pts | Low | Test Quality |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +2.8 pts | Low | ADR Quality |
| Resolve the 3 Orphaned file finding(s) in Knowledge Freshness — start with sql-repository.base.ts, entity.base.ts, user.entity.ts. | +2.7 pts | Low | Knowledge Freshness |
| Add a CI workflow that builds and runs the test suite on every push/PR. | +4.2 pts | Medium | CI/CD gates |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +4.2 pts | Medium | DR & Backup |
| Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do. | +3.6 pts | Medium | Access Controls |
| Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. | +1.4 pts | Low | Knowledge Freshness |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 5.1 | Mixed | IaC & Container Security: High IaC: REDACTED |
| src/libs/db/sql-repository.base.ts | 8.2 | Near-clean | Explicit Debt: TodoComment |
| tests/user/create-user/create-user.e2e-spec.ts | 8.5 | Near-clean | Test Quality: No assertions: I try to create a user with invalid data |
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. 76 of 79 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — 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 — 79 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, 39 of 59 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
- D12 Dependency Hygiene — 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. This repository's 1 package.json manifest(s) WERE read and their pinning discipline assessed; what went unanswered is the currency half, because answering it needs a lockfile resolved to CONCRETE versions and this repository commits none — a package.json states version RANGES, and a range names no particular release to be behind. So registry.npmjs.org was never asked, and there was nothing here for it to grade. This is a true statement about the repository and NOT a gap on our side: no lockfile reader we could write would find anything here to read, so there is no capability behind this row to build.
- D14 License Compliance — 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. Not scored — this repository declares package.json manifests but commits no lockfile this pass can resolve (npm, pnpm, yarn and bun each write a different one, and `bun.lockb` is a binary format with no published shape), so the set of packages it actually ships is not resolvable from the checkout: its declarations carry version RANGES, and grading whichever release happens to be newest today would be a verdict about a dependency graph this repository has not pinned. Commit the lock and this dimension grades its production dependencies against registry.npmjs.org. NOT a finding that this repository's licences are compliant: this dimension asserts nothing about its licensing in either direction.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (21 contributor(s) across 506 commit(s) sampled, automation and bot accounts excluded). One of them holds 87% of the history; the other 20 hold 0.6% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- D22 Internal API Consistency — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. This repository's source is written only in languages whose packages are published through a manifest, and no manifest in the tree makes a publication act: either there is no package manifest of any ecosystem (no package.json, pyproject.toml, setup.py, gemspec, Cargo.toml, pom.xml, build.gradle, composer.json, pubspec.yaml or mix.exs), or every one present declares in its package manager's own terms that it is not published (an npm package marked "private": true, a Cargo package with publish = false, a pubspec with publish_to: none, a Composer "project", a Poetry project with package-mode = false, or the "Private :: Do Not Upload" classifier). With no publication act there is no intentionally-exposed surface for API consistency to be judged over.
- 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.
- D30 Dependency Vulnerabilities — 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. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; REDACTED was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that REDACTED is free of known-vulnerable dependencies.
- D43 Malicious Dependencies — 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. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; REDACTED was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that REDACTED is free of known-vulnerable dependencies.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — postgres Pulling pgadmin Pulling pgadmin Error Get "https://registry-1.docker.io/v2/": Forbidden postgres Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: pgadmin Pulling postgres Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden pgadmin Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
- 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.
- X2 Cancellation propagation — 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, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP 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.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D13 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").
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D6 · Cohesion (LCOM4)
0 of 5 classes have LCOM4 above 3.
D9 · Test Distribution
3 test methods: 0 unit, 0 integration, 0 BDD, 3 e2e. The JavaScript/TypeScript suite contributes 3 `it`/`test` case(s) across 2 test file(s) declaring at least one; its tier split is read from package names and paths only.
What to do
- Resolve the 1 Inverted test pyramid finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).
D10 · Test Quality
0 skipped, 1 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 3 tests.
What to do
- Resolve the 1 No assertions finding(s) in Test Quality — start with create-user.e2e-spec.ts. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Test Quality 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.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
1 deducted task-comment markers across 2448 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.
What to do
- Resolve the 1 TodoComment finding(s) in Explicit Debt — start with sql-repository.base.ts. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Explicit Debt in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The repository's root README is a well-written overview of the project (Domain-Driven Hexagon) with links to related repositories and an excellent rationale for why every recommendation in the document is advisory rather than rule-based. It also states what technologies are used and that patterns are agnostic to any framework/language, which is useful context for readers who may not be adopting the listed tools. However it does not contain installation/build/usage instructions or a dedicated architecture/design doc (the outline lists Architecture as present but the body clips mid-architecture section), so those gaps fall below the scope of this single README and are not flagged.
What to do
- Improve Documentation Quality — currently 5.0/10. — The repository's root README is a well-written overview of the project (Domain-Driven Hexagon) with links to related repositories and an excellent rationale for why every recommendation in the document is advisory rather than rule-based. It also states what technologies are used and that patterns are agnostic to any framework/language, which is useful context for readers who may not be adopting the listed tools. However it does not contain installation/build/usage instructions or a dedicated architecture/design doc (the outline lists Architecture as present but the body clips mid-architecture section), so those gaps fall below the scope of this single README and are not flagged.
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D23 · Boundary Type-Coupling
No domain types leak across context boundaries (2 contexts).
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)
semgrep found no security issues.
D30 · Dependency Vulnerabilities
No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. REDACTED was not scanned (REDACTED: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.
D31 · IaC & Container Security
2 finding(s): 0 critical, 1 high, 1 medium, 0 low.
What to do
- Resolve the 1 High IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D34 · Knowledge Freshness
4 of 4 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is .dependency-cruiser.js. Counted over 4 of the 87 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 3 Orphaned file finding(s) in Knowledge Freshness — start with sql-repository.base.ts, entity.base.ts, user.entity.ts. — One of this dimension's main actionable groups (3 recommendation-level).
- Resolve the 1 Orphaned knowledge finding(s) in Knowledge Freshness — start with .dependency-cruiser.js. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D43 · Malicious Dependencies
No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. REDACTED was not scanned (REDACTED: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.
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 29 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
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
AX9 · CQS / query purity
C2 · Access Controls
- This repository serves requests — NestFactory.create (src/main.ts:7) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — src/main.ts:7
What to do
- Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
DM1 · Aggregate boundaries
DM11 · Constructible invalid state
DM2 · Strongly-typed ids
- `WalletCreatedDomainEvent.userId` 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/modules/wallet/domain/events/wallet-created.domain-event.ts:4
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
- `UserEntity` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/user/domain/user.entity.ts:15
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
DM6 · Domain ↔ infrastructure boundary
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
- A shipped function's whole body still throws a "not implemented" error — generated scaffolding that was never completed. Implement it or remove the dead surface. — src/modules/wallet/wallet.mapper.ts:33
What to do
- Finish or delete the functions that still throw "not implemented", and replace placeholder text before shipping.
IC1 · Incompleteness & stubs
- `toResponse` throws an exception whose message says it isn't finished — a not-implemented stub wearing an ordinary exception. Implement it or remove it. — src/modules/wallet/wallet.mapper.ts:33
What to do
- Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
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.
P11 · BDD / executable specs
P2 · Observability
- `database/migrate.ts` reports through `console.*` at line 7 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — database/migrate.ts:7
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.
- Consider OpenTelemetry tracing/metrics (@opentelemetry/sdk-node) and a health-check endpoint (@godaddy/terminus or a /health route) for operability.
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.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF3 · Async & latency hygiene
- `fs.readFileSync` in `callback to fs.readdir` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — database/seed.ts:22
What to do
- TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- src/modules/user/commands/create-user/create-user.request.dto.ts:21 · src/modules/user/queries/find-users/find-users.request.dto.ts:11 — the two spans are one implementation copied and then locally edited — 68 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/modules/user/commands/create-user/create-user.request.dto.ts:21
- src/modules/user/commands/create-user/create-user.command.ts:3 · src/modules/user/domain/events/user-created.domain-event.ts:3 — the 2 copies are spread across 2 files, and each CITED SPAN is a SPECIALISATION DECLARATION — a type whose `extends` clause names a base and whose body hands that base its own values through `super(…)`. The shared module this dimension usually asks you to extract already exists: it is that base, every one of these sites already reaches it, and the `super(…)` call this row matched on is where each site passes its differences in. So do not read this as an extract-a-helper row — there is no missing helper, and what is left at each site is the declaration of one distinct specialisation, which cannot be deleted without deleting the thing it declares. Read what actually differs between the spans, because two different answers follow. Where the sites differ only in the values they hand the base — a type argument, a service, an alias, a cache — the repetition is a TEMPLATE, and the only moves that collapse it are to generate these declarations from the set they enumerate or to replace the repeated construction with one factory each site calls with its own values; where that set is the point, each site pinning one distinct thing, the repetition IS the enumeration and there is nothing to remove. Where instead a span carries logic OUTSIDE the delegation that is the same at every site, that logic is the part to move, and its home is the base type rather than a new module. Reported because the copies still drift apart the first time only one of them is edited. — src/modules/user/commands/create-user/create-user.command.ts:3
- src/modules/user/queries/find-users/find-users.graphql-resolver.ts:26 · src/modules/user/queries/find-users/find-users.http.controller.ts:41 — 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/modules/user/queries/find-users/find-users.graphql-resolver.ts:26
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity
- isEmpty has cyclomatic complexity 12 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/libs/guard.ts:5
- (top-level) 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/libs/ddd/entity.base.ts:1
R3 · Large Files
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. (×6) — database/seed.ts:1, database/getMigrator.ts:1, src/main.ts:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling
- test ✓ · lint ✓ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
- Add `tsc --noEmit` as package.json scripts and run them in CI.
R7 · Dead Code
- Unreachable from the 4 application, 4 tooling and 11 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (4 application, 4 tooling, 11 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/libs/decorators/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it (×2) — src/libs/decorators/final.decorator.ts, src/libs/decorators/frozen.decorator.ts
- no import path from any entry point (4 application, 4 tooling, 11 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 — src/libs/decorators/index.ts
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/libs/types/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/libs/types/index.ts in the same commit, or the barrel will import a name that no longer exists. (×3) — src/libs/types/non-function-properties.type.ts:9, src/libs/types/require-one.type.ts:4, src/libs/types/require-one.type.ts:13
- Nothing imports this binding — it is safe to review for removal. — src/modules/user/database/user.repository.port.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
- 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)
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
- src/libs/ddd/entity.base.ts → src/libs/utils/index.ts → src/libs/utils/convert-props-to-object.util.ts → src/libs/ddd/entity.base.ts (one verified cycle inside a mutually-dependent group of 4 files) — src/libs/ddd/entity.base.ts:7
- src/libs/exceptions/exceptions.ts → src/libs/exceptions/index.ts → src/libs/exceptions/exceptions.ts — src/libs/exceptions/exceptions.ts:1
- src/modules/user/database/user.repository.ts → src/modules/user/user.mapper.ts → src/modules/user/database/user.repository.ts — src/modules/user/database/user.repository.ts:5
- src/modules/wallet/database/wallet.repository.ts → src/modules/wallet/wallet.mapper.ts → src/modules/wallet/database/wallet.repository.ts — src/modules/wallet/database/wallet.repository.ts:7
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture
- `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:18
What to do
- 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
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
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 93% | Exemplary | Strongest area. |
| Architecture | 77% | Adequate — gated by R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 53% | Adequate — gated by D34, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 24% | Critical — gated by D9, P1, P3, P5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 50% | Adequate — gated by C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 63% | Adequate — gated by DM4, DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 85% | Strong | Solid. |
Unscored — 2 check(s) recorded observations but carry no score
- SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not included — 60 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
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — postgres Pulling pgadmin Pulling pgadmin Error Get "https://registry-1.docker.io/v2/": Forbidden postgres Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: pgadmin Pulling postgres Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden pgadmin Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
- D11 Test Reliability — Test reliability NOT MEASURED: the JavaScript/TypeScript suite's dependency install refused the committed lockfile, so no test ever ran and flakiness could not be exercised — the dependency install for the repository root refused the committed lockfile (npm error code ERESOLVE), so the suite never ran. It is excluded from the score rather than counted as a defect; a lockfile in sync with package.json is what lets the suite be re-run.
- D12 Dependency Hygiene — Dependency currency not established — this repository commits no lockfile to resolve
- D14 License Compliance — npm licences not graded — this npm repository commits no lockfile this pass can resolve
- D16 Bus Factor — single-maintainer 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 — No intentionally-exposed public API to evaluate for consistency.
- 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.
- 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
- D8 Code Coverage — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the dependency install for the repository root refused the committed lockfile (npm error code ERESOLVE), so the suite never ran. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
- 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
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this lens looks for (2 CQRS handler(s))
- ED5 Idempotency — 1 mutating command handler(s)/consumer(s) detected and 1 handler method(s) walked, but no persistent write was recognised in any of them — idempotency not assessed
- 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
- P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HTTP client call or construction in the JavaScript/TypeScript source (service entry point: src/main.ts:7 (NestFactory.create))
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `jest --coverage --coverageReporters=lcovonly`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for 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.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- R5 Dependency Freshness — no package-lock.json — dependency freshness not measured (would require an npm lockfile); JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- X2 Cancellation propagation — 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
- 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 — 7 finding(s)
- Import cycle (2 files) src/libs/exceptions/exceptions.ts:1
- Import cycle (2 files) src/modules/user/database/user.repository.ts:5
- Import cycle (2 files) src/modules/wallet/database/wallet.repository.ts:7
- Test suite cannot be installed from its own lockfile: the repository root
- REDACTED
- Orphaned knowledge .dependency-cruiser.js:1
- Import cycle (3 files) src/libs/ddd/entity.base.ts:7
Serious — 31 finding(s)
- No test reaches this file database/seed.ts:1
- No test reaches this file database/getMigrator.ts:1
- No test reaches this file src/main.ts:1
- No test reaches this file src/libs/decorators/final.decorator.ts:1
- No test reaches this file src/libs/decorators/frozen.decorator.ts:1
- No test reaches this file database/migrate.ts:1
- No authorization src/main.ts:7
- No assertions: I try to create a user with invalid data tests/user/create-user/create-user.e2e-spec.ts:57
- Test reliability not measured — JavaScript/TypeScript suite install refused the lockfile
- TodoComment src/libs/db/sql-repository.base.ts:174
- REDACTED
- Coverage not measured — JavaScript/TypeScript suite
- Anemic entity: UserEntity src/modules/user/domain/user.entity.ts:15
- Unfinished stub — throws a "not implemented" error src/modules/wallet/wallet.mapper.ts:33
- Unfinished stub — throws a "not implemented" exception src/modules/wallet/wallet.mapper.ts:33
- No CI pipeline
- No DR/backup evidence
- Sync-over-async blocking database/seed.ts:22
- Duplicated block with local edits (14 matched lines × 2 locations) src/modules/user/commands/create-user/create-user.request.dto.ts:21
- Duplicated block (13 lines × 2 locations) src/modules/user/commands/create-user/create-user.command.ts:3
- Duplicated block (10 lines × 2 locations) src/modules/user/queries/find-users/find-users.graphql-resolver.ts:26
- Complex function isEmpty (cyclomatic 12, cognitive 13) src/libs/guard.ts:5
- Complex function (top-level) (cyclomatic 11, cognitive 10) src/libs/ddd/entity.base.ts:1
- No typecheck script
- Dead file (~18 LoC) src/libs/decorators/final.decorator.ts
- Dead file (~11 LoC) src/libs/decorators/frozen.decorator.ts
- Dead file (~2 LoC) src/libs/decorators/index.ts
- Unused dependency 'apollo-server-core'
- Unused dependency 'apollo-server-express'
- Unused dependency 'graphql'
- JavaScript dependencies are not locked
Minor — 20 finding(s)
- Orphaned file src/libs/db/sql-repository.base.ts:1
- Orphaned file src/libs/ddd/entity.base.ts:1
- Orphaned file src/modules/user/domain/user.entity.ts:1
- No ADRs found
- REDACTED
- Further orphaned files (smaller)
- REDACTED
- Inverted test pyramid
- Primitive id on a domain type: WalletCreatedDomainEvent.userId src/modules/wallet/domain/events/wallet-created.domain-event.ts:4
- No ADRs
- Console output used as the logging channel database/migrate.ts:7
- No SAST
- No rollback/health safety
- No changelog
- Unused export 'NonFunctionProperties' src/libs/types/non-function-properties.type.ts:9
- Unused export 'RequireAtLeastOne' src/libs/types/require-one.type.ts:4
- Unused export 'RequireOnlyOne' src/libs/types/require-one.type.ts:13
- Unused export 'FindUsersParams' src/modules/user/database/user.repository.port.ts:4
- No app-layer HTTPS enforcement detected src/main.ts:18
- Duplicated predicate src/libs/ddd/command.base.ts:50
Minor — 1 finding(s)
- Dependency hygiene PARTLY measured — npm pinning read, dependency currency not (no committed lockfile, so no resolved version to grade)
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-f591bcaa45cc4693b63ff629ba907cd7/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-f591bcaa45cc4693b63ff629ba907cd7/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 0 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 0 | — |
| 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 | 0 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 2 | 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 | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 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 |