Executive summary
raouf-b-dev/ecommerce-store-api scores 53 out of 100 and is rated Adequate, while six of its seven lenses score higher still: Performance at 100, rated Exemplary, and Domain Modelling at 70, Security and Compliance at 69, Architecture at 59, Maturity at 55 and Code Health at 54, all rated Adequate. The project hasn't declared a stable release yet, so its lenses are rated against a lower bar than a released product's, while the score itself is worked out as for any repository.
The score is lower than those six because the weakest lens counts most, and here that is Production Readiness, which scores 48 and is rated Adequate. Its REDACTED Scanning dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 3 Leaked secret finding(s) in REDACTED Scanning and to resolve the 5 Deprecated finding(s) in Dependency Hygiene, and if Production Readiness rose to 70, the score would rise from 53 to about 58.
29 findings are critical: seven in Circular Imports, six in Secrets (history), five in Change Coupling, four in Dependency Hygiene, three in REDACTED Scanning, one in ADR Conformance, one in Dependency Vulnerabilities, one in IaC & Container Security and one in Static Analysis (SAST).
Watchdog couldn't measure 4 dimensions in this code, among them Internal API Consistency, Navigability and Web-Security Posture, so they are left out of the score. The product code is 48,746 lines, which would take an estimated 0.8 person-years, around €110,000, to rebuild.
If Production Readiness rose from 48 to 70, the lowest score rated Strong, the score would rise from 53 to about 58.
New since the last survey: 194 findings
- Cyclomatic Complexity · generate-envs.generateEnvs (cyclomatic 26) scripts/generate-envs.js
- Cyclomatic Complexity · ascii-prose.findComments::skipString (cyclomatic 23) scripts/ascii-prose.cjs
- Cyclomatic Complexity · agent-output.selectVitestCommands (cyclomatic 22) scripts/agent-output.mjs
- Cyclomatic Complexity · ascii-prose.collectFiles::walk (cyclomatic 22) scripts/ascii-prose.cjs
- Cyclomatic Complexity · CreatePaymentUseCase.execute (cyclomatic 16) src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts
- Cyclomatic Complexity · CreatePaymentIntentUseCase.execute (cyclomatic 16) src/modules/payments/core/application/usecases/create-payment-intent/create-payment-intent.usecase.ts
- Cognitive Complexity · generate-envs.generateEnvs (cognitive 44) scripts/generate-envs.js
- Cognitive Complexity · ascii-prose.findComments::skipString (cognitive 36) scripts/ascii-prose.cjs
- Cognitive Complexity · ascii-prose.collectFiles::walk (cognitive 32) scripts/ascii-prose.cjs
- Cognitive Complexity · agent-output.selectVitestCommands (cognitive 21) scripts/agent-output.mjs
- Cognitive Complexity · SweepExpiredReservationsUseCase.execute (cognitive 21) src/modules/inventory/core/application/usecases/sweep-expired-reservations/sweep-expired-reservations.usecase.ts
- Cognitive Complexity · CreatePaymentIntentUseCase.execute (cognitive 20) src/modules/payments/core/application/usecases/create-payment-intent/create-payment-intent.usecase.ts
- Cognitive Complexity · money-decimal.minorUnitsFromDecimal (cognitive 16) src/shared-kernel/domain/value-objects/money-decimal.ts
- Cognitive Complexity · UpdateProductUseCase.execute (cognitive 16) src/modules/products/core/application/usecases/update-product/update-product.usecase.ts
- Code Coverage · Low coverage: src/config/config.module.ts src/config/config.module.ts
- Code Coverage · Low coverage: src/config/resolve-env-file-path.ts src/config/resolve-env-file-path.ts
- Code Coverage · Low coverage: src/infrastructure/infrastructure.module.ts src/infrastructure/infrastructure.module.ts
- Code Coverage · Low coverage: src/infrastructure/database/database.module.ts src/infrastructure/database/database.module.ts
- Code Coverage · Low coverage: src/infrastructure/demo/secondary-adapters/adapters/demo-seed-runner.adapter.ts src/infrastructure/demo/secondary-adapters/adapters/demo-seed-runner.adapter.ts
- Code Coverage · Low coverage: src/infrastructure/health/indicators/process.health-indicator.ts src/infrastructure/health/indicators/process.health-indicator.ts
- Code Coverage · Low coverage: src/infrastructure/health/indicators/redis.health-indicator.ts src/infrastructure/health/indicators/redis.health-indicator.ts
- Code Coverage · Low coverage: src/infrastructure/health/indicators/websocket.health-indicator.ts src/infrastructure/health/indicators/websocket.health-indicator.ts
- Code Coverage · Low coverage: src/infrastructure/metrics/metrics.controller.ts src/infrastructure/metrics/metrics.controller.ts
- Code Coverage · Low coverage: src/infrastructure/metrics/listeners/business-metrics.listener.ts src/infrastructure/metrics/listeners/business-metrics.listener.ts
- Code Coverage · Low coverage: src/infrastructure/queue/bullmq-connection.module.ts src/infrastructure/queue/bullmq-connection.module.ts
- Code Coverage · Low coverage: src/infrastructure/queue/queue.module.ts src/infrastructure/queue/queue.module.ts
- Code Coverage · Low coverage: src/infrastructure/redis/redis.service.ts src/infrastructure/redis/redis.service.ts
- Code Coverage · Low coverage: src/infrastructure/throttler/throttler.module.ts src/infrastructure/throttler/throttler.module.ts
- Code Coverage · Low coverage: src/interceptors/result.interceptor.ts src/interceptors/result.interceptor.ts
- Code Coverage · Low coverage: src/modules/analytics/primary-adapters/dto/inventory-alerts-query.dto.ts src/modules/analytics/primary-adapters/dto/inventory-alerts-query.dto.ts
- Code Coverage · Low coverage: src/modules/analytics/primary-adapters/dto/top-products-query.dto.ts src/modules/analytics/primary-adapters/dto/top-products-query.dto.ts
- Code Coverage · Low coverage: src/modules/authentication/core/application/usecases/revoke-all-for-user/revoke-all-for-user.usecase.ts src/modules/authentication/core/application/usecases/revoke-all-for-user/revoke-all-for-user.usecase.ts
- Code Coverage · Low coverage: src/modules/authentication/secondary-adapters/services/bcrypt.service.ts src/modules/authentication/secondary-adapters/services/bcrypt.service.ts
- Code Coverage · Low coverage: src/modules/authorization/authorization.module.ts src/modules/authorization/authorization.module.ts
- Code Coverage · Low coverage: src/modules/carts/carts.module.ts src/modules/carts/carts.module.ts
- Code Coverage · Low coverage: src/modules/carts/secondary-adapters/adapters/module-inventory.gateway.ts src/modules/carts/secondary-adapters/adapters/module-inventory.gateway.ts
- Code Coverage · Low coverage: src/modules/carts/testing/mocks/inventory-gateway.mock.ts src/modules/carts/testing/mocks/inventory-gateway.mock.ts
- Code Coverage · Low coverage: src/modules/carts/testing/mocks/product-gateway.mock.ts src/modules/carts/testing/mocks/product-gateway.mock.ts
- Code Coverage · Low coverage: src/modules/identity/identity.module.ts src/modules/identity/identity.module.ts
- Code Coverage · Low coverage: src/modules/identity/secondary-adapters/adapters/module-authorization.gateway.ts src/modules/identity/secondary-adapters/adapters/module-authorization.gateway.ts
- Code Coverage · Low coverage: src/modules/inventory/inventory.module.ts src/modules/inventory/inventory.module.ts
- Code Coverage · Low coverage: src/modules/inventory/core/application/usecases/get-order-reservations/get-order-reservations.usecase.ts src/modules/inventory/core/application/usecases/get-order-reservations/get-order-reservations.usecase.ts
- Code Coverage · Low coverage: src/modules/notifications/notifications.controller.ts src/modules/notifications/notifications.controller.ts
- Code Coverage · Low coverage: src/modules/notifications/primary-adapters/dto/get-user-notifications.dto.ts src/modules/notifications/primary-adapters/dto/get-user-notifications.dto.ts
- Code Coverage · Low coverage: src/modules/orders/orders.module.ts src/modules/orders/orders.module.ts
- Code Coverage · Low coverage: src/modules/orders/core/application/usecases/clear-checkout-cart/clear-checkout-cart.usecase.ts src/modules/orders/core/application/usecases/clear-checkout-cart/clear-checkout-cart.usecase.ts
- Code Coverage · Low coverage: src/modules/orders/core/application/usecases/confirm-checkout-reservation/confirm-checkout-reservation.usecase.ts src/modules/orders/core/application/usecases/confirm-checkout-reservation/confirm-checkout-reservation.usecase.ts
- Code Coverage · Low coverage: src/modules/orders/core/application/usecases/reserve-stock-for-checkout/reserve-stock-for-checkout.usecase.ts src/modules/orders/core/application/usecases/reserve-stock-for-checkout/reserve-stock-for-checkout.usecase.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/shipping-address.dto.ts src/modules/orders/primary-adapters/dto/shipping-address.dto.ts
- Code Coverage · Low coverage: src/modules/payments/payments.module.ts src/modules/payments/payments.module.ts
- Code Coverage · Low coverage: src/modules/payments/core/domain/value-objects/refund-status.ts src/modules/payments/core/domain/value-objects/refund-status.ts
- Code Coverage · Low coverage: src/modules/payments/primary-adapters/dto/list-payments-query.dto.ts src/modules/payments/primary-adapters/dto/list-payments-query.dto.ts
- Code Coverage · Low coverage: src/modules/products/products.module.ts src/modules/products/products.module.ts
- Code Coverage · Low coverage: src/modules/products/primary-adapters/dto/list-products-query.dto.ts src/modules/products/primary-adapters/dto/list-products-query.dto.ts
- Code Coverage · Low coverage: src/modules/products/secondary-adapters/config/env-supported-currencies.adapter.ts src/modules/products/secondary-adapters/config/env-supported-currencies.adapter.ts
- Code Coverage · Low coverage: src/modules/products/testing/factories/create-product-input.factory.ts src/modules/products/testing/factories/create-product-input.factory.ts
- Test Quality · No assertions: returns a failure Result for an unknown currency code src/infrastructure/platform/get-platform-config.query.spec.ts
- Test Quality · No assertions: returns unauthorized when the refresh token signature is invalid src/modules/authentication/core/application/usecases/refresh-token/refresh-token.usecase.spec.ts
- Test Quality · No assertions: should return failure if user role assignment not found src/modules/authorization/core/application/usecases/user-role/find-role-by-user-id.usecase.spec.ts
- Test Quality · No assertions: returns a failure when line items use different currencies src/modules/carts/core/application/mappers/cart-presentation.mapper.spec.ts
- Test Quality · No assertions: returns failure when repository fails to find expired reservations src/modules/inventory/core/application/usecases/sweep-expired-reservations/sweep-expired-reservations.usecase.spec.ts
- Test Quality · No assertions: rejects release when in CONFIRMED status src/modules/inventory/core/domain/entities/reservation.spec.ts
- Test Quality · No assertions: rejects when not confirmed src/modules/inventory/core/domain/entities/reservation.spec.ts
- Test Quality · No assertions: should fail if inventory not found src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.spec.ts
- Test Quality · No assertions: should fail if insufficient stock src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.spec.ts
- Test Quality · No assertions: should return failure if not found src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.spec.ts
- Test Quality · No assertions: should fail if reservation status in DB is not PENDING src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.spec.ts
- Test Quality · No assertions: should fail if reservation in DB is expired src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.spec.ts
- Test Quality · No assertions: should fail if reservation status in DB is not PENDING src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.spec.ts
- Test Quality · No assertions: should return infrastructure error when queue fails src/modules/inventory/secondary-adapters/schedulers/bullmq-inventory.scheduler.spec.ts
- Test Quality · No assertions: should return infrastructure error when queue fails src/modules/inventory/secondary-adapters/schedulers/bullmq-inventory.scheduler.spec.ts
- Test Quality · No assertions: fails when the saved payment has no id src/modules/orders/secondary-adapters/adapters/module-payment.gateway.spec.ts
- Test Quality · No assertions: returns infrastructure error when getCartUseCase fails src/modules/orders/secondary-adapters/adapters/module-cart.gateway.spec.ts
- Test Quality · No assertions: returns infrastructure error when cart item has empty currency src/modules/orders/secondary-adapters/adapters/module-cart.gateway.spec.ts
- Test Quality · No assertions: returns infrastructure error when cart item has invalid currency code src/modules/orders/secondary-adapters/adapters/module-cart.gateway.spec.ts
- Test Quality · No assertions: passes through use case error when getCartUseCase fails src/modules/orders/secondary-adapters/adapters/module-cart.gateway.spec.ts
- Test Quality · No assertions: returns infrastructure error on failure src/modules/orders/secondary-adapters/adapters/module-cart.gateway.spec.ts
- Test Quality · No assertions: returns infrastructure error when clearCartUseCase fails src/modules/orders/secondary-adapters/adapters/module-cart.gateway.spec.ts
- Test Quality · No assertions: returns an InfrastructureError when flowProducer.add throws src/modules/orders/secondary-adapters/schedulers/bullmq-checkout.scheduler.spec.ts
- Test Quality · No assertions: propagates failure when handlePaymentWebhookService fails src/modules/payments/core/application/usecases/handle-stripe-webhook/handle-stripe-webhook.usecase.spec.ts
- Test Quality · No assertions: fails when value is not a string src/modules/payments/core/domain/value-objects/payment-provider-id.spec.ts
- Test Quality · No assertions: fails when value is empty src/modules/payments/core/domain/value-objects/payment-provider-id.spec.ts
- Test Quality · No assertions: fails without trimming when value contains whitespace src/modules/payments/core/domain/value-objects/payment-provider-id.spec.ts
- Test Quality · No assertions: fails when value has underscores or uppercase characters src/modules/payments/core/domain/value-objects/payment-provider-id.spec.ts
- Test Quality · No assertions: propagates repository lookup failure src/modules/products/core/application/seed/seed-demo-categories.usecase.spec.ts
- Test Quality · No assertions: should fail when a demo category slug is missing or inactive src/modules/products/core/application/seed/seed-demo-catalog.usecase.spec.ts
- Test Quality · No assertions: should propagate error if listing existing products fails src/modules/products/core/application/seed/seed-demo-catalog.usecase.spec.ts
- Test Quality · No assertions: should propagate failure if individual product creation fails src/modules/products/core/application/seed/seed-demo-catalog.usecase.spec.ts
- Test Quality · No assertions: returns the repository failure when the product is not saved src/modules/products/core/application/usecases/create-product/create-product.usecase.spec.ts
- Test Quality · No assertions: returns the repository failure when the product is not deleted src/modules/products/core/application/usecases/delete-product/delete-product.usecase.spec.ts
- Test Quality · No assertions: returns the repository failure when the product is not found src/modules/products/core/application/usecases/update-product/update-product.usecase.spec.ts
- Test Quality · No assertions: returns failure for invalid currency code in create src/shared-kernel/domain/value-objects/currency.spec.ts
- Test Quality · No assertions: returns failure for removed currency codes XDR and XSU src/shared-kernel/domain/value-objects/currency.spec.ts
- Dependency Hygiene · Deprecated: prom-client package.json
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- Churn × Complexity Hotspots · Hotspot: src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
- Secrets (history) · REDACTED
Fixed since the last survey: 274 findings
- Cyclomatic Complexity · ascii-prose.findComments (cyclomatic 36) scripts/ascii-prose.cjs
- Cyclomatic Complexity · ascii-prose.collectFiles (cyclomatic 22) scripts/ascii-prose.cjs
- Cyclomatic Complexity · seed.bootstrap (cyclomatic 18) scripts/seed.ts
- Cyclomatic Complexity · CheckoutFailureListener.onModuleInit (cyclomatic 16) src/modules/orders/primary-adapters/listeners/checkout-failure.listener.ts
- Cognitive Complexity · ascii-prose.collectFiles (cognitive 32) scripts/ascii-prose.cjs
- Cognitive Complexity · setup-bootstrap.runSetup (cognitive 18) scripts/lib/setup-bootstrap.js
- Cognitive Complexity · seed.bootstrap (cognitive 18) scripts/seed.ts
- God Classes · FunctionTooLong: seed.bootstrap scripts/seed.ts
- Cohesion (LCOM4) · Low cohesion: PaymentsController (LCOM4 4) REDACTED
- Code Coverage · Low coverage: src/main.ts src/main.ts
- Code Coverage · Low coverage: src/infrastructure/idempotency/index.ts src/infrastructure/idempotency/index.ts
- Code Coverage · Low coverage: src/infrastructure/jwt/index.ts src/infrastructure/jwt/index.ts
- Code Coverage · Low coverage: src/infrastructure/tracing/index.ts src/infrastructure/tracing/index.ts
- Code Coverage · Low coverage: src/migrations/1787339318490-InitialBaseline.ts src/migrations/1787339318490-InitialBaseline.ts
- Code Coverage · Low coverage: src/migrations/1787339318500-AddCategoriesTable.ts src/migrations/1787339318500-AddCategoriesTable.ts
- Code Coverage · Low coverage: src/migrations/1787400000001-AnalyticsQueryIndexes.ts src/migrations/1787400000001-AnalyticsQueryIndexes.ts
- Code Coverage · Low coverage: src/migrations/1787400000002-AddCartItemCurrency.ts src/migrations/1787400000002-AddCartItemCurrency.ts
- Code Coverage · Low coverage: src/modules/authentication/core/application/services/jwt-signer.service.ts src/modules/authentication/core/application/services/jwt-signer.service.ts
- Code Coverage · Low coverage: src/modules/authentication/primary-adapters/decorators/index.ts src/modules/authentication/primary-adapters/decorators/index.ts
- Code Coverage · Low coverage: src/modules/authentication/secondary-adapters/persistence/mappers/session-token.mapper.ts src/modules/authentication/secondary-adapters/persistence/mappers/session-token.mapper.ts
- Code Coverage · Low coverage: src/modules/health/indicators/process.health-indicator.ts src/modules/health/indicators/process.health-indicator.ts
- Code Coverage · Low coverage: src/modules/health/indicators/redis.health-indicator.ts src/modules/health/indicators/redis.health-indicator.ts
- Code Coverage · Low coverage: src/modules/health/indicators/websocket.health-indicator.ts src/modules/health/indicators/websocket.health-indicator.ts
- Code Coverage · Low coverage: src/modules/identity/core/domain/repositories/address.repository.ts src/modules/identity/core/domain/repositories/address.repository.ts
- Code Coverage · Low coverage: src/modules/inventory/inventory.processor.ts src/modules/inventory/inventory.processor.ts
- Code Coverage · Low coverage: src/modules/inventory/primary-adapters/dto/stock-reservation-response.dto.ts src/modules/inventory/primary-adapters/dto/stock-reservation-response.dto.ts
- Code Coverage · Low coverage: src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts
- Code Coverage · Low coverage: src/modules/orders/core/application/usecases/refund-checkout-payment/refund-checkout-payment.usecase.ts src/modules/orders/core/application/usecases/refund-checkout-payment/refund-checkout-payment.usecase.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/create-order-item.dto.ts src/modules/orders/primary-adapters/dto/create-order-item.dto.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/create-order.dto.ts src/modules/orders/primary-adapters/dto/create-order.dto.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/order-item-response.dto.ts src/modules/orders/primary-adapters/dto/order-item-response.dto.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/order-response.dto.ts src/modules/orders/primary-adapters/dto/order-response.dto.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/payment-info.dto.ts src/modules/orders/primary-adapters/dto/payment-info.dto.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/dto/update-order.dto.ts src/modules/orders/primary-adapters/dto/update-order.dto.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/jobs/process-payment.job.ts src/modules/orders/primary-adapters/jobs/process-payment.job.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/jobs/refund-payment.job.ts src/modules/orders/primary-adapters/jobs/refund-payment.job.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/listeners/checkout-compensation-job-data.ts src/modules/orders/primary-adapters/listeners/checkout-compensation-job-data.ts
- Code Coverage · Low coverage: src/modules/orders/primary-adapters/listeners/checkout-failure.listener.ts src/modules/orders/primary-adapters/listeners/checkout-failure.listener.ts
- Code Coverage · Low coverage: src/modules/orders/secondary-adapters/adapters/module-cart.gateway.ts src/modules/orders/secondary-adapters/adapters/module-cart.gateway.ts
- Code Coverage · Low coverage: src/modules/orders/secondary-adapters/adapters/module-payment.gateway.ts src/modules/orders/secondary-adapters/adapters/module-payment.gateway.ts
- Code Coverage · Low coverage: src/modules/payments/core/application/seed/demo-payments.ts src/modules/payments/core/application/seed/demo-payments.ts
- Code Coverage · Low coverage: src/modules/payments/core/application/usecases/create-payment-intent/create-payment-intent.usecase.ts src/modules/payments/core/application/usecases/create-payment-intent/create-payment-intent.usecase.ts
- Code Coverage · Low coverage: src/modules/payments/core/domain/index.ts src/modules/payments/core/domain/index.ts
- Code Coverage · Low coverage: src/modules/payments/primary-adapters/dto/record-cod-payment.dto.ts src/modules/payments/primary-adapters/dto/record-cod-payment.dto.ts
- Code Coverage · Low coverage: src/modules/payments/secondary-adapters/gateways/payment-gateway.factory.ts src/modules/payments/secondary-adapters/gateways/payment-gateway.factory.ts
- Code Coverage · Low coverage: src/shared-kernel/domain/value-objects/money.ts src/shared-kernel/domain/value-objects/money.ts
- Code Coverage · Low coverage: src/testing/helpers/auth-test.helper.ts src/testing/helpers/auth-test.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/clock-test.helper.ts src/testing/helpers/clock-test.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/database-test.helper.ts src/testing/helpers/database-test.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/e2e-catalog.helper.ts src/testing/helpers/e2e-catalog.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/e2e-checkout.helper.ts src/testing/helpers/e2e-checkout.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/e2e-inventory.helper.ts src/testing/helpers/e2e-inventory.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/e2e-order.helper.ts src/testing/helpers/e2e-order.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/e2e-stripe-webhook.helper.ts src/testing/helpers/e2e-stripe-webhook.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/e2e-test-app.helper.ts src/testing/helpers/e2e-test-app.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/http-error-assertion.helper.ts src/testing/helpers/http-error-assertion.helper.ts
- Code Coverage · Low coverage: src/testing/helpers/poll.helper.ts src/testing/helpers/poll.helper.ts
- Code Coverage · Low coverage: src/testing/mocks/env-config.service.mock.ts src/testing/mocks/env-config.service.mock.ts
- Code Coverage · Low coverage: src/testing/mocks/order-scheduler.mock.ts src/testing/mocks/order-scheduler.mock.ts
- Test Quality · No assertions: should return failure if session is revoked src/modules/authentication/core/application/usecases/refresh-token/refresh-token.usecase.spec.ts
- Test Quality · No assertions: should return failure if cart is not found by cartId src/modules/carts/core/application/usecases/get-cart/get-cart.usecase.spec.ts
- Test Quality · No assertions: rejects cancellation when status is %s src/modules/orders/core/domain/entities/order.spec.ts
- Test Quality · No assertions: should fail if save fails src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.spec.ts
- Test Quality · No assertions: should fail if refund amount exceeds payment amount src/modules/payments/core/application/usecases/process-refund/process-refund.usecase.spec.ts
- Test Quality · No assertions: should return Failure(UseCaseError) if product is not created src/modules/products/core/application/usecases/create-product/create-product.usecase.spec.ts
- Test Quality · No assertions: should return Failure(UseCaseError) if product is not deleted src/modules/products/core/application/usecases/delete-product/delete-product.usecase.spec.ts
- Test Quality · No assertions: should return Failure(UseCaseError) if product is not found src/modules/products/core/application/usecases/update-product/update-product.usecase.spec.ts
- Dependency Hygiene · Floating npm dependency: @nestjs/mapped-types
- Churn × Complexity Hotspots · Hotspot: scripts/seed.ts scripts/seed.ts
- Dependency Vulnerabilities · Critical CVE: [GHSA redacted] REDACTED
- Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
- Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
- Change Coupling · Boundary-crossing change coupling: cached-inventory-repository.ts ↔ cached.order-repository.ts src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts
- Code Duplication · Duplication concentrated across 3 sibling directories (6 clone groups) src/modules/payments/core/domain/entities/payment.ts
- Code Duplication · Duplication concentrated across 5 sibling directories (5 clone groups) src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts
- Code Duplication · Duplication concentrated across 6 sibling directories (5 clone groups) src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts
- Code Duplication · Duplicated block with local edits (94 matched lines × 2 locations) src/modules/products/core/domain/entities/category.ts
- Code Duplication · Duplicated block with local edits (57 matched lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/postgres-inventory-repository/postgres-inventory-repository.ts
- Code Duplication · Duplicated block with local edits (57 matched lines × 2 locations) src/modules/products/core/application/usecases/create-product/create-product.usecase.ts
- Code Duplication · Duplicated block with local edits (45 matched lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts
- Code Duplication · Duplicated block with local edits (42 matched lines × 2 locations) src/modules/carts/core/domain/entities/cart-item.ts
- Code Duplication · Duplicated block with local edits (40 matched lines × 2 locations) src/modules/carts/secondary-adapters/persistence/mappers/cart.mapper.ts
- Code Duplication · Duplicated block (38 lines × 2 locations) REDACTED
- Code Duplication · Duplicated block (32 lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts
- Code Duplication · Duplicated block with local edits (32 matched lines × 2 locations) src/modules/orders/primary-adapters/jobs/create-order.job.ts
- Code Duplication · Duplicated block (28 lines × 2 locations) REDACTED
- Code Duplication · Duplicated block (28 lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts
- Code Duplication · Duplicated block (28 lines × 2 locations) src/modules/orders/primary-adapters/jobs/create-order.job.ts
- Code Duplication · Duplicated block (28 lines × 2 locations) src/modules/orders/secondary-adapters/schedulers/bullmq-checkout.scheduler.ts
- Code Duplication · Duplicated block (28 lines × 2 locations) src/modules/payments/secondary-adapters/schedulers/bullmq-payment-events.scheduler.ts
- Code Duplication · Duplicated block (27 lines × 2 locations) src/modules/identity/primary-adapters/dto/list-users-query.dto.ts
- Code Duplication · Duplicated block (26 lines × 2 locations) src/modules/carts/core/application/usecases/clear-cart/clear-cart.usecase.ts
- Code Duplication · Duplicated block (26 lines × 2 locations) src/modules/identity/core/application/usecases/address/delete-address/delete-address.usecase.ts
- Code Duplication · Duplicated block (26 lines × 2 locations) src/modules/inventory/secondary-adapters/persistence/mappers/inventory.mapper.ts
- Code Duplication · Duplicated block (25 lines × 2 locations) REDACTED
- Code Duplication · Duplicated block (25 lines × 2 locations) src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts
- Code Duplication · Duplicated block (25 lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/postgres-inventory-repository/postgres-inventory-repository.ts
- Code Duplication · Duplicated block (24 lines × 2 locations) src/modules/orders/primary-adapters/dto/list-orders-query.dto.ts
- Code Duplication · Duplicated block (24 lines × 2 locations) src/modules/orders/primary-adapters/dto/order-detail-response.dto.ts
- Code Duplication · Duplicated block (23 lines × 2 locations) src/modules/carts/secondary-adapters/repositories/postgres-cart-repository/postgres.cart-repository.ts
Rebuild cost: about €110,000 · Estimate
| Cost to rebuild | €37,000 to €190,000, for 614 to 1,948 hours of work, about 0.8 person-years for 1 to 2 engineers |
|---|---|
| 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 53. 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 | Medium: 48,746 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 config.env-config_service | 2 infrastructure.logging.correlation.correlation_service | 3 modules.inventory.inventory_controller | 4 modules.orders.core.domain.value-objects.order-status_enum | 5 modules.orders.orders_processor | 6 modules.orders.testing.factories.order-dto_factory | 7 shared-kernel.domain.exceptions.app_error | 8 shared-kernel.domain.interfaces.caller-context_interface | 9 shared-kernel.domain.interfaces.paginated-query-result_interface | 10 shared-kernel.domain.result | 11 shared-kernel.domain.value-objects.payment-method | 12 types.express | 13 infrastructure.jobs.base-job_handler | 14 modules.orders.core.domain.interfaces.order_interface | 15 shared-kernel.domain.exceptions.domain_error | 16 shared-kernel.domain.exceptions.infrastructure-error | 17 shared-kernel.domain.exceptions.query_error | 18 shared-kernel.domain.exceptions.repository_error | 19 shared-kernel.domain.exceptions.usecase_error | 20 shared-kernel.domain.interfaces.base_usecase | 21 infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter | 22 modules.analytics.core.application.ports.analytics-query_service | 23 modules.authentication.core.application.ports.authorization_gateway | 24 modules.authentication.core.domain.repositories.credential_repository | 25 modules.authorization.core.domain.repositories.role_repository | 26 modules.carts.core.domain.repositories.cart_repository | 27 modules.identity.core.domain.repositories.user_repository | 28 modules.inventory.core.domain.repositories.inventory_repository | 29 modules.inventory.core.domain.repositories.reservation_repository | 30 modules.orders.core.domain.entities.order | 31 modules.orders.core.domain.schedulers.order_scheduler | 32 modules.payments.core.domain.entities.payment | 33 modules.products.core.domain.repositories.category-repository | 34 modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter | 35 modules.authentication.core.application.usecases.change-password.change-password_usecase | 36 modules.authentication.core.application.usecases.login-user.login-user_usecase | 37 modules.orders.core.domain.repositories.order-repository | 38 modules.payments.core.domain.repositories.payment_repository | 39 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase | 40 modules.orders.orders_controller |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 config.env-config_service | ||||||||||||||||||||||||||||||||||||||||
| 2 infrastructure.logging.correlation.correlation_service | ||||||||||||||||||||||||||||||||||||||||
| 3 modules.inventory.inventory_controller | ||||||||||||||||||||||||||||||||||||||||
| 4 modules.orders.core.domain.value-objects.order-status_enum | ||||||||||||||||||||||||||||||||||||||||
| 5 modules.orders.orders_processor | ||||||||||||||||||||||||||||||||||||||||
| 6 modules.orders.testing.factories.order-dto_factory | ||||||||||||||||||||||||||||||||||||||||
| 7 shared-kernel.domain.exceptions.app_error | ||||||||||||||||||||||||||||||||||||||||
| 8 shared-kernel.domain.interfaces.caller-context_interface | ||||||||||||||||||||||||||||||||||||||||
| 9 shared-kernel.domain.interfaces.paginated-query-result_interface | ||||||||||||||||||||||||||||||||||||||||
| 10 shared-kernel.domain.result | ||||||||||||||||||||||||||||||||||||||||
| 11 shared-kernel.domain.value-objects.payment-method | ||||||||||||||||||||||||||||||||||||||||
| 12 types.express | ||||||||||||||||||||||||||||||||||||||||
| 13 infrastructure.jobs.base-job_handler | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 14 modules.orders.core.domain.interfaces.order_interface | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 15 shared-kernel.domain.exceptions.domain_error | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 shared-kernel.domain.exceptions.infrastructure-error | 1 | |||||||||||||||||||||||||||||||||||||||
| 17 shared-kernel.domain.exceptions.query_error | 1 | |||||||||||||||||||||||||||||||||||||||
| 18 shared-kernel.domain.exceptions.repository_error | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 shared-kernel.domain.exceptions.usecase_error | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 shared-kernel.domain.interfaces.base_usecase | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 22 modules.analytics.core.application.ports.analytics-query_service | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 23 modules.authentication.core.application.ports.authorization_gateway | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 24 modules.authentication.core.domain.repositories.credential_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 25 modules.authorization.core.domain.repositories.role_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 26 modules.carts.core.domain.repositories.cart_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 27 modules.identity.core.domain.repositories.user_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 28 modules.inventory.core.domain.repositories.inventory_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 29 modules.inventory.core.domain.repositories.reservation_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 30 modules.orders.core.domain.entities.order | 1 | 1 | 2 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 31 modules.orders.core.domain.schedulers.order_scheduler | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 32 modules.payments.core.domain.entities.payment | 1 | 4 | 1 | |||||||||||||||||||||||||||||||||||||
| 33 modules.products.core.domain.repositories.category-repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 34 modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 35 modules.authentication.core.application.usecases.change-password.change-password_usecase | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 36 modules.authentication.core.application.usecases.login-user.login-user_usecase | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 37 modules.orders.core.domain.repositories.order-repository | 2 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 38 modules.payments.core.domain.repositories.payment_repository | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 39 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||
| 40 modules.orders.orders_controller | 1 | 1 |
13→7 infrastructure.jobs.base-job_handler uses shared-kernel.domain.exceptions.app_error✕
- Connections
- 1 pair of types, where a type in infrastructure.jobs.base-job_handler uses a type in shared-kernel.domain.exceptions.app_error.
- The types involved
src.infrastructure.jobs.base-job_handler.BaseJobHandler→src.shared-kernel.domain.exceptions.app_error.AppError
- Direction
- infrastructure.jobs.base-job_handler uses shared-kernel.domain.exceptions.app_error, so a change to shared-kernel.domain.exceptions.app_error can break infrastructure.jobs.base-job_handler, while a change to infrastructure.jobs.base-job_handler can't break shared-kernel.domain.exceptions.app_error.
- Position
- Below the diagonal: infrastructure.jobs.base-job_handler uses a module listed above it, which is the healthy direction.
13→10 infrastructure.jobs.base-job_handler uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in infrastructure.jobs.base-job_handler uses a type in shared-kernel.domain.result.
- The types involved
src.infrastructure.jobs.base-job_handler.BaseJobHandler→src.shared-kernel.domain.result.Result
- Direction
- infrastructure.jobs.base-job_handler uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break infrastructure.jobs.base-job_handler, while a change to infrastructure.jobs.base-job_handler can't break shared-kernel.domain.result.
- Position
- Below the diagonal: infrastructure.jobs.base-job_handler uses a module listed above it, which is the healthy direction.
14→4 modules.orders.core.domain.interfaces.order_interface uses modules.orders.core.domain.value-objects.order-status_enum✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.interfaces.order_interface uses a type in modules.orders.core.domain.value-objects.order-status_enum.
- The types involved
src.modules.orders.core.domain.interfaces.order_interface.IOrder→src.modules.orders.core.domain.value-objects.order-status_enum.OrderStatus
- Direction
- modules.orders.core.domain.interfaces.order_interface uses modules.orders.core.domain.value-objects.order-status_enum, so a change to modules.orders.core.domain.value-objects.order-status_enum can break modules.orders.core.domain.interfaces.order_interface, while a change to modules.orders.core.domain.interfaces.order_interface can't break modules.orders.core.domain.value-objects.order-status_enum.
- Position
- Below the diagonal: modules.orders.core.domain.interfaces.order_interface uses a module listed above it, which is the healthy direction.
14→11 modules.orders.core.domain.interfaces.order_interface uses shared-kernel.domain.value-objects.payment-method✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.interfaces.order_interface uses a type in shared-kernel.domain.value-objects.payment-method.
- The types involved
src.modules.orders.core.domain.interfaces.order_interface.IOrder→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodType
- Direction
- modules.orders.core.domain.interfaces.order_interface uses shared-kernel.domain.value-objects.payment-method, so a change to shared-kernel.domain.value-objects.payment-method can break modules.orders.core.domain.interfaces.order_interface, while a change to modules.orders.core.domain.interfaces.order_interface can't break shared-kernel.domain.value-objects.payment-method.
- Position
- Below the diagonal: modules.orders.core.domain.interfaces.order_interface uses a module listed above it, which is the healthy direction.
15→7 shared-kernel.domain.exceptions.domain_error uses shared-kernel.domain.exceptions.app_error✕
- Connections
- 1 pair of types, where a type in shared-kernel.domain.exceptions.domain_error uses a type in shared-kernel.domain.exceptions.app_error.
- The types involved
src.shared-kernel.domain.exceptions.domain_error.DomainError→src.shared-kernel.domain.exceptions.app_error.AppError
- Direction
- shared-kernel.domain.exceptions.domain_error uses shared-kernel.domain.exceptions.app_error, so a change to shared-kernel.domain.exceptions.app_error can break shared-kernel.domain.exceptions.domain_error, while a change to shared-kernel.domain.exceptions.domain_error can't break shared-kernel.domain.exceptions.app_error.
- Position
- Below the diagonal: shared-kernel.domain.exceptions.domain_error uses a module listed above it, which is the healthy direction.
16→7 shared-kernel.domain.exceptions.infrastructure-error uses shared-kernel.domain.exceptions.app_error✕
- Connections
- 1 pair of types, where a type in shared-kernel.domain.exceptions.infrastructure-error uses a type in shared-kernel.domain.exceptions.app_error.
- The types involved
src.shared-kernel.domain.exceptions.infrastructure-error.InfrastructureError→src.shared-kernel.domain.exceptions.app_error.AppError
- Direction
- shared-kernel.domain.exceptions.infrastructure-error uses shared-kernel.domain.exceptions.app_error, so a change to shared-kernel.domain.exceptions.app_error can break shared-kernel.domain.exceptions.infrastructure-error, while a change to shared-kernel.domain.exceptions.infrastructure-error can't break shared-kernel.domain.exceptions.app_error.
- Position
- Below the diagonal: shared-kernel.domain.exceptions.infrastructure-error uses a module listed above it, which is the healthy direction.
17→7 shared-kernel.domain.exceptions.query_error uses shared-kernel.domain.exceptions.app_error✕
- Connections
- 1 pair of types, where a type in shared-kernel.domain.exceptions.query_error uses a type in shared-kernel.domain.exceptions.app_error.
- The types involved
src.shared-kernel.domain.exceptions.query_error.QueryError→src.shared-kernel.domain.exceptions.app_error.AppError
- Direction
- shared-kernel.domain.exceptions.query_error uses shared-kernel.domain.exceptions.app_error, so a change to shared-kernel.domain.exceptions.app_error can break shared-kernel.domain.exceptions.query_error, while a change to shared-kernel.domain.exceptions.query_error can't break shared-kernel.domain.exceptions.app_error.
- Position
- Below the diagonal: shared-kernel.domain.exceptions.query_error uses a module listed above it, which is the healthy direction.
18→7 shared-kernel.domain.exceptions.repository_error uses shared-kernel.domain.exceptions.app_error✕
- Connections
- 1 pair of types, where a type in shared-kernel.domain.exceptions.repository_error uses a type in shared-kernel.domain.exceptions.app_error.
- The types involved
src.shared-kernel.domain.exceptions.repository_error.RepositoryError→src.shared-kernel.domain.exceptions.app_error.AppError
- Direction
- shared-kernel.domain.exceptions.repository_error uses shared-kernel.domain.exceptions.app_error, so a change to shared-kernel.domain.exceptions.app_error can break shared-kernel.domain.exceptions.repository_error, while a change to shared-kernel.domain.exceptions.repository_error can't break shared-kernel.domain.exceptions.app_error.
- Position
- Below the diagonal: shared-kernel.domain.exceptions.repository_error uses a module listed above it, which is the healthy direction.
19→7 shared-kernel.domain.exceptions.usecase_error uses shared-kernel.domain.exceptions.app_error✕
- Connections
- 1 pair of types, where a type in shared-kernel.domain.exceptions.usecase_error uses a type in shared-kernel.domain.exceptions.app_error.
- The types involved
src.shared-kernel.domain.exceptions.usecase_error.UseCaseError→src.shared-kernel.domain.exceptions.app_error.AppError
- Direction
- shared-kernel.domain.exceptions.usecase_error uses shared-kernel.domain.exceptions.app_error, so a change to shared-kernel.domain.exceptions.app_error can break shared-kernel.domain.exceptions.usecase_error, while a change to shared-kernel.domain.exceptions.usecase_error can't break shared-kernel.domain.exceptions.app_error.
- Position
- Below the diagonal: shared-kernel.domain.exceptions.usecase_error uses a module listed above it, which is the healthy direction.
20→10 shared-kernel.domain.interfaces.base_usecase uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in shared-kernel.domain.interfaces.base_usecase uses a type in shared-kernel.domain.result.
- The types involved
src.shared-kernel.domain.interfaces.base_usecase.UseCase→src.shared-kernel.domain.result.Result
- Direction
- shared-kernel.domain.interfaces.base_usecase uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break shared-kernel.domain.interfaces.base_usecase, while a change to shared-kernel.domain.interfaces.base_usecase can't break shared-kernel.domain.result.
- Position
- Below the diagonal: shared-kernel.domain.interfaces.base_usecase uses a module listed above it, which is the healthy direction.
21→1 infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses config.env-config_service✕
- Connections
- 1 pair of types, where a type in infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses a type in config.env-config_service.
- The types involved
src.infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter.DemoSeedRunnerAdapter→src.config.env-config_service.EnvConfigService
- Direction
- infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses config.env-config_service, so a change to config.env-config_service can break infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter, while a change to infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter can't break config.env-config_service.
- Position
- Below the diagonal: infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses a module listed above it, which is the healthy direction.
21→10 infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses a type in shared-kernel.domain.result.
- The types involved
src.infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter.DemoSeedRunnerAdapter→src.shared-kernel.domain.result.Result
- Direction
- infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter, while a change to infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter can't break shared-kernel.domain.result.
- Position
- Below the diagonal: infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses a module listed above it, which is the healthy direction.
21→19 infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses shared-kernel.domain.exceptions.usecase_error✕
- Connections
- 1 pair of types, where a type in infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses a type in shared-kernel.domain.exceptions.usecase_error.
- The types involved
src.infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter.DemoSeedRunnerAdapter→src.shared-kernel.domain.exceptions.usecase_error.UseCaseError
- Direction
- infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses shared-kernel.domain.exceptions.usecase_error, so a change to shared-kernel.domain.exceptions.usecase_error can break infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter, while a change to infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter can't break shared-kernel.domain.exceptions.usecase_error.
- Position
- Below the diagonal: infrastructure.demo.secondary-adapters.adapters.demo-seed-runner_adapter uses a module listed above it, which is the healthy direction.
22→10 modules.analytics.core.application.ports.analytics-query_service uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.analytics.core.application.ports.analytics-query_service uses a type in shared-kernel.domain.result.
- The types involved
src.modules.analytics.core.application.ports.analytics-query_service.AnalyticsQueryService→src.shared-kernel.domain.result.Result
- Direction
- modules.analytics.core.application.ports.analytics-query_service uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.analytics.core.application.ports.analytics-query_service, while a change to modules.analytics.core.application.ports.analytics-query_service can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.analytics.core.application.ports.analytics-query_service uses a module listed above it, which is the healthy direction.
22→17 modules.analytics.core.application.ports.analytics-query_service uses shared-kernel.domain.exceptions.query_error✕
- Connections
- 1 pair of types, where a type in modules.analytics.core.application.ports.analytics-query_service uses a type in shared-kernel.domain.exceptions.query_error.
- The types involved
src.modules.analytics.core.application.ports.analytics-query_service.AnalyticsQueryService→src.shared-kernel.domain.exceptions.query_error.QueryError
- Direction
- modules.analytics.core.application.ports.analytics-query_service uses shared-kernel.domain.exceptions.query_error, so a change to shared-kernel.domain.exceptions.query_error can break modules.analytics.core.application.ports.analytics-query_service, while a change to modules.analytics.core.application.ports.analytics-query_service can't break shared-kernel.domain.exceptions.query_error.
- Position
- Below the diagonal: modules.analytics.core.application.ports.analytics-query_service uses a module listed above it, which is the healthy direction.
23→10 modules.authentication.core.application.ports.authorization_gateway uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.ports.authorization_gateway uses a type in shared-kernel.domain.result.
- The types involved
src.modules.authentication.core.application.ports.authorization_gateway.AuthorizationGateway→src.shared-kernel.domain.result.Result
- Direction
- modules.authentication.core.application.ports.authorization_gateway uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.authentication.core.application.ports.authorization_gateway, while a change to modules.authentication.core.application.ports.authorization_gateway can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.authentication.core.application.ports.authorization_gateway uses a module listed above it, which is the healthy direction.
23→16 modules.authentication.core.application.ports.authorization_gateway uses shared-kernel.domain.exceptions.infrastructure-error✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.ports.authorization_gateway uses a type in shared-kernel.domain.exceptions.infrastructure-error.
- The types involved
src.modules.authentication.core.application.ports.authorization_gateway.AuthorizationGateway→src.shared-kernel.domain.exceptions.infrastructure-error.InfrastructureError
- Direction
- modules.authentication.core.application.ports.authorization_gateway uses shared-kernel.domain.exceptions.infrastructure-error, so a change to shared-kernel.domain.exceptions.infrastructure-error can break modules.authentication.core.application.ports.authorization_gateway, while a change to modules.authentication.core.application.ports.authorization_gateway can't break shared-kernel.domain.exceptions.infrastructure-error.
- Position
- Below the diagonal: modules.authentication.core.application.ports.authorization_gateway uses a module listed above it, which is the healthy direction.
24→10 modules.authentication.core.domain.repositories.credential_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.domain.repositories.credential_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.authentication.core.domain.repositories.credential_repository.CredentialRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.authentication.core.domain.repositories.credential_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.authentication.core.domain.repositories.credential_repository, while a change to modules.authentication.core.domain.repositories.credential_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.authentication.core.domain.repositories.credential_repository uses a module listed above it, which is the healthy direction.
24→18 modules.authentication.core.domain.repositories.credential_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.domain.repositories.credential_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.authentication.core.domain.repositories.credential_repository.CredentialRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.authentication.core.domain.repositories.credential_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.authentication.core.domain.repositories.credential_repository, while a change to modules.authentication.core.domain.repositories.credential_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.authentication.core.domain.repositories.credential_repository uses a module listed above it, which is the healthy direction.
25→10 modules.authorization.core.domain.repositories.role_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.authorization.core.domain.repositories.role_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.authorization.core.domain.repositories.role_repository.RoleRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.authorization.core.domain.repositories.role_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.authorization.core.domain.repositories.role_repository, while a change to modules.authorization.core.domain.repositories.role_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.authorization.core.domain.repositories.role_repository uses a module listed above it, which is the healthy direction.
25→18 modules.authorization.core.domain.repositories.role_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.authorization.core.domain.repositories.role_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.authorization.core.domain.repositories.role_repository.RoleRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.authorization.core.domain.repositories.role_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.authorization.core.domain.repositories.role_repository, while a change to modules.authorization.core.domain.repositories.role_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.authorization.core.domain.repositories.role_repository uses a module listed above it, which is the healthy direction.
26→10 modules.carts.core.domain.repositories.cart_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.carts.core.domain.repositories.cart_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.carts.core.domain.repositories.cart_repository.CartRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.carts.core.domain.repositories.cart_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.carts.core.domain.repositories.cart_repository, while a change to modules.carts.core.domain.repositories.cart_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.carts.core.domain.repositories.cart_repository uses a module listed above it, which is the healthy direction.
26→18 modules.carts.core.domain.repositories.cart_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.carts.core.domain.repositories.cart_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.carts.core.domain.repositories.cart_repository.CartRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.carts.core.domain.repositories.cart_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.carts.core.domain.repositories.cart_repository, while a change to modules.carts.core.domain.repositories.cart_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.carts.core.domain.repositories.cart_repository uses a module listed above it, which is the healthy direction.
27→10 modules.identity.core.domain.repositories.user_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.identity.core.domain.repositories.user_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.identity.core.domain.repositories.user_repository.UserRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.identity.core.domain.repositories.user_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.identity.core.domain.repositories.user_repository, while a change to modules.identity.core.domain.repositories.user_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.identity.core.domain.repositories.user_repository uses a module listed above it, which is the healthy direction.
27→18 modules.identity.core.domain.repositories.user_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.identity.core.domain.repositories.user_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.identity.core.domain.repositories.user_repository.UserRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.identity.core.domain.repositories.user_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.identity.core.domain.repositories.user_repository, while a change to modules.identity.core.domain.repositories.user_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.identity.core.domain.repositories.user_repository uses a module listed above it, which is the healthy direction.
28→10 modules.inventory.core.domain.repositories.inventory_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.inventory.core.domain.repositories.inventory_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.inventory.core.domain.repositories.inventory_repository.InventoryRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.inventory.core.domain.repositories.inventory_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.inventory.core.domain.repositories.inventory_repository, while a change to modules.inventory.core.domain.repositories.inventory_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.inventory.core.domain.repositories.inventory_repository uses a module listed above it, which is the healthy direction.
28→18 modules.inventory.core.domain.repositories.inventory_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.inventory.core.domain.repositories.inventory_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.inventory.core.domain.repositories.inventory_repository.InventoryRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.inventory.core.domain.repositories.inventory_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.inventory.core.domain.repositories.inventory_repository, while a change to modules.inventory.core.domain.repositories.inventory_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.inventory.core.domain.repositories.inventory_repository uses a module listed above it, which is the healthy direction.
29→10 modules.inventory.core.domain.repositories.reservation_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.inventory.core.domain.repositories.reservation_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.inventory.core.domain.repositories.reservation_repository.ReservationRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.inventory.core.domain.repositories.reservation_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.inventory.core.domain.repositories.reservation_repository, while a change to modules.inventory.core.domain.repositories.reservation_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.inventory.core.domain.repositories.reservation_repository uses a module listed above it, which is the healthy direction.
29→18 modules.inventory.core.domain.repositories.reservation_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.inventory.core.domain.repositories.reservation_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.inventory.core.domain.repositories.reservation_repository.ReservationRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.inventory.core.domain.repositories.reservation_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.inventory.core.domain.repositories.reservation_repository, while a change to modules.inventory.core.domain.repositories.reservation_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.inventory.core.domain.repositories.reservation_repository uses a module listed above it, which is the healthy direction.
30→4 modules.orders.core.domain.entities.order uses modules.orders.core.domain.value-objects.order-status_enum✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.entities.order uses a type in modules.orders.core.domain.value-objects.order-status_enum.
- The types involved
src.modules.orders.core.domain.entities.order.Order→src.modules.orders.core.domain.value-objects.order-status_enum.OrderStatus
- Direction
- modules.orders.core.domain.entities.order uses modules.orders.core.domain.value-objects.order-status_enum, so a change to modules.orders.core.domain.value-objects.order-status_enum can break modules.orders.core.domain.entities.order, while a change to modules.orders.core.domain.entities.order can't break modules.orders.core.domain.value-objects.order-status_enum.
- Position
- Below the diagonal: modules.orders.core.domain.entities.order uses a module listed above it, which is the healthy direction.
30→10 modules.orders.core.domain.entities.order uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.entities.order uses a type in shared-kernel.domain.result.
- The types involved
src.modules.orders.core.domain.entities.order.Order→src.shared-kernel.domain.result.Result
- Direction
- modules.orders.core.domain.entities.order uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.orders.core.domain.entities.order, while a change to modules.orders.core.domain.entities.order can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.orders.core.domain.entities.order uses a module listed above it, which is the healthy direction.
30→11 modules.orders.core.domain.entities.order uses shared-kernel.domain.value-objects.payment-method✕
- Connections
- 2 pairs of types, where a type in modules.orders.core.domain.entities.order uses a type in shared-kernel.domain.value-objects.payment-method.
- The types involved
src.modules.orders.core.domain.entities.order.Order→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodTypesrc.modules.orders.core.domain.entities.order.OrderProps→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodType
- Direction
- modules.orders.core.domain.entities.order uses shared-kernel.domain.value-objects.payment-method, so a change to shared-kernel.domain.value-objects.payment-method can break modules.orders.core.domain.entities.order, while a change to modules.orders.core.domain.entities.order can't break shared-kernel.domain.value-objects.payment-method.
- Position
- Below the diagonal: modules.orders.core.domain.entities.order uses a module listed above it, which is the healthy direction.
30→14 modules.orders.core.domain.entities.order uses modules.orders.core.domain.interfaces.order_interface✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.entities.order uses a type in modules.orders.core.domain.interfaces.order_interface.
- The types involved
src.modules.orders.core.domain.entities.order.Order→src.modules.orders.core.domain.interfaces.order_interface.IOrder
- Direction
- modules.orders.core.domain.entities.order uses modules.orders.core.domain.interfaces.order_interface, so a change to modules.orders.core.domain.interfaces.order_interface can break modules.orders.core.domain.entities.order, while a change to modules.orders.core.domain.entities.order can't break modules.orders.core.domain.interfaces.order_interface.
- Position
- Below the diagonal: modules.orders.core.domain.entities.order uses a module listed above it, which is the healthy direction.
30→15 modules.orders.core.domain.entities.order uses shared-kernel.domain.exceptions.domain_error✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.entities.order uses a type in shared-kernel.domain.exceptions.domain_error.
- The types involved
src.modules.orders.core.domain.entities.order.Order→src.shared-kernel.domain.exceptions.domain_error.DomainError
- Direction
- modules.orders.core.domain.entities.order uses shared-kernel.domain.exceptions.domain_error, so a change to shared-kernel.domain.exceptions.domain_error can break modules.orders.core.domain.entities.order, while a change to modules.orders.core.domain.entities.order can't break shared-kernel.domain.exceptions.domain_error.
- Position
- Below the diagonal: modules.orders.core.domain.entities.order uses a module listed above it, which is the healthy direction.
31→10 modules.orders.core.domain.schedulers.order_scheduler uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.schedulers.order_scheduler uses a type in shared-kernel.domain.result.
- The types involved
src.modules.orders.core.domain.schedulers.order_scheduler.OrderScheduler→src.shared-kernel.domain.result.Result
- Direction
- modules.orders.core.domain.schedulers.order_scheduler uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.orders.core.domain.schedulers.order_scheduler, while a change to modules.orders.core.domain.schedulers.order_scheduler can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.orders.core.domain.schedulers.order_scheduler uses a module listed above it, which is the healthy direction.
31→16 modules.orders.core.domain.schedulers.order_scheduler uses shared-kernel.domain.exceptions.infrastructure-error✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.schedulers.order_scheduler uses a type in shared-kernel.domain.exceptions.infrastructure-error.
- The types involved
src.modules.orders.core.domain.schedulers.order_scheduler.OrderScheduler→src.shared-kernel.domain.exceptions.infrastructure-error.InfrastructureError
- Direction
- modules.orders.core.domain.schedulers.order_scheduler uses shared-kernel.domain.exceptions.infrastructure-error, so a change to shared-kernel.domain.exceptions.infrastructure-error can break modules.orders.core.domain.schedulers.order_scheduler, while a change to modules.orders.core.domain.schedulers.order_scheduler can't break shared-kernel.domain.exceptions.infrastructure-error.
- Position
- Below the diagonal: modules.orders.core.domain.schedulers.order_scheduler uses a module listed above it, which is the healthy direction.
32→10 modules.payments.core.domain.entities.payment uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.payments.core.domain.entities.payment uses a type in shared-kernel.domain.result.
- The types involved
src.modules.payments.core.domain.entities.payment.Payment→src.shared-kernel.domain.result.Result
- Direction
- modules.payments.core.domain.entities.payment uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.payments.core.domain.entities.payment, while a change to modules.payments.core.domain.entities.payment can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.payments.core.domain.entities.payment uses a module listed above it, which is the healthy direction.
32→11 modules.payments.core.domain.entities.payment uses shared-kernel.domain.value-objects.payment-method✕
- Connections
- 4 pairs of types, where a type in modules.payments.core.domain.entities.payment uses a type in shared-kernel.domain.value-objects.payment-method.
- The types involved
src.modules.payments.core.domain.entities.payment.CreatePaymentProps→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodTypesrc.modules.payments.core.domain.entities.payment.Payment→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodsrc.modules.payments.core.domain.entities.payment.Payment→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodTypesrc.modules.payments.core.domain.entities.payment.PaymentProps→src.shared-kernel.domain.value-objects.payment-method.PaymentMethodType
- Direction
- modules.payments.core.domain.entities.payment uses shared-kernel.domain.value-objects.payment-method, so a change to shared-kernel.domain.value-objects.payment-method can break modules.payments.core.domain.entities.payment, while a change to modules.payments.core.domain.entities.payment can't break shared-kernel.domain.value-objects.payment-method.
- Position
- Below the diagonal: modules.payments.core.domain.entities.payment uses a module listed above it, which is the healthy direction.
32→15 modules.payments.core.domain.entities.payment uses shared-kernel.domain.exceptions.domain_error✕
- Connections
- 1 pair of types, where a type in modules.payments.core.domain.entities.payment uses a type in shared-kernel.domain.exceptions.domain_error.
- The types involved
src.modules.payments.core.domain.entities.payment.Payment→src.shared-kernel.domain.exceptions.domain_error.DomainError
- Direction
- modules.payments.core.domain.entities.payment uses shared-kernel.domain.exceptions.domain_error, so a change to shared-kernel.domain.exceptions.domain_error can break modules.payments.core.domain.entities.payment, while a change to modules.payments.core.domain.entities.payment can't break shared-kernel.domain.exceptions.domain_error.
- Position
- Below the diagonal: modules.payments.core.domain.entities.payment uses a module listed above it, which is the healthy direction.
33→10 modules.products.core.domain.repositories.category-repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.products.core.domain.repositories.category-repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.products.core.domain.repositories.category-repository.CategoryRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.products.core.domain.repositories.category-repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.products.core.domain.repositories.category-repository, while a change to modules.products.core.domain.repositories.category-repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.products.core.domain.repositories.category-repository uses a module listed above it, which is the healthy direction.
33→18 modules.products.core.domain.repositories.category-repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.products.core.domain.repositories.category-repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.products.core.domain.repositories.category-repository.CategoryRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.products.core.domain.repositories.category-repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.products.core.domain.repositories.category-repository, while a change to modules.products.core.domain.repositories.category-repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.products.core.domain.repositories.category-repository uses a module listed above it, which is the healthy direction.
34→1 modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses config.env-config_service✕
- Connections
- 1 pair of types, where a type in modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a type in config.env-config_service.
- The types involved
src.modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter.PostgresAnalyticsQueryAdapter→src.config.env-config_service.EnvConfigService
- Direction
- modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses config.env-config_service, so a change to config.env-config_service can break modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter, while a change to modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter can't break config.env-config_service.
- Position
- Below the diagonal: modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a module listed above it, which is the healthy direction.
34→10 modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a type in shared-kernel.domain.result.
- The types involved
src.modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter.PostgresAnalyticsQueryAdapter→src.shared-kernel.domain.result.Result
- Direction
- modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter, while a change to modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a module listed above it, which is the healthy direction.
34→17 modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses shared-kernel.domain.exceptions.query_error✕
- Connections
- 1 pair of types, where a type in modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a type in shared-kernel.domain.exceptions.query_error.
- The types involved
src.modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter.PostgresAnalyticsQueryAdapter→src.shared-kernel.domain.exceptions.query_error.QueryError
- Direction
- modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses shared-kernel.domain.exceptions.query_error, so a change to shared-kernel.domain.exceptions.query_error can break modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter, while a change to modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter can't break shared-kernel.domain.exceptions.query_error.
- Position
- Below the diagonal: modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a module listed above it, which is the healthy direction.
34→22 modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses modules.analytics.core.application.ports.analytics-query_service✕
- Connections
- 1 pair of types, where a type in modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a type in modules.analytics.core.application.ports.analytics-query_service.
- The types involved
src.modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter.PostgresAnalyticsQueryAdapter→src.modules.analytics.core.application.ports.analytics-query_service.AnalyticsQueryService
- Direction
- modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses modules.analytics.core.application.ports.analytics-query_service, so a change to modules.analytics.core.application.ports.analytics-query_service can break modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter, while a change to modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter can't break modules.analytics.core.application.ports.analytics-query_service.
- Position
- Below the diagonal: modules.analytics.secondary-adapters.query.postgres-analytics-query_adapter uses a module listed above it, which is the healthy direction.
35→10 modules.authentication.core.application.usecases.change-password.change-password_usecase uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.change-password.change-password_usecase uses a type in shared-kernel.domain.result.
- The types involved
src.modules.authentication.core.application.usecases.change-password.change-password_usecase.ChangePasswordUseCase→src.shared-kernel.domain.result.Result
- Direction
- modules.authentication.core.application.usecases.change-password.change-password_usecase uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.authentication.core.application.usecases.change-password.change-password_usecase, while a change to modules.authentication.core.application.usecases.change-password.change-password_usecase can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.change-password.change-password_usecase uses a module listed above it, which is the healthy direction.
35→19 modules.authentication.core.application.usecases.change-password.change-password_usecase uses shared-kernel.domain.exceptions.usecase_error✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.change-password.change-password_usecase uses a type in shared-kernel.domain.exceptions.usecase_error.
- The types involved
src.modules.authentication.core.application.usecases.change-password.change-password_usecase.ChangePasswordUseCase→src.shared-kernel.domain.exceptions.usecase_error.UseCaseError
- Direction
- modules.authentication.core.application.usecases.change-password.change-password_usecase uses shared-kernel.domain.exceptions.usecase_error, so a change to shared-kernel.domain.exceptions.usecase_error can break modules.authentication.core.application.usecases.change-password.change-password_usecase, while a change to modules.authentication.core.application.usecases.change-password.change-password_usecase can't break shared-kernel.domain.exceptions.usecase_error.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.change-password.change-password_usecase uses a module listed above it, which is the healthy direction.
35→20 modules.authentication.core.application.usecases.change-password.change-password_usecase uses shared-kernel.domain.interfaces.base_usecase✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.change-password.change-password_usecase uses a type in shared-kernel.domain.interfaces.base_usecase.
- The types involved
src.modules.authentication.core.application.usecases.change-password.change-password_usecase.ChangePasswordUseCase→src.shared-kernel.domain.interfaces.base_usecase.UseCase
- Direction
- modules.authentication.core.application.usecases.change-password.change-password_usecase uses shared-kernel.domain.interfaces.base_usecase, so a change to shared-kernel.domain.interfaces.base_usecase can break modules.authentication.core.application.usecases.change-password.change-password_usecase, while a change to modules.authentication.core.application.usecases.change-password.change-password_usecase can't break shared-kernel.domain.interfaces.base_usecase.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.change-password.change-password_usecase uses a module listed above it, which is the healthy direction.
35→23 modules.authentication.core.application.usecases.change-password.change-password_usecase uses modules.authentication.core.application.ports.authorization_gateway✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.change-password.change-password_usecase uses a type in modules.authentication.core.application.ports.authorization_gateway.
- The types involved
src.modules.authentication.core.application.usecases.change-password.change-password_usecase.ChangePasswordUseCase→src.modules.authentication.core.application.ports.authorization_gateway.AuthorizationGateway
- Direction
- modules.authentication.core.application.usecases.change-password.change-password_usecase uses modules.authentication.core.application.ports.authorization_gateway, so a change to modules.authentication.core.application.ports.authorization_gateway can break modules.authentication.core.application.usecases.change-password.change-password_usecase, while a change to modules.authentication.core.application.usecases.change-password.change-password_usecase can't break modules.authentication.core.application.ports.authorization_gateway.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.change-password.change-password_usecase uses a module listed above it, which is the healthy direction.
35→24 modules.authentication.core.application.usecases.change-password.change-password_usecase uses modules.authentication.core.domain.repositories.credential_repository✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.change-password.change-password_usecase uses a type in modules.authentication.core.domain.repositories.credential_repository.
- The types involved
src.modules.authentication.core.application.usecases.change-password.change-password_usecase.ChangePasswordUseCase→src.modules.authentication.core.domain.repositories.credential_repository.CredentialRepository
- Direction
- modules.authentication.core.application.usecases.change-password.change-password_usecase uses modules.authentication.core.domain.repositories.credential_repository, so a change to modules.authentication.core.domain.repositories.credential_repository can break modules.authentication.core.application.usecases.change-password.change-password_usecase, while a change to modules.authentication.core.application.usecases.change-password.change-password_usecase can't break modules.authentication.core.domain.repositories.credential_repository.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.change-password.change-password_usecase uses a module listed above it, which is the healthy direction.
36→10 modules.authentication.core.application.usecases.login-user.login-user_usecase uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.login-user.login-user_usecase uses a type in shared-kernel.domain.result.
- The types involved
src.modules.authentication.core.application.usecases.login-user.login-user_usecase.LoginUserUseCase→src.shared-kernel.domain.result.Result
- Direction
- modules.authentication.core.application.usecases.login-user.login-user_usecase uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.authentication.core.application.usecases.login-user.login-user_usecase, while a change to modules.authentication.core.application.usecases.login-user.login-user_usecase can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.login-user.login-user_usecase uses a module listed above it, which is the healthy direction.
36→19 modules.authentication.core.application.usecases.login-user.login-user_usecase uses shared-kernel.domain.exceptions.usecase_error✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.login-user.login-user_usecase uses a type in shared-kernel.domain.exceptions.usecase_error.
- The types involved
src.modules.authentication.core.application.usecases.login-user.login-user_usecase.LoginUserUseCase→src.shared-kernel.domain.exceptions.usecase_error.UseCaseError
- Direction
- modules.authentication.core.application.usecases.login-user.login-user_usecase uses shared-kernel.domain.exceptions.usecase_error, so a change to shared-kernel.domain.exceptions.usecase_error can break modules.authentication.core.application.usecases.login-user.login-user_usecase, while a change to modules.authentication.core.application.usecases.login-user.login-user_usecase can't break shared-kernel.domain.exceptions.usecase_error.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.login-user.login-user_usecase uses a module listed above it, which is the healthy direction.
36→20 modules.authentication.core.application.usecases.login-user.login-user_usecase uses shared-kernel.domain.interfaces.base_usecase✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.login-user.login-user_usecase uses a type in shared-kernel.domain.interfaces.base_usecase.
- The types involved
src.modules.authentication.core.application.usecases.login-user.login-user_usecase.LoginUserUseCase→src.shared-kernel.domain.interfaces.base_usecase.UseCase
- Direction
- modules.authentication.core.application.usecases.login-user.login-user_usecase uses shared-kernel.domain.interfaces.base_usecase, so a change to shared-kernel.domain.interfaces.base_usecase can break modules.authentication.core.application.usecases.login-user.login-user_usecase, while a change to modules.authentication.core.application.usecases.login-user.login-user_usecase can't break shared-kernel.domain.interfaces.base_usecase.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.login-user.login-user_usecase uses a module listed above it, which is the healthy direction.
36→23 modules.authentication.core.application.usecases.login-user.login-user_usecase uses modules.authentication.core.application.ports.authorization_gateway✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.login-user.login-user_usecase uses a type in modules.authentication.core.application.ports.authorization_gateway.
- The types involved
src.modules.authentication.core.application.usecases.login-user.login-user_usecase.LoginUserUseCase→src.modules.authentication.core.application.ports.authorization_gateway.AuthorizationGateway
- Direction
- modules.authentication.core.application.usecases.login-user.login-user_usecase uses modules.authentication.core.application.ports.authorization_gateway, so a change to modules.authentication.core.application.ports.authorization_gateway can break modules.authentication.core.application.usecases.login-user.login-user_usecase, while a change to modules.authentication.core.application.usecases.login-user.login-user_usecase can't break modules.authentication.core.application.ports.authorization_gateway.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.login-user.login-user_usecase uses a module listed above it, which is the healthy direction.
36→24 modules.authentication.core.application.usecases.login-user.login-user_usecase uses modules.authentication.core.domain.repositories.credential_repository✕
- Connections
- 1 pair of types, where a type in modules.authentication.core.application.usecases.login-user.login-user_usecase uses a type in modules.authentication.core.domain.repositories.credential_repository.
- The types involved
src.modules.authentication.core.application.usecases.login-user.login-user_usecase.LoginUserUseCase→src.modules.authentication.core.domain.repositories.credential_repository.CredentialRepository
- Direction
- modules.authentication.core.application.usecases.login-user.login-user_usecase uses modules.authentication.core.domain.repositories.credential_repository, so a change to modules.authentication.core.domain.repositories.credential_repository can break modules.authentication.core.application.usecases.login-user.login-user_usecase, while a change to modules.authentication.core.application.usecases.login-user.login-user_usecase can't break modules.authentication.core.domain.repositories.credential_repository.
- Position
- Below the diagonal: modules.authentication.core.application.usecases.login-user.login-user_usecase uses a module listed above it, which is the healthy direction.
37→4 modules.orders.core.domain.repositories.order-repository uses modules.orders.core.domain.value-objects.order-status_enum✕
- Connections
- 2 pairs of types, where a type in modules.orders.core.domain.repositories.order-repository uses a type in modules.orders.core.domain.value-objects.order-status_enum.
- The types involved
src.modules.orders.core.domain.repositories.order-repository.ListOrdersQuery→src.modules.orders.core.domain.value-objects.order-status_enum.OrderStatussrc.modules.orders.core.domain.repositories.order-repository.OrderRepository→src.modules.orders.core.domain.value-objects.order-status_enum.OrderStatus
- Direction
- modules.orders.core.domain.repositories.order-repository uses modules.orders.core.domain.value-objects.order-status_enum, so a change to modules.orders.core.domain.value-objects.order-status_enum can break modules.orders.core.domain.repositories.order-repository, while a change to modules.orders.core.domain.repositories.order-repository can't break modules.orders.core.domain.value-objects.order-status_enum.
- Position
- Below the diagonal: modules.orders.core.domain.repositories.order-repository uses a module listed above it, which is the healthy direction.
37→10 modules.orders.core.domain.repositories.order-repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.repositories.order-repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.orders.core.domain.repositories.order-repository.OrderRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.orders.core.domain.repositories.order-repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.orders.core.domain.repositories.order-repository, while a change to modules.orders.core.domain.repositories.order-repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.orders.core.domain.repositories.order-repository uses a module listed above it, which is the healthy direction.
37→18 modules.orders.core.domain.repositories.order-repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.repositories.order-repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.orders.core.domain.repositories.order-repository.OrderRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.orders.core.domain.repositories.order-repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.orders.core.domain.repositories.order-repository, while a change to modules.orders.core.domain.repositories.order-repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.orders.core.domain.repositories.order-repository uses a module listed above it, which is the healthy direction.
37→30 modules.orders.core.domain.repositories.order-repository uses modules.orders.core.domain.entities.order✕
- Connections
- 1 pair of types, where a type in modules.orders.core.domain.repositories.order-repository uses a type in modules.orders.core.domain.entities.order.
- The types involved
src.modules.orders.core.domain.repositories.order-repository.OrderRepository→src.modules.orders.core.domain.entities.order.Order
- Direction
- modules.orders.core.domain.repositories.order-repository uses modules.orders.core.domain.entities.order, so a change to modules.orders.core.domain.entities.order can break modules.orders.core.domain.repositories.order-repository, while a change to modules.orders.core.domain.repositories.order-repository can't break modules.orders.core.domain.entities.order.
- Position
- Below the diagonal: modules.orders.core.domain.repositories.order-repository uses a module listed above it, which is the healthy direction.
38→10 modules.payments.core.domain.repositories.payment_repository uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.payments.core.domain.repositories.payment_repository uses a type in shared-kernel.domain.result.
- The types involved
src.modules.payments.core.domain.repositories.payment_repository.PaymentRepository→src.shared-kernel.domain.result.Result
- Direction
- modules.payments.core.domain.repositories.payment_repository uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.payments.core.domain.repositories.payment_repository, while a change to modules.payments.core.domain.repositories.payment_repository can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.payments.core.domain.repositories.payment_repository uses a module listed above it, which is the healthy direction.
38→18 modules.payments.core.domain.repositories.payment_repository uses shared-kernel.domain.exceptions.repository_error✕
- Connections
- 1 pair of types, where a type in modules.payments.core.domain.repositories.payment_repository uses a type in shared-kernel.domain.exceptions.repository_error.
- The types involved
src.modules.payments.core.domain.repositories.payment_repository.PaymentRepository→src.shared-kernel.domain.exceptions.repository_error.RepositoryError
- Direction
- modules.payments.core.domain.repositories.payment_repository uses shared-kernel.domain.exceptions.repository_error, so a change to shared-kernel.domain.exceptions.repository_error can break modules.payments.core.domain.repositories.payment_repository, while a change to modules.payments.core.domain.repositories.payment_repository can't break shared-kernel.domain.exceptions.repository_error.
- Position
- Below the diagonal: modules.payments.core.domain.repositories.payment_repository uses a module listed above it, which is the healthy direction.
38→32 modules.payments.core.domain.repositories.payment_repository uses modules.payments.core.domain.entities.payment✕
- Connections
- 1 pair of types, where a type in modules.payments.core.domain.repositories.payment_repository uses a type in modules.payments.core.domain.entities.payment.
- The types involved
src.modules.payments.core.domain.repositories.payment_repository.PaymentRepository→src.modules.payments.core.domain.entities.payment.Payment
- Direction
- modules.payments.core.domain.repositories.payment_repository uses modules.payments.core.domain.entities.payment, so a change to modules.payments.core.domain.entities.payment can break modules.payments.core.domain.repositories.payment_repository, while a change to modules.payments.core.domain.repositories.payment_repository can't break modules.payments.core.domain.entities.payment.
- Position
- Below the diagonal: modules.payments.core.domain.repositories.payment_repository uses a module listed above it, which is the healthy direction.
39→10 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses shared-kernel.domain.result✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in shared-kernel.domain.result.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.shared-kernel.domain.result.Result
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses shared-kernel.domain.result, so a change to shared-kernel.domain.result can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break shared-kernel.domain.result.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
39→14 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.interfaces.order_interface✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in modules.orders.core.domain.interfaces.order_interface.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.modules.orders.core.domain.interfaces.order_interface.IOrder
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.interfaces.order_interface, so a change to modules.orders.core.domain.interfaces.order_interface can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break modules.orders.core.domain.interfaces.order_interface.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
39→19 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses shared-kernel.domain.exceptions.usecase_error✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in shared-kernel.domain.exceptions.usecase_error.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.shared-kernel.domain.exceptions.usecase_error.UseCaseError
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses shared-kernel.domain.exceptions.usecase_error, so a change to shared-kernel.domain.exceptions.usecase_error can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break shared-kernel.domain.exceptions.usecase_error.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
39→20 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses shared-kernel.domain.interfaces.base_usecase✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in shared-kernel.domain.interfaces.base_usecase.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.shared-kernel.domain.interfaces.base_usecase.UseCase
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses shared-kernel.domain.interfaces.base_usecase, so a change to shared-kernel.domain.interfaces.base_usecase can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break shared-kernel.domain.interfaces.base_usecase.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
39→30 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.entities.order✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in modules.orders.core.domain.entities.order.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.modules.orders.core.domain.entities.order.Order
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.entities.order, so a change to modules.orders.core.domain.entities.order can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break modules.orders.core.domain.entities.order.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
39→31 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.schedulers.order_scheduler✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in modules.orders.core.domain.schedulers.order_scheduler.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.modules.orders.core.domain.schedulers.order_scheduler.OrderScheduler
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.schedulers.order_scheduler, so a change to modules.orders.core.domain.schedulers.order_scheduler can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break modules.orders.core.domain.schedulers.order_scheduler.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
39→37 modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.repositories.order-repository✕
- Connections
- 1 pair of types, where a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a type in modules.orders.core.domain.repositories.order-repository.
- The types involved
src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase→src.modules.orders.core.domain.repositories.order-repository.OrderRepository
- Direction
- modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses modules.orders.core.domain.repositories.order-repository, so a change to modules.orders.core.domain.repositories.order-repository can break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, while a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can't break modules.orders.core.domain.repositories.order-repository.
- Position
- Below the diagonal: modules.orders.core.application.usecases.cancel-order.cancel-order_usecase uses a module listed above it, which is the healthy direction.
40→8 modules.orders.orders_controller uses shared-kernel.domain.interfaces.caller-context_interface✕
- Connections
- 1 pair of types, where a type in modules.orders.orders_controller uses a type in shared-kernel.domain.interfaces.caller-context_interface.
- The types involved
src.modules.orders.orders_controller.OrdersController→src.shared-kernel.domain.interfaces.caller-context_interface.CallerContext
- Direction
- modules.orders.orders_controller uses shared-kernel.domain.interfaces.caller-context_interface, so a change to shared-kernel.domain.interfaces.caller-context_interface can break modules.orders.orders_controller, while a change to modules.orders.orders_controller can't break shared-kernel.domain.interfaces.caller-context_interface.
- Position
- Below the diagonal: modules.orders.orders_controller uses a module listed above it, which is the healthy direction.
40→39 modules.orders.orders_controller uses modules.orders.core.application.usecases.cancel-order.cancel-order_usecase✕
- Connections
- 1 pair of types, where a type in modules.orders.orders_controller uses a type in modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.
- The types involved
src.modules.orders.orders_controller.OrdersController→src.modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.CancelOrderUseCase
- Direction
- modules.orders.orders_controller uses modules.orders.core.application.usecases.cancel-order.cancel-order_usecase, so a change to modules.orders.core.application.usecases.cancel-order.cancel-order_usecase can break modules.orders.orders_controller, while a change to modules.orders.orders_controller can't break modules.orders.core.application.usecases.cancel-order.cancel-order_usecase.
- Position
- Below the diagonal: modules.orders.orders_controller uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 51 | High / Critical |
| A07:2025 — Authentication Failures | 10 | High / Critical |
| A02:2025 — Security Misconfiguration | 9 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 4 | High / Critical |
Roadmap
Immediately resolve the three leaked secrets in REDACTED, REDACTED, and REDACTED to secure the codebase. Clean up dependencies by removing unused packages, explicitly declaring imports, and moving type- or test-only packages to devDependencies, while also addressing five deprecated dependencies. Strengthen security by adding a SAST step to CI to fail builds on regressions, and improve test reliability by fixing the 188 test cases that lack assertions, starting with the postgres and cart repository specs.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 3 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED. | +5.0 pts | Low | REDACTED Scanning |
| Resolve the 5 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (5). | +3.5 pts | Low | Dependency Hygiene |
| Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies. | +3.8 pts | Medium | Dependency Hygiene |
| Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing. | +3.2 pts | Medium | Security & performance tooling |
| Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. | +1.0 pts | Low | Project Cohesion |
| Reconcile the README with reality: README advertises a microservices architecture, but the repo is a single project with no service manifests; docs/architecture/DDD-HEXAGONAL.md names `core/domain/models/`, but no file or folder `core/domain/models` exists; docs/architecture/DDD-HEXAGONAL.md names `core/domain/events/`, but no file or folder `core/domain/events` exists; docs/development/SEEDING.md documents the environment variable `NEXT_PUBLIC_API_BASE_URL`, but no code, script or configuration file names it; docs/development/SEEDING.md documents the environment variable `NEXT_PUBLIC_IMAGE_ALLOWED_HOSTS`, but no code, script or configuration file names it. | +1.7 pts | Medium | Documentation accuracy |
| The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`). | +1.6 pts | Medium | Nullable reference types |
| Interpolated log message defeats structured logging | +1.3 pts | Medium | Structured logging |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 1.7 | Slop | Secrets (history): High secret: REDACTED |
| REDACTED | 4.4 | Mixed | REDACTED Scanning: Leaked secret: REDACTED |
| src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts | 5.5 | Mixed | Change Coupling: Boundary-crossing change coupling: cached.cart-repository.ts ↔ cached-inventory-repository.ts |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.1 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.1 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.1 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts | 6.3 | Mixed | Cyclomatic Complexity: PostgresPaymentQueryAdapter.list (cyclomatic 19) |
| REDACTED | 6.3 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.3 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 6.4 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts | 7.0 | Near-clean | Cyclomatic Complexity: PostgresProductQueryAdapter.list (cyclomatic 16) |
| src/infrastructure/logging/winston-logger.service.ts | 7.0 | Near-clean | Cognitive Complexity: winston-logger.service.redactInPlace (cognitive 16) |
| src/modules/authentication/secondary-adapters/adapters/module-identity.gateway.ts | 7.0 | Near-clean | Cohesion (LCOM4): Low cohesion: ModuleIdentityGateway (LCOM4 5) |
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. 86 of 92 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 6 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 92 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, 690 of 718 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (3 contributor(s) across 1925 commit(s) sampled, automation and bot accounts excluded). One of them holds 100% of the history; the other 2 hold 0% 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 — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- 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) — time="2026-10-22T14:26:03Z" level=warning msg="The \"REDIS_PASSWORD\" variable is not set. Defaulting to a blank string." postgres Pulling redis Pulling redis Error Get "https://registry-1.docker.io/v2/": Forbidden postgres Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: time="2026-10-22T14:26:03Z" level=warning msg="The \"REDIS_PASSWORD\" variable is not set. Defaulting to a blank string." redis Pulling postgres Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden redis 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.
- R10 Code Duplication — 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. 183 further occurrence(s) are not listed individually; the score already reflects all 223.
- R7 Dead Code — 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. 8 further occurrence(s) are not listed individually; the score already reflects all 48.
- S1 Web-Security Posture — 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. 771 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled certificate validation and obsolete TLS versions, and none was found. The server controls this dimension also scores were not assessed, so no score is given.
- X4 Structured logging — 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. 162 further occurrence(s) are not listed individually; the score already reflects all 202.
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.
- D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- 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.
- D25 ADR Conformance: ADR conformance is the LLM-scored fraction of sampled code that follows recorded decisions — it checks the decisions that were written down and the slices it sampled, not unrecorded rules or the whole tree.
- 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 REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- 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
14 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was generate-envs.buildLinesForEnv at 26. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being agent-output.isDoc at 18 — they are counted neither in the figure above nor in this dimension's score.
What to do
- Bring the 14 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with generate-envs.buildLinesForEnv (cyclomatic 26), generate-envs.generateEnvs (cyclomatic 26), SeedDemoCatalogUseCase.execute (cyclomatic 25). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 14 together lifts Cyclomatic Complexity from 8.3 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
D2 · Cognitive Complexity
20 method(s) exceeded the cognitive complexity threshold of 15; the worst was generate-envs.generateEnvs at 44.
What to do
- Bring the 20 bodies over 15 down to 15 or less in Cognitive Complexity — start with generate-envs.generateEnvs (cognitive 44), ascii-prose.findComments::skipString (cognitive 36), SeedDemoCatalogUseCase.execute (cognitive 36). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 20 together lifts Cognitive Complexity from 7.3 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
D3 · God Classes
2 god class(es) detected.
What to do
- Resolve the 1 TooManyMethods finding(s) in God Classes — start with order.ts. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 MethodTooLong finding(s) in God Classes — start with change-password.usecase.ts. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
2 of 156 classes have LCOM4 above 3.
What to do
- Resolve the 2 Low cohesion finding(s) in Cohesion (LCOM4) — start with module-identity.gateway.ts, module-inventory-reservation.gateway.ts. — One of this dimension's main actionable groups (2 warning-level).
- Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D7 · Architectural Integrity
All 5 mechanizable ADR(s) are enforced: 5 by analyzers, 0 by tests. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
D8 · Code Coverage
Line coverage 69.1% — 133 file(s) below 50%. Measured from the JavaScript/TypeScript suite (vitest + @vitest/coverage-v8 via `npm ci --ignore-scripts` in the repository root).
What to do
- Resolve the 133 Low coverage finding(s) in Code Coverage — start with module-authorization.gateway.ts (2), config.module.ts, configuration.ts. — One of this dimension's main actionable groups (133 warning-level).
- Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
1765 test methods: 1708 unit, 8 integration, 0 BDD, 49 e2e. The JavaScript/TypeScript suite contributes 1765 `it`/`test` case(s) across 297 test file(s) declaring at least one; its tier split is read from package names and paths only.
D10 · Test Quality
2 skipped (2 with a documented reason), 188 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 1765 tests.
What to do
- Resolve the 188 No assertions finding(s) in Test Quality — start with postgres-inventory-repository.spec.ts (10), cached.product-repository.spec.ts (8), postgres.cart-repository.spec.ts (7). — One of this dimension's main actionable groups (188 warning-level).
- Resolve the 4 Mock-dominated test finding(s) in Test Quality — start with checkout-failure.listener.spec.ts (3), refresh-token.usecase.spec.ts. — One of this dimension's main actionable groups (4 recommendation-level).
- Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in the repository root (1754 tests)): measured (0 flaky).
D12 · Dependency Hygiene
16 outdated direct production npm dependency(ies) of 43 graded, 0 pinning defect(s), across 1 package.json (1 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 1 direct dependency(ies) — production, development or optional — are marked DEPRECATED by their publisher (the registry's per-version mark, or the lockfile's copy of it when the registry could not be asked); deprecated transitive packages are listed but not charged. Whether any is UNMAINTAINED is not graded — the registry publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.
What to do
- Resolve the 5 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (5). — One of this dimension's main actionable groups (5 recommendation-level).
- Resolve the 1 Deprecated finding(s) in Dependency Hygiene — start with package.json. — One of this dimension's main actionable groups (1 warning-level).
D13 · REDACTED Scanning
3 secret(s) detected.
What to do
- Resolve the 3 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 issue-level).
- Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 43 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 43 production dependency(ies) this repository's committed lockfile resolves, across 1 product package.json manifest(s). Its 40 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. This repository publishes itself under MIT, which is its own choice and is not judged here.
D15 · Churn × Complexity Hotspots
Top hotspots: scripts/generate-envs.js (15×26=390); src/modules/products/core/application/seed/seed-demo-catalog.usecase.ts (12×25=300); src/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts (12×24=288) Repeated repair below the complexity floor: src/interceptors/sanitize.interceptor.ts (5 of 8 changes were fixes)
What to do
- Resolve the 7 Hotspot finding(s) in Churn × Complexity Hotspots — start with generate-envs.js, seed-demo-catalog.usecase.ts, cart-query.mapper.ts. — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with sanitize.interceptor.ts. — One of this dimension's main actionable groups (1 warning-level).
D17 · Explicit Debt
0 deducted task-comment markers across 46246 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The repository's root README and the docs/README directories form a complete documentation suite. The root README (903 words) gives an overview of the project as 'E-commerce Store API', links to CI, coverage, TypeScript, NestJS, PostgreSQL, Redis, BullMQ, Vite, Docker, and a license badge, then dives into What this is before stating what it does or how to use its modules. The docs/README directory (857 words) is an index of the architecture documentation, covering System & Domain Architecture, Project Implementation Patterns, Domain Architecture, Architecture Decision Records (ADRs), and more, with a full outline; each section named in the outline exists. A separate docs/ai README (241 words) explains how to maintain the AI guidance folder while referencing the root AGENTS.md entry point. The only unshown element is the missing overview/installation for the repository's root README, which would fall under the 'missing-overview' category but is instead covered by the project-level docs/README. This is a comprehensive project documentation set: the READMEs and architecture/Docs markdown files together provide an overview (roadmap, anti-patterns, architectural invariants), installation/build/contribution guidance for the repository root, and detailed per-document coverage of every phase, task, and deliverable. The roadmap file alone is a living document that is both well-structured and self-navigating; it is clipped mid-sentence but its outline (feature phases, completed phases, pending work) exists and must not be flagged as missing. This project is a comprehensive architecture and design reference with an outstanding overview document (docs/assets/ARCHITECTURE-OVERVIEW.md) that maps high-level context to the detailed DDD/Hexagonal architecture documents. The core structure is a single 'System Architecture' document containing a full table of contents for strategic domain-driven design, component dependencies, SAGA compensation flow, payment event handling, idempotency logic, and a notification system architecture, with each section named in the outline present (e.g. 'Key Patterns Implemented', 'Payment Methods (Current Scope)', 'SAGA Compensation Flow (Failure Handling)'). The CQRS, DDD/Hexagonal, and rate-limiting documents are also fully outlined within the Architecture docs, covering academic origins, core capabilities, dependency rules, and implementation mapping. A dedicated Engineering & Architectural Principles document defines a strict set of design principles with evaluation criteria for every rule in the architecture.
D20 · ADR Quality
Evaluated 6 ADR(s) individually; mean quality 9.2/10 (consistently complete and clear). 0 flagged with a specific gap.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D25 · ADR Conformance
3 conform / 1 violate across 6 ADRs.
What to do
- Resolve the 1 ADR not followed finding(s) in ADR Conformance — start with ADR-0004-inventory-integrity-and-concurrency.md. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 3 ADR not followed finding(s) in ADR Conformance — start with ADR-0005-typed-atomic-occ-update-contract.md, ADR-0006-redis-fail-open-cache-aside.md, ADR-0009-demo-reset-ops-infrastructure.md. — One of this dimension's main actionable groups (3 recommendation-level).
- Enforce ADR Conformance in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D26 · Project Cohesion
1 of 1 build units (npm) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
6 finding(s): 0 critical, 6 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 4 High secret finding(s) in Secrets (history) — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 2 REDACTED finding(s) in Secrets (history) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
51 finding(s): 0 critical, 1 high, 50 medium, 0 low. semgrep hit a parse error in 6 file(s) — `src/modules/authentication/secondary-adapters/repositories/postgres-session-token-repository/postgres-session-token.repository.spec.ts` (lines 38–157), `src/modules/carts/secondary-adapters/repositories/postgres-cart-repository/postgres.cart-repository.spec.ts` (line 21), `src/modules/identity/secondary-adapters/repositories/postgres-user-repository/postgres-user.repository.spec.ts` (line 21), `src/modules/inventory/testing/mocks/inventory-repository.mock.ts` (line 42, line 49), `src/modules/orders/secondary-adapters/repositories/postgres-order-repository/postgres.order-repository.spec.ts` (line 23), … (+1 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 47 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (7), REDACTED (5), REDACTED (5). — One of this dimension's main actionable groups (47 warning-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 warning-level).
D30 · Dependency Vulnerabilities
2 finding(s): 0 critical, 1 high, 1 medium, 0 low.
What to do
- Resolve the 1 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D31 · IaC & Container Security
9 finding(s): 0 critical, 1 high, 8 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 8 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (5), REDACTED (3). — One of this dimension's main actionable groups (8 warning-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 203 of the 822 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
Strongest change-coupling: cached-user.repository.ts↔cached-inventory-repository.ts 55%; cached-user.repository.ts↔cached.product-repository.ts 55%; cached.product-repository.ts↔postgres.product-repository.ts 55%
What to do
- Resolve the 5 Boundary-crossing change coupling finding(s) in Change Coupling — start with cached-user.repository.ts (2), cached.cart-repository.ts (2), cached-inventory-repository.ts. — One of this dimension's main actionable groups (5 issue-level).
- Resolve the 1 Change coupling finding(s) in Change Coupling — start with cached.product-repository.ts. — One of this dimension's main actionable groups (1 warning-level).
D36 · Supply-chain Provenance & Signing
3/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 43 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
C1 · Data Protection
- No in-app HTTPS enforcement, but a trusted-proxy setting ('trust proxy' / trustProxy) indicates a reverse-proxy topology — terminating TLS in the app would be wrong in this layout. Verify the reverse proxy enforces TLS. — src/main.ts:70
What to do
- Strengthen data-at-rest protection: vault your keys (AWS KMS / Secrets Manager, Azure Key Vault, GCP KMS / REDACTED Manager, HashiCorp Vault) and encrypt the most sensitive columns (typeorm-encrypted, prisma-field-encryption, mongoose-field-encryption or MongoDB CSFLE) — partial coverage still leaves gaps.
C2 · Access Controls
C4 · Data Retention
- A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a documented retention period / data-expiry.
What to do
- Complete the data-lifecycle story: an expiry limit (a declared maximum age for the stored data — a retention-age setting, or a store-level TTL where your storage offers one), a scheduled purge/cleanup job that enforces it, and a documented retention period covering the personal data.
DM1 · Aggregate boundaries
DM10 · One transaction, one aggregate
- `ChangePasswordUseCase.execute` saves `CredentialRepository`, `SessionTokenRepository` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:40
What to do
- Mutate one aggregate per operation and let the others follow from a domain event — the second aggregate reaching consistency a moment later is the design, not a compromise.
DM11 · Constructible invalid state
DM2 · Strongly-typed ids
- `OrderItem.productId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/orders/core/domain/entities/order-items.ts:57
- `Order.userId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/orders/core/domain/entities/order.ts:103
- `CartItem.productId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/carts/core/domain/entities/cart-item.ts:86
- `Cart.userId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/carts/core/domain/entities/cart.ts:52
- `ReservationItem.productId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/inventory/core/domain/entities/reservation-item.ts:26
- `Reservation.orderId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/inventory/core/domain/entities/reservation.ts:70
- `Refund.paymentId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/payments/core/domain/entities/refund.ts:73
- `Payment.orderId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/payments/core/domain/entities/payment.ts:133
- `SessionToken.userId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/authentication/core/domain/entities/session-token.ts:35
- `Credential.userId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/authentication/core/domain/entities/credential.ts:27
- `UserRoleAssignment.userId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/authorization/core/domain/entities/user-role-assignment.ts:30
- `UserRoleAssignment.roleId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/authorization/core/domain/entities/user-role-assignment.ts:34
- `Address.userId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/identity/core/domain/entities/address.ts:99
- `Inventory.productId` is a raw `number` — give it a strongly-typed id: a dedicated single-field type wrapping the `number`, in whatever form your language spells that. — src/modules/inventory/core/domain/entities/inventory.ts:81
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
- `OrderItem` is an aggregate/entity with 9 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/orders/core/domain/entities/order-items.ts:17
- `ReservationItem` is an aggregate/entity with 5 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/inventory/core/domain/entities/reservation-item.ts:11
- `Permission` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/authorization/core/domain/entities/permission.ts:13
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
- `Credential` exposes publicly writable state (passwordHash, mustChangePassword). — src/modules/authentication/core/domain/entities/credential.ts:10
What to do
- Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition. — scripts/ascii-prose.cjs:328
What to do
- Remove the dead code that still moves this score: delete dead if(false) branches and either do the real async work or drop the async keyword from fake-async functions.
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation
What to do
- Grow the ADR log (currently 7) — reach 8 to raise the maturity tier; document significant decisions as they're made.
M3 · Folder & project structure
M4 · Documentation accuracy
- README advertises a microservices architecture, but the repo is a single project with no service manifests — searched for: `microservice`, `service-mesh`, `istio`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (package.json and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, REDACTED); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong. — README.md:40
- docs/architecture/DDD-HEXAGONAL.md names `core/domain/models/`, but no file or folder `core/domain/models` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/architecture/DDD-HEXAGONAL.md:111
- docs/architecture/DDD-HEXAGONAL.md names `core/domain/events/`, but no file or folder `core/domain/events` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/architecture/DDD-HEXAGONAL.md:116
- docs/development/SEEDING.md documents the environment variable `NEXT_PUBLIC_API_BASE_URL`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/development/SEEDING.md:142
- docs/development/SEEDING.md documents the environment variable `NEXT_PUBLIC_IMAGE_ALLOWED_HOSTS`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/development/SEEDING.md:142
- docs/security/ADMIN-BOOTSTRAP.md documents the environment variable `ADMIN_EMAIL`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/security/ADMIN-BOOTSTRAP.md:25
- docs/security/ADMIN-BOOTSTRAP.md documents the environment variable `ADMIN_PASSWORD`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/security/ADMIN-BOOTSTRAP.md:25
- docs/security/ADMIN-BOOTSTRAP.md documents the environment variable `KEYCLOAK_ADMIN`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/security/ADMIN-BOOTSTRAP.md:62
- docs/security/SECRET-ROTATION.md documents the environment variable `STRIPE_SECRET_KEY`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/security/SECRET-ROTATION.md:202
- docs/infrastructure/cicd/PROJECT-PIPELINE.md names `actions/setup-node`, but no file or folder `actions/setup-node` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/infrastructure/cicd/PROJECT-PIPELINE.md:57
- docs/infrastructure/cicd/PROJECT-PIPELINE.md links to `../../.github/actions/prepare-test-env/action.yml`, but `docs/.github/actions/prepare-test-env/action.yml` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/infrastructure/cicd/PROJECT-PIPELINE.md:93
- docs/infrastructure/cicd/PROJECT-PIPELINE.md links to `../../.github/actions/prepare-db-env/action.yml`, but `docs/.github/actions/prepare-db-env/action.yml` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/infrastructure/cicd/PROJECT-PIPELINE.md:110
- docs/data/collections/bruno/README.md links to `../../development/SEEDING.md`, but `docs/data/development/SEEDING.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/data/collections/bruno/README.md:14
- docs/infrastructure/cicd/pipeline/PIPELINE-OPTIMIZATION.md names `Cargo.toml`, but no file or folder `Cargo.toml` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/infrastructure/cicd/pipeline/PIPELINE-OPTIMIZATION.md:43
What to do
- Reconcile the README with reality: README advertises a microservices architecture, but the repo is a single project with no service manifests; docs/architecture/DDD-HEXAGONAL.md names `core/domain/models/`, but no file or folder `core/domain/models` exists; docs/architecture/DDD-HEXAGONAL.md names `core/domain/events/`, but no file or folder `core/domain/events` exists; docs/development/SEEDING.md documents the environment variable `NEXT_PUBLIC_API_BASE_URL`, but no code, script or configuration file names it; docs/development/SEEDING.md documents the environment variable `NEXT_PUBLIC_IMAGE_ALLOWED_HOSTS`, but no code, script or configuration file names it.
P1 · CI/CD gates
P2 · Observability
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 as a CI step. What was searched, so you can tell an absence from a miss: the 43636 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
What to do
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene
P7 · Outbound HTTP resilience
P8 · Schema migrations
P9 · Domain vs controller coverage
What to do
- Raise domain coverage toward 100% — cover the remaining aggregates / value objects / domain services where the business invariants and costly bugs live.
PF3 · Async & latency hygiene
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- 198 duplicated blocks under src/modules/ have copies in at least two of the sibling directories analytics, authentication, authorization, carts, identity, inventory (+4 more sibling(s) not listed) — 81 of them are reported below, and 117 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 198 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 198 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 198 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:15
- 5 duplicated blocks under src/modules/orders/core/application/usecases/ have copies in at least two of the sibling directories cancel-order, confirm-order, deliver-order, handle-payment-completed, handle-payment-failed, process-order (+1 more sibling(s) not listed) — 3 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts:16
- src/modules/products/core/domain/entities/category.ts:20 · src/modules/products/core/domain/entities/product.ts:41 — the two spans are one implementation copied and then locally edited — 646 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/products/core/domain/entities/category.ts:20
- src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:15 · src/modules/payments/secondary-adapters/repositories/cached-payment-repository/cached.payment-repository.ts:16 — the two spans are one implementation copied and then locally edited — 550 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/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:15
- src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:20 · src/modules/authentication/core/application/usecases/login-user/login-user.usecase.ts:17 — the two spans are one implementation copied and then locally edited — 321 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/authentication/core/application/usecases/change-password/change-password.usecase.ts:20
- src/modules/inventory/secondary-adapters/query/postgres-inventory-query.adapter.ts:16 · src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:18 — the two spans are one implementation copied and then locally edited — 321 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/inventory/secondary-adapters/query/postgres-inventory-query.adapter.ts:16
- src/modules/inventory/secondary-adapters/repositories/postgres-inventory-repository/postgres-inventory-repository.ts:208 · src/modules/products/secondary-adapters/repositories/postgres-product-repository/postgres.product-repository.ts:31 — the two spans are one implementation copied and then locally edited — 298 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/inventory/secondary-adapters/repositories/postgres-inventory-repository/postgres-inventory-repository.ts:208
- src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:120 · src/modules/products/secondary-adapters/repositories/cached-product-repository/cached.product-repository.ts:21 — the two spans are one implementation copied and then locally edited — 372 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/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:120
- src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:179 · src/modules/payments/secondary-adapters/repositories/cached-payment-repository/cached.payment-repository.ts:46 — the two spans are one implementation copied and then locally edited — 292 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/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:179
- src/modules/carts/secondary-adapters/repositories/postgres-cart-repository/postgres.cart-repository.ts:86 · src/modules/orders/secondary-adapters/repositories/postgres-order-repository/postgres.order-repository.ts:83 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/carts/secondary-adapters/repositories/postgres-cart-repository/postgres.cart-repository.ts:86
- src/modules/identity/primary-adapters/dto/add-address.dto.ts:7 · src/modules/identity/primary-adapters/dto/update-address.dto.ts:6 — the two spans are one implementation copied and then locally edited — 161 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/identity/primary-adapters/dto/add-address.dto.ts:7
- src/modules/payments/core/domain/value-objects/payment-status.ts:11 · src/modules/payments/core/domain/value-objects/refund-status.ts:9 — the two spans are one implementation copied and then locally edited — 229 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/payments/core/domain/value-objects/payment-status.ts:11
- src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:150 · src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:150
- src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:104 · src/modules/inventory/secondary-adapters/repositories/postgres-inventory-repository/postgres-inventory-repository.ts:60 — the two spans are one implementation copied and then locally edited — 216 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/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:104
- src/modules/inventory/secondary-adapters/schedulers/bullmq-inventory.scheduler.ts:29 · src/modules/inventory/secondary-adapters/schedulers/bullmq-inventory.scheduler.ts:76 · src/modules/orders/secondary-adapters/schedulers/bullmq-checkout.scheduler.ts:249 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/inventory/secondary-adapters/schedulers/bullmq-inventory.scheduler.ts:29
- src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts:16 · src/modules/orders/core/application/usecases/handle-payment-failed/handle-payment-failed.usecase.ts:15 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts:16
- src/modules/authorization/secondary-adapter/repositories/postgres-role-repository/postgres-role.repository.ts:51 · src/modules/products/secondary-adapters/repositories/postgres-category-repository/postgres.category-repository.ts:21 — the two spans are one implementation copied and then locally edited — 222 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/authorization/secondary-adapter/repositories/postgres-role-repository/postgres-role.repository.ts:51
- src/modules/carts/secondary-adapters/persistence/mappers/cart.mapper.ts:10 · src/modules/orders/secondary-adapters/persistence/mappers/order.mapper.ts:15 — the two spans are one implementation copied and then locally edited — 257 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/carts/secondary-adapters/persistence/mappers/cart.mapper.ts:10
- src/modules/identity/primary-adapters/dto/add-address.dto.ts:7 · src/modules/identity/primary-adapters/dto/address-response.dto.ts:12 — the two spans are one implementation copied and then locally edited — 148 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/identity/primary-adapters/dto/add-address.dto.ts:7
- src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts:276 · src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts:350 — the two spans are one implementation copied and then locally edited — 267 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts:276
- src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:143 · src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:185 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:143
- src/modules/carts/secondary-adapters/query/postgres-cart-query.adapter.ts:20 · src/modules/carts/secondary-adapters/query/postgres-cart-query.adapter.ts:61 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/modules/carts/secondary-adapters/query/postgres-cart-query.adapter.ts:20
- src/modules/analytics/secondary-adapters/mappers/query/analytics-query.mapper.ts:93 · src/modules/analytics/secondary-adapters/mappers/query/analytics-query.mapper.ts:188 — the two spans are one implementation copied and then locally edited — 204 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/analytics/secondary-adapters/mappers/query/analytics-query.mapper.ts:93
- src/modules/identity/core/domain/entities/address.ts:57 · src/modules/orders/core/domain/value-objects/shipping-address.ts:39 — the two spans are one implementation copied and then locally edited — 203 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/identity/core/domain/entities/address.ts:57
- REDACTED:111 · REDACTED:111 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:111
- src/modules/authorization/authorization.module.ts:47 · src/modules/inventory/inventory.module.ts:81 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — src/modules/authorization/authorization.module.ts:47
- src/modules/inventory/inventory.processor.ts:16 · src/modules/notifications/notifications.processor.ts:20 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/inventory/inventory.processor.ts:16
- src/modules/orders/core/application/usecases/list-orders/list-orders.usecase.ts:16 · src/modules/payments/core/application/usecases/list-payments/list-payments.usecase.ts:15 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/orders/core/application/usecases/list-orders/list-orders.usecase.ts:16
- src/modules/products/core/application/usecases/activate-product/activate-product.usecase.ts:11 · src/modules/products/core/application/usecases/deactivate-product/deactivate-product.usecase.ts:11 — the two spans are one implementation copied and then locally edited — 183 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/products/core/application/usecases/activate-product/activate-product.usecase.ts:11
- src/modules/products/core/application/usecases/categories/activate-category.usecase.ts:11 · src/modules/products/core/application/usecases/categories/deactivate-category.usecase.ts:11 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/products/core/application/usecases/categories/activate-category.usecase.ts:11
- src/modules/products/core/application/usecases/create-product/create-product.usecase.ts:49 · src/modules/products/core/application/usecases/update-product/update-product.usecase.ts:41 — the two spans are one implementation copied and then locally edited — 191 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/products/core/application/usecases/create-product/create-product.usecase.ts:49
- src/modules/carts/carts.module.ts:37 · src/modules/orders/orders.module.ts:99 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/carts/carts.module.ts:37
- src/modules/identity/primary-adapters/dto/address-response.dto.ts:12 · src/modules/identity/primary-adapters/dto/update-address.dto.ts:6 — the two spans are one implementation copied and then locally edited — 106 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/identity/primary-adapters/dto/address-response.dto.ts:12
- src/modules/identity/core/application/usecases/address/add-address/add-address.usecase.ts:17 · src/modules/identity/core/application/usecases/address/update-address/update-address.usecase.ts:16 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/identity/core/application/usecases/address/add-address/add-address.usecase.ts:17
- src/modules/payments/core/application/usecases/get-payment-by-order-id/get-payment-by-order-id.usecase.ts:17 · src/modules/payments/core/application/usecases/get-payment/get-payment.usecase.ts:17 — the two spans are one implementation copied and then locally edited — 128 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/payments/core/application/usecases/get-payment-by-order-id/get-payment-by-order-id.usecase.ts:17
- src/modules/orders/primary-adapters/jobs/release-order-stock.job.ts:11 · src/modules/orders/primary-adapters/jobs/release-stock.job.ts:12 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/orders/primary-adapters/jobs/release-order-stock.job.ts:11
- src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:65 · src/modules/products/secondary-adapters/repositories/cached-product-repository/cached.product-repository.ts:141 — the two spans are one implementation copied and then locally edited — 167 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/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:65
- src/modules/authentication/secondary-adapters/adapters/module-identity.gateway.ts:38 · src/modules/authentication/secondary-adapters/adapters/module-identity.gateway.ts:68 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/authentication/secondary-adapters/adapters/module-identity.gateway.ts:38
- src/modules/identity/secondary-adapters/repositories/cached-user-repository/cached-user.repository.ts:124 · src/modules/identity/secondary-adapters/repositories/cached-user-repository/cached-user.repository.ts:164 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/identity/secondary-adapters/repositories/cached-user-repository/cached-user.repository.ts:124
- REDACTED:85 · REDACTED:173 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:85
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
- generateEnvs has cyclomatic complexity 26 and cognitive complexity 44; 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. — scripts/generate-envs.js:169
- toPresentationDto has cyclomatic complexity 26 and cognitive complexity 35; 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/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts:11
- (anonymous) has cyclomatic complexity 25 and cognitive complexity 30; 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. — scripts/generate-envs.js:62
- skipString has cyclomatic complexity 23 and cognitive complexity 35; 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. — scripts/ascii-prose.cjs:148
- walk has cyclomatic complexity 22 and cognitive complexity 32; 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. — scripts/ascii-prose.cjs:54
- (top-level) has cyclomatic complexity 22 and cognitive complexity 31; 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/filters/global-exception.filter.ts:1
- selectVitestCommands has cyclomatic complexity 22 and cognitive complexity 21; 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. — scripts/agent-output.mjs:78
- (top-level) has cyclomatic complexity 19 and cognitive complexity 18; 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/modules/authentication/core/application/usecases/refresh-token/refresh-token.usecase.ts:1
- list has cyclomatic complexity 19 and cognitive complexity 18; 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/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:25
- listOrders has cyclomatic complexity 18 and cognitive complexity 24; 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/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:27
- (top-level) has cyclomatic complexity 17 and cognitive complexity 18; 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/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts:1
- runSetup has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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. — scripts/lib/setup-bootstrap.js:15
- list has cyclomatic complexity 16 and cognitive complexity 14; 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/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:24
- list has cyclomatic complexity 15 and cognitive complexity 12; 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/modules/inventory/secondary-adapters/query/postgres-inventory-query.adapter.ts:23
- findComments has cyclomatic complexity 14 and cognitive complexity 18; 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. — scripts/ascii-prose.cjs:143
- (anonymous) has cyclomatic complexity 14 and cognitive complexity 18; 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/modules/orders/primary-adapters/listeners/checkout-failure.listener.ts:26
- redactInPlace has cyclomatic complexity 14 and cognitive complexity 16; 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/infrastructure/logging/winston-logger.service.ts:197
- (top-level) has cyclomatic complexity 14 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 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. (×2) — src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:1, src/modules/identity/core/application/usecases/address/update-address/update-address.usecase.ts:1
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts has 404 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts:1
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. (×30) — scripts/ascii-prose.cjs:1, scripts/db-restore-drill.js:1, scripts/audit-openapi.js:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
R7 · Dead Code
- Unreachable from the 29 application, 35 tooling and 385 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 (29 application, 35 tooling, 385 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/modules/orders/primary-adapters/dto/update-order.dto.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 — src/modules/orders/primary-adapters/dto/create-order.dto.ts
- no import path from any entry point (29 application, 35 tooling, 385 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 (×18) — src/modules/inventory/core/domain/value-objects/stock-adjustment-reason.ts, src/modules/payments/primary-adapters/dto/payment-method-details.dto.ts, src/infrastructure/websocket/guards/ws-auth.guard.ts, …
- no import path from any entry point (29 application, 35 tooling, 385 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/modules/orders/primary-adapters/dto/create-order.dto.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 — src/modules/orders/primary-adapters/dto/create-order-item.dto.ts
- no import path from any entry point (29 application, 35 tooling, 385 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/modules/orders/primary-adapters/dto/order-response.dto.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 — src/modules/orders/primary-adapters/dto/order-item-response.dto.ts
- Nothing imports this binding — it is safe to review for removal. (×15) — scripts/agent-output.mjs:124, src/config/validate-env.ts:155, src/infrastructure/health/dto/health-check-response.dto.ts:3, …
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/modules/carts/testing/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/modules/carts/testing/index.ts in the same commit, or the barrel will import a name that no longer exists. — REDACTED:5
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/modules/identity/testing/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/modules/identity/testing/index.ts in the same commit, or the barrel will import a name that no longer exists. — src/modules/identity/testing/builders/user.builder.ts:4
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/modules/products/testing/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/modules/products/testing/index.ts in the same commit, or the barrel will import a name that no longer exists. — src/modules/products/testing/builders/product.builder.ts:5
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
- Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×4) — src/filters/global-exception.filter.ts:10, src/config/configuration.ts:1, test/integration/redis/redis-chaos.global-setup.ts:1, …
- 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/modules/authorization/secondary-adapter/orm/role-permission.schema.ts → src/modules/authorization/secondary-adapter/orm/role.schema.ts → src/modules/authorization/secondary-adapter/orm/role-permission.schema.ts — src/modules/authorization/secondary-adapter/orm/role-permission.schema.ts:10
- src/modules/carts/secondary-adapters/orm/cart-item.schema.ts → src/modules/carts/secondary-adapters/orm/cart.schema.ts → src/modules/carts/secondary-adapters/orm/cart-item.schema.ts — src/modules/carts/secondary-adapters/orm/cart-item.schema.ts:10
- src/modules/identity/secondary-adapters/orm/address.schema.ts → src/modules/identity/secondary-adapters/orm/user.schema.ts → src/modules/identity/secondary-adapters/orm/address.schema.ts — src/modules/identity/secondary-adapters/orm/address.schema.ts:12
- src/modules/inventory/secondary-adapters/orm/reservation-item.schema.ts → src/modules/inventory/secondary-adapters/orm/reservation.schema.ts → src/modules/inventory/secondary-adapters/orm/reservation-item.schema.ts — src/modules/inventory/secondary-adapters/orm/reservation-item.schema.ts:10
- src/modules/orders/secondary-adapters/orm/order-item.schema.ts → src/modules/orders/secondary-adapters/orm/order.schema.ts → src/modules/orders/secondary-adapters/orm/order-item.schema.ts — src/modules/orders/secondary-adapters/orm/order-item.schema.ts:12
- src/modules/orders/testing/factories/order-dto.factory.ts → src/testing/factories/auth-payload.factory.ts → src/testing/helpers/test-data.helper.ts → src/modules/orders/testing/factories/order-dto.factory.ts — src/modules/orders/testing/factories/order-dto.factory.ts:22
- src/modules/payments/secondary-adapters/orm/payment.schema.ts → src/modules/payments/secondary-adapters/orm/refund.schema.ts → src/modules/payments/secondary-adapters/orm/payment.schema.ts — src/modules/payments/secondary-adapters/orm/payment.schema.ts:12
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
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
- `isKnownRedisConnectionError` is exported and takes `err: unknown` from its caller, and it calls itself at line 22 (`isKnownRedisConnectionError`) with a piece of `err` — and nowhere in `isKnownRedisConnectionError` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isKnownRedisConnectionError` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — src/infrastructure/redis/redis-error.utils.ts:22
- `isRedisJson` is exported and takes `value: unknown` from its caller, and it calls itself at line 22 (`isRedisJson`) with a piece of `value` (and at line 26) — and nowhere in `isRedisJson` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isRedisJson` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — src/infrastructure/redis/cache/cache-json.ts:22
What to do
- Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X2 · Cancellation propagation
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
- An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×6) — scripts/db-restore-drill.js:158, scripts/lib/pg.js:584, scripts/lib/pg.js:591, …
- `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — scripts/ascii-prose.cjs:58
What to do
- Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects
X4 · Structured logging
- `log` at line 219 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:219
- `log` at line 239 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:239
- `log` at line 246 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:246
- `log` at line 255 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:255
- `error` at line 262 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:262
- `log` at line 270 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:270
- `error` at line 279 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/generate-envs.js:279
- `error` at line 35 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/lib/cli.js:35
- `error` at line 37 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — scripts/lib/cli.js:37
- `log` at line 89 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/main.ts:89
- `log` at line 104 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/main.ts:104
- `warn` at line 54 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/filters/global-exception.filter.ts:54
- `warn` at line 75 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/filters/global-exception.filter.ts:75
- `warn` at line 87 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/filters/global-exception.filter.ts:87
- `warn` at line 99 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/filters/global-exception.filter.ts:99
- `error` at line 105 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/filters/global-exception.filter.ts:105
- `error` at line 112 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/filters/global-exception.filter.ts:112
- `error` at line 23 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/events/event-emitter2.domain-event-publisher.ts:23
- `warn` at line 49 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:49
- `log` at line 63 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:63
- `log` at line 77 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:77
- `log` at line 81 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:81
- `warn` at line 85 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:85
- `warn` at line 93 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:93
- `warn` at line 101 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:101
- `warn` at line 107 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:107
- `warn` at line 112 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:112
- `log` at line 144 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:144
- `error` at line 146 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:146
- `log` at line 156 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:156
- `error` at line 158 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/idempotency/idempotency.service.ts:158
- `log` at line 57 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/jobs/base-job.handler.ts:57
- `log` at line 61 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/jobs/base-job.handler.ts:61
- `error` at line 75 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/jobs/base-job.handler.ts:75
- `log` at line 85 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/jobs/base-job.handler.ts:85
- `error` at line 92 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/jobs/base-job.handler.ts:92
- `log` at line 68 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.log({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.log('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/jwt/services/jwks.service.ts:68
- `info` at line 177 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.info({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.info('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/logging/winston-logger.service.ts:177
- `http` at line 24 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.http({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.http('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/logging/middleware/http-logging.middleware.ts:24
- `warn` at line 53 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/infrastructure/metrics/collectors/infra-metrics.collector.ts:53
What to do
- Interpolated log message defeats structured logging
X5 · Nullable reference types
- 0/1 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
- ~12.6 `!` null assertions per 1k TypeScript source lines — 606 assertion(s) across the 48012 source line(s) of the 749 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: src/modules/orders/primary-adapters/dto/order-detail-response.dto.ts (28), src/modules/products/primary-adapters/dto/product-response.dto.ts (26), src/modules/inventory/primary-adapters/dto/inventory-response.dto.ts (22). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 54% | Adequate — gated by X4, X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 59% | Adequate — gated by D26, R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 55% | Adequate — gated by M4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 48% | Adequate — gated by D13, R8, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 69% | Adequate — gated by D29 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 70% | Adequate — gated by DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 2 check(s) recorded observations but carry no score
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
- X10 Duplicated predicate — 6 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
- C3 Audit Trail — Repo shows no audit-logging mechanism (an audit-log table or model, an ORM write hook that records changes — a TypeORM/MikroORM subscriber, a Sequelize or Mongoose hook, Prisma middleware — or a change-history plugin such as mongoose-history or sequelize-paper-trail) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
Not included — 44 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — Not applicable: NestJS makes a provider that injects a request-scoped one request-scoped itself (scope bubbles up the injection chain), and gives every consumer its own transient instance by contract.
- AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — time="2026-10-22T14:26:03Z" level=warning msg="The \"REDIS_PASSWORD\" variable is not set. Defaulting to a blank string." postgres Pulling redis Pulling redis Error Get "https://registry-1.docker.io/v2/": Forbidden postgres Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: time="2026-10-22T14:26:03Z" level=warning msg="The \"REDIS_PASSWORD\" variable is not set. Defaulting to a blank string." redis Pulling postgres Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden redis 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.
- 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 — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.cjs,.js,.mjs,.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.
- 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.)
- 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 none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- 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.
- S1 Web-Security Posture — Not assessed: 771 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. That half of the dimension is clean, but it is not scored on its own: a C# repository with the same clean reading is scored on its server controls as well, or is N/A for having no web surface, and neither can be decided here. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- 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 — 29 finding(s)
- Import cycle (2 files) src/modules/authorization/secondary-adapter/orm/role-permission.schema.ts:10
- Import cycle (2 files) src/modules/carts/secondary-adapters/orm/cart-item.schema.ts:10
- Import cycle (2 files) src/modules/identity/secondary-adapters/orm/address.schema.ts:12
- Import cycle (2 files) src/modules/inventory/secondary-adapters/orm/reservation-item.schema.ts:10
- Import cycle (2 files) src/modules/orders/secondary-adapters/orm/order-item.schema.ts:12
- Import cycle (2 files) src/modules/payments/secondary-adapters/orm/payment.schema.ts:12
- Boundary-crossing change coupling: cached-user.repository.ts ↔ cached-inventory-repository.ts src/modules/identity/secondary-adapters/repositories/cached-user-repository/cached-user.repository.ts:1
- Boundary-crossing change coupling: cached-user.repository.ts ↔ cached.product-repository.ts src/modules/identity/secondary-adapters/repositories/cached-user-repository/cached-user.repository.ts:1
- Boundary-crossing change coupling: cached-inventory-repository.ts ↔ cached.product-repository.ts src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:1
- Boundary-crossing change coupling: cached.cart-repository.ts ↔ cached-inventory-repository.ts src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:1
- Boundary-crossing change coupling: cached.cart-repository.ts ↔ cached.product-repository.ts src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- ADR not followed: ADR-0004: Inventory Data Integrity, Concurrency & Schema Optimization docs/architecture/adr/ADR-0004-inventory-integrity-and-concurrency.md
- REDACTED
- REDACTED
- REDACTED
- Unlisted import 'express' src/filters/global-exception.filter.ts:10
- Unlisted import 'ms' src/config/configuration.ts:1
- Unlisted import 'testcontainers' test/integration/redis/redis-chaos.global-setup.ts:1
- Unlisted import 'uuid' src/infrastructure/jobs/job-config.service.ts:8
- Import cycle (3 files) src/modules/orders/testing/factories/order-dto.factory.ts:22
Serious — 558 finding(s)
- No assertions: returns a failure Result for an unknown currency code src/infrastructure/platform/get-platform-config.query.spec.ts:51
- No assertions: should return failure if user is not found src/modules/authentication/core/application/usecases/login-user/login-user.usecase.spec.ts:103
- No assertions: should return failure if password is incorrect src/modules/authentication/core/application/usecases/login-user/login-user.usecase.spec.ts:118
- No assertions: should return failure if user is deactivated src/modules/authentication/core/application/usecases/login-user/login-user.usecase.spec.ts:133
- No assertions: should return failure if user has no assigned role src/modules/authentication/core/application/usecases/login-user/login-user.usecase.spec.ts:151
- No assertions: returns unauthorized when the refresh token signature is invalid src/modules/authentication/core/application/usecases/refresh-token/refresh-token.usecase.spec.ts:372
- No assertions: should register a user successfully src/modules/authentication/core/application/usecases/register-user/register-user.usecase.spec.ts:51
- No assertions: should return failure if email already exists src/modules/authentication/core/application/usecases/register-user/register-user.usecase.spec.ts:63
- No assertions: save rejects a second credential for the same userId src/modules/authentication/secondary-adapters/repositories/postgres-credential.repository/postgres-credential.repository.integration.spec.ts:37
- No assertions: should return an error if repository fails src/modules/authorization/core/application/usecases/permissions/find-all-permissions/find-all-permissions.usecase.spec.ts:47
- No assertions: should return failure if updating role in repository fails src/modules/authorization/core/application/usecases/role/update-role.usecase.spec.ts:89
- No assertions: should return failure if role is not found src/modules/authorization/core/application/usecases/role/find-role-by-id.usecase.spec.ts:46
- No assertions: should return failure if repository fails src/modules/authorization/core/application/usecases/role/find-all-roles.usecase.spec.ts:46
- No assertions: should return failure if deleting role fails in repository src/modules/authorization/core/application/usecases/role/delete-role.usecase.spec.ts:78
- No assertions: should return failure if user role assignment not found src/modules/authorization/core/application/usecases/user-role/find-role-by-user-id.usecase.spec.ts:64
- No assertions: should validate successfully for deletion of non-system role src/modules/authorization/core/domain/entities/role.spec.ts:84
- No assertions: should return DomainError when validating deletion of a system role src/modules/authorization/core/domain/entities/role.spec.ts:100
- No assertions: saveMany rejects a duplicate permission code src/modules/authorization/secondary-adapter/repositories/postgres-permission-repository/postgres-permission.repository.integration.spec.ts:48
- No assertions: update returns not-found when role id is missing src/modules/authorization/secondary-adapter/repositories/postgres-role-repository/postgres-role.repository.integration.spec.ts:84
- No assertions: save rejects a duplicate role code src/modules/authorization/secondary-adapter/repositories/postgres-role-repository/postgres-role.repository.integration.spec.ts:102
- No assertions: save rejects a second assignment for the same userId src/modules/authorization/secondary-adapter/repositories/postgres-user-role-assignment-repository/postgres-user-role-assignment.repository.integration.spec.ts:47
- No assertions: returns a failure when line items use different currencies src/modules/carts/core/application/mappers/cart-presentation.mapper.spec.ts:84
- No assertions: should add item to cart successfully for admin src/modules/carts/core/application/usecases/add-cart-item/add-cart-item.usecase.spec.ts:41
- No assertions: should add item to cart successfully for owning customer src/modules/carts/core/application/usecases/add-cart-item/add-cart-item.usecase.spec.ts:65
- No assertions: should return failure (404) when customer does not own the cart src/modules/carts/core/application/usecases/add-cart-item/add-cart-item.usecase.spec.ts:122
- Low coverage: src/config/config.module.ts src/config/config.module.ts:1
- Low coverage: src/config/configuration.ts src/config/configuration.ts:1
- Low coverage: src/config/env-config.service.ts src/config/env-config.service.ts:1
- Low coverage: src/config/resolve-env-file-path.ts src/config/resolve-env-file-path.ts:1
- Low coverage: src/infrastructure/infrastructure.module.ts src/infrastructure/infrastructure.module.ts:1
- Low coverage: src/infrastructure/database/database.module.ts src/infrastructure/database/database.module.ts:1
- Low coverage: src/infrastructure/database/number.transformer.ts src/infrastructure/database/number.transformer.ts:1
- Low coverage: src/infrastructure/demo/secondary-adapters/adapters/demo-seed-runner.adapter.ts src/infrastructure/demo/secondary-adapters/adapters/demo-seed-runner.adapter.ts:1
- Low coverage: src/infrastructure/events/event-emitter2.domain-event-publisher.ts src/infrastructure/events/event-emitter2.domain-event-publisher.ts:1
- Low coverage: src/infrastructure/health/indicators/process.health-indicator.ts src/infrastructure/health/indicators/process.health-indicator.ts:1
- Low coverage: src/infrastructure/health/indicators/redis.health-indicator.ts src/infrastructure/health/indicators/redis.health-indicator.ts:1
- Low coverage: src/infrastructure/health/indicators/websocket.health-indicator.ts src/infrastructure/health/indicators/websocket.health-indicator.ts:1
- Low coverage: src/infrastructure/jobs/job-child-values.ts src/infrastructure/jobs/job-child-values.ts:1
- Low coverage: src/infrastructure/jobs/retry-strategy.ts src/infrastructure/jobs/retry-strategy.ts:1
- Low coverage: src/infrastructure/jwt/services/jwks.service.ts src/infrastructure/jwt/services/jwks.service.ts:1
- Low coverage: src/infrastructure/jwt/services/jwt-verifier.service.ts src/infrastructure/jwt/services/jwt-verifier.service.ts:1
- Low coverage: src/infrastructure/logging/winston-logger.service.ts src/infrastructure/logging/winston-logger.service.ts:1
- Low coverage: src/infrastructure/logging/middleware/http-logging.middleware.ts src/infrastructure/logging/middleware/http-logging.middleware.ts:1
- Low coverage: src/infrastructure/metrics/metrics.controller.ts src/infrastructure/metrics/metrics.controller.ts:1
- Low coverage: src/infrastructure/metrics/metrics.middleware.ts src/infrastructure/metrics/metrics.middleware.ts:1
- Low coverage: src/infrastructure/metrics/metrics.service.ts src/infrastructure/metrics/metrics.service.ts:1
- Low coverage: src/infrastructure/metrics/collectors/infra-metrics.collector.ts src/infrastructure/metrics/collectors/infra-metrics.collector.ts:1
- Low coverage: src/infrastructure/metrics/guards/metrics-auth.guard.ts src/infrastructure/metrics/guards/metrics-auth.guard.ts:1
- Low coverage: src/infrastructure/metrics/listeners/business-metrics.listener.ts src/infrastructure/metrics/listeners/business-metrics.listener.ts:1
- Low coverage: src/infrastructure/queue/bullmq-connection.module.ts src/infrastructure/queue/bullmq-connection.module.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No test reaches this file scripts/ascii-prose.cjs:1
- No test reaches this file scripts/db-restore-drill.js:1
- No test reaches this file scripts/audit-openapi.js:1
- No test reaches this file src/main.ts:1
- No test reaches this file scripts/seed-admin.ts:1
- No test reaches this file scripts/agent-check.mjs:1
- No test reaches this file scripts/seed.ts:1
- No test reaches this file scripts/db-restore.js:1
- No test reaches this file src/infrastructure/websocket/adapters/redis-io.adapter.ts:1
- No test reaches this file src/infrastructure/tracing/tracing.ts:1
- No test reaches this file src/modules/orders/primary-adapters/dto/create-order.dto.ts:1
- No test reaches this file scripts/setup.js:1
- No test reaches this file scripts/db-backup.js:1
- No test reaches this file src/modules/inventory/core/domain/value-objects/stock-adjustment-reason.ts:1
- No test reaches this file scripts/docker-migrate.js:1
- No test reaches this file scripts/generate-openapi-spec.ts:1
- No test reaches this file data-source.ts:1
- No test reaches this file src/modules/payments/primary-adapters/dto/payment-method-details.dto.ts:1
- No test reaches this file scripts/agent-run.mjs:1
- No test reaches this file src/infrastructure/websocket/guards/ws-auth.guard.ts:1
- No test reaches this file src/modules/inventory/primary-adapters/dto/stock-reservation-response.dto.ts:1
- No test reaches this file scripts/lint-ascii-prose.cjs:1
- No test reaches this file src/modules/orders/primary-adapters/dto/order-response.dto.ts:1
- No test reaches this file src/modules/orders/primary-adapters/dto/create-order-item.dto.ts:1
- No test reaches this file src/modules/identity/core/domain/repositories/address.repository.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Hotspot: scripts/generate-envs.js scripts/generate-envs.js:59
- Hotspot: src/modules/products/core/application/seed/seed-demo-catalog.usecase.ts src/modules/products/core/application/seed/seed-demo-catalog.usecase.ts:46
- Hotspot: src/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts src/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts:11
- Hotspot: src/filters/global-exception.filter.ts src/filters/global-exception.filter.ts:27
- Hotspot: src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:27
- Hotspot: src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:24
- Hotspot: src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts:33
- Swallowed exception (empty catch) scripts/db-restore-drill.js:158
- Swallowed exception (empty catch) scripts/lib/pg.js:584
- Swallowed exception (empty catch) scripts/lib/pg.js:591
- Swallowed exception (empty catch) src/infrastructure/redis/redis.service.ts:100
- Swallowed exception (empty catch) src/infrastructure/redis/cache/cache.service.ts:119
- Swallowed exception (empty catch) src/shared-kernel/infra/lang/app-version.ts:16
- Duplicated block with local edits (41 matched lines × 2 locations) src/modules/authorization/secondary-adapter/repositories/postgres-role-repository/postgres-role.repository.ts:51
- Duplicated block with local edits (41 matched lines × 2 locations) src/modules/carts/secondary-adapters/persistence/mappers/cart.mapper.ts:10
- Duplicated block with local edits (41 matched lines × 2 locations) src/modules/identity/primary-adapters/dto/add-address.dto.ts:7
- Duplicated block with local edits (41 matched lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts:276
- REDACTED
- REDACTED
- REDACTED
- Anemic entity: OrderItem src/modules/orders/core/domain/entities/order-items.ts:17
- Anemic entity: ReservationItem src/modules/inventory/core/domain/entities/reservation-item.ts:11
- Anemic entity: Permission src/modules/authorization/core/domain/entities/permission.ts:13
- Duplicated block (37 lines × 2 locations) src/modules/authorization/authorization.module.ts:47
- Duplicated block (37 lines × 2 locations) src/modules/inventory/inventory.processor.ts:16
- Duplicated block (37 lines × 2 locations) src/modules/orders/core/application/usecases/list-orders/list-orders.usecase.ts:16
- Duplicated block (29 lines × 2 locations) src/modules/authentication/secondary-adapters/adapters/module-identity.gateway.ts:38
- Duplicated block (29 lines × 2 locations) src/modules/identity/secondary-adapters/repositories/cached-user-repository/cached-user.repository.ts:124
- Duplicated block (29 lines × 2 locations) REDACTED:85
- Low cohesion: ModuleIdentityGateway (LCOM4 5) src/modules/authentication/secondary-adapters/adapters/module-identity.gateway.ts:18
- Low cohesion: ModuleInventoryReservationGateway (LCOM4 4) src/modules/orders/secondary-adapters/adapters/module-inventory-reservation.gateway.ts:15
- Duplicated block with local edits (57 matched lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/postgres-inventory-repository/postgres-inventory-repository.ts:208
- Duplicated block with local edits (57 matched lines × 2 locations) src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:120
- Duplicated block with local edits (38 matched lines × 2 locations) src/modules/analytics/secondary-adapters/mappers/query/analytics-query.mapper.ts:93
- Duplicated block with local edits (38 matched lines × 2 locations) src/modules/identity/core/domain/entities/address.ts:57
- Complex function (top-level) (cyclomatic 14, cognitive 13) src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:1
- Complex function (top-level) (cyclomatic 14, cognitive 13) src/modules/identity/core/application/usecases/address/update-address/update-address.usecase.ts:1
- Dead file (~14 LoC) src/modules/orders/primary-adapters/dto/payment-info.dto.ts
- Dead file (~14 LoC) src/modules/payments/core/domain/index.ts
- Dead file (~6 LoC) src/modules/carts/core/application/commands/clear-cart.command.ts
- Dead file (~6 LoC) src/modules/identity/core/application/commands/create-user.command.ts
- Recursive walk over a caller-supplied document has no depth cap src/infrastructure/redis/redis-error.utils.ts:22
- Recursive walk over a caller-supplied document has no depth cap src/infrastructure/redis/cache/cache-json.ts:22
- generate-envs.buildLinesForEnv (cyclomatic 26) scripts/generate-envs.js:59
- generate-envs.generateEnvs (cyclomatic 26) scripts/generate-envs.js:169
- SeedDemoCatalogUseCase.execute (cyclomatic 25) src/modules/products/core/application/seed/seed-demo-catalog.usecase.ts:46
- CartQueryMapper.toPresentationDto (cyclomatic 24) src/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts:11
- ascii-prose.findComments::skipString (cyclomatic 23) scripts/ascii-prose.cjs:148
- agent-output.selectVitestCommands (cyclomatic 22) scripts/agent-output.mjs:78
- ascii-prose.collectFiles::walk (cyclomatic 22) scripts/ascii-prose.cjs:54
- GlobalExceptionFilter.catch (cyclomatic 20) src/filters/global-exception.filter.ts:27
- PostgresPaymentQueryAdapter.list (cyclomatic 19) src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:25
- CachedOrderRepository.listOrders (cyclomatic 18) src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:27
- CreatePaymentUseCase.execute (cyclomatic 16) src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts:33
- CreatePaymentIntentUseCase.execute (cyclomatic 16) src/modules/payments/core/application/usecases/create-payment-intent/create-payment-intent.usecase.ts:37
- PostgresProductQueryAdapter.list (cyclomatic 16) src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:24
- setup-bootstrap.runSetup (cyclomatic 16) scripts/lib/setup-bootstrap.js:15
- Deprecated: prom-client package.json:171
- Repeated repair: src/interceptors/sanitize.interceptor.ts src/interceptors/sanitize.interceptor.ts:39
- generate-envs.generateEnvs (cognitive 44) scripts/generate-envs.js:169
- ascii-prose.findComments::skipString (cognitive 36) scripts/ascii-prose.cjs:148
- SeedDemoCatalogUseCase.execute (cognitive 36) src/modules/products/core/application/seed/seed-demo-catalog.usecase.ts:46
- CartQueryMapper.toPresentationDto (cognitive 35) src/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts:11
- ascii-prose.collectFiles::walk (cognitive 32) scripts/ascii-prose.cjs:54
- generate-envs.buildLinesForEnv (cognitive 31) scripts/generate-envs.js:59
- RoleSystemDataInitializer.onApplicationBootstrap (cognitive 25) src/modules/authorization/core/application/lifecycle/role-system-data.initializer.ts:19
- CachedOrderRepository.listOrders (cognitive 24) src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:27
- SeedDemoCategoriesUseCase.execute (cognitive 24) src/modules/products/core/application/seed/seed-demo-categories.usecase.ts:27
- agent-output.selectVitestCommands (cognitive 21) scripts/agent-output.mjs:78
- SweepExpiredReservationsUseCase.execute (cognitive 21) src/modules/inventory/core/application/usecases/sweep-expired-reservations/sweep-expired-reservations.usecase.ts:31
- CreatePaymentIntentUseCase.execute (cognitive 20) src/modules/payments/core/application/usecases/create-payment-intent/create-payment-intent.usecase.ts:37
- SeedDemoOrdersUseCase.execute (cognitive 20) src/modules/orders/core/application/seed/seed-demo-orders.usecase.ts:53
- ascii-prose.findComments (cognitive 19) scripts/ascii-prose.cjs:143
- PostgresPaymentQueryAdapter.list (cognitive 19) src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:25
- CheckoutFailureListener.onModuleInit (cognitive 18) src/modules/orders/primary-adapters/listeners/checkout-failure.listener.ts:23
- CreatePaymentUseCase.execute (cognitive 17) src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts:33
- money-decimal.minorUnitsFromDecimal (cognitive 16) src/shared-kernel/domain/value-objects/money-decimal.ts:57
- UpdateProductUseCase.execute (cognitive 16) src/modules/products/core/application/usecases/update-product/update-product.usecase.ts:30
- winston-logger.service.redactInPlace (cognitive 16) src/infrastructure/logging/winston-logger.service.ts:197
- TooManyMethods: Order src/modules/orders/core/domain/entities/order.ts:35
- MethodTooLong: ChangePasswordUseCase.execute src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:40
- REDACTED
- Change coupling: cached.product-repository.ts ↔ postgres.product-repository.ts src/modules/products/secondary-adapters/repositories/cached-product-repository/cached.product-repository.ts:1
- One operation mutates 2 aggregates: ChangePasswordUseCase.execute src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:40
- Mutable entity: Credential src/modules/authentication/core/domain/entities/credential.ts:10
- Both branches are identical — the condition decides nothing scripts/ascii-prose.cjs:328
- Coverage collected but not gated
- Duplication concentrated across 10 sibling directories (198 clone groups) src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:15
- Duplication concentrated across 7 sibling directories (5 clone groups) src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts:16
- Duplicated block with local edits (108 matched lines × 2 locations) src/modules/products/core/domain/entities/category.ts:20
- Duplicated block with local edits (92 matched lines × 2 locations) src/modules/carts/secondary-adapters/repositories/cached-cart-repository/cached.cart-repository.ts:15
- Duplicated block with local edits (84 matched lines × 2 locations) src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:20
- Duplicated block with local edits (64 matched lines × 2 locations) src/modules/inventory/secondary-adapters/query/postgres-inventory-query.adapter.ts:16
- Duplicated block with local edits (55 matched lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:179
- Duplicated block (54 lines × 2 locations) src/modules/carts/secondary-adapters/repositories/postgres-cart-repository/postgres.cart-repository.ts:86
- Duplicated block with local edits (50 matched lines × 2 locations) src/modules/identity/primary-adapters/dto/add-address.dto.ts:7
- Duplicated block with local edits (44 matched lines × 2 locations) src/modules/payments/core/domain/value-objects/payment-status.ts:11
- Duplicated block (44 lines × 2 locations) src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:150
- Duplicated block with local edits (43 matched lines × 2 locations) src/modules/inventory/secondary-adapters/repositories/cached-inventory-repository/cached-inventory-repository.ts:104
- Duplicated block (43 lines × 3 locations) src/modules/inventory/secondary-adapters/schedulers/bullmq-inventory.scheduler.ts:29
- Duplicated block (42 lines × 2 locations) src/modules/orders/core/application/usecases/handle-payment-completed/handle-payment-completed.usecase.ts:16
- Duplicated block (41 lines × 2 locations) src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:143
- Duplicated block (40 lines × 2 locations) src/modules/carts/secondary-adapters/query/postgres-cart-query.adapter.ts:20
- Duplicated block (38 lines × 2 locations) REDACTED:111
- Duplicated block with local edits (36 matched lines × 2 locations) src/modules/products/core/application/usecases/activate-product/activate-product.usecase.ts:11
- Duplicated block (35 lines × 2 locations) src/modules/products/core/application/usecases/categories/activate-category.usecase.ts:11
- Duplicated block with local edits (35 matched lines × 2 locations) src/modules/products/core/application/usecases/create-product/create-product.usecase.ts:49
- Duplicated block (34 lines × 2 locations) src/modules/carts/carts.module.ts:37
- Duplicated block with local edits (34 matched lines × 2 locations) src/modules/identity/primary-adapters/dto/address-response.dto.ts:12
- Duplicated block (33 lines × 2 locations) src/modules/identity/core/application/usecases/address/add-address/add-address.usecase.ts:17
- Duplicated block with local edits (31 matched lines × 2 locations) src/modules/payments/core/application/usecases/get-payment-by-order-id/get-payment-by-order-id.usecase.ts:17
- Duplicated block (30 lines × 2 locations) src/modules/orders/primary-adapters/jobs/release-order-stock.job.ts:11
- Duplicated block with local edits (30 matched lines × 2 locations) src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:65
- Complex function generateEnvs (cyclomatic 26, cognitive 44) scripts/generate-envs.js:169
- Complex function toPresentationDto (cyclomatic 26, cognitive 35) src/modules/carts/secondary-adapters/mappers/query/cart-query.mapper.ts:11
- Complex function (anonymous) (cyclomatic 25, cognitive 30) scripts/generate-envs.js:62
- Complex function skipString (cyclomatic 23, cognitive 35) scripts/ascii-prose.cjs:148
- Complex function walk (cyclomatic 22, cognitive 32) scripts/ascii-prose.cjs:54
- Complex function (top-level) (cyclomatic 22, cognitive 31) src/filters/global-exception.filter.ts:1
- Complex function selectVitestCommands (cyclomatic 22, cognitive 21) scripts/agent-output.mjs:78
- Complex function (top-level) (cyclomatic 19, cognitive 18) src/modules/authentication/core/application/usecases/refresh-token/refresh-token.usecase.ts:1
- Complex function list (cyclomatic 19, cognitive 18) src/modules/payments/secondary-adapters/query/postgres-payment-query.adapter.ts:25
- Complex function listOrders (cyclomatic 18, cognitive 24) src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:27
- Complex function (top-level) (cyclomatic 17, cognitive 18) src/modules/payments/core/application/usecases/create-payment/create-payment.usecase.ts:1
- Complex function runSetup (cyclomatic 16, cognitive 15) scripts/lib/setup-bootstrap.js:15
- Complex function list (cyclomatic 16, cognitive 14) src/modules/products/secondary-adapters/query/postgres-product-query.adapter.ts:24
- Complex function list (cyclomatic 15, cognitive 12) src/modules/inventory/secondary-adapters/query/postgres-inventory-query.adapter.ts:23
- Complex function findComments (cyclomatic 14, cognitive 18) scripts/ascii-prose.cjs:143
- Complex function (anonymous) (cyclomatic 14, cognitive 18) src/modules/orders/primary-adapters/listeners/checkout-failure.listener.ts:26
- Complex function redactInPlace (cyclomatic 14, cognitive 16) src/infrastructure/logging/winston-logger.service.ts:197
- src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts: 404 lines of code src/modules/inventory/secondary-adapters/repositories/postgres-reservation-repository/postgres.reservation-repository.ts:1
- Dead file (~56 LoC) src/modules/orders/primary-adapters/dto/create-order.dto.ts
- Dead file (~47 LoC) src/modules/inventory/core/domain/value-objects/stock-adjustment-reason.ts
- Dead file (~37 LoC) src/modules/payments/primary-adapters/dto/payment-method-details.dto.ts
- Dead file (~29 LoC) src/infrastructure/websocket/guards/ws-auth.guard.ts
- Dead file (~28 LoC) src/modules/inventory/primary-adapters/dto/stock-reservation-response.dto.ts
- Dead file (~26 LoC) src/modules/orders/primary-adapters/dto/order-response.dto.ts
- Dead file (~25 LoC) src/modules/orders/primary-adapters/dto/create-order-item.dto.ts
- Dead file (~18 LoC) src/modules/identity/core/domain/repositories/address.repository.ts
- Dead file (~17 LoC) src/types/express.ts
- Dead file (~10 LoC) src/infrastructure/tracing/index.ts
- Dead file (~9 LoC) src/modules/orders/primary-adapters/dto/order-item-response.dto.ts
- Dead file (~7 LoC) src/modules/carts/core/application/commands/remove-cart-item.command.ts
- Dead file (~5 LoC) src/modules/orders/primary-adapters/dto/update-order.dto.ts
- Dead file (~3 LoC) src/infrastructure/jwt/index.ts
- Dead file (~2 LoC) src/infrastructure/idempotency/index.ts
- Dead file (~1 LoC) src/modules/authentication/primary-adapters/decorators/index.ts
- Dead file (~0 LoC) src/modules/orders/core/domain/services/index.ts
- Unused dependency '@eslint/eslintrc'
- Unused dependency 'source-map-support'
- Unused dependency 'tsconfig-paths'
- Swallowed exception (caught, then discarded) scripts/ascii-prose.cjs:58
Minor — 113 finding(s)
- Interpolated log message defeats structured logging scripts/generate-envs.js:219
- Interpolated log message defeats structured logging scripts/generate-envs.js:239
- Interpolated log message defeats structured logging scripts/generate-envs.js:246
- Interpolated log message defeats structured logging scripts/generate-envs.js:255
- Interpolated log message defeats structured logging scripts/generate-envs.js:262
- Interpolated log message defeats structured logging scripts/generate-envs.js:270
- Interpolated log message defeats structured logging scripts/generate-envs.js:279
- Interpolated log message defeats structured logging scripts/lib/cli.js:35
- Interpolated log message defeats structured logging scripts/lib/cli.js:37
- Interpolated log message defeats structured logging src/main.ts:89
- Interpolated log message defeats structured logging src/main.ts:104
- Interpolated log message defeats structured logging src/filters/global-exception.filter.ts:54
- Interpolated log message defeats structured logging src/filters/global-exception.filter.ts:75
- Interpolated log message defeats structured logging src/filters/global-exception.filter.ts:87
- Interpolated log message defeats structured logging src/filters/global-exception.filter.ts:99
- Interpolated log message defeats structured logging src/filters/global-exception.filter.ts:105
- Interpolated log message defeats structured logging src/filters/global-exception.filter.ts:112
- Interpolated log message defeats structured logging src/infrastructure/events/event-emitter2.domain-event-publisher.ts:23
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:49
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:63
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:77
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:81
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:85
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:93
- Interpolated log message defeats structured logging src/infrastructure/idempotency/idempotency.service.ts:101
- Primitive id on a domain type: OrderItem.productId src/modules/orders/core/domain/entities/order-items.ts:57
- Primitive id on a domain type: Order.userId src/modules/orders/core/domain/entities/order.ts:103
- Primitive id on a domain type: CartItem.productId src/modules/carts/core/domain/entities/cart-item.ts:86
- Primitive id on a domain type: Cart.userId src/modules/carts/core/domain/entities/cart.ts:52
- Primitive id on a domain type: ReservationItem.productId src/modules/inventory/core/domain/entities/reservation-item.ts:26
- Primitive id on a domain type: Reservation.orderId src/modules/inventory/core/domain/entities/reservation.ts:70
- Primitive id on a domain type: Refund.paymentId src/modules/payments/core/domain/entities/refund.ts:73
- Primitive id on a domain type: Payment.orderId src/modules/payments/core/domain/entities/payment.ts:133
- Primitive id on a domain type: SessionToken.userId src/modules/authentication/core/domain/entities/session-token.ts:35
- Primitive id on a domain type: Credential.userId src/modules/authentication/core/domain/entities/credential.ts:27
- Primitive id on a domain type: UserRoleAssignment.userId src/modules/authorization/core/domain/entities/user-role-assignment.ts:30
- Primitive id on a domain type: UserRoleAssignment.roleId src/modules/authorization/core/domain/entities/user-role-assignment.ts:34
- Primitive id on a domain type: Address.userId src/modules/identity/core/domain/entities/address.ts:99
- Primitive id on a domain type: Inventory.productId src/modules/inventory/core/domain/entities/inventory.ts:81
- README/code drift README.md:40
- README/code drift docs/architecture/DDD-HEXAGONAL.md:111
- README/code drift docs/architecture/DDD-HEXAGONAL.md:116
- README/code drift docs/development/SEEDING.md:142
- README/code drift docs/development/SEEDING.md:142
- README/code drift docs/security/ADMIN-BOOTSTRAP.md:25
- README/code drift docs/security/ADMIN-BOOTSTRAP.md:25
- README/code drift docs/security/ADMIN-BOOTSTRAP.md:62
- README/code drift docs/security/SECRET-ROTATION.md:202
- README/code drift docs/infrastructure/cicd/PROJECT-PIPELINE.md:57
- README/code drift docs/infrastructure/cicd/PROJECT-PIPELINE.md:93
- README/code drift docs/infrastructure/cicd/PROJECT-PIPELINE.md:110
- README/code drift docs/data/collections/bruno/README.md:14
- README/code drift docs/infrastructure/cicd/pipeline/PIPELINE-OPTIMIZATION.md:43
- Duplicated predicate src/modules/carts/core/application/usecases/create-cart/create-cart.usecase.ts:29
- Duplicated predicate src/modules/products/core/application/usecases/create-product/create-product.usecase.ts:55
- Duplicated predicate src/modules/inventory/core/domain/entities/reservation.ts:49
- Duplicated predicate src/migrations/1787400000005-PaymentProviderAndCardMethod.ts:5
- Duplicated predicate src/modules/orders/secondary-adapters/repositories/cached-order-repository/cached.order-repository.ts:54
- Duplicated predicate src/modules/authentication/core/application/usecases/change-password/change-password.usecase.ts:123
- Deprecated: glob REDACTED:7897
- Deprecated: node-domexception REDACTED:14249
- Deprecated: glob REDACTED:15809
- Deprecated: glob REDACTED:17103
- Deprecated: glob REDACTED:17792
- Mock-dominated test: returns unauthorized without revoking others when logout wins the rotation race src/modules/authentication/core/application/usecases/refresh-token/refresh-token.usecase.spec.ts:523
- Mock-dominated test: registers onFailed listener and executes compensation on failure src/modules/orders/primary-adapters/listeners/checkout-failure.listener.spec.ts:74
- Mock-dominated test: looks up reservationId from inventoryGateway when missing in job data src/modules/orders/primary-adapters/listeners/checkout-failure.listener.spec.ts:100
- Mock-dominated test: skips compensation for failed REFUND_PAYMENT jobs src/modules/orders/primary-adapters/listeners/checkout-failure.listener.spec.ts:127
- ADR not followed: ADR-0005: Typed Atomic OCC Update Contract docs/architecture/adr/ADR-0005-typed-atomic-occ-update-contract.md:41
- ADR not followed: ADR-0006: Redis Fail-Open Cache-Aside & Key-Space Generation docs/architecture/adr/ADR-0006-redis-fail-open-cache-aside.md:38
- ADR not followed: ADR-0009: Hosted Demo Reset as Ops Infrastructure docs/architecture/adr/ADR-0009-demo-reset-ops-infrastructure.md:38
- Partial data-retention evidence
- Projects may be oversized for their cohesion
- REDACTED
- REDACTED
- REDACTED
- Checkable ADR rule enforced only by prose: ADR-0009: Hosted Demo Reset as Ops Infrastructure docs/architecture/adr/ADR-0009-demo-reset-ops-infrastructure.md
- No SAST
- Unused export 'needsWebBuild' scripts/agent-output.mjs:124
- Unused export 'DEMO_RESET_TOKEN_MIN_LENGTH' src/config/validate-env.ts:155
- Unused export 'HealthIndicatorResultDto' src/infrastructure/health/dto/health-check-response.dto.ts:3
- Unused export 'DEFAULT_RETRY_CONFIG' src/infrastructure/jobs/retry-config.ts:15
- Unused export 'CreateCartInput' src/modules/carts/core/domain/repositories/cart.repository.ts:4
- Unused export 'CartBuilder' REDACTED:5
- Unused export 'CreateUserAddressInput' src/modules/identity/core/application/usecases/user/create-user/create-user.usecase.ts:13
- Unused export 'UserBuilder' src/modules/identity/testing/builders/user.builder.ts:4
- Unused export 'InventoryListItemResult' src/modules/inventory/core/application/queries/results/inventory-list-item.result.ts:12
- Unused export 'BulkCheckStockBodyDto' src/modules/inventory/primary-adapters/dto/bulk-check-stock.dto.ts:17
- Unused export 'OrderDetailResult' src/modules/orders/core/application/queries/results/order-detail.result.ts:23
- Unused export 'OrderItemDetailResult' src/modules/orders/core/application/queries/results/order-item-detail.result.ts:11
- Unused export 'OrderListItemResult' src/modules/orders/core/application/queries/results/order-list-item.result.ts:14
- Unused export 'IOrderEditable' src/modules/orders/core/domain/interfaces/order.interface.ts:28
- Unused export 'OrderItemInput' src/modules/orders/core/domain/repositories/order-repository.ts:5
- Unused export 'PaymentDetailResult' src/modules/payments/core/application/queries/results/payment-detail.result.ts:10
- Unused export 'PaymentListItemResult' src/modules/payments/core/application/queries/results/payment-list-item.result.ts:17
- Unused export 'ProductBuilder' src/modules/products/testing/builders/product.builder.ts:5
- Strict null checking is not enabled everywhere the repository type-checks
- Null assertions (`!`) reduce the strict null checking score
Minor — 18 finding(s)
- Outdated (npm): @nestjs/common
- Outdated (npm): @nestjs/core
- Outdated (npm): @nestjs/platform-express
- Outdated (npm): @nestjs/platform-socket.io
- Outdated (npm): @nestjs/swagger
- Outdated (npm): @nestjs/websockets
- Outdated (npm): @opentelemetry/api
- Outdated (npm): @opentelemetry/auto-instrumentations-node
- Outdated (npm): @opentelemetry/exporter-trace-otlp-grpc
- Outdated (npm): @opentelemetry/resources
- Outdated (npm): @opentelemetry/sdk-node
- Outdated (npm): bullmq
- Outdated (npm): ioredis
- Outdated (npm): jose
- Outdated (npm): sanitize-html
- Outdated (npm): typeorm
- Skipped (documented): (unnamed test) src/modules/identity/primary-adapters/decorators/current-user.decorator.spec.ts:11
- Skipped (documented): succeeded event for a FAILED payment, needs a product decision src/modules/payments/core/application/services/handle-payment-webhook/handle-payment-webhook.service.spec.ts:391
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-50edc72642a941dbb05a178186393c64/history.json --exit-code 0 --source . | 1 | 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-50edc72642a941dbb05a178186393c64/tree.json --exit-code 0 --source . | 1 | 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 . | 51 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 2 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 9 | 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 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |